tcqueue/tcqueue.go
func (queue *Queue) ClaimTask(taskId, runId string, payload *TaskClaimRequest) (*TaskClaimResponse, error) {
	cd := tcclient.Client(*queue)
	responseObject, _, err := (&cd).APICall(payload, "POST", "/task/"+url.QueryEscape(taskId)+"/runs/"+url.QueryEscape(runId)+"/claim", new(TaskClaimResponse), nil)
	return responseObject.(*TaskClaimResponse), err
}
func (queue *Queue) ClaimTask(taskId, runId string, payload *TaskClaimRequest) (*TaskClaimResponse, error) {
	cd := tcclient.Client(*queue)
	responseObject, _, err := (&cd).APICall(payload, "POST", "/task/"+url.QueryEscape(taskId)+"/runs/"+url.QueryEscape(runId)+"/claim", new(TaskClaimResponse), nil)
	return responseObject.(*TaskClaimResponse), err
}
// Stability: *** DEPRECATED ***
//
// claim a task - never documented
//
// Required scopes:
//   Any of:
//   - All of:
//     * queue:claim-task:<provisionerId>/<workerType>
//     * queue:worker-id:<workerGroup>/<workerId>
//   - All of:
//     * queue:claim-task
//     * assume:worker-type:<provisionerId>/<workerType>
//     * assume:worker-id:<workerGroup>/<workerId>
//
// See #claimTask