zz_generated.model.go 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 image
  14. import (
  15. "yunion.io/x/onecloud/pkg/apis"
  16. )
  17. // SGuestImage is an autogenerated struct via yunion.io/x/onecloud/pkg/image/models.SGuestImage.
  18. type SGuestImage struct {
  19. apis.SSharableVirtualResourceBase
  20. apis.SMultiArchResourceBase
  21. apis.SEncryptedResource
  22. Protected *bool `json:"protected,omitempty"`
  23. }
  24. // SGuestImageJoint is an autogenerated struct via yunion.io/x/onecloud/pkg/image/models.SGuestImageJoint.
  25. type SGuestImageJoint struct {
  26. apis.SJointResourceBase
  27. GuestImageId string `json:"guest_image_id"`
  28. ImageId string `json:"image_id"`
  29. }
  30. // SImage is an autogenerated struct via yunion.io/x/onecloud/pkg/image/models.SImage.
  31. type SImage struct {
  32. apis.SSharableVirtualResourceBase
  33. apis.SMultiArchResourceBase
  34. apis.SEncryptedResource
  35. // 镜像大小, 单位Byte
  36. Size int64 `json:"size"`
  37. // 存储地址
  38. Location string `json:"location"`
  39. // 镜像格式
  40. DiskFormat string `json:"disk_format"`
  41. // 校验和
  42. Checksum string `json:"checksum"`
  43. FastHash string `json:"fast_hash"`
  44. // 用户Id
  45. Owner string `json:"owner"`
  46. // 最小系统盘要求
  47. MinDiskMB int32 `json:"min_disk"`
  48. // 最小内存要求
  49. MinRamMB int32 `json:"min_ram"`
  50. // 是否有删除保护
  51. Protected *bool `json:"protected,omitempty"`
  52. // 是否是标准镜像
  53. IsStandard *bool `json:"is_standard,omitempty"`
  54. // 是否是主机镜像
  55. IsGuestImage *bool `json:"is_guest_image,omitempty"`
  56. // 是否是数据盘镜像
  57. IsData *bool `json:"is_data,omitempty"`
  58. // image copy from url, save origin checksum before probe
  59. // 从镜像时长导入的镜像校验和
  60. OssChecksum string `json:"oss_checksum"`
  61. // 加密状态, "",encrypting,encrypted
  62. EncryptStatus string `json:"encrypt_status"`
  63. }
  64. // SImagePeripheral is an autogenerated struct via yunion.io/x/onecloud/pkg/image/models.SImagePeripheral.
  65. type SImagePeripheral struct {
  66. apis.SResourceBase
  67. Id int `json:"id"`
  68. ImageId string `json:"image_id"`
  69. }