tencentcloud-sdk-nodejs-cynosdb 4.0.314 → 4.0.317

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.
@@ -1,3 +1,16 @@
1
+ /**
2
+ * ModifyClusterName请求参数结构体
3
+ */
4
+ export interface ModifyClusterNameRequest {
5
+ /**
6
+ * 集群ID
7
+ */
8
+ ClusterId: string;
9
+ /**
10
+ * 集群名
11
+ */
12
+ ClusterName: string;
13
+ }
1
14
  /**
2
15
  * DescribeRollbackTimeRange请求参数结构体
3
16
  */
@@ -119,6 +132,28 @@ export interface AssociateSecurityGroupsRequest {
119
132
  */
120
133
  Zone: string;
121
134
  }
135
+ /**
136
+ * CreateAccounts返回参数结构体
137
+ */
138
+ export interface CreateAccountsResponse {
139
+ /**
140
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
141
+ */
142
+ RequestId?: string;
143
+ }
144
+ /**
145
+ * ModifyInstanceName请求参数结构体
146
+ */
147
+ export interface ModifyInstanceNameRequest {
148
+ /**
149
+ * 实例ID
150
+ */
151
+ InstanceId: string;
152
+ /**
153
+ * 实例名称
154
+ */
155
+ InstanceName: string;
156
+ }
122
157
  /**
123
158
  * DescribeDBSecurityGroups返回参数结构体
124
159
  */
@@ -233,6 +268,15 @@ export interface Account {
233
268
  */
234
269
  Host: string;
235
270
  }
271
+ /**
272
+ * ModifyBackupConfig返回参数结构体
273
+ */
274
+ export interface ModifyBackupConfigResponse {
275
+ /**
276
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
277
+ */
278
+ RequestId?: string;
279
+ }
236
280
  /**
237
281
  * IsolateInstance返回参数结构体
238
282
  */
@@ -252,14 +296,26 @@ export interface IsolateInstanceResponse {
252
296
  RequestId?: string;
253
297
  }
254
298
  /**
255
- * DescribeInstanceSpecs请求参数结构体
299
+ * ModifyInstanceName返回参数结构体
256
300
  */
