code: func (client *Client) UpdateTaskCancel(taskGUID string) (Task, Warnings, error) {
  	request, err := client.newHTTPRequest(requestOptions{
  		RequestName: internal.PutTaskCancelRequest,
  		URIParams: internal.Params{
  			"task_guid": taskGUID,
  		},
  	})
  	if err != nil {
  		return Task{}, nil, err
  	}
  
  	var task Task
  	response := cloudcontroller.Response{
  		DecodeJSONResponseInto: &task,
  	}
  
  	err = client.connection.Make(request, &response)
  	if err != nil {
  		return Task{}, response.Warnings, err
  	}
  
  	return task, response.Warnings, nil
  }
docs: // UpdateTaskCancel cancels a task.