mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
mcclient: models: map to db models
This commit is contained in:
@@ -54,7 +54,6 @@ type StandaloneResource struct {
|
||||
|
||||
Id string
|
||||
Name string
|
||||
ExternalId string
|
||||
Description string
|
||||
IsEmulated bool
|
||||
}
|
||||
@@ -69,7 +68,7 @@ type StatusStandaloneResource struct {
|
||||
Status string
|
||||
}
|
||||
|
||||
type EnabledStatusStandaloneResourceBase struct {
|
||||
type EnabledStatusStandaloneResource struct {
|
||||
StatusStandaloneResource
|
||||
|
||||
Enabled bool
|
||||
@@ -84,10 +83,6 @@ type VirtualResource struct {
|
||||
PendingDeleted bool
|
||||
}
|
||||
|
||||
type ManagedResource struct {
|
||||
ManagerId string
|
||||
}
|
||||
|
||||
func (r *VirtualResource) GetPendingDeleted() bool {
|
||||
return r.PendingDeleted
|
||||
}
|
||||
@@ -97,3 +92,11 @@ type SharableVirtualResource struct {
|
||||
|
||||
IsPublic bool
|
||||
}
|
||||
|
||||
type ManagedResource struct {
|
||||
ManagerId string
|
||||
}
|
||||
|
||||
type ExternalizedResource struct {
|
||||
ExternalId string
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
)
|
||||
|
||||
type Host struct {
|
||||
EnabledStatusStandaloneResourceBase
|
||||
EnabledStatusStandaloneResource
|
||||
|
||||
Rack string
|
||||
Slots string
|
||||
|
||||
Reference in New Issue
Block a user