@cloudbase/manager-node 4.11.0-alpha.1 → 4.11.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,161 @@
1
+ /** 数据库表信息(用于备份) */
2
+ export interface IDatabaseTables {
3
+ /** 数据库名 */
4
+ Database?: string;
5
+ /** 表名称列表 */
6
+ Tables?: string[];
7
+ }
8
+ /** 创建备份请求参数 */
9
+ export interface ICreateBackupOptions {
10
+ /** 备份类型:logic(逻辑备份)、snapshot(物理备份) */
11
+ BackupType?: string;
12
+ /** 备份的库,只在 BackupType 为 logic 时有效 */
13
+ BackupDatabases?: string[];
14
+ /** 备份的表,只在 BackupType 为 logic 时有效 */
15
+ BackupTables?: IDatabaseTables[];
16
+ /** 备注名 */
17
+ BackupName?: string;
18
+ }
19
+ /** 创建备份返回结果 */
20
+ export interface ICreateBackupResult {
21
+ /** 异步任务流 ID */
22
+ FlowId: number;
23
+ }
24
+ /** 删除备份请求参数 */
25
+ export interface IDeleteBackupOptions {
26
+ /** 备份文件 ID(推荐使用) */
27
+ BackupIds?: number[];
28
+ /** 备份文件 ID(旧版本,不推荐) */
29
+ SnapshotIdList?: number[];
30
+ }
31
+ /** 修改备份配置请求参数 */
32
+ export interface IModifyBackupConfigOptions {
33
+ /** 全备开始时间,范围 [0-24*3600],如 0:00=0, 1:00=3600, 2:00=7200 */
34
+ BackupTimeBeg?: number;
35
+ /** 全备结束时间,范围 [0-24*3600] */
36
+ BackupTimeEnd?: number;
37
+ /** 保留备份时长(秒),超过该时间将被清理,如七天=604800 */
38
+ ReserveDuration?: number;
39
+ /** 备份频率,长度为7的数组,对应周一到周日,full-全量,increment-增量 */
40
+ BackupFreq?: string[];
41
+ /** 备份类型 */
42
+ BackupType?: string;
43
+ }
44
+ /** 查询备份列表请求参数 */
45
+ export interface IDescribeBackupListOptions {
46
+ /** 返回数量,取值范围 (0,100] */
47
+ Limit?: number;
48
+ /** 记录偏移量 */
49
+ Offset?: number;
50
+ /** 数据库类型,取值 MYSQL */
51
+ DbType?: string;
52
+ /** 备份 ID 列表 */
53
+ BackupIds?: number[];
54
+ /** 备份类型:snapshot(快照备份)、logic(逻辑备份) */
55
+ BackupType?: string;
56
+ /** 备份方式:auto(自动备份)、manual(手动备份) */
57
+ BackupMethod?: string;
58
+ /** 快照类型:full(全量)、increment(增量) */
59
+ SnapShotType?: string;
60
+ /** 备份开始时间 */
61
+ StartTime?: string;
62
+ /** 备份结束时间 */
63
+ EndTime?: string;
64
+ /** 备份文件名,支持模糊查询 */
65
+ FileNames?: string[];
66
+ /** 备份备注名,支持模糊查询 */
67
+ BackupNames?: string[];
68
+ /** 快照备份 ID 列表 */
69
+ SnapshotIdList?: number[];
70
+ /** 备份地域 */
71
+ BackupRegion?: string;
72
+ /** 是否跨地域备份 */
73
+ IsCrossRegionsBackup?: string;
74
+ }
75
+ /** 备份文件信息 */
76
+ export interface IBackupFileInfo {
77
+ /** 快照文件ID(已废弃,请使用 BackupId) */
78
+ SnapshotId: number;
79
+ /** 备份文件名 */
80
+ FileName: string;
81
+ /** 备份文件大小 */
82
+ FileSize: number;
83
+ /** 备份开始时间 */
84
+ StartTime: string;
85
+ /** 备份完成时间 */
86
+ FinishTime: string;
87
+ /** 备份类型:snapshot / logic */
88
+ BackupType: string;
89
+ /** 备份方式:auto / manual */
90
+ BackupMethod: string;
91
+ /** 备份文件状态:success / fail / creating / deleting */
92
+ BackupStatus: string;
93
+ /** 备份文件时间 */
94
+ SnapshotTime: string;
95
+ /** 备份ID */
96
+ BackupId: number;
97
+ /** 快照类型:full / increment */
98
+ SnapShotType: string;
99
+ /** 备份文件备注 */
100
+ BackupName: string;
101
+ }
102
+ /** 查询备份列表返回结果 */
103
+ export interface IDescribeBackupListResult {
104
+ /** 总共备份文件个数 */
105
+ TotalCount: number;
106
+ /** 备份文件列表 */
107
+ BackupList: IBackupFileInfo[];
108
+ }
109
+ /** 查询备份下载地址请求参数 */
110
+ export interface IDescribeBackupDownloadUrlOptions {
111
+ /** 备份 ID */
112
+ BackupId: number;
113
+ }
114
+ /** 查询备份下载地址返回结果 */
115
+ export interface IDescribeBackupDownloadUrlResult {
116
+ /** 备份下载地址 */
117
+ DownloadUrl: string;
118
+ }
119
+ /** 回档数据库信息 */
120
+ export interface IRollbackDatabase {
121
+ /** 旧数据库名称 */
122
+ OldDatabase: string;
123
+ /** 新数据库名称 */
124
+ NewDatabase: string;
125
+ }
126
+ /** 回档表信息 */
127
+ export interface IRollbackTableInfo {
128
+ /** 旧表名称 */
129
+ OldTable: string;
130
+ /** 新表名称 */
131
+ NewTable: string;
132
+ }
133
+ /** 回档数据库及表 */
134
+ export interface IRollbackTable {
135
+ /** 数据库名称 */
136
+ Database: string;
137
+ /** 数据库表 */
138
+ Tables: IRollbackTableInfo[];
139
+ }
140
+ /** 集群回档请求参数 */
141
+ export interface IRollBackClusterOptions {
142
+ /** 回档策略:timeRollback(按时间点)、snapRollback(按备份文件) */
143
+ RollbackStrategy: string;
144
+ /** 备份文件ID,snapRollback 时必填 */
145
+ RollbackId?: number;
146
+ /** 期望回档时间,timeRollback 时必填 */
147
+ ExpectTime?: string;
148
+ /** 期望阈值(已废弃) */
149
+ ExpectTimeThresh?: number;
150
+ /** 回档数据库列表 */
151
+ RollbackDatabases?: IRollbackDatabase[];
152
+ /** 回档数据库表列表 */
153
+ RollbackTables?: IRollbackTable[];
154
+ /** 按时间点回档模式:full(普通,默认)、db(快速)、table(极速) */
155
+ RollbackMode?: string;
156
+ }
157
+ /** 回档返回结果 */
158
+ export interface IRollBackClusterResult {
159
+ /** 任务流 ID */
160
+ FlowId: number;
161
+ }