func NewTasksCancelService(client *Client) *TasksCancelService {
	return &TasksCancelService{
		client: client,
	}
}
NewTasksCancelService creates a new TasksCancelService.
package elastic
import (
	"context"
	"fmt"
	"net/url"
	"strings"
	"github.com/olivere/elastic/uritemplates"
)
type TasksCancelService struct {
	client       *Client
	pretty       bool
	taskId       string
	actions      []string
	nodeId       []string
	parentTaskId string
}