Backup.go 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 Backup struct {
  18. /* 备份ID (Optional) */
  19. BackupId string `json:"backupId"`
  20. /* 备份名称,最长支持64个英文字符或等长的中文字符 (Optional) */
  21. BackupName string `json:"backupName"`
  22. /* 备份所属实例ID (Optional) */
  23. InstanceId string `json:"instanceId"`
  24. /* 备份状态,请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
  25. BackupStatus string `json:"backupStatus"`
  26. /* 备份开始时间,格式为:YYYY-MM-DD HH:mm:ss (Optional) */
  27. BackupStartTime string `json:"backupStartTime"`
  28. /* 备份结束时间,格式为:YYYY-MM-DD HH:mm:ss<br>- **SQL Server支持**<br>- **MySQL不支持** (Optional) */
  29. BackupEndTime string `json:"backupEndTime"`
  30. /* 备份类型,全量备份或增量备份,请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)<br>- **SQL Server支持**<br>- **MySQL不支持** (Optional) */
  31. BackupType string `json:"backupType"`
  32. /* 备份模式,系统自动备份或手动备份,请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
  33. BackupMode string `json:"backupMode"`
  34. /* 备份方法,支持物理备份和快照备份,请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)<br>- **仅支持 MySQL、MariaDB、Percona** (Optional) */
  35. BackupMethod string `json:"backupMethod"`
  36. /* 备份粒度,实例备份或者多库备份,请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)<br>- **SQL Server支持**<br>- **MySQL不支持** (Optional) */
  37. BackupUnit string `json:"backupUnit"`
  38. /* 备份文件列表<br>- **SQL Server支持**,备份可以有多个文件,文件名的命名规则为:<br>(1)全备:数据库名+.bak<br>(2)增量:数据库名+.diff<br>- **MySQL不支持** (Optional) */
  39. BackupFiles []string `json:"backupFiles"`
  40. /* 整个备份集大小,单位:Byte (Optional) */
  41. BackupSizeByte int64 `json:"backupSizeByte"`
  42. }