zz_generated.model.go 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 devtool
  14. import (
  15. time "time"
  16. "yunion.io/x/onecloud/pkg/apis"
  17. ansible "yunion.io/x/onecloud/pkg/util/ansible"
  18. )
  19. // SCronjob is an autogenerated struct via yunion.io/x/onecloud/pkg/devtool/models.SCronjob.
  20. type SCronjob struct {
  21. SVSCronjob
  22. AnsiblePlaybookID string `json:"ansible_playbook_id"`
  23. TemplateID string `json:"template_id"`
  24. ServerID string `json:"server_id"`
  25. apis.SVirtualResourceBase
  26. }
  27. // SDevtoolTemplate is an autogenerated struct via yunion.io/x/onecloud/pkg/devtool/models.SDevtoolTemplate.
  28. type SDevtoolTemplate struct {
  29. SVSCronjob
  30. Playbook *ansible.Playbook `json:"playbook"`
  31. apis.SVirtualResourceBase
  32. }
  33. // SScript is an autogenerated struct via yunion.io/x/onecloud/pkg/devtool/models.SScript.
  34. type SScript struct {
  35. apis.SVirtualResourceBase
  36. // remote
  37. Type string `json:"type"`
  38. PlaybookReference string `json:"playbook_reference"`
  39. MaxTryTimes int `json:"max_try_times"`
  40. }
  41. // SScriptApply is an autogenerated struct via yunion.io/x/onecloud/pkg/devtool/models.SScriptApply.
  42. type SScriptApply struct {
  43. apis.SStatusStandaloneResourceBase
  44. ScriptId string `json:"script_id"`
  45. GuestId string `json:"guest_id"`
  46. EipFirst *bool `json:"eip_first,omitempty"`
  47. ProxyEndpointId string `json:"proxy_endpoint_id"`
  48. TryTimes int `json:"try_times"`
  49. }
  50. // SScriptApplyRecord is an autogenerated struct via yunion.io/x/onecloud/pkg/devtool/models.SScriptApplyRecord.
  51. type SScriptApplyRecord struct {
  52. apis.SStatusStandaloneResourceBase
  53. ScriptApplyId string `json:"script_apply_id"`
  54. StartTime time.Time `json:"start_time"`
  55. EndTime time.Time `json:"end_time"`
  56. Reason string `json:"reason"`
  57. }
  58. // SVSCronjob is an autogenerated struct via yunion.io/x/onecloud/pkg/devtool/models.SVSCronjob.
  59. type SVSCronjob struct {
  60. Day int `json:"day"`
  61. Hour int `json:"hour"`
  62. Min int `json:"min"`
  63. Sec int `json:"sec"`
  64. Interval int64 `json:"interval"`
  65. Start bool `json:"start"`
  66. Enabled bool `json:"enabled"`
  67. }