@@ -61,7 +61,7 @@ def get(self, job):
61
61
json_obj = self ._api_client .http .get ('{}/{}' .format (self ._base_route , identifier ))
62
62
return Job (json_obj , self ._api_client )
63
63
64
- def get_history (self , user = None , access_key = None , start_date = None , end_date = None , job_identifiers = None ,
64
+ def get_history (self , user = None , access_key = None , start_date = None , end_date = None , model = None ,
65
65
status = 'all' , sort_by = None , direction = None , page = None , per_page = None ):
66
66
"""Gets a list of `Job` instances within a set of parameters.
67
67
@@ -70,7 +70,7 @@ def get_history(self, user=None, access_key=None, start_date=None, end_date=None
70
70
access_key (Optional[str]): Identifier of the access key to be assigned to the user
71
71
start_date (Optional[datetime, str]): initial date to filter recods
72
72
end_date (Optional[datetime, str]): final date to filter recods
73
- job_identifiers (Optional[Union[List[ str], Tuple[str]]] ): Array of unique job identifiers
73
+ model (Optional[str]): Model name or version identifier
74
74
status (Optional[str]): Status of the jobs (all, pending, terminated)
75
75
sort_by (Optional[str]): attribute name to sort results
76
76
direction (Optional[str]): Direction of the sorting algorithm (asc, desc)
@@ -99,8 +99,8 @@ def get_history(self, user=None, access_key=None, start_date=None, end_date=None
99
99
raise TypeError ("the end_date param should be a datetime or string" )
100
100
if status is not None and not isinstance (status , str ):
101
101
raise TypeError ("the status param should be a string" )
102
- if job_identifiers is not None and not isinstance (job_identifiers , ( list , tuple ) ):
103
- raise TypeError ("the job_identifiers param should be a list or tuple " )
102
+ if model is not None and not isinstance (model , str ):
103
+ raise TypeError ("the model param should be a string " )
104
104
if sort_by is not None and not isinstance (sort_by , str ):
105
105
raise TypeError ("the sort_by param should be a string" )
106
106
if direction is not None and not isinstance (direction , str ):
@@ -120,7 +120,7 @@ def get_history(self, user=None, access_key=None, start_date=None, end_date=None
120
120
"accessKey" : access_key ,
121
121
"startDate" : start_date ,
122
122
"endDate" : end_date ,
123
- "jobIdentifiers " : job_identifiers ,
123
+ "model " : model ,
124
124
"status" : status ,
125
125
"sort-by" : sort_by ,
126
126
"direction" : direction ,
0 commit comments