listCheckpoints method

Future<GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse> listCheckpoints(
  1. String name, {
  2. int? pageSize,
  3. String? pageToken,
  4. String? $fields,
})

Lists checkpoints of the specified model version.

Request parameters:

name - Required. The name of the model version to list checkpoints for. projects/{project}/locations/{location}/models/{model}@{version} Example: projects/{project}/locations/{location}/models/{model}@2 or projects/{project}/locations/{location}/models/{model}@golden If no version ID or alias is specified, the latest version will be used. Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+/models/\[^/\]+$.

pageSize - Optional. The standard list page size.

pageToken - Optional. The standard list page token. Typically obtained via next_page_token of the previous ListModelVersionCheckpoints call.

$fields - Selector specifying which fields to include in a partial response.

Completes with a GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse.

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<GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse>
    listCheckpoints(
  core.String name, {
  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_ = 'v1/' + core.Uri.encodeFull('$name') + ':listCheckpoints';

  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse.fromJson(
      response_ as core.Map<core.String, core.dynamic>);
}