list method
Lists the control compliance summary for a given scope.
Request parameters:
parent - Required. The parent scope for the framework overview page.
Format:
organizations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}
folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}
projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}
Value must have pattern
^projects/\[^/\]+/locations/\[^/\]+/dbFrameworkComplianceReports/\[^/\]+$.
filter - Optional. The filtering results.
pageSize - Optional. The requested page size. The server might return
fewer items than requested. If unspecified, the default page size is 50.
The maximum value is 1000.
pageToken - Optional. A token that identifies the page of results that
the server should return.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudAssuredworkloadsV1ListDbControlComplianceSummariesResponse.
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<
GoogleCloudAssuredworkloadsV1ListDbControlComplianceSummariesResponse
>
list(
core.String parent, {
core.String? filter,
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
'filter': ?filter == null ? null : [filter],
'pageSize': ?pageSize == null ? null : ['${pageSize}'],
'pageToken': ?pageToken == null ? null : [pageToken],
'fields': ?$fields == null ? null : [$fields],
};
final url_ =
'v1/' +
core.Uri.encodeFull('$parent') +
'/dbControlComplianceSummaries';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudAssuredworkloadsV1ListDbControlComplianceSummariesResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>,
);
}