getImport method

Future<GetImportResponse> getImport({
  1. required String importId,
})

Gets information about an import job started with the StartImport operation.

May throw NotFoundException. May throw LimitExceededException. May throw InternalFailureException. May throw BadRequestException.

Parameter importId : The identifier of the import job information to return.

Implementation

Future<GetImportResponse> getImport({
  required String importId,
}) async {
  ArgumentError.checkNotNull(importId, 'importId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/imports/${Uri.encodeComponent(importId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetImportResponse.fromJson(response);
}