同步公有云资源创建时间

This commit is contained in:
ioito
2019-04-23 16:09:11 +08:00
parent 8186cadfdc
commit e218dfc6b7
30 changed files with 149 additions and 24 deletions
+6 -2
View File
@@ -111,8 +111,8 @@ type SDisk struct {
VolumeImageMetadata VolumeImageMetadata
NameID string `json:"os-vol-mig-status-attr:name_id"`
Bootable bool
//CreatedAt time.Time
VolumeType string
CreatedAt time.Time
VolumeType string
}
func (disk *SDisk) GetMetadata() *jsonutils.JSONDict {
@@ -374,6 +374,10 @@ func (disk *SDisk) GetBillingType() string {
return billing_api.BILLING_TYPE_POSTPAID
}
func (disk *SDisk) GetCreatedAt() time.Time {
return disk.CreatedAt
}
func (disk *SDisk) GetExpiredAt() time.Time {
return time.Time{}
}