zz_generated.model.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. // Licensed under the Apache License, Version 2.0 (the "License");
  2. // you may not use this file except in compliance with the License.
  3. // You may obtain a copy of the License at
  4. //
  5. // http://www.apache.org/licenses/LICENSE-2.0
  6. //
  7. // Unless required by applicable law or agreed to in writing, software
  8. // distributed under the License is distributed on an "AS IS" BASIS,
  9. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. // See the License for the specific language governing permissions and
  11. // limitations under the License.
  12. // Code generated by model-api-gen. DO NOT EDIT.
  13. package apis
  14. import (
  15. time "time"
  16. )
  17. // SAdminSharableVirtualResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SAdminSharableVirtualResourceBase.
  18. type SAdminSharableVirtualResourceBase struct {
  19. SSharableVirtualResourceBase
  20. Records string `json:"records"`
  21. }
  22. // SAutoDeleteResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SAutoDeleteResourceBase.
  23. type SAutoDeleteResourceBase struct {
  24. // 是否跟随资源自动删除
  25. // example: false
  26. AutoDelete bool `json:"auto_delete"`
  27. }
  28. // SCertificateResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SCertificateResourceBase.
  29. type SCertificateResourceBase struct {
  30. Certificate string `json:"certificate"`
  31. PrivateKey string `json:"private_key"`
  32. // derived attributes
  33. PublicKeyAlgorithm string `json:"public_key_algorithm"`
  34. PublicKeyBitLen int `json:"public_key_bit_len"`
  35. SignatureAlgorithm string `json:"signature_algorithm"`
  36. Fingerprint string `json:"fingerprint"`
  37. NotBefore time.Time `json:"not_before"`
  38. NotAfter time.Time `json:"not_after"`
  39. CommonName string `json:"common_name"`
  40. SubjectAlternativeNames string `json:"subject_alternative_names"`
  41. }
  42. // SDistinctField is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SDistinctField.
  43. type SDistinctField struct {
  44. // 资源类型
  45. // example: network
  46. ObjType string `json:"obj_type"`
  47. // 资源组合ID
  48. // example: obj_type::key::value
  49. Id string `json:"id"`
  50. // Distinct Field
  51. // exmaple: 部门
  52. Key string `json:"key"`
  53. // Distinct Value
  54. // example: 技术部
  55. Value string `json:"value"`
  56. }
  57. // SDomainLevelResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SDomainLevelResourceBase.
  58. type SDomainLevelResourceBase struct {
  59. SStandaloneResourceBase
  60. SDomainizedResourceBase
  61. // 归属Domain信息的来源, local: 本地设置, cloud: 从云上同步过来
  62. // example: local
  63. DomainSrc string `json:"domain_src"`
  64. }
  65. // SDomainizedResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SDomainizedResourceBase.
  66. type SDomainizedResourceBase struct {
  67. // 域Id
  68. DomainId string `json:"domain_id"`
  69. }
  70. // SEnabledResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SEnabledResourceBase.
  71. type SEnabledResourceBase struct {
  72. // 资源是否启用
  73. Enabled *bool `json:"enabled,omitempty"`
  74. }
  75. // SEnabledStatusDomainLevelResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SEnabledStatusDomainLevelResourceBase.
  76. type SEnabledStatusDomainLevelResourceBase struct {
  77. SStatusDomainLevelResourceBase
  78. SEnabledResourceBase
  79. }
  80. // SEnabledStatusInfrasResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SEnabledStatusInfrasResourceBase.
  81. type SEnabledStatusInfrasResourceBase struct {
  82. SStatusInfrasResourceBase
  83. SEnabledResourceBase
  84. }
  85. // SEnabledStatusStandaloneResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SEnabledStatusStandaloneResourceBase.
  86. type SEnabledStatusStandaloneResourceBase struct {
  87. SStatusStandaloneResourceBase
  88. SEnabledResourceBase
  89. }
  90. // SEncryptedResource is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SEncryptedResource.
  91. type SEncryptedResource struct {
  92. // 加密密钥ID
  93. EncryptKeyId string `json:"encrypt_key_id"`
  94. }
  95. // SExternalizedResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SExternalizedResourceBase.
  96. type SExternalizedResourceBase struct {
  97. // 云上Id, 对应云上资源自身Id
  98. ExternalId string `json:"external_id"`
  99. // 资源导入时间
  100. ImportedAt time.Time `json:"imported_at"`
  101. // 资源来源, cloud: 从云上同步下来的资源, local: 从本地创建的资源或资源在本地更改过项目
  102. Source string `json:"source"`
  103. }
  104. // SI18n is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SI18n.
  105. type SI18n struct {
  106. // 资源类型
  107. // example: network
  108. ObjType string `json:"obj_type"`
  109. // 资源ID
  110. // example: 87321a70-1ecb-422a-8b0c-c9aa632a46a7
  111. ObjId string `json:"obj_id"`
  112. // 资源KEY
  113. // exmaple: name
  114. KeyName string `json:"key_name"`
  115. // 资源原始值
  116. // example: 技术部
  117. KeyValue string `json:"key_value"`
  118. // KeyValue 对应中文翻译
  119. Cn string `json:"cn"`
  120. // KeyValue 对应英文翻译
  121. En string `json:"en"`
  122. }
  123. // SInfrasResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SInfrasResourceBase.
  124. type SInfrasResourceBase struct {
  125. SDomainLevelResourceBase
  126. SSharableBaseResource
  127. }
  128. // SJointResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SJointResourceBase.
  129. type SJointResourceBase struct {
  130. SResourceBase
  131. RowId int64 `json:"row_id"`
  132. }
  133. // SKeystoneCacheObject is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SKeystoneCacheObject.
  134. type SKeystoneCacheObject struct {
  135. SStandaloneResourceBase
  136. SPendingDeletedBase
  137. DomainId string `json:"domain_id"`
  138. Domain string `json:"domain"`
  139. Lang string `json:"lang"`
  140. }
  141. // SLogBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SLogBase.
  142. type SLogBase struct {
  143. Id int64 `json:"id"`
  144. }
  145. // SMetadata is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SMetadata.
  146. type SMetadata struct {
  147. // 资源类型
  148. // example: network
  149. ObjType string `json:"obj_type"`
  150. // 资源ID
  151. // example: 87321a70-1ecb-422a-8b0c-c9aa632a46a7
  152. ObjId string `json:"obj_id"`
  153. // 资源组合ID
  154. // example: network::87321a70-1ecb-422a-8b0c-c9aa632a46a7
  155. Id string `json:"id"`
  156. // 标签KEY
  157. // exmaple: 部门
  158. Key string `json:"key"`
  159. // 标签值
  160. // example: 技术部
  161. Value string `json:"value"`
  162. // 是否被删除
  163. Deleted bool `json:"deleted"`
  164. }
  165. // SMultiArchResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SMultiArchResourceBase.
  166. type SMultiArchResourceBase struct {
  167. // 操作系统 CPU 架构
  168. // example: x86 arm
  169. OsArch string `json:"os_arch"`
  170. }
  171. // SOpsLog is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SOpsLog.
  172. type SOpsLog struct {
  173. SLogBase
  174. ObjType string `json:"obj_type"`
  175. ObjId string `json:"obj_id"`
  176. ObjName string `json:"obj_name"`
  177. Action string `json:"action"`
  178. Notes string `json:"notes"`
  179. ProjectId string `json:"tenant_id"`
  180. Project string `json:"tenant"`
  181. ProjectDomainId string `json:"project_domain_id"`
  182. ProjectDomain string `json:"project_domain"`
  183. UserId string `json:"user_id"`
  184. User string `json:"user"`
  185. DomainId string `json:"domain_id"`
  186. Domain string `json:"domain"`
  187. Roles string `json:"roles"`
  188. OpsTime time.Time `json:"ops_time"`
  189. OwnerDomainId string `json:"owner_domain_id"`
  190. OwnerProjectId string `json:"owner_tenant_id"`
  191. }
  192. // SPendingDeletedBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SPendingDeletedBase.
  193. type SPendingDeletedBase struct {
  194. // 资源放入回收站时间
  195. PendingDeletedAt time.Time `json:"pending_deleted_at"`
  196. // 资源是否处于回收站中
  197. PendingDeleted bool `json:"pending_deleted"`
  198. }
  199. // SProjectizedResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SProjectizedResourceBase.
  200. type SProjectizedResourceBase struct {
  201. SDomainizedResourceBase
  202. // 项目Id
  203. ProjectId string `json:"tenant_id"`
  204. }
  205. // SRecordChecksumResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SRecordChecksumResourceBase.
  206. type SRecordChecksumResourceBase struct {
  207. RecordChecksum string `json:"record_checksum"`
  208. }
  209. // SResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SResourceBase.
  210. type SResourceBase struct {
  211. // 资源创建时间
  212. CreatedAt time.Time `json:"created_at"`
  213. // 资源更新时间
  214. UpdatedAt time.Time `json:"updated_at"`
  215. // 资源被更新次数
  216. UpdateVersion int `json:"update_version"`
  217. // 资源删除时间
  218. DeletedAt time.Time `json:"deleted_at"`
  219. // 资源是否被删除
  220. Deleted bool `json:"deleted"`
  221. }
  222. // SRole is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SRole.
  223. type SRole struct {
  224. SKeystoneCacheObject
  225. }
  226. // SScopedResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SScopedResourceBase.
  227. type SScopedResourceBase struct {
  228. SProjectizedResourceBase
  229. }
  230. // SSharableBaseResource is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SSharableBaseResource.
  231. type SSharableBaseResource struct {
  232. // 是否共享
  233. IsPublic bool `json:"is_public"`
  234. // 默认共享范围
  235. PublicScope string `json:"public_scope"`
  236. // 共享设置的来源, local: 本地设置, cloud: 从云上同步过来
  237. // example: local
  238. PublicSrc string `json:"public_src"`
  239. }
  240. // SSharableVirtualResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SSharableVirtualResourceBase.
  241. type SSharableVirtualResourceBase struct {
  242. SVirtualResourceBase
  243. SSharableBaseResource
  244. }
  245. // SSharedResource is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SSharedResource.
  246. type SSharedResource struct {
  247. SResourceBase
  248. Id int64 `json:"id"`
  249. ResourceType string `json:"resource_type"`
  250. ResourceId string `json:"resource_id"`
  251. // OwnerProjectId string `width:"128" charset:"ascii" nullable:"false" index:"true" json:"owner_project_id"`
  252. TargetProjectId string `json:"target_project_id"`
  253. TargetType string `json:"target_type"`
  254. }
  255. // SStandaloneAnonResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SStandaloneAnonResourceBase.
  256. type SStandaloneAnonResourceBase struct {
  257. SResourceBase
  258. // 资源UUID
  259. Id string `json:"id"`
  260. // 资源描述信息
  261. Description string `json:"description"`
  262. // 是否是模拟资源, 部分从公有云上同步的资源并不真实存在, 例如宿主机
  263. // list 接口默认不会返回这类资源,除非显示指定 is_emulate=true 过滤参数
  264. IsEmulated bool `json:"is_emulated"`
  265. // 用以组织架构变更通知其他服务权限变更
  266. OrgNodeMd5 string `json:"org_node_md5"`
  267. }
  268. // SStandaloneResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SStandaloneResourceBase.
  269. type SStandaloneResourceBase struct {
  270. SStandaloneAnonResourceBase
  271. // 资源名称
  272. Name string `json:"name"`
  273. }
  274. // SStatusDomainLevelResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SStatusDomainLevelResourceBase.
  275. type SStatusDomainLevelResourceBase struct {
  276. SDomainLevelResourceBase
  277. SStatusResourceBase
  278. }
  279. // SStatusDomainLevelUserResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SStatusDomainLevelUserResourceBase.
  280. type SStatusDomainLevelUserResourceBase struct {
  281. SStatusDomainLevelResourceBase
  282. // 本地用户Id
  283. OwnerId string `json:"owner_id"`
  284. }
  285. // SStatusInfrasResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SStatusInfrasResourceBase.
  286. type SStatusInfrasResourceBase struct {
  287. SInfrasResourceBase
  288. SStatusResourceBase
  289. }
  290. // SStatusResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SStatusResourceBase.
  291. type SStatusResourceBase struct {
  292. // 资源状态
  293. Status string `json:"status"`
  294. // 操作进度0-100
  295. Progress float32 `json:"progress"`
  296. }
  297. // SStatusStandaloneResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SStatusStandaloneResourceBase.
  298. type SStatusStandaloneResourceBase struct {
  299. SStandaloneResourceBase
  300. SStatusResourceBase
  301. }
  302. // STenant is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.STenant.
  303. type STenant struct {
  304. SKeystoneCacheObject
  305. }
  306. // SUser is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SUser.
  307. type SUser struct {
  308. SKeystoneCacheObject
  309. }
  310. // SUserResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SUserResourceBase.
  311. type SUserResourceBase struct {
  312. SStandaloneResourceBase
  313. // 本地用户Id
  314. OwnerId string `json:"owner_id"`
  315. }
  316. // SVirtualJointResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SVirtualJointResourceBase.
  317. type SVirtualJointResourceBase struct {
  318. SJointResourceBase
  319. }
  320. // SVirtualResourceBase is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudcommon/db.SVirtualResourceBase.
  321. type SVirtualResourceBase struct {
  322. SStatusStandaloneResourceBase
  323. SProjectizedResourceBase
  324. SPendingDeletedBase
  325. // 云上同步资源是否在本地被更改过配置, local: 更改过, cloud: 未更改过
  326. // example: local
  327. ProjectSrc string `json:"project_src"`
  328. // 是否是系统资源
  329. IsSystem bool `json:"is_system"`
  330. // 资源是否被冻结
  331. Freezed bool `json:"freezed"`
  332. }