@@ -143,8 +143,8 @@ class Task(Generic[T]):
143143 """Encapsulates a unit of asynchronously performed work."""
144144 client : Any = None
145145 taskId : str = None
146- taskStatus : str = None
147- taskStatusMessage : str = None
146+ state : str = None
147+ statusMessage : str = None
148148 taskCreatedOn : str = None
149149 taskLastModifiedOn : str = None
150150 # eob: This is typed wrong, but I'm not sure how to type it..
@@ -156,8 +156,8 @@ def from_dict(d: any, client: Any = None) -> "Task":
156156 return Task (
157157 client = client ,
158158 taskId = d .get ('taskId' , None ),
159- taskStatus = d .get ('taskStatus ' , None ),
160- taskStatusMessage = d .get ('taskStatusMessage ' , None ),
159+ state = d .get ('state ' , None ),
160+ statusMessage = d .get ('statusMessage ' , None ),
161161 taskCreatedOn = d .get ('taskCreatedOn' , None ),
162162 taskLastModifiedOn = d .get ('taskLastModifiedOn' , None )
163163 )
@@ -166,12 +166,12 @@ def update(self, other: "Task"):
166166 """Incorporates a `Task` into this object."""
167167 if other is not None :
168168 self .taskId = other .taskId
169- self .taskStatus = other .taskStatus
170- self .taskStatusMessage = other .taskStatusMessage
169+ self .state = other .state
170+ self .statusMessage = other .statusMessage
171171 self .taskCreatedOn = other .taskCreatedOn
172172 self .taskLastModifiedOn = other .taskLastModifiedOn
173173 else :
174- self .taskStatus = None
174+ self .state = None
175175
176176 def add_comment (self , externalId : str = None , externalType : str = None , externalGroup : str = None ,
177177 metadata : any = None , upsert : bool = True ) -> IResponse [TaskComment ]:
0 commit comments