code: func NewCancelAllocationCommand(index string, shardId int, node string, allowPrimary bool) *CancelAllocationCommand {
  	return &CancelAllocationCommand{
  		index:        index,
  		shardId:      shardId,
  		node:         node,
  		allowPrimary: allowPrimary,
  	}
  }
docs: // NewCancelAllocationCommand creates a new CancelAllocationCommand.