tencentcloud-sdk-nodejs-cynosdb 4.0.397 → 4.0.433

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.
@@ -64,10 +64,16 @@ class Client extends TencentCloudCommon.AbstractClient {
64
64
  return this.request("DescribeBinlogSaveDays", req, cb);
65
65
  }
66
66
  /**
67
- * 获取指定集群的备份配置信息,包括全量备份时间段,备份文件保留时间
67
+ * 本接口(DescribeInstanceSpecs)用于查询实例规格
68
68
  */
69
- async DescribeBackupConfig(req, cb) {
70
- return this.request("DescribeBackupConfig", req, cb);
69
+ async DescribeInstanceSpecs(req, cb) {
70
+ return this.request("DescribeInstanceSpecs", req, cb);
71
+ }
72
+ /**
73
+ * 增加从可用区
74
+ */
75
+ async AddClusterSlaveZone(req, cb) {
76
+ return this.request("AddClusterSlaveZone", req, cb);
71
77
  }
72
78
  /**
73
79
  * 查询用户指定产品下的所有参数模板信息
@@ -75,6 +81,12 @@ class Client extends TencentCloudCommon.AbstractClient {
75
81
  async DescribeParamTemplates(req, cb) {
76
82
  return this.request("DescribeParamTemplates", req, cb);
77
83
  }
84
+ /**
85
+ * SetRenewFlag设置实例的自动续费功能
86
+ */
87
+ async SetRenewFlag(req, cb) {
88
+ return this.request("SetRenewFlag", req, cb);
89
+ }
78
90
  /**
79
91
  * 本接口(DescribeClusterInstanceGrps)用于查询实例组
80
92
  */
@@ -147,12 +159,24 @@ class Client extends TencentCloudCommon.AbstractClient {
147
159
  async ModifyMaintainPeriodConfig(req, cb) {
148
160
  return this.request("ModifyMaintainPeriodConfig", req, cb);
149
161
  }
162
+ /**
163
+ * 修改从可用区
164
+ */
165
+ async ModifyClusterSlaveZone(req, cb) {
166
+ return this.request("ModifyClusterSlaveZone", req, cb);
167
+ }
150
168
  /**
151
169
  * 修改账号参数
152
170
  */
153
171
  async ModifyAccountParams(req, cb) {
154
172
  return this.request("ModifyAccountParams", req, cb);
155
173
  }
174
+ /**
175
+ * 本接口(DescribeClusterParams)用于查询集群参数
176
+ */
177
+ async DescribeClusterParams(req, cb) {
178
+ return this.request("DescribeClusterParams", req, cb);
179
+ }
156
180
  /**
157
181
  * 下线实例
158
182
  */
@@ -202,10 +226,10 @@ class Client extends TencentCloudCommon.AbstractClient {
202
226
  return this.request("AssociateSecurityGroups", req, cb);
203
227
  }
204
228
  /**
205
- * SetRenewFlag设置实例的自动续费功能
229
+ * 删除从可用区
206
230
  */
207
- async SetRenewFlag(req, cb) {
208
- return this.request("SetRenewFlag", req, cb);
231
+ async RemoveClusterSlaveZone(req, cb) {
232
+ return this.request("RemoveClusterSlaveZone", req, cb);
209
233
  }
210
234
  /**
211
235
  * 显示集群详情
@@ -226,10 +250,10 @@ class Client extends TencentCloudCommon.AbstractClient {
226
250
  return this.request("IsolateInstance", req, cb);
227
251
  }
228
252
  /**
229
- * 本接口(DescribeInstanceSpecs)用于查询实例规格
253
+ * 获取指定集群的备份配置信息,包括全量备份时间段,备份文件保留时间
230
254
  */
231
- async DescribeInstanceSpecs(req, cb) {
232
- return this.request("DescribeInstanceSpecs", req, cb);
255
+ async DescribeBackupConfig(req, cb) {
256
+ return this.request("DescribeBackupConfig", req, cb);
233
257
  }
234
258
  /**
235
259
  * 此接口(DescribeInstanceSlowQueries)用于查询实例慢查询日志。
@@ -315,6 +339,12 @@ class Client extends TencentCloudCommon.AbstractClient {
315
339
  async ExportInstanceSlowQueries(req, cb) {
316
340
  return this.request("ExportInstanceSlowQueries", req, cb);
317
341
  }
342
+ /**
343
+ * 切换到从可用区
344
+ */
345
+ async SwitchClusterZone(req, cb) {
346
+ return this.request("SwitchClusterZone", req, cb);
347
+ }
318
348
  /**
319
349
  * 安全组批量解绑云资源
320
350
  */
@@ -1,3 +1,16 @@
1
+ /**
2
+ * RemoveClusterSlaveZone请求参数结构体
3
+ */
4
+ export interface RemoveClusterSlaveZoneRequest {
5
+ /**
6
+ * 集群ID
7
+ */
8
+ ClusterId: string;
9
+ /**
10
+ * 从可用区
11
+ */
12
+ SlaveZone: string;
13
+ }
1
14
  /**
2
15
  * ModifyClusterName请求参数结构体
3
16
  */
@@ -120,13 +133,17 @@ export interface ModifyMaintainPeriodConfigRequest {
120
133
  */
121
134
  export interface DescribeRollbackTimeRangeResponse {
122
135
  /**
123
- * 有效回归时间范围开始时间点
136
+ * 有效回归时间范围开始时间点(已废弃)
124
137
  */
125
138
  TimeRangeStart: string;
126
139
  /**
127
- * 有效回归时间范围结束时间点
140
+ * 有效回归时间范围结束时间点(已废弃)
128
141
  */
129
142
  TimeRangeEnd: string;
143
+ /**
144
+ * 可回档时间范围
145
+ */
146
+ RollbackTimeRanges: Array<RollbackTimeRange>;
130
147
  /**
131
148
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
132
149
  */
@@ -141,6 +158,19 @@ export interface ModifyBackupNameResponse {
141
158
  */
142
159
  RequestId?: string;
143
160
  }
161
+ /**
162
+ * SwitchClusterZone返回参数结构体
163
+ */
164
+ export interface SwitchClusterZoneResponse {
165
+ /**
166
+ * 异步FlowId
167
+ */
168
+ FlowId: number;
169
+ /**
170
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
171
+ */
172
+ RequestId?: string;
173
+ }
144
174
  /**
145
175
  * AssociateSecurityGroups请求参数结构体
146
176
  */
@@ -301,34 +331,39 @@ export interface ClusterInstanceDetail {
301
331
  InstanceStorage: number;
302
332
  }
303
333
  /**
304
- * 数据库账号信息
334
+ * AddClusterSlaveZone返回参数结构体
305
335
  */
306
- export interface Account {
336
+ export interface AddClusterSlaveZoneResponse {
307
337
  /**
308
- * 数据库账号名
338
+ * 异步FlowId
309
339
  */
310
- AccountName: string;
340
+ FlowId: number;
311
341
  /**
312
- * 数据库账号描述
342
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
313
343
  */
314
- Description: string;
344
+ RequestId?: string;
345
+ }
346
+ /**
347
+ * ModifyClusterName返回参数结构体
348
+ */
349
+ export interface ModifyClusterNameResponse {
315
350
  /**
316
- * 创建时间
351
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
317
352
  */
318
- CreateTime: string;
353
+ RequestId?: string;
354
+ }
355
+ /**
356
+ * DescribeClusterParams返回参数结构体
357
+ */
358
+ export interface DescribeClusterParamsResponse {
319
359
  /**
320
- * 更新时间
360
+ * 参数个数
321
361
  */
322
- UpdateTime: string;
362
+ TotalCount: number;
323
363
  /**
324
- * 主机
364
+ * 实例参数列表
325
365
  */
326
- Host: string;
327
- }
328
- /**
329
- * ModifyClusterName返回参数结构体
330
- */
331
- export interface ModifyClusterNameResponse {
366
+ Items: Array<ParamInfo>;
332
367
  /**
333
368
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
334
369
  */
@@ -562,17 +597,17 @@ export interface ActivateInstanceRequest {
562
597
  InstanceIdList: Array<string>;
563
598
  }
564
599
  /**
565
- * 回档表信息
600
+ * AddClusterSlaveZone请求参数结构体
566
601
  */
567
- export interface RollbackTableInfo {
602
+ export interface AddClusterSlaveZoneRequest {
568
603
  /**
569
- * 旧表名称
604
+ * 集群ID
570
605
  */
571
- OldTable: string;
606
+ ClusterId: string;
572
607
  /**
573
- * 新表名称
608
+ * 从可用区
574
609
  */
575
- NewTable: string;
610
+ SlaveZone: string;
576
611
  }
577
612
  /**
578
613
  * DescribeAccountAllGrantPrivileges返回参数结构体
@@ -780,6 +815,27 @@ export interface ExportInstanceSlowQueriesResponse {
780
815
  */
781
816
  RequestId?: string;
782
817
  }
818
+ /**
819
+ * SwitchClusterZone请求参数结构体
820
+ */
821
+ export interface SwitchClusterZoneRequest {
822
+ /**
823
+ * 集群Id
824
+ */
825
+ ClusterId: string;
826
+ /**
827
+ * 当前可用区
828
+ */
829
+ OldZone: string;
830
+ /**
831
+ * 要切换到的可用区
832
+ */
833
+ NewZone: string;
834
+ /**
835
+ * 维护期间执行-yes,立即执行-no
836
+ */
837
+ IsInMaintainPeriod?: string;
838
+ }
783
839
  /**
784
840
  * DescribeDBSecurityGroups请求参数结构体
785
841
  */
@@ -870,6 +926,19 @@ export interface DescribeProjectSecurityGroupsResponse {
870
926
  */
871
927
  RequestId?: string;
872
928
  }
929
+ /**
930
+ * RemoveClusterSlaveZone返回参数结构体
931
+ */
932
+ export interface RemoveClusterSlaveZoneResponse {
933
+ /**
934
+ * 异步FlowId
935
+ */
936
+ FlowId: number;
937
+ /**
938
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
939
+ */
940
+ RequestId?: string;
941
+ }
873
942
  /**
874
943
  * PauseServerless返回参数结构体
875
944
  */
@@ -1195,6 +1264,19 @@ export interface DbTable {
1195
1264
  */
1196
1265
  TableName?: string;
1197
1266
  }
1267
+ /**
1268
+ * ModifyClusterSlaveZone返回参数结构体
1269
+ */
1270
+ export interface ModifyClusterSlaveZoneResponse {
1271
+ /**
1272
+ * 异步FlowId
1273
+ */
1274
+ FlowId: number;
1275
+ /**
1276
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1277
+ */
1278
+ RequestId?: string;
1279
+ }
1198
1280
  /**
1199
1281
  * GrantAccountPrivileges请求参数结构体
1200
1282
  */
@@ -1217,23 +1299,29 @@ export interface GrantAccountPrivilegesRequest {
1217
1299
  DbTables: Array<DbTable>;
1218
1300
  }
1219
1301
  /**
1220
- * IsolateCluster返回参数结构体
1302
+ * Binlog描述
1221
1303
  */
1222
- export interface IsolateClusterResponse {
1304
+ export interface BinlogItem {
1223
1305
  /**
1224
- * 任务流ID
1225
- 注意:此字段可能返回 null,表示取不到有效值。
1226
- */
1227
- FlowId: number;
1306
+ * Binlog文件名称
1307
+ */
1308
+ FileName: string;
1228
1309
  /**
1229
- * 退款订单号
1230
- 注意:此字段可能返回 null,表示取不到有效值。
1231
- */
1232
- DealNames: Array<string>;
1310
+ * 文件大小,单位:字节
1311
+ */
1312
+ FileSize: number;
1233
1313
  /**
1234
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1314
+ * 事务最早时间
1235
1315
  */
1236
- RequestId?: string;
1316
+ StartTime: string;
1317
+ /**
1318
+ * 事务最晚时间
1319
+ */
1320
+ FinishTime: string;
1321
+ /**
1322
+ * Binlog文件ID
1323
+ */
1324
+ BinlogId: number;
1237
1325
  }
1238
1326
  /**
1239
1327
  * CreateClusters请求参数结构体
@@ -1421,6 +1509,19 @@ export interface CreateClustersRequest {
1421
1509
  */
1422
1510
  SlaveZone?: string;
1423
1511
  }
1512
+ /**
1513
+ * 回档表信息
1514
+ */
1515
+ export interface RollbackTableInfo {
1516
+ /**
1517
+ * 旧表名称
1518
+ */
1519
+ OldTable: string;
1520
+ /**
1521
+ * 新表名称
1522
+ */
1523
+ NewTable: string;
1524
+ }
1424
1525
  /**
1425
1526
  * DescribeClusters返回参数结构体
1426
1527
  */
@@ -1587,6 +1688,56 @@ export interface ParamTemplateListInfo {
1587
1688
  */
1588
1689
  EngineVersion: string;
1589
1690
  }
1691
+ /**
1692
+ * 参数信息
1693
+ */
1694
+ export interface ParamInfo {
1695
+ /**
1696
+ * 当前值
1697
+ */
1698
+ CurrentValue: string;
1699
+ /**
1700
+ * 默认值
1701
+ */
1702
+ Default: string;
1703
+ /**
1704
+ * 参数为enum/string/bool时,可选值列表
1705
+ 注意:此字段可能返回 null,表示取不到有效值。
1706
+ */
1707
+ EnumValue: Array<string>;
1708
+ /**
1709
+ * 参数类型为float/integer时的最大值
1710
+ */
1711
+ Max: string;
1712
+ /**
1713
+ * 参数类型为float/integer时的最小值
1714
+ */
1715
+ Min: string;
1716
+ /**
1717
+ * 参数名称
1718
+ */
1719
+ ParamName: string;
1720
+ /**
1721
+ * 是否需要重启生效
1722
+ */
1723
+ NeedReboot: number;
1724
+ /**
1725
+ * 参数类型:integer/float/string/enum/bool
1726
+ */
1727
+ ParamType: string;
1728
+ /**
1729
+ * 匹配类型,multiVal, regex在参数类型是string时使用
1730
+ */
1731
+ MatchType: string;
1732
+ /**
1733
+ * 匹配目标值,当multiVal时,各个key用;分割
1734
+ */
1735
+ MatchValue: string;
1736
+ /**
1737
+ * 参数描述
1738
+ */
1739
+ Description: string;
1740
+ }
1590
1741
  /**
1591
1742
  * DescribeProjectSecurityGroups请求参数结构体
1592
1743
  */
@@ -1655,6 +1806,19 @@ export interface DescribeBackupDownloadUrlRequest {
1655
1806
  */
1656
1807
  BackupId: number;
1657
1808
  }
1809
+ /**
1810
+ * 可回档的时间范围
1811
+ */
1812
+ export interface RollbackTimeRange {
1813
+ /**
1814
+ * 开始时间
1815
+ */
1816
+ TimeRangeStart: string;
1817
+ /**
1818
+ * 结束时间
1819
+ */
1820
+ TimeRangeEnd: string;
1821
+ }
1658
1822
  /**
1659
1823
  * 网络信息
1660
1824
  */
@@ -1684,6 +1848,21 @@ export interface NetAddr {
1684
1848
  注意:此字段可能返回 null,表示取不到有效值。
1685
1849
  */
1686
1850
  NetType: string;
1851
+ /**
1852
+ * 子网ID
1853
+ 注意:此字段可能返回 null,表示取不到有效值。
1854
+ */
1855
+ UniqSubnetId: string;
1856
+ /**
1857
+ * 私有网络ID
1858
+ 注意:此字段可能返回 null,表示取不到有效值。
1859
+ */
1860
+ UniqVpcId: string;
1861
+ /**
1862
+ * 描述信息
1863
+ 注意:此字段可能返回 null,表示取不到有效值。
1864
+ */
1865
+ Description: string;
1687
1866
  }
1688
1867
  /**
1689
1868
  * AssociateSecurityGroups返回参数结构体
@@ -1860,6 +2039,10 @@ export interface DescribeInstanceSpecsRequest {
1860
2039
  <li> MYSQL </li>
1861
2040
  */
1862
2041
  DbType: string;
2042
+ /**
2043
+ * 是否需要返回可用区信息
2044
+ */
2045
+ IncludeZoneStocks?: boolean;
1863
2046
  }
1864
2047
  /**
1865
2048
  * ExportInstanceSlowQueries请求参数结构体
@@ -2095,29 +2278,23 @@ export interface CynosdbCluster {
2095
2278
  NetAddrs?: Array<NetAddr>;
2096
2279
  }
2097
2280
  /**
2098
- * Binlog描述
2281
+ * IsolateCluster返回参数结构体
2099
2282
  */
2100
- export interface BinlogItem {
2101
- /**
2102
- * Binlog文件名称
2103
- */
2104
- FileName: string;
2105
- /**
2106
- * 文件大小,单位:字节
2107
- */
2108
- FileSize: number;
2283
+ export interface IsolateClusterResponse {
2109
2284
  /**
2110
- * 事务最早时间
2111
- */
2112
- StartTime: string;
2285
+ * 任务流ID
2286
+ 注意:此字段可能返回 null,表示取不到有效值。
2287
+ */
2288
+ FlowId: number;
2113
2289
  /**
2114
- * 事务最晚时间
2115
- */
2116
- FinishTime: string;
2290
+ * 退款订单号
2291
+ 注意:此字段可能返回 null,表示取不到有效值。
2292
+ */
2293
+ DealNames: Array<string>;
2117
2294
  /**
2118
- * Binlog文件ID
2295
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2119
2296
  */
2120
- BinlogId: number;
2297
+ RequestId?: string;
2121
2298
  }
2122
2299
  /**
2123
2300
  * OfflineCluster返回参数结构体
@@ -2173,6 +2350,27 @@ export interface InstanceSpec {
2173
2350
  * 实例最小可用存储,单位:GB
2174
2351
  */
2175
2352
  MinStorageSize: number;
2353
+ /**
2354
+ * 是否有库存
2355
+ */
2356
+ HasStock: boolean;
2357
+ /**
2358
+ * 机器类型
2359
+ */
2360
+ MachineType: string;
2361
+ /**
2362
+ * 最大IOPS
2363
+ */
2364
+ MaxIops: number;
2365
+ /**
2366
+ * 最大IO带宽
2367
+ */
2368
+ MaxIoBandWidth: number;
2369
+ /**
2370
+ * 地域库存信息
2371
+ 注意:此字段可能返回 null,表示取不到有效值。
2372
+ */
2373
+ ZoneStockInfos: Array<ZoneStockInfo>;
2176
2374
  }
2177
2375
  /**
2178
2376
  * InquirePriceCreate返回参数结构体
@@ -2204,6 +2402,31 @@ export interface SetRenewFlagResponse {
2204
2402
  */
2205
2403
  RequestId?: string;
2206
2404
  }
2405
+ /**
2406
+ * 数据库账号信息
2407
+ */
2408
+ export interface Account {
2409
+ /**
2410
+ * 数据库账号名
2411
+ */
2412
+ AccountName: string;
2413
+ /**
2414
+ * 数据库账号描述
2415
+ */
2416
+ Description: string;
2417
+ /**
2418
+ * 创建时间
2419
+ */
2420
+ CreateTime: string;
2421
+ /**
2422
+ * 更新时间
2423
+ */
2424
+ UpdateTime: string;
2425
+ /**
2426
+ * 主机
2427
+ */
2428
+ Host: string;
2429
+ }
2207
2430
  /**
2208
2431
  * DescribeClusterParamLogs请求参数结构体
2209
2432
  */
@@ -2465,6 +2688,23 @@ export interface AddInstancesRequest {
2465
2688
  */
2466
2689
  DealMode?: number;
2467
2690
  }
2691
+ /**
2692
+ * ModifyClusterSlaveZone请求参数结构体
2693
+ */
2694
+ export interface ModifyClusterSlaveZoneRequest {
2695
+ /**
2696
+ * 集群Id
2697
+ */
2698
+ ClusterId: string;
2699
+ /**
2700
+ * 旧从可用区
2701
+ */
2702
+ OldSlaveZone: string;
2703
+ /**
2704
+ * 新从可用区
2705
+ */
2706
+ NewSlaveZone: string;
2707
+ }
2468
2708
  /**
2469
2709
  * DescribeInstances请求参数结构体
2470
2710
  */
@@ -2940,6 +3180,15 @@ export interface TradePrice {
2940
3180
  */
2941
3181
  ChargeUnit: string;
2942
3182
  }
3183
+ /**
3184
+ * DescribeClusterParams请求参数结构体
3185
+ */
3186
+ export interface DescribeClusterParamsRequest {
3187
+ /**
3188
+ * 集群ID
3189
+ */
3190
+ ClusterId: string;
3191
+ }
2943
3192
  /**
2944
3193
  * DescribeInstanceSpecs返回参数结构体
2945
3194
  */
@@ -3138,6 +3387,19 @@ export interface DisassociateSecurityGroupsResponse {
3138
3387
  */
3139
3388
  RequestId?: string;
3140
3389
  }
3390
+ /**
3391
+ * 可用区库存信息
3392
+ */
3393
+ export interface ZoneStockInfo {
3394
+ /**
3395
+ * 可用区
3396
+ */
3397
+ Zone: string;
3398
+ /**
3399
+ * 是否有库存
3400
+ */
3401
+ HasStock: boolean;
3402
+ }
3141
3403
  /**
3142
3404
  * InquirePriceRenew返回参数结构体
3143
3405
  */