@ucloud-sdks/ucloud-sdk-js 0.2.61 → 0.2.62

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,1529 @@
1
+ import Client from '../../core/client';
2
+ import { ConfigOptions } from '../../core/config';
3
+ import { CredentialOptions } from '../../core/credential';
4
+ /**
5
+ * This client is used to call actions of **udb_postgresql** service
6
+ */
7
+ export default class UDBPostgreSQLClient extends Client {
8
+ constructor({ config, credential, }: {
9
+ config: ConfigOptions;
10
+ credential: CredentialOptions;
11
+ });
12
+ /**
13
+ * BackupUPgSQL - 创建备份服务
14
+ *
15
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/backup_u_pg_sql
16
+ */
17
+ backupUPgSQL(request?: BackupUPgSQLRequest): Promise<BackupUPgSQLResponse>;
18
+ /**
19
+ * BackupUPgSQLLog - 备份日志包
20
+ *
21
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/backup_u_pg_sql_log
22
+ */
23
+ backupUPgSQLLog(request?: BackupUPgSQLLogRequest): Promise<BackupUPgSQLLogResponse>;
24
+ /**
25
+ * CreateUPgSQLInstance - 创建PG云数据库
26
+ *
27
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/create_u_pg_sql_instance
28
+ */
29
+ createUPgSQLInstance(request?: CreateUPgSQLInstanceRequest): Promise<CreateUPgSQLInstanceResponse>;
30
+ /**
31
+ * CreateUPgSQLParamTemplate - 创建PG参数模板
32
+ *
33
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/create_u_pg_sql_param_template
34
+ */
35
+ createUPgSQLParamTemplate(request?: CreateUPgSQLParamTemplateRequest): Promise<CreateUPgSQLParamTemplateResponse>;
36
+ /**
37
+ * CreateUPgSQLReadonly - 创建PG从库
38
+ *
39
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/create_u_pg_sql_readonly
40
+ */
41
+ createUPgSQLReadonly(request?: CreateUPgSQLReadonlyRequest): Promise<CreateUPgSQLReadonlyResponse>;
42
+ /**
43
+ * DeleteUPgSQLInstance - 删除PG实例
44
+ *
45
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/delete_u_pg_sql_instance
46
+ */
47
+ deleteUPgSQLInstance(request?: DeleteUPgSQLInstanceRequest): Promise<DeleteUPgSQLInstanceResponse>;
48
+ /**
49
+ * DeleteUPgSQLParamTemplate - 删除参数模板
50
+ *
51
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/delete_u_pg_sql_param_template
52
+ */
53
+ deleteUPgSQLParamTemplate(request?: DeleteUPgSQLParamTemplateRequest): Promise<DeleteUPgSQLParamTemplateResponse>;
54
+ /**
55
+ * DownloadUPgSQLParamTemplate - 下载参数模板信息
56
+ *
57
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/download_u_pg_sql_param_template
58
+ */
59
+ downloadUPgSQLParamTemplate(request?: DownloadUPgSQLParamTemplateRequest): Promise<DownloadUPgSQLParamTemplateResponse>;
60
+ /**
61
+ * GetUPgSQLBackupStrategy - 获取备份策略
62
+ *
63
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/get_u_pg_sql_backup_strategy
64
+ */
65
+ getUPgSQLBackupStrategy(request?: GetUPgSQLBackupStrategyRequest): Promise<GetUPgSQLBackupStrategyResponse>;
66
+ /**
67
+ * GetUPgSQLBackupURL - 获取备份下载地址
68
+ *
69
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/get_u_pg_sql_backup_url
70
+ */
71
+ getUPgSQLBackupURL(request?: GetUPgSQLBackupURLRequest): Promise<GetUPgSQLBackupURLResponse>;
72
+ /**
73
+ * GetUPgSQLInstance - 获取PG云数据库实例描述
74
+ *
75
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/get_u_pg_sql_instance
76
+ */
77
+ getUPgSQLInstance(request?: GetUPgSQLInstanceRequest): Promise<GetUPgSQLInstanceResponse>;
78
+ /**
79
+ * GetUPgSQLInstanceLog - 可以查询DB的错误日志和满查询日志
80
+ *
81
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/get_u_pg_sql_instance_log
82
+ */
83
+ getUPgSQLInstanceLog(request?: GetUPgSQLInstanceLogRequest): Promise<GetUPgSQLInstanceLogResponse>;
84
+ /**
85
+ * GetUPgSQLInstanceParam - 获取实例参数信息
86
+ *
87
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/get_u_pg_sql_instance_param
88
+ */
89
+ getUPgSQLInstanceParam(request?: GetUPgSQLInstanceParamRequest): Promise<GetUPgSQLInstanceParamResponse>;
90
+ /**
91
+ * GetUPgSQLInstancePrice - 获取创建PG云数据库价格
92
+ *
93
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/get_u_pg_sql_instance_price
94
+ */
95
+ getUPgSQLInstancePrice(request?: GetUPgSQLInstancePriceRequest): Promise<GetUPgSQLInstancePriceResponse>;
96
+ /**
97
+ * GetUPgSQLParamTemplate - 获取模板信息
98
+ *
99
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/get_u_pg_sql_param_template
100
+ */
101
+ getUPgSQLParamTemplate(request?: GetUPgSQLParamTemplateRequest): Promise<GetUPgSQLParamTemplateResponse>;
102
+ /**
103
+ * GetUPgSQLUpgradePrice - 获取 PG 云数据库升降级价格
104
+ *
105
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/get_u_pg_sql_upgrade_price
106
+ */
107
+ getUPgSQLUpgradePrice(request?: GetUPgSQLUpgradePriceRequest): Promise<GetUPgSQLUpgradePriceResponse>;
108
+ /**
109
+ * ListUPgSQLBackup - 获取备份列表
110
+ *
111
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/list_u_pg_sql_backup
112
+ */
113
+ listUPgSQLBackup(request?: ListUPgSQLBackupRequest): Promise<ListUPgSQLBackupResponse>;
114
+ /**
115
+ * ListUPgSQLInstance - 获取PG云数据库列表
116
+ *
117
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/list_u_pg_sql_instance
118
+ */
119
+ listUPgSQLInstance(request?: ListUPgSQLInstanceRequest): Promise<ListUPgSQLInstanceResponse>;
120
+ /**
121
+ * ListUPgSQLLog - 获取数据库日志
122
+ *
123
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/list_u_pg_sql_log
124
+ */
125
+ listUPgSQLLog(request?: ListUPgSQLLogRequest): Promise<ListUPgSQLLogResponse>;
126
+ /**
127
+ * ListUPgSQLMachineType - 获取UPgSQL支持机器类型列表
128
+ *
129
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/list_u_pg_sql_machine_type
130
+ */
131
+ listUPgSQLMachineType(request?: ListUPgSQLMachineTypeRequest): Promise<ListUPgSQLMachineTypeResponse>;
132
+ /**
133
+ * ListUPgSQLParamTemplate - 获取可用参数模板列表
134
+ *
135
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/list_u_pg_sql_param_template
136
+ */
137
+ listUPgSQLParamTemplate(request?: ListUPgSQLParamTemplateRequest): Promise<ListUPgSQLParamTemplateResponse>;
138
+ /**
139
+ * ListUPgSQLVersion - 获取UPgSQL支持版本列表
140
+ *
141
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/list_u_pg_sql_version
142
+ */
143
+ listUPgSQLVersion(request?: ListUPgSQLVersionRequest): Promise<ListUPgSQLVersionResponse>;
144
+ /**
145
+ * RestartUPgSQLInstance - 重启PG实例
146
+ *
147
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/restart_u_pg_sql_instance
148
+ */
149
+ restartUPgSQLInstance(request?: RestartUPgSQLInstanceRequest): Promise<RestartUPgSQLInstanceResponse>;
150
+ /**
151
+ * StartUPgSQLInstance - 启动 PG实例
152
+ *
153
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/start_u_pg_sql_instance
154
+ */
155
+ startUPgSQLInstance(request?: StartUPgSQLInstanceRequest): Promise<StartUPgSQLInstanceResponse>;
156
+ /**
157
+ * StopUPgSQLCreatingReadonly - 停止创建从库
158
+ *
159
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/stop_u_pg_sql_creating_readonly
160
+ */
161
+ stopUPgSQLCreatingReadonly(request?: StopUPgSQLCreatingReadonlyRequest): Promise<StopUPgSQLCreatingReadonlyResponse>;
162
+ /**
163
+ * StopUPgSQLInstance - 关闭PG实例
164
+ *
165
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/stop_u_pg_sql_instance
166
+ */
167
+ stopUPgSQLInstance(request?: StopUPgSQLInstanceRequest): Promise<StopUPgSQLInstanceResponse>;
168
+ /**
169
+ * UpdateUPgSQLAttribute - 更新数据库属性
170
+ *
171
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/update_u_pg_sql_attribute
172
+ */
173
+ updateUPgSQLAttribute(request?: UpdateUPgSQLAttributeRequest): Promise<UpdateUPgSQLAttributeResponse>;
174
+ /**
175
+ * UpdateUPgSQLBackupStrategy - 修改备份策略
176
+ *
177
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/update_u_pg_sql_backup_strategy
178
+ */
179
+ updateUPgSQLBackupStrategy(request?: UpdateUPgSQLBackupStrategyRequest): Promise<UpdateUPgSQLBackupStrategyResponse>;
180
+ /**
181
+ * UpdateUPgSQLPassword - 更新数据库用户密码
182
+ *
183
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/update_u_pg_sql_password
184
+ */
185
+ updateUPgSQLPassword(request?: UpdateUPgSQLPasswordRequest): Promise<UpdateUPgSQLPasswordResponse>;
186
+ /**
187
+ * UpgradeUPgSQLInstance - 硬件规格升降级
188
+ *
189
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/upgrade_u_pg_sql_instance
190
+ */
191
+ upgradeUPgSQLInstance(request?: UpgradeUPgSQLInstanceRequest): Promise<UpgradeUPgSQLInstanceResponse>;
192
+ /**
193
+ * UploadUPgSQLParamTemplate - 上传参数模板
194
+ *
195
+ * See also: https://docs.ucloud.cn/api/udbpostgresql-api/upload_u_pg_sql_param_template
196
+ */
197
+ uploadUPgSQLParamTemplate(request?: UploadUPgSQLParamTemplateRequest): Promise<UploadUPgSQLParamTemplateResponse>;
198
+ }
199
+ /**
200
+ * BackupUPgSQL - 创建备份服务
201
+ */
202
+ export interface BackupUPgSQLRequest {
203
+ /**
204
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
205
+ */
206
+ Zone: string;
207
+ /**
208
+ * DB实例Id
209
+ */
210
+ InstanceID: string;
211
+ /**
212
+ * 备份名称
213
+ */
214
+ BackupName: string;
215
+ /**
216
+ * 使用的备份方式(物理备份,逻辑备份)
217
+ */
218
+ BackupMethod: number;
219
+ /**
220
+ * 备份黑名单列表,以“ ;” 分隔。
221
+ */
222
+ Blacklist: string;
223
+ }
224
+ /**
225
+ * BackupUPgSQL - 创建备份服务
226
+ */
227
+ export interface BackupUPgSQLResponse {
228
+ /**
229
+ * 返回的备份ID
230
+ */
231
+ BackupID: string;
232
+ }
233
+ /**
234
+ * BackupUPgSQLLog - 备份日志包
235
+ */
236
+ export interface BackupUPgSQLLogRequest {
237
+ /**
238
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
239
+ */
240
+ Zone: string;
241
+ /**
242
+ * 备份导出文件名称
243
+ */
244
+ BackupName: string;
245
+ /**
246
+ * 资源ID
247
+ */
248
+ InstanceID: string;
249
+ /**
250
+ * 日志类型:slowlog(慢日志),errorlog(错误日志),不区分大小写
251
+ */
252
+ LogType: string;
253
+ /**
254
+ * 日志开始时间
255
+ */
256
+ BeginTime: number;
257
+ /**
258
+ * 日志结束时间
259
+ */
260
+ EndTime: number;
261
+ }
262
+ /**
263
+ * BackupUPgSQLLog - 备份日志包
264
+ */
265
+ export interface BackupUPgSQLLogResponse {
266
+ }
267
+ /**
268
+ * CreateUPgSQLInstance - 创建PG云数据库
269
+ */
270
+ export interface CreateUPgSQLInstanceRequest {
271
+ /**
272
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
273
+ */
274
+ Zone: string;
275
+ /**
276
+ * 实例名称,至少6位
277
+ */
278
+ Name: string;
279
+ /**
280
+ * PostgreSQL的版本,pg10.4:postgresql-10.4,pg13.4:postgresql-13.4
281
+ */
282
+ DBVersion: string;
283
+ /**
284
+ * DB实例使用的配置参数组id
285
+ */
286
+ ParamGroupID: number;
287
+ /**
288
+ * 管理员密码
289
+ */
290
+ AdminPassword: string;
291
+ /**
292
+ * 端口默认为5432
293
+ */
294
+ Port: number;
295
+ /**
296
+ * 磁盘空间(GB)
297
+ */
298
+ DiskSpace: string;
299
+ /**
300
+ * 机器配置类型,2核4G的机器:o.pgsql2m.medium
301
+ */
302
+ MachineType: string;
303
+ /**
304
+ * 子网ID
305
+ */
306
+ SubnetID: string;
307
+ /**
308
+ * VPC的ID
309
+ */
310
+ VPCID: string;
311
+ /**
312
+ * UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例 "HA": 高可用版UDB实例 默认是"Normal"
313
+ */
314
+ InstanceMode?: string;
315
+ }
316
+ /**
317
+ * CreateUPgSQLInstance - 创建PG云数据库
318
+ */
319
+ export interface CreateUPgSQLInstanceResponse {
320
+ /**
321
+ * 资源ID
322
+ */
323
+ InstanceID?: string;
324
+ }
325
+ /**
326
+ * CreateUPgSQLParamTemplate - 创建PG参数模板
327
+ */
328
+ export interface CreateUPgSQLParamTemplateRequest {
329
+ /**
330
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
331
+ */
332
+ Zone: string;
333
+ /**
334
+ * 模板名称
335
+ */
336
+ GroupName: string;
337
+ /**
338
+ * 基准模板
339
+ */
340
+ SrcGroupID: number;
341
+ /**
342
+ * 什么版本,以及类型的DB
343
+ */
344
+ DBVersion: string;
345
+ /**
346
+ * 描述信息
347
+ */
348
+ Description?: string;
349
+ }
350
+ /**
351
+ * CreateUPgSQLParamTemplate - 创建PG参数模板
352
+ */
353
+ export interface CreateUPgSQLParamTemplateResponse {
354
+ /**
355
+ * 创建的模板ID
356
+ */
357
+ GroupID: number;
358
+ }
359
+ /**
360
+ * CreateUPgSQLReadonly - 创建PG从库
361
+ */
362
+ export interface CreateUPgSQLReadonlyRequest {
363
+ /**
364
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
365
+ */
366
+ Zone: string;
367
+ /**
368
+ * Db名称
369
+ */
370
+ Name: string;
371
+ /**
372
+ * DB端口
373
+ */
374
+ Port: number;
375
+ /**
376
+ * 磁盘空间
377
+ */
378
+ DiskSpace: number;
379
+ /**
380
+ * 机器配置类型,2核4G的机器:o.pgsql2m.medium
381
+ */
382
+ MachineType: string;
383
+ /**
384
+ * 同步的源库
385
+ */
386
+ SrcInstanceID: string;
387
+ /**
388
+ * 子网ID
389
+ */
390
+ SubnetID?: string;
391
+ /**
392
+ * VPCID
393
+ */
394
+ VPCID?: string;
395
+ /**
396
+ *
397
+ */
398
+ Labels?: {
399
+ /**
400
+ * 用户资源标签的键值
401
+ */
402
+ Key?: string;
403
+ /**
404
+ * 用户资源标签值
405
+ */
406
+ Value?: string;
407
+ }[];
408
+ /**
409
+ *
410
+ */
411
+ SecGroupId?: {
412
+ /**
413
+ * 安全组id
414
+ */
415
+ Id?: string;
416
+ /**
417
+ * 安全组优先级
418
+ */
419
+ Priority?: number;
420
+ }[];
421
+ }
422
+ /**
423
+ * CreateUPgSQLReadonly - 创建PG从库
424
+ */
425
+ export interface CreateUPgSQLReadonlyResponse {
426
+ /**
427
+ * 资源ID
428
+ */
429
+ InstanceID?: string;
430
+ }
431
+ /**
432
+ * DeleteUPgSQLInstance - 删除PG实例
433
+ */
434
+ export interface DeleteUPgSQLInstanceRequest {
435
+ /**
436
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
437
+ */
438
+ Zone: string;
439
+ /**
440
+ * 实例ID
441
+ */
442
+ InstanceID: string;
443
+ }
444
+ /**
445
+ * DeleteUPgSQLInstance - 删除PG实例
446
+ */
447
+ export interface DeleteUPgSQLInstanceResponse {
448
+ }
449
+ /**
450
+ * DeleteUPgSQLParamTemplate - 删除参数模板
451
+ */
452
+ export interface DeleteUPgSQLParamTemplateRequest {
453
+ /**
454
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
455
+ */
456
+ Zone: string;
457
+ /**
458
+ * 模板ID
459
+ */
460
+ GroupID: number;
461
+ }
462
+ /**
463
+ * DeleteUPgSQLParamTemplate - 删除参数模板
464
+ */
465
+ export interface DeleteUPgSQLParamTemplateResponse {
466
+ }
467
+ /**
468
+ * DownloadUPgSQLParamTemplate - 下载参数模板信息
469
+ */
470
+ export interface DownloadUPgSQLParamTemplateRequest {
471
+ /**
472
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
473
+ */
474
+ Zone: string;
475
+ /**
476
+ * 参数模板id
477
+ */
478
+ GroupID: number;
479
+ }
480
+ /**
481
+ * DownloadUPgSQLParamTemplate - 下载参数模板信息
482
+ */
483
+ export interface DownloadUPgSQLParamTemplateResponse {
484
+ /**
485
+ * base64编码过的
486
+ */
487
+ Content: string;
488
+ }
489
+ /**
490
+ * GetUPgSQLBackupStrategy - 获取备份策略
491
+ */
492
+ export interface GetUPgSQLBackupStrategyRequest {
493
+ /**
494
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
495
+ */
496
+ Zone: string;
497
+ /**
498
+ * DB实例Id
499
+ */
500
+ InstanceID: string;
501
+ }
502
+ /**
503
+ * GetUPgSQLBackupStrategy - 获取备份策略
504
+ */
505
+ export interface GetUPgSQLBackupStrategyResponse {
506
+ /**
507
+ * 自动备份预计开始时间范围
508
+ */
509
+ BackupTimeRange: string;
510
+ /**
511
+ * 自动备份预期星期几(1~7)开始
512
+ */
513
+ BackupWeek: string;
514
+ /**
515
+ * 默认的备份方式
516
+ */
517
+ BackupMethod: string;
518
+ }
519
+ /**
520
+ * GetUPgSQLBackupURL - 获取备份下载地址
521
+ */
522
+ export interface GetUPgSQLBackupURLRequest {
523
+ /**
524
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
525
+ */
526
+ Zone: string;
527
+ /**
528
+ * DB实例Id
529
+ */
530
+ InstanceID: string;
531
+ /**
532
+ * 备份Id
533
+ */
534
+ BackupID: string;
535
+ }
536
+ /**
537
+ * GetUPgSQLBackupURL - 获取备份下载地址
538
+ */
539
+ export interface GetUPgSQLBackupURLResponse {
540
+ /**
541
+ * DB实例备份文件公网的地址
542
+ */
543
+ BackupPath: string;
544
+ /**
545
+ * DB实例备份文件内网的地址
546
+ */
547
+ InnerBackupPath: string;
548
+ }
549
+ /**
550
+ * GetUPgSQLInstance - 获取PG云数据库实例描述
551
+ */
552
+ export interface GetUPgSQLInstanceRequest {
553
+ /**
554
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
555
+ */
556
+ Zone?: string;
557
+ /**
558
+ * 资源ID
559
+ */
560
+ InstanceID: string;
561
+ }
562
+ /**
563
+ * GetUPgSQLInstance - 获取PG云数据库实例描述
564
+ */
565
+ export interface GetUPgSQLInstanceResponse {
566
+ /**
567
+ * DataSet
568
+ */
569
+ DataSet: {
570
+ /**
571
+ * DB实例所在可用区
572
+ */
573
+ Zone?: string;
574
+ /**
575
+ * 备份所在可用区
576
+ */
577
+ BackupZone?: string;
578
+ /**
579
+ * DB实例id
580
+ */
581
+ InstanceID?: string;
582
+ /**
583
+ * 实例名称
584
+ */
585
+ Name?: string;
586
+ /**
587
+ * DB 版本
588
+ */
589
+ DBVersion?: string;
590
+ /**
591
+ * DB实例使用的配置参数组id
592
+ */
593
+ ParamGroupID?: number;
594
+ /**
595
+ * 管理员帐户名,默认root
596
+ */
597
+ AdminUser?: string;
598
+ /**
599
+ * DBip
600
+ */
601
+ IP?: string;
602
+ /**
603
+ * DB port
604
+ */
605
+ Port?: number;
606
+ /**
607
+ * VPC的ID
608
+ */
609
+ VPCID?: string;
610
+ /**
611
+ * 子网ID
612
+ */
613
+ SubnetID?: string;
614
+ /**
615
+ * 备注
616
+ */
617
+ Remark?: string;
618
+ /**
619
+ * 备份文件保留的数量,默认7次
620
+ */
621
+ BackupCount?: number;
622
+ /**
623
+ * 备份开始时间,单位小时计,默认3点
624
+ */
625
+ BackupBeginTime?: number;
626
+ /**
627
+ * 备份的时间段,范围[0,23]
628
+ */
629
+ BackupTimeRange?: number;
630
+ /**
631
+ * 用于设置备份策略的备份日期标记位。共7位,每一位为一周中一天的备份情况 0表示关闭当天备份,1表示打开当天备份。最右边的一位 为星期天的备份开关,其余从右到左依次为星期一到星期 六的备份配置开关,每周必须至少设置两天备份。 例如:1100000 表示打开星期六和星期五的自动备份功能
632
+ */
633
+ BackupDate?: string;
634
+ /**
635
+ * DB状态标记 Init:初始化中,Fail:安装失败,Starting:启动中,Running:运行,Shutdown:关闭中,Shutoff:已关闭,Delete:已删除,Upgrading:升级中,Promoting:提升为独库进行中,Recovering:恢复中,Recover fail:恢复失败
636
+ */
637
+ State?: string;
638
+ /**
639
+ * DB实例创建时间,采用UTC计时时间戳
640
+ */
641
+ CreateTime?: number;
642
+ /**
643
+ * DB实例修改时间,采用UTC计时时间戳
644
+ */
645
+ ModifyTime?: number;
646
+ /**
647
+ * DB实例过期时间,采用UTC计时时间戳
648
+ */
649
+ ExpiredTime?: number;
650
+ /**
651
+ * CPU限制(核),默认根据配置机型
652
+ */
653
+ Cpu?: number;
654
+ /**
655
+ * 内存限制(MB),默认根据配置机型
656
+ */
657
+ MemoryLimit?: number;
658
+ /**
659
+ * 磁盘空间(GB), 默认根据配置机型
660
+ */
661
+ DiskSpace?: number;
662
+ /**
663
+ * DB实例磁盘已使用空间,单位GB
664
+ */
665
+ DiskUsedSize?: number;
666
+ /**
667
+ * DB实例数据文件大小,单位GB
668
+ */
669
+ DataFileSize?: number;
670
+ /**
671
+ * DB实例系统文件大小,单位GB
672
+ */
673
+ SystemFileSize?: number;
674
+ /**
675
+ * DB实例日志文件大小,单位GB
676
+ */
677
+ LogFileSize?: number;
678
+ /**
679
+ * Normal/HA,普通/高可用
680
+ */
681
+ InstanceMode?: string;
682
+ /**
683
+ * 配置机型名称
684
+ */
685
+ MachineType?: string;
686
+ /**
687
+ * 安全组版本
688
+ */
689
+ SecGroupStatus?: number;
690
+ };
691
+ }
692
+ /**
693
+ * GetUPgSQLInstanceLog - 可以查询DB的错误日志和满查询日志
694
+ */
695
+ export interface GetUPgSQLInstanceLogRequest {
696
+ /**
697
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
698
+ */
699
+ Zone: string;
700
+ /**
701
+ * 日志类型
702
+ */
703
+ LogType: string;
704
+ /**
705
+ * 公司ID
706
+ */
707
+ CompanyID: number;
708
+ /**
709
+ * 账户ID
710
+ */
711
+ AccountID: number;
712
+ /**
713
+ * 起始时间,需使用时间戳
714
+ */
715
+ BeginTime: number;
716
+ /**
717
+ * 实例资源ID
718
+ */
719
+ InstanceID: string;
720
+ /**
721
+ * 结束时间,需使用时间戳,结束时间需大于起始时间实时查询的时候不需要传
722
+ */
723
+ EndTime?: number;
724
+ }
725
+ /**
726
+ * GetUPgSQLInstanceLog - 可以查询DB的错误日志和满查询日志
727
+ */
728
+ export interface GetUPgSQLInstanceLogResponse {
729
+ /**
730
+ * 返回的日志信息
731
+ */
732
+ Log: string;
733
+ }
734
+ /**
735
+ * GetUPgSQLInstanceParam - 获取实例参数信息
736
+ */
737
+ export interface GetUPgSQLInstanceParamRequest {
738
+ /**
739
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
740
+ */
741
+ Zone: string;
742
+ /**
743
+ * 实例ID
744
+ */
745
+ InstanceID: string;
746
+ }
747
+ /**
748
+ * GetUPgSQLInstanceParam - 获取实例参数信息
749
+ */
750
+ export interface GetUPgSQLInstanceParamResponse {
751
+ /**
752
+ * 参数的键值对信息
753
+ */
754
+ Data: {
755
+ /**
756
+ * 参数Key
757
+ */
758
+ Key?: string;
759
+ /**
760
+ * 参数值
761
+ */
762
+ Value?: string;
763
+ /**
764
+ * 值类型
765
+ */
766
+ ValueType?: number;
767
+ /**
768
+ * 允许的值
769
+ */
770
+ AllowedVal?: string;
771
+ /**
772
+ * 允许类型
773
+ */
774
+ ApplyType?: number;
775
+ /**
776
+ * 是否可以修改
777
+ */
778
+ Modifiable?: boolean;
779
+ /**
780
+ * 参数格式类型
781
+ */
782
+ FormatType?: number;
783
+ }[];
784
+ }
785
+ /**
786
+ * GetUPgSQLInstancePrice - 获取创建PG云数据库价格
787
+ */
788
+ export interface GetUPgSQLInstancePriceRequest {
789
+ /**
790
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
791
+ */
792
+ Zone: string;
793
+ /**
794
+ * 机器配置类型 参考2C4G机器:o.pgsql2m.medium
795
+ */
796
+ MachineType: string;
797
+ /**
798
+ * 磁盘空间(GB)
799
+ */
800
+ DiskSpace: number;
801
+ /**
802
+ * UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例 "HA": 高可用版UDB实例
803
+ */
804
+ InstanceMode: string;
805
+ /**
806
+ * 计费模式。枚举值为: Year,按年付费; Month,按月付费; Dynamic,按小时付费(需开启权限)。默认为月付
807
+ */
808
+ ChargeType?: string;
809
+ /**
810
+ * 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。
811
+ */
812
+ Quantity?: number;
813
+ }
814
+ /**
815
+ * GetUPgSQLInstancePrice - 获取创建PG云数据库价格
816
+ */
817
+ export interface GetUPgSQLInstancePriceResponse {
818
+ /**
819
+ * 价格列表
820
+ */
821
+ PriceSet?: {
822
+ /**
823
+ * 计费类型,Year,Month,Dynamic。
824
+ */
825
+ ChargeType: string;
826
+ /**
827
+ * 实际价格,单位:元,保留小数点后两位有效数字。
828
+ */
829
+ Price: number;
830
+ /**
831
+ * 购买原价,单位:元。
832
+ */
833
+ OriginalPrice: number;
834
+ }[];
835
+ }
836
+ /**
837
+ * GetUPgSQLParamTemplate - 获取模板信息
838
+ */
839
+ export interface GetUPgSQLParamTemplateRequest {
840
+ /**
841
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
842
+ */
843
+ Zone: string;
844
+ /**
845
+ * 模板ID
846
+ */
847
+ GroupID: number;
848
+ }
849
+ /**
850
+ * GetUPgSQLParamTemplate - 获取模板信息
851
+ */
852
+ export interface GetUPgSQLParamTemplateResponse {
853
+ /**
854
+ * 参数列表
855
+ */
856
+ Data?: {
857
+ /**
858
+ * 参数Key
859
+ */
860
+ Key?: string;
861
+ /**
862
+ * 参数值
863
+ */
864
+ Value?: string;
865
+ /**
866
+ * 值类型
867
+ */
868
+ ValueType?: number;
869
+ /**
870
+ * 允许的值
871
+ */
872
+ AllowedVal?: string;
873
+ /**
874
+ * 允许类型
875
+ */
876
+ ApplyType?: number;
877
+ /**
878
+ * 是否可以修改
879
+ */
880
+ Modifiable?: boolean;
881
+ /**
882
+ * 参数格式类型
883
+ */
884
+ FormatType?: number;
885
+ }[];
886
+ }
887
+ /**
888
+ * GetUPgSQLUpgradePrice - 获取 PG 云数据库升降级价格
889
+ */
890
+ export interface GetUPgSQLUpgradePriceRequest {
891
+ /**
892
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
893
+ */
894
+ Zone: string;
895
+ /**
896
+ * 资源ID
897
+ */
898
+ InstanceID: string;
899
+ /**
900
+ * 磁盘空间(GB)
901
+ */
902
+ DiskSpace: number;
903
+ /**
904
+ * 机器配置类型
905
+ */
906
+ MachineType: string;
907
+ /**
908
+ * UDB实例模式类型, 可选值如下: "normal": 普通版UDB实例 "ha": 高可用版UDB实例 默认是"normal"
909
+ */
910
+ InstanceMode?: string;
911
+ }
912
+ /**
913
+ * GetUPgSQLUpgradePrice - 获取 PG 云数据库升降级价格
914
+ */
915
+ export interface GetUPgSQLUpgradePriceResponse {
916
+ /**
917
+ * 规格调整差价。精确到小数点后2位。
918
+ */
919
+ Price: number;
920
+ /**
921
+ * 限时优惠的折前原价
922
+ */
923
+ OriginalPrice: number;
924
+ }
925
+ /**
926
+ * ListUPgSQLBackup - 获取备份列表
927
+ */
928
+ export interface ListUPgSQLBackupRequest {
929
+ /**
930
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
931
+ */
932
+ Zone: string;
933
+ /**
934
+ * DB实例Id
935
+ */
936
+ InstanceID: string;
937
+ /**
938
+ * 备份类型,默认值是0(0:表示全部,1:自动备份,2:手动备份
939
+ */
940
+ BackupType?: number;
941
+ /**
942
+ * 列表起始位置偏移量,默认为0
943
+ */
944
+ Offset?: number;
945
+ /**
946
+ * 返回数据长度,默认为20,最大100
947
+ */
948
+ Limit?: number;
949
+ }
950
+ /**
951
+ * ListUPgSQLBackup - 获取备份列表
952
+ */
953
+ export interface ListUPgSQLBackupResponse {
954
+ /**
955
+ * 备份信息列表.修参数
956
+ */
957
+ DataSet: {
958
+ /**
959
+ * 备份所在地域
960
+ */
961
+ Region?: string;
962
+ /**
963
+ * DB实例Id
964
+ */
965
+ InstanceID: string;
966
+ /**
967
+ * 备份id
968
+ */
969
+ BackupID: string;
970
+ /**
971
+ * 备份名称
972
+ */
973
+ BackupName?: string;
974
+ /**
975
+ * 备份时间(Unix时间戳)
976
+ */
977
+ BackupStartTime?: number;
978
+ /**
979
+ * 备份文件大小(字节)
980
+ */
981
+ BackupSize?: number;
982
+ /**
983
+ * 备份类型,手动或者自动
984
+ */
985
+ BackupType?: number;
986
+ /**
987
+ * 备份状态 (Backuping:备份中,Success:备份成功, Failed:备份失败, Expired:备份过期)
988
+ */
989
+ State?: string;
990
+ /**
991
+ * 备份完成时间(Unix时间戳)
992
+ */
993
+ BackupEndTime?: number;
994
+ }[];
995
+ /**
996
+ * 总个数
997
+ */
998
+ TotalCount: number;
999
+ }
1000
+ /**
1001
+ * ListUPgSQLInstance - 获取PG云数据库列表
1002
+ */
1003
+ export interface ListUPgSQLInstanceRequest {
1004
+ /**
1005
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
1006
+ */
1007
+ Zone?: string;
1008
+ }
1009
+ /**
1010
+ * ListUPgSQLInstance - 获取PG云数据库列表
1011
+ */
1012
+ export interface ListUPgSQLInstanceResponse {
1013
+ /**
1014
+ * 数据库信息列表
1015
+ */
1016
+ DataSet: {
1017
+ /**
1018
+ * 可用区
1019
+ */
1020
+ Zone?: string;
1021
+ /**
1022
+ * 资源ID
1023
+ */
1024
+ InstanceID?: string;
1025
+ /**
1026
+ * 实例名称
1027
+ */
1028
+ Name?: string;
1029
+ /**
1030
+ * 实例的版本,包括postgresql-10.4,postgresql-13.4
1031
+ */
1032
+ DBVersion?: string;
1033
+ /**
1034
+ * normal/ha/readonly,普通/高可用/只读从库
1035
+ */
1036
+ InstanceMode?: string;
1037
+ /**
1038
+ * 实例状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中, Running:运行,Stopping:关闭中,Stopped:已关闭,Deleted: 已删除,Upgrading: 升级中 ,Promoting:提升为主库进行中,Recovering:恢复中,RecoverFailed:恢复失败,StartFailed:启动失败,ShutdownFailed:关闭失败,Deleting:删除中,DeleteFailed:删除失败
1039
+ */
1040
+ State?: string;
1041
+ /**
1042
+ * 机器规格,格式为nCmG,n代表cpu核数,m代表内存大小(GB)
1043
+ */
1044
+ MachineType?: string;
1045
+ /**
1046
+ * VPC的ID
1047
+ */
1048
+ VPCID?: string;
1049
+ /**
1050
+ * 子网ID
1051
+ */
1052
+ SubnetID?: string;
1053
+ /**
1054
+ * DB实例创建时间,采用UTC计时时间戳
1055
+ */
1056
+ CreateTime?: number;
1057
+ /**
1058
+ * DB实例过期时间,采用UTC计时时间戳
1059
+ */
1060
+ ExpiredTime?: number;
1061
+ /**
1062
+ * DB实例ip
1063
+ */
1064
+ IP?: string;
1065
+ /**
1066
+ * 备注
1067
+ */
1068
+ Remark?: string;
1069
+ /**
1070
+ * 从库列表
1071
+ */
1072
+ DataSet?: {
1073
+ /**
1074
+ * 可用区
1075
+ */
1076
+ Zone?: string;
1077
+ /**
1078
+ * 资源ID
1079
+ */
1080
+ InstanceID?: string;
1081
+ /**
1082
+ * 实例名称
1083
+ */
1084
+ Name?: string;
1085
+ /**
1086
+ * 实例的版本,包括postgresql-10.4,postgresql-13.4
1087
+ */
1088
+ DBVersion?: string;
1089
+ /**
1090
+ * normal/ha/readonly,普通/高可用/只读从库
1091
+ */
1092
+ InstanceMode?: string;
1093
+ /**
1094
+ * 实例状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中, Running:运行,Stopping:关闭中,Stopped:已关闭,Deleted: 已删除,Upgrading: 升级中 ,Promoting:提升为主库进行中,Recovering:恢复中,RecoverFailed:恢复失败,StartFailed:启动失败,ShutdownFailed:关闭失败,Deleting:删除中,DeleteFailed:删除失败
1095
+ */
1096
+ State?: string;
1097
+ /**
1098
+ * 机器规格,格式为nCmG,n代表cpu核数,m代表内存大小(GB)
1099
+ */
1100
+ MachineType?: string;
1101
+ /**
1102
+ * VPC的ID
1103
+ */
1104
+ VPCID?: string;
1105
+ /**
1106
+ * 子网ID
1107
+ */
1108
+ SubnetID?: string;
1109
+ /**
1110
+ * DB实例创建时间,采用UTC计时时间戳
1111
+ */
1112
+ CreateTime?: number;
1113
+ /**
1114
+ * DB实例过期时间,采用UTC计时时间戳
1115
+ */
1116
+ ExpiredTime?: number;
1117
+ /**
1118
+ * DB实例ip
1119
+ */
1120
+ IP?: string;
1121
+ /**
1122
+ * 备注
1123
+ */
1124
+ Remark?: string;
1125
+ }[];
1126
+ }[];
1127
+ }
1128
+ /**
1129
+ * ListUPgSQLLog - 获取数据库日志
1130
+ */
1131
+ export interface ListUPgSQLLogRequest {
1132
+ /**
1133
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
1134
+ */
1135
+ Zone: string;
1136
+ /**
1137
+ * 查询的日志开始的时间戳
1138
+ */
1139
+ BeginTime: number;
1140
+ /**
1141
+ * 查询日志的结束时间戳
1142
+ */
1143
+ EndTime: number;
1144
+ /**
1145
+ * 资源ID
1146
+ */
1147
+ InstanceID: string;
1148
+ }
1149
+ /**
1150
+ * ListUPgSQLLog - 获取数据库日志
1151
+ */
1152
+ export interface ListUPgSQLLogResponse {
1153
+ /**
1154
+ * 数据库日志信息列表
1155
+ */
1156
+ DataSet: {
1157
+ /**
1158
+ *
1159
+ */
1160
+ BeginTime?: number;
1161
+ /**
1162
+ *
1163
+ */
1164
+ EndTime?: number;
1165
+ /**
1166
+ *
1167
+ */
1168
+ Name?: string;
1169
+ /**
1170
+ *
1171
+ */
1172
+ Size?: number;
1173
+ }[];
1174
+ }
1175
+ /**
1176
+ * ListUPgSQLMachineType - 获取UPgSQL支持机器类型列表
1177
+ */
1178
+ export interface ListUPgSQLMachineTypeRequest {
1179
+ /**
1180
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
1181
+ */
1182
+ Zone: string;
1183
+ }
1184
+ /**
1185
+ * ListUPgSQLMachineType - 获取UPgSQL支持机器类型列表
1186
+ */
1187
+ export interface ListUPgSQLMachineTypeResponse {
1188
+ /**
1189
+ *
1190
+ */
1191
+ DataSet: {
1192
+ /**
1193
+ * 机器类型ID
1194
+ */
1195
+ ID?: string;
1196
+ /**
1197
+ * 格式为nCmG,n代表cpu核数,m代表内存大小(GB)
1198
+ */
1199
+ Description?: string;
1200
+ /**
1201
+ * cpu核数
1202
+ */
1203
+ Cpu?: number;
1204
+ /**
1205
+ * 内存用量(GB)
1206
+ */
1207
+ Memory?: number;
1208
+ /**
1209
+ * 机器类型,N/O
1210
+ */
1211
+ Os?: string;
1212
+ }[];
1213
+ }
1214
+ /**
1215
+ * ListUPgSQLParamTemplate - 获取可用参数模板列表
1216
+ */
1217
+ export interface ListUPgSQLParamTemplateRequest {
1218
+ /**
1219
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
1220
+ */
1221
+ Zone: string;
1222
+ /**
1223
+ * 偏移量, 默认是0,100
1224
+ */
1225
+ Offset?: number;
1226
+ /**
1227
+ * 总数
1228
+ */
1229
+ Count?: number;
1230
+ }
1231
+ /**
1232
+ * ListUPgSQLParamTemplate - 获取可用参数模板列表
1233
+ */
1234
+ export interface ListUPgSQLParamTemplateResponse {
1235
+ /**
1236
+ * 参数模板信息
1237
+ */
1238
+ Data: {
1239
+ /**
1240
+ * 参数模板ID
1241
+ */
1242
+ GroupID?: number;
1243
+ /**
1244
+ * 参数模板名称
1245
+ */
1246
+ GroupName?: string;
1247
+ /**
1248
+ * 应用的DB版本
1249
+ */
1250
+ DBVersion?: string;
1251
+ /**
1252
+ * 描述信息
1253
+ */
1254
+ Description?: string;
1255
+ /**
1256
+ * 是否可以修改
1257
+ */
1258
+ Modifiable?: boolean;
1259
+ /**
1260
+ * 模板组类型名称
1261
+ */
1262
+ ParamGroupTypeName?: string;
1263
+ }[];
1264
+ }
1265
+ /**
1266
+ * ListUPgSQLVersion - 获取UPgSQL支持版本列表
1267
+ */
1268
+ export interface ListUPgSQLVersionRequest {
1269
+ /**
1270
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
1271
+ */
1272
+ Zone: string;
1273
+ }
1274
+ /**
1275
+ * ListUPgSQLVersion - 获取UPgSQL支持版本列表
1276
+ */
1277
+ export interface ListUPgSQLVersionResponse {
1278
+ /**
1279
+ * postgresql版本信息
1280
+ */
1281
+ DataSet: {
1282
+ /**
1283
+ * PgSQL版本
1284
+ */
1285
+ DBVersion?: string;
1286
+ /**
1287
+ * 2位二进制控制是否开放单点和高可用,前一位控制单点是否开放,后一位控制高可用,例如"01"代表只开放高可用,"10"代表只开放单点,"11"代表全开放
1288
+ */
1289
+ Available?: string;
1290
+ }[];
1291
+ }
1292
+ /**
1293
+ * RestartUPgSQLInstance - 重启PG实例
1294
+ */
1295
+ export interface RestartUPgSQLInstanceRequest {
1296
+ /**
1297
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
1298
+ */
1299
+ Zone: string;
1300
+ /**
1301
+ * 实例ID
1302
+ */
1303
+ InstanceID: string;
1304
+ /**
1305
+ * 是否一并重启主机
1306
+ */
1307
+ RestartHost?: boolean;
1308
+ /**
1309
+ * 是否强制重启
1310
+ */
1311
+ ForceToRestart?: boolean;
1312
+ }
1313
+ /**
1314
+ * RestartUPgSQLInstance - 重启PG实例
1315
+ */
1316
+ export interface RestartUPgSQLInstanceResponse {
1317
+ }
1318
+ /**
1319
+ * StartUPgSQLInstance - 启动 PG实例
1320
+ */
1321
+ export interface StartUPgSQLInstanceRequest {
1322
+ /**
1323
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
1324
+ */
1325
+ Zone: string;
1326
+ /**
1327
+ * 实例ID
1328
+ */
1329
+ InstanceID: string;
1330
+ }
1331
+ /**
1332
+ * StartUPgSQLInstance - 启动 PG实例
1333
+ */
1334
+ export interface StartUPgSQLInstanceResponse {
1335
+ }
1336
+ /**
1337
+ * StopUPgSQLCreatingReadonly - 停止创建从库
1338
+ */
1339
+ export interface StopUPgSQLCreatingReadonlyRequest {
1340
+ /**
1341
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
1342
+ */
1343
+ Zone: string;
1344
+ /**
1345
+ * 停止创建从库
1346
+ */
1347
+ InstanceID: string;
1348
+ }
1349
+ /**
1350
+ * StopUPgSQLCreatingReadonly - 停止创建从库
1351
+ */
1352
+ export interface StopUPgSQLCreatingReadonlyResponse {
1353
+ }
1354
+ /**
1355
+ * StopUPgSQLInstance - 关闭PG实例
1356
+ */
1357
+ export interface StopUPgSQLInstanceRequest {
1358
+ /**
1359
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
1360
+ */
1361
+ Zone: string;
1362
+ /**
1363
+ * 实例ID
1364
+ */
1365
+ InstanceID: string;
1366
+ /**
1367
+ * 是否将主机一并关闭
1368
+ */
1369
+ StopHost?: boolean;
1370
+ /**
1371
+ * 是否强制关闭
1372
+ */
1373
+ ForceToStop?: boolean;
1374
+ }
1375
+ /**
1376
+ * StopUPgSQLInstance - 关闭PG实例
1377
+ */
1378
+ export interface StopUPgSQLInstanceResponse {
1379
+ }
1380
+ /**
1381
+ * UpdateUPgSQLAttribute - 更新数据库属性
1382
+ */
1383
+ export interface UpdateUPgSQLAttributeRequest {
1384
+ /**
1385
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
1386
+ */
1387
+ Zone: string;
1388
+ /**
1389
+ * DB实例Id
1390
+ */
1391
+ InstanceID: string;
1392
+ /**
1393
+ * 新的db名字(不能为空字符串)
1394
+ */
1395
+ Name?: string;
1396
+ /**
1397
+ * 新的备注信息
1398
+ */
1399
+ Remark?: string;
1400
+ }
1401
+ /**
1402
+ * UpdateUPgSQLAttribute - 更新数据库属性
1403
+ */
1404
+ export interface UpdateUPgSQLAttributeResponse {
1405
+ }
1406
+ /**
1407
+ * UpdateUPgSQLBackupStrategy - 修改备份策略
1408
+ */
1409
+ export interface UpdateUPgSQLBackupStrategyRequest {
1410
+ /**
1411
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
1412
+ */
1413
+ Zone: string;
1414
+ /**
1415
+ * DB实例Id
1416
+ */
1417
+ InstanceID: string;
1418
+ /**
1419
+ * 自动备份预计开始时间范围(00:00~23:59),例如:(3:00~4:00)
1420
+ */
1421
+ BackupTimeRange?: string;
1422
+ /**
1423
+ * 自动备份预期星期几(1~7)开始。默认1,2,3,4,5,6,7(星期一到星期日)
1424
+ */
1425
+ BackupWeek?: string;
1426
+ /**
1427
+ * 选择默认的备份方式
1428
+ */
1429
+ BackupMethod?: string;
1430
+ }
1431
+ /**
1432
+ * UpdateUPgSQLBackupStrategy - 修改备份策略
1433
+ */
1434
+ export interface UpdateUPgSQLBackupStrategyResponse {
1435
+ }
1436
+ /**
1437
+ * UpdateUPgSQLPassword - 更新数据库用户密码
1438
+ */
1439
+ export interface UpdateUPgSQLPasswordRequest {
1440
+ /**
1441
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
1442
+ */
1443
+ Zone: string;
1444
+ /**
1445
+ * DB实例Id
1446
+ */
1447
+ InstanceID: string;
1448
+ /**
1449
+ * 新的db用户密码
1450
+ */
1451
+ Password: string;
1452
+ /**
1453
+ * 数据库用户的名称。默认是root
1454
+ */
1455
+ Name?: string;
1456
+ }
1457
+ /**
1458
+ * UpdateUPgSQLPassword - 更新数据库用户密码
1459
+ */
1460
+ export interface UpdateUPgSQLPasswordResponse {
1461
+ }
1462
+ /**
1463
+ * UpgradeUPgSQLInstance - 硬件规格升降级
1464
+ */
1465
+ export interface UpgradeUPgSQLInstanceRequest {
1466
+ /**
1467
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
1468
+ */
1469
+ Zone: string;
1470
+ /**
1471
+ * 资源ID
1472
+ */
1473
+ InstanceID: string;
1474
+ /**
1475
+ * 磁盘空间(GB)
1476
+ */
1477
+ DiskSpace: number;
1478
+ /**
1479
+ * 机器配置类型
1480
+ */
1481
+ MachineType: string;
1482
+ /**
1483
+ * 数据库类型(ha:高可用类型,normal:普通类型,readonly:从库)
1484
+ */
1485
+ InstanceMode: string;
1486
+ }
1487
+ /**
1488
+ * UpgradeUPgSQLInstance - 硬件规格升降级
1489
+ */
1490
+ export interface UpgradeUPgSQLInstanceResponse {
1491
+ }
1492
+ /**
1493
+ * UploadUPgSQLParamTemplate - 上传参数模板
1494
+ */
1495
+ export interface UploadUPgSQLParamTemplateRequest {
1496
+ /**
1497
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
1498
+ */
1499
+ Zone: string;
1500
+ /**
1501
+ * 模板名称
1502
+ */
1503
+ GroupName: string;
1504
+ /**
1505
+ * 应用的DB版本
1506
+ */
1507
+ DBVersion: string;
1508
+ /**
1509
+ * base64编码过的
1510
+ */
1511
+ Content: string;
1512
+ /**
1513
+ * 模板描述
1514
+ */
1515
+ Description?: string;
1516
+ /**
1517
+ * 版本
1518
+ */
1519
+ ParamGroupType?: string;
1520
+ }
1521
+ /**
1522
+ * UploadUPgSQLParamTemplate - 上传参数模板
1523
+ */
1524
+ export interface UploadUPgSQLParamTemplateResponse {
1525
+ /**
1526
+ * 生成的模板ID
1527
+ */
1528
+ GroupID: number;
1529
+ }