riskLabelsWithHttpInfo method
Read the assertions this tenant has recorded
Reads the assertions this tenant has recorded, newest event first. It reads the RECORD — the tenant's own store — and not the columnar copy, so what it returns is what would be produced in an audit. Narrow it by entity, by asserter, or by event window.
Note: This method returns the HTTP Response.
Parameters:
-
String kind: Kind and Subject narrow to one entity.
-
String subject:
-
String source_: Source narrows to one asserter — the read that answers "what has commerce told us", separately from "what has an analyst told us".
-
String from: From and To bound the EVENT time, half-open, RFC 3339.
-
String to:
-
int limit: Limit caps the page. Out of range takes the plane's own bound.
Implementation
Future<Response> riskLabelsWithHttpInfo({ String? kind, String? subject, String? source_, String? from, String? to, int? limit, }) async {
// ignore: prefer_const_declarations
final path = r'/v1/label';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (kind != null) {
queryParams.addAll(_queryParams('', 'kind', kind));
}
if (subject != null) {
queryParams.addAll(_queryParams('', 'subject', subject));
}
if (source_ != null) {
queryParams.addAll(_queryParams('', 'source', source_));
}
if (from != null) {
queryParams.addAll(_queryParams('', 'from', from));
}
if (to != null) {
queryParams.addAll(_queryParams('', 'to', to));
}
if (limit != null) {
queryParams.addAll(_queryParams('', 'limit', limit));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}