Closed yamamoto-febc closed 2 years ago
helper/query
パッケージでのサーバプラン検索APIをどうするか?
// as-is
// FindServerPlan サーバプラン検索
func FindServerPlan(ctx context.Context, finder ServerPlanFinder, zone string, param *FindServerPlanRequest)
// FindServerPlanRequest サーバプラン検索パラメータ
type FindServerPlanRequest struct {
CPU int
MemoryGB int
Commitment types.ECommitment
Generation types.EPlanGeneration
}
現状はGPUプランが少ない(1プランのみ)なためGPUの有無のみで検索すれば良さそうに見えるが、API的には.GPU
は数値になっていることも合わせるとCPU
やMemoryGB
パラメータと同じようにGPUもintで受け取り一致するプランを返すようにした方が良いと思われる。
GPUプランに対応する。 https://manual.sakura.ad.jp/cloud/server/gpu-plan.html
product/server
)へのGPU
フィールド追加GPU
フィールドの追加GPU
フィールドの追加