list method
Lists all the test cases that satisfy the filters.
Request parameters:
parent
- Required. The parent resource where this TestCase was created.
Value must have pattern
^projects/\[^/\]+/locations/\[^/\]+/integrations/\[^/\]+/versions/\[^/\]+$
.
filter
- Optional. Standard filter field. Filtering as supported in
https://developers.google.com/authorized-buyers/apis/guides/list-filters.
orderBy
- Optional. The results would be returned in order specified
here. Currently supported sort keys are: Descending sort order for
"last_modified_time", "created_time". Ascending sort order for "name".
pageSize
- Optional. The maximum number of test cases to return. The
service may return fewer than this value. If unspecified, at most 100 test
cases will be returned.
pageToken
- Optional. A page token, received from a previous
ListTestCases
call. Provide this to retrieve the subsequent page. When
paginating, all other parameters provided to ListTestCases
must match
the call that provided the page token.
readMask
- Optional. The mask which specifies fields that need to be
returned in the TestCases's response.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudIntegrationsV1alphaListTestCasesResponse.
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<GoogleCloudIntegrationsV1alphaListTestCasesResponse> list(
core.String parent, {
core.String? filter,
core.String? orderBy,
core.int? pageSize,
core.String? pageToken,
core.String? readMask,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (filter != null) 'filter': [filter],
if (orderBy != null) 'orderBy': [orderBy],
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if (readMask != null) 'readMask': [readMask],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/testCases';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudIntegrationsV1alphaListTestCasesResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}