get method

Gets a NotebookExecutionJob.

Request parameters:

name - Required. The name of the NotebookExecutionJob resource. Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+/notebookExecutionJobs/\[^/\]+$.

view - Optional. The NotebookExecutionJob view. Defaults to BASIC. Possible string values are:

  • "NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED" : When unspecified, the API defaults to the BASIC view.
  • "NOTEBOOK_EXECUTION_JOB_VIEW_BASIC" : Includes all fields except for direct notebook inputs.
  • "NOTEBOOK_EXECUTION_JOB_VIEW_FULL" : Includes all fields.

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

Completes with a GoogleCloudAiplatformV1NotebookExecutionJob.

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<GoogleCloudAiplatformV1NotebookExecutionJob> get(
  core.String name, {
  core.String? view,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (view != null) 'view': [view],
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'v1/' + core.Uri.encodeFull('$name');

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