list method
Lists the controls that you must implement to become compliant to a regulatory standard.
Request parameters:
parent - Required. Standard to list controls for, in one of the
following formats: *
projects/{project}/locations/{location}/standards/{standard} *
folders/{folder}/locations/{location}/standards/{standard} *
organizations/{organization}/locations/{location}/standards/{standard}
Value must have pattern
^projects/\[^/\]+/locations/\[^/\]+/standards/\[^/\]+$.
pageSize - Optional. Maximum number of items to return in a single page.
The service might return fewer items than this value. If unspecified, the
service picks an appropriate default. The maximum value is 100; values
above 100 are reduced to 100.
pageToken - Optional. A page token, received from a previous call, to
retrieve the next page of results.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a ListControlsResponse.
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<ListControlsResponse> list(
core.String parent, {
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
'pageSize': ?pageSize == null ? null : ['${pageSize}'],
'pageToken': ?pageToken == null ? null : [pageToken],
'fields': ?$fields == null ? null : [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/controls';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return ListControlsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>,
);
}