fix: update auto-gen model api 20221017

This commit is contained in:
Qiu Jian
2022-10-17 17:12:18 +08:00
parent df373cdaf6
commit 340790d894
4 changed files with 44 additions and 6 deletions
+2
View File
@@ -1287,6 +1287,8 @@ type SHost struct {
MemReserved int `json:"mem_reserved"`
// 内存超分比
MemCmtbound float32 `json:"mem_cmtbound"`
// 页大小
PageSizeKB int `json:"page_size_kb"`
// 存储大小,单位Mb
StorageSize int `json:"storage_size"`
// 存储类型
+2
View File
@@ -99,6 +99,8 @@ type EmailQueueSendInput struct {
type EmailQueueDetails struct {
apis.ModelBaseDetails
SEmailQueue
SentAt time.Time `json:"sent_at"`
Status string `json:"status"`
+34 -5
View File
@@ -31,13 +31,42 @@ type SConfig struct {
Attribution string `json:"attribution"`
}
// SEmailQueue is an autogenerated struct via yunion.io/x/onecloud/pkg/notify/models.SEmailQueue.
type SEmailQueue struct {
apis.SLogBase
RecvAt time.Time `json:"recv_at"`
Dest string `json:"dest"`
Subject string `json:"subject"`
SessionId string `json:"session_id"`
Content jsonutils.JSONObject `json:"content"`
ProjectId string `json:"project_id"`
Project string `json:"project"`
ProjectDomainId string `json:"project_domain_id"`
ProjectDomain string `json:"project_domain"`
UserId string `json:"user_id"`
User string `json:"user"`
DomainId string `json:"domain_id"`
Domain string `json:"domain"`
Roles string `json:"roles"`
}
// SEmailQueueStatus is an autogenerated struct via yunion.io/x/onecloud/pkg/notify/models.SEmailQueueStatus.
type SEmailQueueStatus struct {
Id int64 `json:"id"`
SentAt time.Time `json:"sent_at"`
Status string `json:"status"`
Results string `json:"results"`
}
// SEvent is an autogenerated struct via yunion.io/x/onecloud/pkg/notify/models.SEvent.
type SEvent struct {
apis.SStandaloneAnonResourceBase
Message string `json:"message"`
Event string `json:"event"`
AdvanceDays int `json:"advance_days"`
TopicId string `json:"topic_id"`
apis.SLogBase
// 资源创建时间
CreatedAt time.Time `json:"created_at"`
Message string `json:"message"`
Event string `json:"event"`
AdvanceDays int `json:"advance_days"`
TopicId string `json:"topic_id"`
}
// SNotification is an autogenerated struct via yunion.io/x/onecloud/pkg/notify/models.SNotification.
+6 -1
View File
@@ -157,6 +157,11 @@ type SKeystoneCacheObject struct {
Domain string `json:"domain"`
}
// SLogBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SLogBase.
type SLogBase struct {
Id int64 `json:"id"`
}
// SMetadata is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SMetadata.
type SMetadata struct {
// 资源类型
@@ -187,7 +192,7 @@ type SMultiArchResourceBase struct {
// SOpsLog is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SOpsLog.
type SOpsLog struct {
Id int64 `json:"id"`
SLogBase
ObjType string `json:"obj_type"`
ObjId string `json:"obj_id"`
ObjName string `json:"obj_name"`