update.go 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // Copyright 2019 Yunion
  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. package apis
  15. type ModelBaseUpdateInput struct {
  16. Meta
  17. }
  18. type ResourceBaseUpdateInput struct {
  19. ModelBaseUpdateInput
  20. }
  21. type StandaloneAnonResourceBaseUpdateInput struct {
  22. ResourceBaseUpdateInput
  23. // 资源描述
  24. Description string `json:"description"`
  25. }
  26. type StandaloneResourceBaseUpdateInput struct {
  27. StandaloneAnonResourceBaseUpdateInput
  28. // 资源名称
  29. Name string `json:"name"`
  30. }
  31. type StatusStandaloneResourceBaseUpdateInput struct {
  32. StandaloneResourceBaseUpdateInput
  33. Progress float32 `json:"progress"`
  34. }
  35. type EnabledStatusStandaloneResourceBaseUpdateInput struct {
  36. StatusStandaloneResourceBaseUpdateInput
  37. }
  38. type VirtualResourceBaseUpdateInput struct {
  39. StatusStandaloneResourceBaseUpdateInput
  40. }
  41. type SharableVirtualResourceBaseUpdateInput struct {
  42. VirtualResourceBaseUpdateInput
  43. }
  44. type AdminSharableVirtualResourceBaseUpdateInput struct {
  45. SharableVirtualResourceBaseUpdateInput
  46. // 管理记录
  47. Records string `json:"records"`
  48. }
  49. type DomainLevelResourceBaseUpdateInput struct {
  50. StandaloneResourceBaseUpdateInput
  51. }
  52. type StatusDomainLevelResourceBaseUpdateInput struct {
  53. DomainLevelResourceBaseUpdateInput
  54. }
  55. type EnabledStatusDomainLevelResourceBaseUpdateInput struct {
  56. StatusDomainLevelResourceBaseUpdateInput
  57. }
  58. type JointResourceBaseUpdateInput struct {
  59. ResourceBaseUpdateInput
  60. }
  61. type VirtualJointResourceBaseUpdateInput struct {
  62. JointResourceBaseUpdateInput
  63. }
  64. type InfrasResourceBaseUpdateInput struct {
  65. DomainLevelResourceBaseUpdateInput
  66. }
  67. type StatusInfrasResourceBaseUpdateInput struct {
  68. InfrasResourceBaseUpdateInput
  69. }
  70. type EnabledStatusInfrasResourceBaseUpdateInput struct {
  71. StatusInfrasResourceBaseUpdateInput
  72. }