Image.go 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // Copyright 2018 JDCLOUD.COM
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. //
  15. // NOTE: This class is auto generated by the jdcloud code generator program.
  16. package models
  17. type Image struct {
  18. /* 镜像ID (Optional) */
  19. ImageId string `json:"imageId"`
  20. /* 镜像名称 (Optional) */
  21. Name string `json:"name"`
  22. /* 镜像的操作系统发行版。取值:Ubuntu,CentOS,Windows Server (Optional) */
  23. Platform string `json:"platform"`
  24. /* 镜像的操作系统版本。 (Optional) */
  25. OsVersion string `json:"osVersion"`
  26. /* 镜像架构。取值:i386,x86_64 (Optional) */
  27. Architecture string `json:"architecture"`
  28. /* 镜像系统盘大小 (Optional) */
  29. SystemDiskSizeGB int `json:"systemDiskSizeGB"`
  30. /* 镜像来源。取值:jcloud:官方镜像;marketplace:镜像市场镜像;self:用户自己的镜像;shared:其他用户分享的镜像 (Optional) */
  31. ImageSource string `json:"imageSource"`
  32. /* 镜像的操作系统类型。取值:windows,linux (Optional) */
  33. OsType string `json:"osType"`
  34. /* <a href="http://docs.jdcloud.com/virtual-machines/api/image_status">参考镜像状态</a> (Optional) */
  35. Status string `json:"status"`
  36. /* 创建时间 (Optional) */
  37. CreateTime string `json:"createTime"`
  38. /* 镜像文件实际大小 (Optional) */
  39. SizeMB int `json:"sizeMB"`
  40. /* 镜像描述 (Optional) */
  41. Desc string `json:"desc"`
  42. /* 该镜像所有者的用户PIN (Optional) */
  43. OwnerPin string `json:"ownerPin"`
  44. /* 镜像的使用权限,取值:all(所有人可用), specifiedUsers(共享用户可用),ownerOnly(镜像所有者自己可用) (Optional) */
  45. LaunchPermission string `json:"launchPermission"`
  46. /* 镜像系统盘配置 (Optional) */
  47. SystemDisk InstanceDiskAttachment `json:"systemDisk"`
  48. /* 镜像数据盘映射信息 (Optional) */
  49. DataDisks []InstanceDiskAttachment `json:"dataDisks"`
  50. /* 创建云盘系统盘所使用的云硬盘快照ID。系统盘类型为本地盘的镜像,此参数为空。 (Optional) */
  51. SnapshotId string `json:"snapshotId"`
  52. /* 镜像支持的系统盘类型。取值:localDisk:本地盘系统盘;cloudDisk:云盘系统盘。 (Optional) */
  53. RootDeviceType string `json:"rootDeviceType"`
  54. /* 镜像复制和转换时的进度,仅显示数值,单位为百分比 (Optional) */
  55. Progress string `json:"progress"`
  56. /* 该镜像的上下线状态 (Optional) */
  57. Offline bool `json:"offline"`
  58. /* 该镜像所属的产品线标识 (Optional) */
  59. ServiceCode string `json:"serviceCode"`
  60. }