257
- export interface DescribeInstanceSpecsRequest {
301
+ export interface ModifyInstanceNameResponse {
258
302
  /**
259
- * 数据库类型,取值范围:
260
- <li> MYSQL </li>
261
- */
262
- DbType: string;
303
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
304
+ */
305
+ RequestId?: string;
306
+ }
307
+ /**
308
+ * PauseServerless请求参数结构体
309
+ */
310
+ export interface PauseServerlessRequest {
311
+ /**
312
+ * 集群id
313
+ */
314
+ ClusterId: string;
315
+ /**
316
+ * 是否强制暂停,忽略当前的用户链接 0:不强制 1:强制, 默认为1
317
+ */
318
+ ForcePause?: number;
263
319
  }
264
320
  /**
265
321
  * RevokeAccountPrivileges返回参数结构体
@@ -532,22 +588,21 @@ export interface ModifyDBInstanceSecurityGroupsResponse {
532
588
  RequestId?: string;
533
589
  }
534
590
  /**
535
- * DescribeClusterParamLogs返回参数结构体
591
+ * ModifyAccountParams请求参数结构体
536
592
  */
537
- export interface DescribeClusterParamLogsResponse {
593
+ export interface ModifyAccountParamsRequest {
538
594
  /**
539
- * 记录总数
595
+ * 集群id
540
596
  */
541
- TotalCount: number;
597
+ ClusterId: string;
542
598
  /**
543
- * 参数修改记录
544
- 注意:此字段可能返回 null,表示取不到有效值。
545
- */
546
- ClusterParamLogs: Array<ClusterParamModifyLog>;
599
+ * 账号信息
600
+ */
601
+ Account: InputAccount;
547
602
  /**
548
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
603
+ * 数据库表权限数组,当前仅支持参数:max_user_connections
549
604
  */
550
- RequestId?: string;
605
+ AccountParams: Array<AccountParam>;
551
606
  }
552
607
  /**
553
608
  * DescribeClusterInstanceGrps请求参数结构体
@@ -584,6 +639,19 @@ export interface ResumeServerlessResponse {
584
639
  */
585
640
  RequestId?: string;
586
641
  }
642
+ /**
643
+ * CreateAccounts请求参数结构体
644
+ */
645
+ export interface CreateAccountsRequest {
646
+ /**
647
+ * 集群id
648
+ */
649
+ ClusterId: string;
650
+ /**
651
+ * 新账户列表
652
+ */
653
+ Accounts: Array<NewAccount>;
654
+ }
587
655
  /**
588
656
  * IsolateInstance请求参数结构体
589
657
  */
@@ -701,6 +769,27 @@ export interface OfflineClusterRequest {
701
769
  */
702
770
  ClusterId: string;
703
771
  }
772
+ /**
773
+ * 新创建的账号
774
+ */
775
+ export interface NewAccount {
776
+ /**
777
+ * 账户名
778
+ */
779
+ AccountName: string;
780
+ /**
781
+ * 密码
782
+ */
783
+ AccountPassword: string;
784
+ /**
785
+ * 主机
786
+ */
787
+ Host: string;
788
+ /**
789
+ * 描述
790
+ */
791
+ Description?: string;
792
+ }
704
793
  /**
705
794
  * 备份文件信息
706
795
  */
@@ -1055,7 +1144,7 @@ export interface CreateClustersRequest {
1055
1144
  */
1056
1145
  PayMode?: number;
1057
1146
  /**
1058
- * 购买个数,目前只支持传1(不传默认为1
1147
+ * 购买集群数,可选值范围[1,50],默认为1
1059
1148
  */
1060
1149
  Count?: number;
1061
1150
  /**
@@ -1463,26 +1552,23 @@ export interface BillingResourceInfo {
1463
1552
  InstanceIds: Array<string>;
1464
1553
  }
1465
1554
  /**
1466
- * ModifyBackupConfig返回参数结构体
1555
+ * ModifyClusterName返回参数结构体
1467
1556
  */
1468
- export interface ModifyBackupConfigResponse {
1557
+ export interface ModifyClusterNameResponse {
1469
1558
  /**
1470
1559
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1471
1560
  */
1472
1561
  RequestId?: string;
1473
1562
  }
1474
1563
  /**
1475
- * PauseServerless请求参数结构体
1564
+ * DescribeInstanceSpecs请求参数结构体
1476
1565
  */
1477
- export interface PauseServerlessRequest {
1478
- /**
1479
- * 集群id
1480
- */
1481
- ClusterId: string;
1566
+ export interface DescribeInstanceSpecsRequest {
1482
1567
  /**
1483
- * 是否强制暂停,忽略当前的用户链接 0:不强制 1:强制, 默认为1
1484
- */
1485
- ForcePause?: number;
1568
+ * 数据库类型,取值范围:
1569
+ <li> MYSQL </li>
1570
+ */
1571
+ DbType: string;
1486
1572
  }
1487
1573
  /**
1488
1574
  * UpgradeInstance返回参数结构体
@@ -1508,29 +1594,39 @@ export interface UpgradeInstanceResponse {
1508
1594
  RequestId?: string;
1509
1595
  }
1510
1596
  /**
1511
- * ModifyAccountParams请求参数结构体
1597
+ * DescribeClusterParamLogs返回参数结构体
1512
1598
  */
1513
- export interface ModifyAccountParamsRequest {
1599
+ export interface DescribeClusterParamLogsResponse {
1514
1600
  /**
1515
- * 集群id
1601
+ * 记录总数
1516
1602
  */
1517
- ClusterId: string;
1603
+ TotalCount: number;
1518
1604
  /**
1519
- * 账号信息
1520
- */
1521
- Account: InputAccount;
1605
+ * 参数修改记录
1606
+ 注意:此字段可能返回 null,表示取不到有效值。
1607
+ */
1608
+ ClusterParamLogs: Array<ClusterParamModifyLog>;
1522
1609
  /**
1523
- * 数据库表权限数组,当前仅支持参数:max_user_connections
1610
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1524
1611
  */
1525
- AccountParams: Array<AccountParam>;
1612
+ RequestId?: string;
1526
1613
  }
1527
1614
  /**
1528
1615
  * 集群信息
1529
1616
  */
1530
1617
  export interface CynosdbCluster {
1531
1618
  /**
1532
- * 集群状态
1533
- */
1619
+ * 集群状态, 可选值如下:
1620
+ creating: 创建中
1621
+ running:运行中
1622
+ isolating:隔离中
1623
+ isolated:已隔离
1624
+ activating:解隔离中
1625
+ offlining:下线中
1626
+ offlined:已下线
1627
+ deleting:删除中
1628
+ deleted:已删除
1629
+ */
1534
1630
  Status: string;
1535
1631
  /**
1536
1632
  * 更新时间