zz_generated.model.go 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 scheduledtask
  14. import (
  15. time "time"
  16. "yunion.io/x/onecloud/pkg/apis"
  17. )
  18. // SScheduledTask is an autogenerated struct via yunion.io/x/onecloud/pkg/scheduledtask/models.SScheduledTask.
  19. type SScheduledTask struct {
  20. apis.SVirtualResourceBase
  21. apis.SEnabledResourceBase
  22. ScheduledType string `json:"scheduled_type"`
  23. STimer
  24. ResourceType string `json:"resource_type"`
  25. Operation string `json:"operation"`
  26. LabelType string `json:"label_type"`
  27. }
  28. // SScheduledTaskActivity is an autogenerated struct via yunion.io/x/onecloud/pkg/scheduledtask/models.SScheduledTaskActivity.
  29. type SScheduledTaskActivity struct {
  30. apis.SStatusStandaloneResourceBase
  31. ScheduledTaskId string `json:"scheduled_task_id"`
  32. StartTime time.Time `json:"start_time"`
  33. EndTime time.Time `json:"end_time"`
  34. Reason string `json:"reason"`
  35. }
  36. // SScheduledTaskLabel is an autogenerated struct via yunion.io/x/onecloud/pkg/scheduledtask/models.SScheduledTaskLabel.
  37. type SScheduledTaskLabel struct {
  38. apis.SResourceBase
  39. ScheduledTaskId string `json:"scheduled_task_id"`
  40. Label string `json:"label"`
  41. }
  42. // STimer is an autogenerated struct via yunion.io/x/onecloud/pkg/scheduledtask/models.STimer.
  43. type STimer struct {
  44. // Cycle type
  45. Type string `json:"type"`
  46. // 0-59
  47. Minute int `json:"minute"`
  48. // 0-23
  49. Hour int `json:"hour"`
  50. // 0-7 1 is Monday 0 is unlimited
  51. WeekDays byte `json:"week_days"`
  52. // 0-31 0 is unlimited
  53. MonthDays uint32 `json:"month_days"`
  54. IsExpired bool `json:"is_expired"`
  55. }