get method

Future<TestMatrix> get(
  1. String projectId,
  2. String testMatrixId, {
  3. String? $fields,
})

Checks the status of a test matrix.

May return any of the following canonical error codes: - PERMISSION_DENIED

  • if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Test Matrix does not exist

Request parameters:

projectId - Cloud project that owns the test matrix.

testMatrixId - Unique test matrix id which was assigned by the service.

$fields - Selector specifying which fields to include in a partial response.

Completes with a TestMatrix.

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<TestMatrix> get(
  core.String projectId,
  core.String testMatrixId, {
  core.String? $fields,
}) async {
  final _queryParams = <core.String, core.List<core.String>>{
    if ($fields != null) 'fields': [$fields],
  };

  final _url = 'v1/projects/' +
      commons.escapeVariable('$projectId') +
      '/testMatrices/' +
      commons.escapeVariable('$testMatrixId');

  final _response = await _requester.request(
    _url,
    'GET',
    queryParams: _queryParams,
  );
  return TestMatrix.fromJson(
      _response as core.Map<core.String, core.dynamic>);
}