package k8supgrade

import (
	"github.com/tidbcloud/devops/api"
	entity "github.com/tidbcloud/devops/entity/k8supgrade"
)

type ListK8SInformationReq struct {
	CloudProvider string `form:"cloud_provider" json:"cloud_provider" binding:"oneof=aws gcp" enums:"aws,gcp"`
	Version       string `form:"version" json:"version"`

	// Since we use cache, which does not support pagination
	// See: https://github.com/kubernetes-sigs/controller-runtime/issues/2463
}

type ListK8SInformationResp struct {
	api.BaseResp

	entity.K8sInfoList
}

type GetK8SInformationReq struct {
	CloudProvider string `form:"cloud_provider"`
	Name          string `form:"name"`
	Region        string `form:"region"`
}

type GetK8SInformationResp struct {
	api.BaseResp
	entity.K8sInfo
}
