list method
Lists information about app profiles in an instance.
Request parameters:
parent
- Required. The unique name of the instance for which a list of
app profiles is requested. Values are of the form
projects/{project}/instances/{instance}
. Use {instance} = '-'
to list
AppProfiles for all Instances in a project, e.g.,
projects/myproject/instances/-
.
Value must have pattern ^projects/\[^/\]+/instances/\[^/\]+$
.
pageSize
- Maximum number of results per page. A page_size of zero lets
the server choose the number of items to return. A page_size which is
strictly positive will return at most that many items. A negative
page_size will cause an error. Following the first request, subsequent
paginated calls are not required to pass a page_size. If a page_size is
set in subsequent calls, it must match the page_size given in the first
request.
pageToken
- The value of next_page_token
returned by a previous call.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a ListAppProfilesResponse.
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<ListAppProfilesResponse> list(
core.String parent, {
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v2/' + core.Uri.encodeFull('$parent') + '/appProfiles';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return ListAppProfilesResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}