package option

import "time"

type VmOption struct {
	AdapterId             string
	ClusterIds            []string
	TaskName              string
	ResourceType          string // cpu/gpu/compute card
	TaskType              string // pytorch/tensorflow/mindspore
	Strategy              string
	ClusterToStaticWeight map[string]int32
	CommitTime            time.Time
	NsID                  string
	Replicas              int32
	MatchLabels           map[string]string
	StaticWeightMap       map[string]int32
	CreateMulServer       []CreateMulDomainServer
	Id                    int64
	ParticipantId         int64
	TaskId                int64
	Name                  string
	ClusterId             int64
	FlavorRef             string
	ImageRef              string
	Status                string
	Platform              string
	Description           string
	AvailabilityZone      string
	MinCount              int64
	Uuid                  string
	StartTime             string
	RunningTime           string
	Result                string
	DeletedAt             string
}

type CreateMulDomainServer struct {
	Platform  string
	Name      string
	Min_count int64
	ImageRef  string
	FlavorRef string
	Uuid      string
}

func (a VmOption) GetOptionType() string {
	return VM
}
