pcm-openstack/internal/common/server.go

37 lines
942 B
Go

package common
type CreateSerReq struct {
Platform string `json:"platform,omitempty"`
CrServer CrServer `json:"crServer,omitempty"`
}
type CrServer struct {
Server Server `json:"server,omitempty"`
}
type Server struct {
FlavorRef string `json:"flavorRef,omitempty"`
Name string `json:"name,omitempty"`
Networks []Networks `json:"networks,omitempty"`
ImageRef string `json:"imageRef,omitempty"`
AccessIPv4 string `json:"accessIPv4,omitempty"`
AccessIPv6 string `json:"accessIPv6,omitempty"`
AdminPass string `json:"adminPass,omitempty"`
MinCount int64 `json:"min_count,omitempty"`
}
type Networks struct {
Uuid string `json:"uuid,omitempty"`
}
type CreateServerResp struct {
Code int64 `json:"code"`
Msg string `json:"msg"`
Data string `json:"data"`
Server ServerResp `json:"server,omitempty"`
}
type ServerResp struct {
Id string `json:"id,omitempty"`
}