Disk.go 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. import charge "github.com/jdcloud-api/jdcloud-sdk-go/services/charge/models"
  18. type Disk struct {
  19. /* 云硬盘ID (Optional) */
  20. DiskId string `json:"diskId"`
  21. /* 云硬盘所属AZ (Optional) */
  22. Az string `json:"az"`
  23. /* 云硬盘名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符。 (Optional) */
  24. Name string `json:"name"`
  25. /* 云硬盘描述,允许输入UTF-8编码下的全部字符,不超过256字符。 (Optional) */
  26. Description string `json:"description"`
  27. /* 云硬盘类型,取值为 ssd,premium-hdd,ssd.gp1,ssd.io1,hdd.std1 (Optional) */
  28. DiskType string `json:"diskType"`
  29. /* 云硬盘大小,单位为 GiB (Optional) */
  30. DiskSizeGB int `json:"diskSizeGB"`
  31. /* 该云硬盘实际应用的iops值 (Optional) */
  32. Iops int `json:"iops"`
  33. /* 该云硬盘实际应用的吞吐量的数值 (Optional) */
  34. Throughput int `json:"throughput"`
  35. /* 云硬盘状态,取值为 creating、available、in-use、extending、restoring、deleting、deleted、error_create、error_delete、error_restore、error_extend 之一 (Optional) */
  36. Status string `json:"status"`
  37. /* 挂载信息 (Optional) */
  38. Attachments []DiskAttachment `json:"attachments"`
  39. /* 创建该云硬盘的快照ID (Optional) */
  40. SnapshotId string `json:"snapshotId"`
  41. /* 云盘是否支持多挂载 (Optional) */
  42. MultiAttachable bool `json:"multiAttachable"`
  43. /* 云盘是否为加密盘 (Optional) */
  44. Encrypted bool `json:"encrypted"`
  45. /* 云盘是否被暂停(IOPS限制为极低) (Optional) */
  46. Enabled bool `json:"enabled"`
  47. /* 创建云硬盘时间 (Optional) */
  48. CreateTime string `json:"createTime"`
  49. /* 云硬盘计费配置信息 (Optional) */
  50. Charge charge.Charge `json:"charge"`
  51. /* null (Optional) */
  52. Tags []Tag `json:"tags"`
  53. /* (Optional) */
  54. SnapshotPolicies []SnapshotPolicy `json:"snapshotPolicies"`
  55. }