Snapshot.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 Snapshot struct {
  18. /* 云硬盘快照ID (Optional) */
  19. SnapshotId string `json:"snapshotId"`
  20. /* 快照来源 可以有self,others两种来源 (Optional) */
  21. SnapshotSource string `json:"snapshotSource"`
  22. /* 创建快照的云硬盘ID(snapshotSource为others时不展示) (Optional) */
  23. DiskId string `json:"diskId"`
  24. /* 快照大小,单位为GiB (Optional) */
  25. SnapshotSizeGB int `json:"snapshotSizeGB"`
  26. /* 快照关联的所有镜像ID(snapshotSource为others时不展示) (Optional) */
  27. Images []string `json:"images"`
  28. /* 快照名称 (Optional) */
  29. Name string `json:"name"`
  30. /* 快照描述 (Optional) */
  31. Description string `json:"description"`
  32. /* 快照状态,取值为 creating、available、in-use、deleting、error_create、error_delete 之一 (Optional) */
  33. Status string `json:"status"`
  34. /* 创建时间 (Optional) */
  35. CreateTime string `json:"createTime"`
  36. /* 过期删除时间 (Optional) */
  37. ExpireTime string `json:"expireTime"`
  38. /* 共享信息(已废弃,使用shareInfo) (Optional) */
  39. SharInfo []ShareInfo `json:"sharInfo"`
  40. /* 共享信息 (Optional) */
  41. ShareInfo []ShareInfo `json:"shareInfo"`
  42. /* 快照是否为加密盘的快照 (Optional) */
  43. Encrypted bool `json:"encrypted"`
  44. }