accessibilityClusters method

Future<ListStepAccessibilityClustersResponse> accessibilityClusters(
  1. String name, {
  2. String? locale,
  3. String? $fields,
})

Lists accessibility clusters for a given Step 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 - FAILED_PRECONDITION - if an argument in the request happens to be invalid; e.g. if the locale format is incorrect - NOT_FOUND - if the containing Step does not exist

Request parameters:

name - A full resource name of the step. For example, projects/my-project/histories/bh.1234567890abcdef/executions/ 1234567890123456789/steps/bs.1234567890abcdef Required. Value must have pattern ^projects/\[^/\]+/histories/\[^/\]+/executions/\[^/\]+/steps/\[^/\]+$.

locale - The accepted format is the canonical Unicode format with hyphen as a delimiter. Language must be lowercase, Language Script - Capitalized, Region - UPPERCASE. See http://www.unicode.org/reports/tr35/#Unicode_locale_identifier for details. Required.

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

Completes with a ListStepAccessibilityClustersResponse.

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<ListStepAccessibilityClustersResponse> accessibilityClusters(
  core.String name, {
  core.String? locale,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (locale != null) 'locale': [locale],
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'toolresults/v1beta3/' +
      core.Uri.encodeFull('$name') +
      ':accessibilityClusters';

  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return ListStepAccessibilityClustersResponse.fromJson(
      response_ as core.Map<core.String, core.dynamic>);
}