list method
Lists the client states for the given search query.
Request parameters:
parent - Required. To list all ClientStates, set this to
"devices/-/deviceUsers/-". To list all ClientStates owned by a DeviceUser,
set this to the resource name of the DeviceUser. Format:
devices/{device}/deviceUsers/{deviceUser}
Value must have pattern ^devices/\[^/\]+/deviceUsers/\[^/\]+$.
customer - Optional.
Resource name of
the customer. If you're using this API for your own organization, use
customers/my_customer If you're using this API to manage another
organization, use customers/{customer}, where customer is the customer
to whom the device belongs.
filter - Optional. Additional restrictions when fetching list of client
states.
orderBy - Optional. Order specification for client states in the
response.
pageToken - Optional. A page token, received from a previous
ListClientStates call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to ListClientStates must
match the call that provided the page token.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a GoogleAppsCloudidentityDevicesV1ListClientStatesResponse.
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<GoogleAppsCloudidentityDevicesV1ListClientStatesResponse> list(
core.String parent, {
core.String? customer,
core.String? filter,
core.String? orderBy,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (customer != null) 'customer': [customer],
if (filter != null) 'filter': [filter],
if (orderBy != null) 'orderBy': [orderBy],
if (pageToken != null) 'pageToken': [pageToken],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/clientStates';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleAppsCloudidentityDevicesV1ListClientStatesResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}