Skip to content

Commit e8cd0e5

Browse files
committed
Add TaskId method to GetTaskDescriptor
This commit adds the TaskId method to GetTaskDescriptor to maintain binary compatibility. The REST API specs have been updated to make task_id a required parameter, which means that the constructor accepts the task_id.
1 parent 026dea4 commit e8cd0e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Nest/Cluster/TaskManagement/GetTask/GetTaskRequest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@ public partial class GetTaskDescriptor
1515
{
1616
[Obsolete("Maintained for binary compatibility. Use the constructor that accepts a task id. Will be removed in 7.0")]
1717
public GetTaskDescriptor() { }
18+
19+
[Obsolete("Maintained for binary compatibility. Use the constructor that accepts a task id. Will be removed in 7.0")]
20+
public GetTaskDescriptor TaskId(TaskId taskId) => this.Assign(a => a.RouteValues.Required("task_id", taskId));
1821
}
1922
}

0 commit comments

Comments
 (0)