blob: 3ba66f5196a61fbe2a323239bb42006c152798c8 [file] [log] [blame]
package diskconfig
import "github.com/gophercloud/gophercloud/openstack/compute/v2/servers"
type ServerWithDiskConfig struct {
servers.Server
DiskConfig DiskConfig `json:"OS-DCF:diskConfig"`
}
func (s ServerWithDiskConfig) ToServerCreateResult() (m map[string]interface{}) {
m["OS-DCF:diskConfig"] = s.DiskConfig
return
}
type CreateServerResultBuilder interface {
ToServerCreateResult() map[string]interface{}
}