def GetBatchJob(client, batch_job_id):
 batch_job_service = client.GetService('BatchJobService', 'v201607')
 selector = {'fields': ['Id', 'Status', 'DownloadUrl'], 'predicates': [{'field': 'Id', 'operator': 'EQUALS', 'values': [batch_job_id]}]}
 return batch_job_service.get(selector)['entries'][0]

def GetBatchJob ( client , batch_job_id ) : batch_job_service = client . GetService ( 'BatchJobService' , 'v201607' ) selector = { 'fields' : [ 'Id' , 'Status' , 'DownloadUrl' ] , 'predicates' : [ { 'field' : 'Id' , 'operator' : 'EQUALS' , 'values' : [ batch_job_id ] } ] } return batch_job_service . get ( selector ) [ 'entries' ] [ 0 ]
retrieves the batchjob with the given id .