list method
Lists Revisions from a given Service, or from a given location.
Results are sorted by creation time, descending.
Request parameters:
parent
- Required. The Service from which the Revisions should be
listed. To list all Revisions across Services, use "-" instead of Service
name. Format: projects/{project}/locations/{location}/services/{service}
Value must have pattern
^projects/\[^/\]+/locations/\[^/\]+/services/\[^/\]+$
.
pageSize
- Maximum number of revisions to return in this call.
pageToken
- A page token received from a previous call to ListRevisions.
All other parameters must match.
showDeleted
- If true, returns deleted (but unexpired) resources along
with active ones.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudRunV2ListRevisionsResponse.
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<GoogleCloudRunV2ListRevisionsResponse> list(
core.String parent, {
core.int? pageSize,
core.String? pageToken,
core.bool? showDeleted,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if (showDeleted != null) 'showDeleted': ['${showDeleted}'],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v2/' + core.Uri.encodeFull('$parent') + '/revisions';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudRunV2ListRevisionsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}