mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 06:09:39 +08:00
同步公有云资源创建时间
This commit is contained in:
@@ -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{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user