dbinstance_backup.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 compute
  15. import "yunion.io/x/onecloud/pkg/apis"
  16. type DBInstanceBackupCreateInput struct {
  17. apis.VirtualResourceCreateInput
  18. // Rds实例名称或Id, 建议使用Id
  19. // required: true
  20. DBInstance string `json:"dbinstance"`
  21. // swagger:ignore
  22. DBInstanceId string `json:"dbinstance_id"`
  23. // 需要备份的Rds数据库列表
  24. // required: false
  25. Databases []string `json:"databases"`
  26. // swagger:ignore
  27. DBNames string `json:"db_names"`
  28. // swagger:ignore
  29. Engine string `json:"engine"`
  30. // swagger:ignore
  31. EngineVersion string `json:"engine_version"`
  32. // swagger:ignore
  33. CloudregionId string `json:"cloudregion_id"`
  34. // swagger:ignore
  35. BackupMode string `json:"backup_mode"`
  36. // swagger:ignore
  37. ManagerId string `json:"manager_id"`
  38. }
  39. type DBInstanceBackupDetails struct {
  40. apis.VirtualResourceDetails
  41. ManagedResourceInfo
  42. CloudregionResourceInfo
  43. DBInstanceResourceInfoBase
  44. SDBInstanceBackup
  45. }