listTestGridProjects method
Gets a list of all Selenium testing projects in your account.
May throw ArgumentException. May throw InternalServiceException.
Parameter maxResult
:
Return no more than this number of results.
Parameter nextToken
:
From a response, used to continue a paginated listing.
Implementation
Future<ListTestGridProjectsResult> listTestGridProjects({
int? maxResult,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResult',
maxResult,
1,
1000,
);
_s.validateStringLength(
'nextToken',
nextToken,
4,
1024,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'DeviceFarm_20150623.ListTestGridProjects'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (maxResult != null) 'maxResult': maxResult,
if (nextToken != null) 'nextToken': nextToken,
},
);
return ListTestGridProjectsResult.fromJson(jsonResponse.body);
}