getExecutionDetails method
Request detailed information about the execution status of the job.
EXPERIMENTAL. This API is subject to change or removal without notice.
Request parameters:
projectId
- A project id.
location
- The
regional endpoint
that contains the job specified by job_id.
jobId
- The job to get execution details for.
pageSize
- If specified, determines the maximum number of stages to
return. If unspecified, the service may choose an appropriate default, or
may return an arbitrarily large number of results.
pageToken
- If supplied, this should be the value of next_page_token
returned by an earlier call. This will cause the next page of results to
be returned.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a JobExecutionDetails.
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<JobExecutionDetails> getExecutionDetails(
core.String projectId,
core.String location,
core.String jobId, {
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 = 'v1b3/projects/' +
commons.escapeVariable('$projectId') +
'/locations/' +
commons.escapeVariable('$location') +
'/jobs/' +
commons.escapeVariable('$jobId') +
'/executionDetails';
final _response = await _requester.request(
_url,
'GET',
queryParams: _queryParams,
);
return JobExecutionDetails.fromJson(
_response as core.Map<core.String, core.dynamic>);
}