mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-30 17:13:08 +08:00
autogen structs add commentlines
This commit is contained in:
@@ -16,8 +16,16 @@ package cloudprovider
|
||||
|
||||
// SGeographicInfo is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudprovider.SGeographicInfo.
|
||||
type SGeographicInfo struct {
|
||||
Latitude float32 `json:"latitude"`
|
||||
Longitude float32 `json:"longitude"`
|
||||
City string `json:"city"`
|
||||
CountryCode string `json:"country_code"`
|
||||
// 纬度
|
||||
// example: 26.647003
|
||||
Latitude float32 `json:"latitude"`
|
||||
// 经度
|
||||
// example: 106.630211
|
||||
Longitude float32 `json:"longitude"`
|
||||
// 城市
|
||||
// example: Guiyang
|
||||
City string `json:"city"`
|
||||
// 国家代码
|
||||
// example: CN
|
||||
CountryCode string `json:"country_code"`
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -107,13 +107,14 @@ type SIdentityBaseResource struct {
|
||||
// SIdentityProvider is an autogenerated struct via yunion.io/x/onecloud/pkg/keystone/models.SIdentityProvider.
|
||||
type SIdentityProvider struct {
|
||||
apis.SEnabledStatusStandaloneResourceBase
|
||||
Driver string `json:"driver"`
|
||||
Template string `json:"template"`
|
||||
TargetDomainId string `json:"target_domain_id"`
|
||||
AutoCreateProject *bool `json:"auto_create_project,omitempty"`
|
||||
ErrorCount int `json:"error_count"`
|
||||
SyncStatus string `json:"sync_status"`
|
||||
LastSync time.Time `json:"last_sync"`
|
||||
Driver string `json:"driver"`
|
||||
Template string `json:"template"`
|
||||
TargetDomainId string `json:"target_domain_id"`
|
||||
AutoCreateProject *bool `json:"auto_create_project,omitempty"`
|
||||
ErrorCount int `json:"error_count"`
|
||||
SyncStatus string `json:"sync_status"`
|
||||
LastSync time.Time `json:"last_sync"`
|
||||
// = Column(DateTime, nullable=True)
|
||||
LastSyncEndAt time.Time `json:"last_sync_end_at"`
|
||||
SyncIntervalSeconds int `json:"sync_interval_seconds"`
|
||||
}
|
||||
@@ -190,16 +191,17 @@ type SService struct {
|
||||
// SUser is an autogenerated struct via yunion.io/x/onecloud/pkg/keystone/models.SUser.
|
||||
type SUser struct {
|
||||
SEnabledIdentityBaseResource
|
||||
Email string `json:"email"`
|
||||
Mobile string `json:"mobile"`
|
||||
Displayname string `json:"displayname"`
|
||||
LastActiveAt time.Time `json:"last_active_at"`
|
||||
LastLoginIp string `json:"last_login_ip"`
|
||||
LastLoginSource string `json:"last_login_source"`
|
||||
IsSystemAccount *bool `json:"is_system_account,omitempty"`
|
||||
DefaultProjectId string `json:"default_project_id"`
|
||||
AllowWebConsole *bool `json:"allow_web_console,omitempty"`
|
||||
EnableMfa *bool `json:"enable_mfa,omitempty"`
|
||||
Email string `json:"email"`
|
||||
Mobile string `json:"mobile"`
|
||||
Displayname string `json:"displayname"`
|
||||
LastActiveAt time.Time `json:"last_active_at"`
|
||||
LastLoginIp string `json:"last_login_ip"`
|
||||
LastLoginSource string `json:"last_login_source"`
|
||||
IsSystemAccount *bool `json:"is_system_account,omitempty"`
|
||||
// deprecated
|
||||
DefaultProjectId string `json:"default_project_id"`
|
||||
AllowWebConsole *bool `json:"allow_web_console,omitempty"`
|
||||
EnableMfa *bool `json:"enable_mfa,omitempty"`
|
||||
}
|
||||
|
||||
// SUsergroupMembership is an autogenerated struct via yunion.io/x/onecloud/pkg/keystone/models.SUsergroupMembership.
|
||||
|
||||
@@ -34,19 +34,32 @@ type SGuestImageJoint struct {
|
||||
// SImage is an autogenerated struct via yunion.io/x/onecloud/pkg/image/models.SImage.
|
||||
type SImage struct {
|
||||
apis.SSharableVirtualResourceBase
|
||||
Size int64 `json:"size"`
|
||||
Location string `json:"location"`
|
||||
DiskFormat string `json:"disk_format"`
|
||||
Checksum string `json:"checksum"`
|
||||
FastHash string `json:"fast_hash"`
|
||||
Owner string `json:"owner"`
|
||||
MinDiskMB int32 `json:"min_disk"`
|
||||
MinRamMB int32 `json:"min_ram"`
|
||||
Protected *bool `json:"protected,omitempty"`
|
||||
IsStandard *bool `json:"is_standard,omitempty"`
|
||||
IsGuestImage *bool `json:"is_guest_image,omitempty"`
|
||||
IsData *bool `json:"is_data,omitempty"`
|
||||
OssChecksum string `json:"oss_checksum"`
|
||||
// 镜像大小, 单位Byte
|
||||
Size int64 `json:"size"`
|
||||
// 存储地址
|
||||
Location string `json:"location"`
|
||||
// 镜像格式
|
||||
DiskFormat string `json:"disk_format"`
|
||||
// 校验和
|
||||
Checksum string `json:"checksum"`
|
||||
FastHash string `json:"fast_hash"`
|
||||
// 用户Id
|
||||
Owner string `json:"owner"`
|
||||
// 最小系统盘要求
|
||||
MinDiskMB int32 `json:"min_disk"`
|
||||
// 最小内存要求
|
||||
MinRamMB int32 `json:"min_ram"`
|
||||
// 是否有删除保护
|
||||
Protected *bool `json:"protected,omitempty"`
|
||||
// 是否是标准镜像
|
||||
IsStandard *bool `json:"is_standard,omitempty"`
|
||||
// 是否是主机镜像
|
||||
IsGuestImage *bool `json:"is_guest_image,omitempty"`
|
||||
// 是否是数据盘镜像
|
||||
IsData *bool `json:"is_data,omitempty"`
|
||||
// image copy from url, save origin checksum before probe
|
||||
// 从镜像时长导入的镜像校验和
|
||||
OssChecksum string `json:"oss_checksum"`
|
||||
}
|
||||
|
||||
// SImagePeripheral is an autogenerated struct via yunion.io/x/onecloud/pkg/image/models.SImagePeripheral.
|
||||
|
||||
@@ -28,16 +28,20 @@ type SAdminSharableVirtualResourceBase struct {
|
||||
type SDomainLevelResourceBase struct {
|
||||
SStandaloneResourceBase
|
||||
SDomainizedResourceBase
|
||||
// 归属Domain信息的来源, local: 本地设置, cloud: 从云上同步过来
|
||||
// example: local
|
||||
DomainSrc string `json:"domain_src"`
|
||||
}
|
||||
|
||||
// SDomainizedResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SDomainizedResourceBase.
|
||||
type SDomainizedResourceBase struct {
|
||||
// 域Id
|
||||
DomainId string `json:"domain_id"`
|
||||
}
|
||||
|
||||
// SEnabledResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SEnabledResourceBase.
|
||||
type SEnabledResourceBase struct {
|
||||
// 资源是否启用
|
||||
Enabled *bool `json:"enabled,omitempty"`
|
||||
}
|
||||
|
||||
@@ -55,6 +59,7 @@ type SEnabledStatusStandaloneResourceBase struct {
|
||||
|
||||
// SExternalizedResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SExternalizedResourceBase.
|
||||
type SExternalizedResourceBase struct {
|
||||
// 外部Id, 对用公有云私有资源自身的Id
|
||||
ExternalId string `json:"external_id"`
|
||||
}
|
||||
|
||||
@@ -75,16 +80,22 @@ type SKeystoneCacheObject struct {
|
||||
// SProjectizedResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SProjectizedResourceBase.
|
||||
type SProjectizedResourceBase struct {
|
||||
SDomainizedResourceBase
|
||||
// 项目Id
|
||||
ProjectId string `json:"tenant_id"`
|
||||
}
|
||||
|
||||
// SResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SResourceBase.
|
||||
type SResourceBase struct {
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
UpdateVersion int `json:"update_version"`
|
||||
DeletedAt time.Time `json:"deleted_at"`
|
||||
Deleted bool `json:"deleted"`
|
||||
// 资源创建时间
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
// 资源更新时间
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
// 资源被更新次数
|
||||
UpdateVersion int `json:"update_version"`
|
||||
// 资源删除时间
|
||||
DeletedAt time.Time `json:"deleted_at"`
|
||||
// 资源是否被删除
|
||||
Deleted bool `json:"deleted"`
|
||||
}
|
||||
|
||||
// SScopedResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SScopedResourceBase.
|
||||
@@ -118,10 +129,15 @@ type SSharedResource struct {
|
||||
// SStandaloneResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SStandaloneResourceBase.
|
||||
type SStandaloneResourceBase struct {
|
||||
SResourceBase
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
// 资源UUID
|
||||
Id string `json:"id"`
|
||||
// 资源名称
|
||||
Name string `json:"name"`
|
||||
// 资源描述信息
|
||||
Description string `json:"description"`
|
||||
IsEmulated bool `json:"is_emulated"`
|
||||
// 是否是模拟资源, 部分从公有云上同步的资源并不真实存在, 例如宿主机
|
||||
// list 接口默认不会返回这类资源,除非显示指定 is_emulate=true 过滤参数
|
||||
IsEmulated bool `json:"is_emulated"`
|
||||
}
|
||||
|
||||
// SStatusDomainLevelResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SStatusDomainLevelResourceBase.
|
||||
@@ -132,6 +148,7 @@ type SStatusDomainLevelResourceBase struct {
|
||||
|
||||
// SStatusResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SStatusResourceBase.
|
||||
type SStatusResourceBase struct {
|
||||
// 资源状态
|
||||
Status string `json:"status"`
|
||||
}
|
||||
|
||||
@@ -150,8 +167,12 @@ type SVirtualJointResourceBase struct {
|
||||
type SVirtualResourceBase struct {
|
||||
SStatusStandaloneResourceBase
|
||||
SProjectizedResourceBase
|
||||
ProjectSrc string `json:"project_src"`
|
||||
// 云上同步资源是否在本地被更改过配置, local: 更改过, cloud: 未更改过
|
||||
// example: local
|
||||
ProjectSrc string `json:"project_src"`
|
||||
// 是否是系统资源
|
||||
IsSystem bool `json:"is_system"`
|
||||
PendingDeletedAt time.Time `json:"pending_deleted_at"`
|
||||
PendingDeleted bool `json:"pending_deleted"`
|
||||
// 资源是否处于回收站中
|
||||
PendingDeleted bool `json:"pending_deleted"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user