list method
Lists Services.
Results are sorted by creation time, descending.
Request parameters:
parent
- Required. The location and project to list resources on.
Location must be a valid Google Cloud region, and cannot be the "-"
wildcard. Format: projects/{project}/locations/{location}, where {project}
can be project id or number.
Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+$
.
pageSize
- Maximum number of Services to return in this call.
pageToken
- A page token received from a previous call to ListServices.
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 GoogleCloudRunV2ListServicesResponse.
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<GoogleCloudRunV2ListServicesResponse> 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') + '/services';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudRunV2ListServicesResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}