SnapshotPolicy.go 2.1 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 SnapshotPolicy struct {
  18. /* 策略id (Optional) */
  19. Id string `json:"id"`
  20. /* 策略名称 (Optional) */
  21. Name string `json:"name"`
  22. /* 用户pin (Optional) */
  23. Pin string `json:"pin"`
  24. /* 策略执行间隔,单位:秒 (Optional) */
  25. Interval int `json:"interval"`
  26. /* 策略生效时间。格式`YYYY-MM-DDTHH:mm:ss+xx:xx`。如`2020-02-02T20:02:00+08:00` (Optional) */
  27. EffectiveTime string `json:"effectiveTime"`
  28. /* 策略上次执行时间。格式`YYYY-MM-DDTHH:mm:ss+xx:xx`。如`2020-02-02T20:02:00+08:00` (Optional) */
  29. LastTriggerTime string `json:"lastTriggerTime"`
  30. /* 策略下次执行时间。格式`YYYY-MM-DDTHH:mm:ss+xx:xx`。如`2020-02-02T20:02:00+08:00` (Optional) */
  31. NextTriggerTime string `json:"nextTriggerTime"`
  32. /* 快照保留时间。单位:秒。0:永久保留 (Optional) */
  33. SnapshotLifecycle int `json:"snapshotLifecycle"`
  34. /* 联系人信息 (Optional) */
  35. ContactInfo ContactInfo `json:"contactInfo"`
  36. /* 策略下次执行时间。格式`YYYY-MM-DDTHH:mm:ss+xx:xx`。如`2020-02-02T20:02:00+08:00` (Optional) */
  37. CreateTime string `json:"createTime"`
  38. /* 策略下次执行时间。格式`YYYY-MM-DDTHH:mm:ss+xx:xx`。如`2020-02-02T20:02:00+08:00` (Optional) */
  39. UpdateTime string `json:"updateTime"`
  40. /* 策略状态。1:启用 2:禁用 (Optional) */
  41. Status int `json:"status"`
  42. /* 策略绑定的disk数量 (Optional) */
  43. DiskCount int `json:"diskCount"`
  44. }