ACME TLS ALPN
This commit is contained in:
parent
17ad5153b8
commit
139f280f35
258 changed files with 25528 additions and 1516 deletions
51
vendor/github.com/sacloud/libsacloud/sacloud/prop_server_plan.go
generated
vendored
Normal file
51
vendor/github.com/sacloud/libsacloud/sacloud/prop_server_plan.go
generated
vendored
Normal file
|
@ -0,0 +1,51 @@
|
|||
package sacloud
|
||||
|
||||
// propServerPlan サーバープラン内包型
|
||||
type propServerPlan struct {
|
||||
ServerPlan *ProductServer `json:",omitempty"` // サーバープラン
|
||||
}
|
||||
|
||||
// GetServerPlan サーバープラン取得
|
||||
func (p *propServerPlan) GetServerPlan() *ProductServer {
|
||||
return p.ServerPlan
|
||||
}
|
||||
|
||||
// SetServerPlan サーバープラン設定
|
||||
func (p *propServerPlan) SetServerPlan(plan *ProductServer) {
|
||||
p.ServerPlan = plan
|
||||
}
|
||||
|
||||
// SetServerPlanByID サーバープラン設定
|
||||
func (p *propServerPlan) SetServerPlanByID(planID string) {
|
||||
if p.ServerPlan == nil {
|
||||
p.ServerPlan = &ProductServer{}
|
||||
}
|
||||
p.ServerPlan.Resource = NewResourceByStringID(planID)
|
||||
}
|
||||
|
||||
// GetCPU CPUコア数 取得
|
||||
func (p *propServerPlan) GetCPU() int {
|
||||
if p.ServerPlan == nil {
|
||||
return -1
|
||||
}
|
||||
|
||||
return p.ServerPlan.GetCPU()
|
||||
}
|
||||
|
||||
// GetMemoryMB メモリ(MB) 取得
|
||||
func (p *propServerPlan) GetMemoryMB() int {
|
||||
if p.ServerPlan == nil {
|
||||
return -1
|
||||
}
|
||||
|
||||
return p.ServerPlan.GetMemoryMB()
|
||||
}
|
||||
|
||||
// GetMemoryGB メモリ(GB) 取得
|
||||
func (p *propServerPlan) GetMemoryGB() int {
|
||||
if p.ServerPlan == nil {
|
||||
return -1
|
||||
}
|
||||
|
||||
return p.ServerPlan.GetMemoryGB()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue