tencentcloud-sdk-nodejs-intl-en 3.0.412 → 3.0.415

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.
@@ -77,38 +77,47 @@ Note: this field may return null, indicating that no valid values can be obtaine
77
77
  }
78
78
 
79
79
  /**
80
- * UpgradeInstance response structure.
80
+ * Network information
81
81
  * @class
82
82
  */
83
- class UpgradeInstanceResponse extends AbstractModel {
83
+ class NetAddr extends AbstractModel {
84
84
  constructor(){
85
85
  super();
86
86
 
87
87
  /**
88
- * Freezing transaction ID
89
- Note: this field may return null, indicating that no valid values can be obtained.
88
+ * Private network IP
89
+ Note: this field may return `null`, indicating that no valid values can be obtained.
90
90
  * @type {string || null}
91
91
  */
92
- this.TranId = null;
92
+ this.Vip = null;
93
93
 
94
94
  /**
95
- * Big order ID.
96
- Note: this field may return null, indicating that no valid values can be obtained.
97
- * @type {Array.<string> || null}
95
+ * Private network port number
96
+ Note: this field may return `null`, indicating that no valid values can be obtained.
97
+ * @type {number || null}
98
98
  */
99
- this.BigDealIds = null;
99
+ this.Vport = null;
100
100
 
101
101
  /**
102
- * Order ID
103
- * @type {Array.<string> || null}
102
+ * Public network domain name
103
+ Note: this field may return `null`, indicating that no valid values can be obtained.
104
+ * @type {string || null}
104
105
  */
105
- this.DealNames = null;
106
+ this.WanDomain = null;
106
107
 
107
108
  /**
108
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
109
+ * Public network port number
110
+ Note: this field may return `null`, indicating that no valid values can be obtained.
111
+ * @type {number || null}
112
+ */
113
+ this.WanPort = null;
114
+
115
+ /**
116
+ * Network type. Valid values: `ro` (read-only), `rw` or `ha` (read-write)
117
+ Note: this field may return `null`, indicating that no valid values can be obtained.
109
118
  * @type {string || null}
110
119
  */
111
- this.RequestId = null;
120
+ this.NetType = null;
112
121
 
113
122
  }
114
123
 
@@ -119,10 +128,46 @@ Note: this field may return null, indicating that no valid values can be obtaine
119
128
  if (!params) {
120
129
  return;
121
130
  }
122
- this.TranId = 'TranId' in params ? params.TranId : null;
123
- this.BigDealIds = 'BigDealIds' in params ? params.BigDealIds : null;
124
- this.DealNames = 'DealNames' in params ? params.DealNames : null;
125
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
131
+ this.Vip = 'Vip' in params ? params.Vip : null;
132
+ this.Vport = 'Vport' in params ? params.Vport : null;
133
+ this.WanDomain = 'WanDomain' in params ? params.WanDomain : null;
134
+ this.WanPort = 'WanPort' in params ? params.WanPort : null;
135
+ this.NetType = 'NetType' in params ? params.NetType : null;
136
+
137
+ }
138
+ }
139
+
140
+ /**
141
+ * ModifyClusterName request structure.
142
+ * @class
143
+ */
144
+ class ModifyClusterNameRequest extends AbstractModel {
145
+ constructor(){
146
+ super();
147
+
148
+ /**
149
+ * Cluster ID
150
+ * @type {string || null}
151
+ */
152
+ this.ClusterId = null;
153
+
154
+ /**
155
+ * Cluster name
156
+ * @type {string || null}
157
+ */
158
+ this.ClusterName = null;
159
+
160
+ }
161
+
162
+ /**
163
+ * @private
164
+ */
165
+ deserialize(params) {
166
+ if (!params) {
167
+ return;
168
+ }
169
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
170
+ this.ClusterName = 'ClusterName' in params ? params.ClusterName : null;
126
171
 
127
172
  }
128
173
  }
@@ -237,6 +282,55 @@ class DescribeClustersRequest extends AbstractModel {
237
282
  }
238
283
  }
239
284
 
285
+ /**
286
+ * Newly created account
287
+ * @class
288
+ */
289
+ class NewAccount extends AbstractModel {
290
+ constructor(){
291
+ super();
292
+
293
+ /**
294
+ * Account name
295
+ * @type {string || null}
296
+ */
297
+ this.AccountName = null;
298
+
299
+ /**
300
+ * Password
301
+ * @type {string || null}
302
+ */
303
+ this.AccountPassword = null;
304
+
305
+ /**
306
+ * Host
307
+ * @type {string || null}
308
+ */
309
+ this.Host = null;
310
+
311
+ /**
312
+ * Description
313
+ * @type {string || null}
314
+ */
315
+ this.Description = null;
316
+
317
+ }
318
+
319
+ /**
320
+ * @private
321
+ */
322
+ deserialize(params) {
323
+ if (!params) {
324
+ return;
325
+ }
326
+ this.AccountName = 'AccountName' in params ? params.AccountName : null;
327
+ this.AccountPassword = 'AccountPassword' in params ? params.AccountPassword : null;
328
+ this.Host = 'Host' in params ? params.Host : null;
329
+ this.Description = 'Description' in params ? params.Description : null;
330
+
331
+ }
332
+ }
333
+
240
334
  /**
241
335
  * Details of purchasable instance specifications. `Cpu` and `Memory` determine the instance specification during instance creation. The value range of the storage capacity is [MinStorageSize,MaxStorageSize]
242
336
  * @class
@@ -286,6 +380,57 @@ class InstanceSpec extends AbstractModel {
286
380
  }
287
381
  }
288
382
 
383
+ /**
384
+ * UpgradeInstance response structure.
385
+ * @class
386
+ */
387
+ class UpgradeInstanceResponse extends AbstractModel {
388
+ constructor(){
389
+ super();
390
+
391
+ /**
392
+ * Freezing transaction ID
393
+ Note: this field may return null, indicating that no valid values can be obtained.
394
+ * @type {string || null}
395
+ */
396
+ this.TranId = null;
397
+
398
+ /**
399
+ * Big order ID.
400
+ Note: this field may return null, indicating that no valid values can be obtained.
401
+ * @type {Array.<string> || null}
402
+ */
403
+ this.BigDealIds = null;
404
+
405
+ /**
406
+ * Order ID
407
+ * @type {Array.<string> || null}
408
+ */
409
+ this.DealNames = null;
410
+
411
+ /**
412
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
413
+ * @type {string || null}
414
+ */
415
+ this.RequestId = null;
416
+
417
+ }
418
+
419
+ /**
420
+ * @private
421
+ */
422
+ deserialize(params) {
423
+ if (!params) {
424
+ return;
425
+ }
426
+ this.TranId = 'TranId' in params ? params.TranId : null;
427
+ this.BigDealIds = 'BigDealIds' in params ? params.BigDealIds : null;
428
+ this.DealNames = 'DealNames' in params ? params.DealNames : null;
429
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
430
+
431
+ }
432
+ }
433
+
289
434
  /**
290
435
  * DescribeProjectSecurityGroups request structure.
291
436
  * @class
@@ -689,6 +834,49 @@ class DescribeAccountsRequest extends AbstractModel {
689
834
  }
690
835
  }
691
836
 
837
+ /**
838
+ * CreateAccounts request structure.
839
+ * @class
840
+ */
841
+ class CreateAccountsRequest extends AbstractModel {
842
+ constructor(){
843
+ super();
844
+
845
+ /**
846
+ * Cluster ID
847
+ * @type {string || null}
848
+ */
849
+ this.ClusterId = null;
850
+
851
+ /**
852
+ * List of new accounts
853
+ * @type {Array.<NewAccount> || null}
854
+ */
855
+ this.Accounts = null;
856
+
857
+ }
858
+
859
+ /**
860
+ * @private
861
+ */
862
+ deserialize(params) {
863
+ if (!params) {
864
+ return;
865
+ }
866
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
867
+
868
+ if (params.Accounts) {
869
+ this.Accounts = new Array();
870
+ for (let z in params.Accounts) {
871
+ let obj = new NewAccount();
872
+ obj.deserialize(params.Accounts[z]);
873
+ this.Accounts.push(obj);
874
+ }
875
+ }
876
+
877
+ }
878
+ }
879
+
692
880
  /**
693
881
  * IsolateInstance request structure.
694
882
  * @class
@@ -922,6 +1110,34 @@ class ModifyMaintainPeriodConfigRequest extends AbstractModel {
922
1110
  }
923
1111
  }
924
1112
 
1113
+ /**
1114
+ * ResumeServerless request structure.
1115
+ * @class
1116
+ */
1117
+ class ResumeServerlessRequest extends AbstractModel {
1118
+ constructor(){
1119
+ super();
1120
+
1121
+ /**
1122
+ * Cluster ID
1123
+ * @type {string || null}
1124
+ */
1125
+ this.ClusterId = null;
1126
+
1127
+ }
1128
+
1129
+ /**
1130
+ * @private
1131
+ */
1132
+ deserialize(params) {
1133
+ if (!params) {
1134
+ return;
1135
+ }
1136
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
1137
+
1138
+ }
1139
+ }
1140
+
925
1141
  /**
926
1142
  * ModifyBackupConfig request structure.
927
1143
  * @class
@@ -1290,47 +1506,52 @@ class AddInstancesRequest extends AbstractModel {
1290
1506
  }
1291
1507
 
1292
1508
  /**
1293
- * Network information
1509
+ * CreateAccounts response structure.
1294
1510
  * @class
1295
1511
  */
1296
- class NetAddr extends AbstractModel {
1512
+ class CreateAccountsResponse extends AbstractModel {
1297
1513
  constructor(){
1298
1514
  super();
1299
1515
 
1300
1516
  /**
1301
- * Private network IP
1302
- Note: this field may return `null`, indicating that no valid values can be obtained.
1517
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1303
1518
  * @type {string || null}
1304
1519
  */
1305
- this.Vip = null;
1306
-
1307
- /**
1308
- * Private network port number
1309
- Note: this field may return `null`, indicating that no valid values can be obtained.
1310
- * @type {number || null}
1311
- */
1312
- this.Vport = null;
1520
+ this.RequestId = null;
1313
1521
 
1314
- /**
1315
- * Public network domain name
1316
- Note: this field may return `null`, indicating that no valid values can be obtained.
1317
- * @type {string || null}
1318
- */
1319
- this.WanDomain = null;
1522
+ }
1320
1523
 
1321
- /**
1322
- * Public network port number
1323
- Note: this field may return `null`, indicating that no valid values can be obtained.
1324
- * @type {number || null}
1524
+ /**
1525
+ * @private
1526
+ */
1527
+ deserialize(params) {
1528
+ if (!params) {
1529
+ return;
1530
+ }
1531
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1532
+
1533
+ }
1534
+ }
1535
+
1536
+ /**
1537
+ * ModifyInstanceName request structure.
1538
+ * @class
1539
+ */
1540
+ class ModifyInstanceNameRequest extends AbstractModel {
1541
+ constructor(){
1542
+ super();
1543
+
1544
+ /**
1545
+ * Instance ID
1546
+ * @type {string || null}
1325
1547
  */
1326
- this.WanPort = null;
1548
+ this.InstanceId = null;
1327
1549
 
1328
1550
  /**
1329
- * Network type. Valid values: `ro` (read-only), `rw` or `ha` (read-write)
1330
- Note: this field may return `null`, indicating that no valid values can be obtained.
1551
+ * Instance name
1331
1552
  * @type {string || null}
1332
1553
  */
1333
- this.NetType = null;
1554
+ this.InstanceName = null;
1334
1555
 
1335
1556
  }
1336
1557
 
@@ -1341,11 +1562,8 @@ Note: this field may return `null`, indicating that no valid values can be obtai
1341
1562
  if (!params) {
1342
1563
  return;
1343
1564
  }
1344
- this.Vip = 'Vip' in params ? params.Vip : null;
1345
- this.Vport = 'Vport' in params ? params.Vport : null;
1346
- this.WanDomain = 'WanDomain' in params ? params.WanDomain : null;
1347
- this.WanPort = 'WanPort' in params ? params.WanPort : null;
1348
- this.NetType = 'NetType' in params ? params.NetType : null;
1565
+ this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
1566
+ this.InstanceName = 'InstanceName' in params ? params.InstanceName : null;
1349
1567
 
1350
1568
  }
1351
1569
  }
@@ -2553,18 +2771,18 @@ class DescribeBackupListRequest extends AbstractModel {
2553
2771
  }
2554
2772
 
2555
2773
  /**
2556
- * ResumeServerless request structure.
2774
+ * ModifyInstanceName response structure.
2557
2775
  * @class
2558
2776
  */
2559
- class ResumeServerlessRequest extends AbstractModel {
2777
+ class ModifyInstanceNameResponse extends AbstractModel {
2560
2778
  constructor(){
2561
2779
  super();
2562
2780
 
2563
2781
  /**
2564
- * Cluster ID
2782
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2565
2783
  * @type {string || null}
2566
2784
  */
2567
- this.ClusterId = null;
2785
+ this.RequestId = null;
2568
2786
 
2569
2787
  }
2570
2788
 
@@ -2575,7 +2793,7 @@ class ResumeServerlessRequest extends AbstractModel {
2575
2793
  if (!params) {
2576
2794
  return;
2577
2795
  }
2578
- this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
2796
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2579
2797
 
2580
2798
  }
2581
2799
  }
@@ -2657,6 +2875,67 @@ class QueryFilter extends AbstractModel {
2657
2875
  }
2658
2876
  }
2659
2877
 
2878
+ /**
2879
+ * Task information
2880
+ * @class
2881
+ */
2882
+ class ObjectTask extends AbstractModel {
2883
+ constructor(){
2884
+ super();
2885
+
2886
+ /**
2887
+ * Auto-Incrementing task ID
2888
+ Note: this field may return null, indicating that no valid values can be obtained.
2889
+ * @type {number || null}
2890
+ */
2891
+ this.TaskId = null;
2892
+
2893
+ /**
2894
+ * Task type
2895
+ Note: this field may return null, indicating that no valid values can be obtained.
2896
+ * @type {string || null}
2897
+ */
2898
+ this.TaskType = null;
2899
+
2900
+ /**
2901
+ * Task status
2902
+ Note: this field may return null, indicating that no valid values can be obtained.
2903
+ * @type {string || null}
2904
+ */
2905
+ this.TaskStatus = null;
2906
+
2907
+ /**
2908
+ * Task ID (cluster ID | instance group ID | instance ID)
2909
+ Note: this field may return null, indicating that no valid values can be obtained.
2910
+ * @type {string || null}
2911
+ */
2912
+ this.ObjectId = null;
2913
+
2914
+ /**
2915
+ * Task type
2916
+ Note: this field may return null, indicating that no valid values can be obtained.
2917
+ * @type {string || null}
2918
+ */
2919
+ this.ObjectType = null;
2920
+
2921
+ }
2922
+
2923
+ /**
2924
+ * @private
2925
+ */
2926
+ deserialize(params) {
2927
+ if (!params) {
2928
+ return;
2929
+ }
2930
+ this.TaskId = 'TaskId' in params ? params.TaskId : null;
2931
+ this.TaskType = 'TaskType' in params ? params.TaskType : null;
2932
+ this.TaskStatus = 'TaskStatus' in params ? params.TaskStatus : null;
2933
+ this.ObjectId = 'ObjectId' in params ? params.ObjectId : null;
2934
+ this.ObjectType = 'ObjectType' in params ? params.ObjectType : null;
2935
+
2936
+ }
2937
+ }
2938
+
2660
2939
  /**
2661
2940
  * ModifyClusterParam request structure.
2662
2941
  * @class
@@ -3370,47 +3649,18 @@ class PauseServerlessRequest extends AbstractModel {
3370
3649
  }
3371
3650
 
3372
3651
  /**
3373
- * Task information
3652
+ * ModifyClusterName response structure.
3374
3653
  * @class
3375
3654
  */
3376
- class ObjectTask extends AbstractModel {
3655
+ class ModifyClusterNameResponse extends AbstractModel {
3377
3656
  constructor(){
3378
3657
  super();
3379
3658
 
3380
3659
  /**
3381
- * Auto-Incrementing task ID
3382
- Note: this field may return null, indicating that no valid values can be obtained.
3383
- * @type {number || null}
3384
- */
3385
- this.TaskId = null;
3386
-
3387
- /**
3388
- * Task type
3389
- Note: this field may return null, indicating that no valid values can be obtained.
3390
- * @type {string || null}
3391
- */
3392
- this.TaskType = null;
3393
-
3394
- /**
3395
- * Task status
3396
- Note: this field may return null, indicating that no valid values can be obtained.
3397
- * @type {string || null}
3398
- */
3399
- this.TaskStatus = null;
3400
-
3401
- /**
3402
- * Task ID (cluster ID | instance group ID | instance ID)
3403
- Note: this field may return null, indicating that no valid values can be obtained.
3404
- * @type {string || null}
3405
- */
3406
- this.ObjectId = null;
3407
-
3408
- /**
3409
- * Task type
3410
- Note: this field may return null, indicating that no valid values can be obtained.
3660
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
3411
3661
  * @type {string || null}
3412
3662
  */
3413
- this.ObjectType = null;
3663
+ this.RequestId = null;
3414
3664
 
3415
3665
  }
3416
3666
 
@@ -3421,11 +3671,7 @@ Note: this field may return null, indicating that no valid values can be obtaine
3421
3671
  if (!params) {
3422
3672
  return;
3423
3673
  }
3424
- this.TaskId = 'TaskId' in params ? params.TaskId : null;
3425
- this.TaskType = 'TaskType' in params ? params.TaskType : null;
3426
- this.TaskStatus = 'TaskStatus' in params ? params.TaskStatus : null;
3427
- this.ObjectId = 'ObjectId' in params ? params.ObjectId : null;
3428
- this.ObjectType = 'ObjectType' in params ? params.ObjectType : null;
3674
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
3429
3675
 
3430
3676
  }
3431
3677
  }
@@ -3580,74 +3826,6 @@ Note: this field may return null, indicating that no valid values can be obtaine
3580
3826
  }
3581
3827
  }
3582
3828
 
3583
- /**
3584
- * CreateClusters response structure.
3585
- * @class
3586
- */
3587
- class CreateClustersResponse extends AbstractModel {
3588
- constructor(){
3589
- super();
3590
-
3591
- /**
3592
- * Freezing transaction ID
3593
- Note: this field may return null, indicating that no valid values can be obtained.
3594
- * @type {string || null}
3595
- */
3596
- this.TranId = null;
3597
-
3598
- /**
3599
- * Order ID
3600
- Note: this field may return null, indicating that no valid values can be obtained.
3601
- * @type {Array.<string> || null}
3602
- */
3603
- this.DealNames = null;
3604
-
3605
- /**
3606
- * List of resource IDs (This field has been deprecated. Please use `dealNames` in the `DescribeResourcesByDealName` API to get resource IDs.)
3607
- Note: this field may return `null`, indicating that no valid values can be obtained.
3608
- * @type {Array.<string> || null}
3609
- */
3610
- this.ResourceIds = null;
3611
-
3612
- /**
3613
- * List of cluster IDs (This field has been deprecated. Please use `dealNames` in the `DescribeResourcesByDealName` API to get cluster IDs.)
3614
- Note: this field may return `null`, indicating that no valid values can be obtained.
3615
- * @type {Array.<string> || null}
3616
- */
3617
- this.ClusterIds = null;
3618
-
3619
- /**
3620
- * Big order ID.
3621
- Note: this field may return null, indicating that no valid values can be obtained.
3622
- * @type {Array.<string> || null}
3623
- */
3624
- this.BigDealIds = null;
3625
-
3626
- /**
3627
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
3628
- * @type {string || null}
3629
- */
3630
- this.RequestId = null;
3631
-
3632
- }
3633
-
3634
- /**
3635
- * @private
3636
- */
3637
- deserialize(params) {
3638
- if (!params) {
3639
- return;
3640
- }
3641
- this.TranId = 'TranId' in params ? params.TranId : null;
3642
- this.DealNames = 'DealNames' in params ? params.DealNames : null;
3643
- this.ResourceIds = 'ResourceIds' in params ? params.ResourceIds : null;
3644
- this.ClusterIds = 'ClusterIds' in params ? params.ClusterIds : null;
3645
- this.BigDealIds = 'BigDealIds' in params ? params.BigDealIds : null;
3646
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
3647
-
3648
- }
3649
- }
3650
-
3651
3829
  /**
3652
3830
  * SetRenewFlag request structure.
3653
3831
  * @class
@@ -3683,337 +3861,6 @@ class SetRenewFlagRequest extends AbstractModel {
3683
3861
  }
3684
3862
  }
3685
3863
 
3686
- /**
3687
- * CreateClusters request structure.
3688
- * @class
3689
- */
3690
- class CreateClustersRequest extends AbstractModel {
3691
- constructor(){
3692
- super();
3693
-
3694
- /**
3695
- * AZ
3696
- * @type {string || null}
3697
- */
3698
- this.Zone = null;
3699
-
3700
- /**
3701
- * VPC ID
3702
- * @type {string || null}
3703
- */
3704
- this.VpcId = null;
3705
-
3706
- /**
3707
- * Subnet ID
3708
- * @type {string || null}
3709
- */
3710
- this.SubnetId = null;
3711
-
3712
- /**
3713
- * Database type. Valid values:
3714
- <li> MYSQL </li>
3715
- * @type {string || null}
3716
- */
3717
- this.DbType = null;
3718
-
3719
- /**
3720
- * Database version. Valid values:
3721
- <li> Valid values for `MYSQL`: 5.7 </li>
3722
- * @type {string || null}
3723
- */
3724
- this.DbVersion = null;
3725
-
3726
- /**
3727
- * Project ID
3728
- * @type {number || null}
3729
- */
3730
- this.ProjectId = null;
3731
-
3732
- /**
3733
- * It is required when `DbMode` is set to `NORMAL` or left empty.
3734
- Number of CPU cores of a non-serverless instance
3735
- * @type {number || null}
3736
- */
3737
- this.Cpu = null;
3738
-
3739
- /**
3740
- * It is required when `DbMode` is set to `NORMAL` or left empty.
3741
- Memory of a non-serverless instance in GB
3742
- * @type {number || null}
3743
- */
3744
- this.Memory = null;
3745
-
3746
- /**
3747
- * This parameter has been deprecated.
3748
- Storage capacity in GB.
3749
- * @type {number || null}
3750
- */
3751
- this.Storage = null;
3752
-
3753
- /**
3754
- * Cluster name
3755
- * @type {string || null}
3756
- */
3757
- this.ClusterName = null;
3758
-
3759
- /**
3760
- * Account password (it must contain 8-64 characters in at least three of the following four types: uppercase letters, lowercase letters, digits, and symbols (~!@#$%^&*_-+=`|\(){}[]:;'<>,.?/).)
3761
- * @type {string || null}
3762
- */
3763
- this.AdminPassword = null;
3764
-
3765
- /**
3766
- * Port. Default value: 5432
3767
- * @type {number || null}
3768
- */
3769
- this.Port = null;
3770
-
3771
- /**
3772
- * Billing mode. 0: pay-as-you-go; 1: monthly subscription. Default value: 0
3773
- * @type {number || null}
3774
- */
3775
- this.PayMode = null;
3776
-
3777
- /**
3778
- * Number of purchased items. Currently, only 1 can be passed in. If this parameter is left empty, 1 will be used by default.
3779
- * @type {number || null}
3780
- */
3781
- this.Count = null;
3782
-
3783
- /**
3784
- * Rollback type:
3785
- noneRollback: no rollback
3786
- snapRollback: rollback by snapshot
3787
- timeRollback: rollback by time point
3788
- * @type {string || null}
3789
- */
3790
- this.RollbackStrategy = null;
3791
-
3792
- /**
3793
- * `snapshotId` for snapshot rollback or `queryId` for time point rollback. 0 indicates to determine whether the time point is valid
3794
- * @type {number || null}
3795
- */
3796
- this.RollbackId = null;
3797
-
3798
- /**
3799
- * Pass in the source cluster ID during rollback to find the source `poolId`
3800
- * @type {string || null}
3801
- */
3802
- this.OriginalClusterId = null;
3803
-
3804
- /**
3805
- * Specified time for time point rollback or snapshot time for snapshot rollback
3806
- * @type {string || null}
3807
- */
3808
- this.ExpectTime = null;
3809
-
3810
- /**
3811
- * This parameter has been deprecated.
3812
- Specified allowed time range for time point rollback
3813
- * @type {number || null}
3814
- */
3815
- this.ExpectTimeThresh = null;
3816
-
3817
- /**
3818
- * The maximum storage of a non-serverless instance in GB
3819
- If `DbType` is `MYSQL` and the storage billing mode is prepaid, the parameter value cannot exceed the maximum storage corresponding to the CPU and memory specifications.
3820
- * @type {number || null}
3821
- */
3822
- this.StorageLimit = null;
3823
-
3824
- /**
3825
- * Number of instances
3826
- * @type {number || null}
3827
- */
3828
- this.InstanceCount = null;
3829
-
3830
- /**
3831
- * Purchase duration of monthly subscription plan
3832
- * @type {number || null}
3833
- */
3834
- this.TimeSpan = null;
3835
-
3836
- /**
3837
- * Purchase duration unit of monthly subscription plan
3838
- * @type {string || null}
3839
- */
3840
- this.TimeUnit = null;
3841
-
3842
- /**
3843
- * Whether auto-renewal is enabled for monthly subscription plan
3844
- * @type {number || null}
3845
- */
3846
- this.AutoRenewFlag = null;
3847
-
3848
- /**
3849
- * Whether to automatically select a voucher. 1: yes; 0: no. Default value: 0
3850
- * @type {number || null}
3851
- */
3852
- this.AutoVoucher = null;
3853
-
3854
- /**
3855
- * Number of instances (this parameter has been disused and is retained only for compatibility with existing instances)
3856
- * @type {number || null}
3857
- */
3858
- this.HaCount = null;
3859
-
3860
- /**
3861
- * Order source
3862
- * @type {string || null}
3863
- */
3864
- this.OrderSource = null;
3865
-
3866
- /**
3867
- * Array of tags to be bound to the created cluster
3868
- * @type {Array.<Tag> || null}
3869
- */
3870
- this.ResourceTags = null;
3871
-
3872
- /**
3873
- * Database type
3874
- Valid values when `DbType` is `MYSQL` (default value: NORMAL):
3875
- <li>NORMAL</li>
3876
- <li>SERVERLESS</li>
3877
- * @type {string || null}
3878
- */
3879
- this.DbMode = null;
3880
-
3881
- /**
3882
- * This parameter is required if `DbMode` is `SERVERLESS`
3883
- Minimum number of CPU cores. For the value range, please see the returned result of `DescribeServerlessInstanceSpecs`
3884
- * @type {number || null}
3885
- */
3886
- this.MinCpu = null;
3887
-
3888
- /**
3889
- * This parameter is required if `DbMode` is `SERVERLESS`:
3890
- Maximum number of CPU cores. For the value range, please see the returned result of `DescribeServerlessInstanceSpecs`
3891
- * @type {number || null}
3892
- */
3893
- this.MaxCpu = null;
3894
-
3895
- /**
3896
- * This parameter specifies whether the cluster will be automatically paused if `DbMode` is `SERVERLESS`. Valid values:
3897
- <li>yes</li>
3898
- <li>no</li>
3899
- Default value: yes
3900
- * @type {string || null}
3901
- */
3902
- this.AutoPause = null;
3903
-
3904
- /**
3905
- * This parameter specifies the delay for automatic cluster pause in seconds if `DbMode` is `SERVERLESS`. Value range: [600,691200]
3906
- Default value: 600
3907
- * @type {number || null}
3908
- */
3909
- this.AutoPauseDelay = null;
3910
-
3911
- /**
3912
- * The billing mode of cluster storage. Valid values: `0` (postpaid), `1` (prepaid). Default value: `0`.
3913
- If `DbType` is `MYSQL` and the billing mode of cluster compute is pay-as-you-go (or the `DbMode` is `SERVERLESS`), the billing mode of cluster storage must be postpaid.
3914
- Clusters with storage billed in prepaid mode cannot be cloned or rolled back.
3915
- * @type {number || null}
3916
- */
3917
- this.StoragePayMode = null;
3918
-
3919
- /**
3920
- * Array of security group IDs
3921
- * @type {Array.<string> || null}
3922
- */
3923
- this.SecurityGroupIds = null;
3924
-
3925
- /**
3926
- * Array of alarm policy IDs
3927
- * @type {Array.<string> || null}
3928
- */
3929
- this.AlarmPolicyIds = null;
3930
-
3931
- /**
3932
- * Array of parameters
3933
- * @type {Array.<ParamItem> || null}
3934
- */
3935
- this.ClusterParams = null;
3936
-
3937
- /**
3938
- * Transaction mode. Valid values: `0` (place and pay for an order), `1` (place an order)
3939
- * @type {number || null}
3940
- */
3941
- this.DealMode = null;
3942
-
3943
- /**
3944
- * Parameter template ID
3945
- * @type {number || null}
3946
- */
3947
- this.ParamTemplateId = null;
3948
-
3949
- }
3950
-
3951
- /**
3952
- * @private
3953
- */
3954
- deserialize(params) {
3955
- if (!params) {
3956
- return;
3957
- }
3958
- this.Zone = 'Zone' in params ? params.Zone : null;
3959
- this.VpcId = 'VpcId' in params ? params.VpcId : null;
3960
- this.SubnetId = 'SubnetId' in params ? params.SubnetId : null;
3961
- this.DbType = 'DbType' in params ? params.DbType : null;
3962
- this.DbVersion = 'DbVersion' in params ? params.DbVersion : null;
3963
- this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
3964
- this.Cpu = 'Cpu' in params ? params.Cpu : null;
3965
- this.Memory = 'Memory' in params ? params.Memory : null;
3966
- this.Storage = 'Storage' in params ? params.Storage : null;
3967
- this.ClusterName = 'ClusterName' in params ? params.ClusterName : null;
3968
- this.AdminPassword = 'AdminPassword' in params ? params.AdminPassword : null;
3969
- this.Port = 'Port' in params ? params.Port : null;
3970
- this.PayMode = 'PayMode' in params ? params.PayMode : null;
3971
- this.Count = 'Count' in params ? params.Count : null;
3972
- this.RollbackStrategy = 'RollbackStrategy' in params ? params.RollbackStrategy : null;
3973
- this.RollbackId = 'RollbackId' in params ? params.RollbackId : null;
3974
- this.OriginalClusterId = 'OriginalClusterId' in params ? params.OriginalClusterId : null;
3975
- this.ExpectTime = 'ExpectTime' in params ? params.ExpectTime : null;
3976
- this.ExpectTimeThresh = 'ExpectTimeThresh' in params ? params.ExpectTimeThresh : null;
3977
- this.StorageLimit = 'StorageLimit' in params ? params.StorageLimit : null;
3978
- this.InstanceCount = 'InstanceCount' in params ? params.InstanceCount : null;
3979
- this.TimeSpan = 'TimeSpan' in params ? params.TimeSpan : null;
3980
- this.TimeUnit = 'TimeUnit' in params ? params.TimeUnit : null;
3981
- this.AutoRenewFlag = 'AutoRenewFlag' in params ? params.AutoRenewFlag : null;
3982
- this.AutoVoucher = 'AutoVoucher' in params ? params.AutoVoucher : null;
3983
- this.HaCount = 'HaCount' in params ? params.HaCount : null;
3984
- this.OrderSource = 'OrderSource' in params ? params.OrderSource : null;
3985
-
3986
- if (params.ResourceTags) {
3987
- this.ResourceTags = new Array();
3988
- for (let z in params.ResourceTags) {
3989
- let obj = new Tag();
3990
- obj.deserialize(params.ResourceTags[z]);
3991
- this.ResourceTags.push(obj);
3992
- }
3993
- }
3994
- this.DbMode = 'DbMode' in params ? params.DbMode : null;
3995
- this.MinCpu = 'MinCpu' in params ? params.MinCpu : null;
3996
- this.MaxCpu = 'MaxCpu' in params ? params.MaxCpu : null;
3997
- this.AutoPause = 'AutoPause' in params ? params.AutoPause : null;
3998
- this.AutoPauseDelay = 'AutoPauseDelay' in params ? params.AutoPauseDelay : null;
3999
- this.StoragePayMode = 'StoragePayMode' in params ? params.StoragePayMode : null;
4000
- this.SecurityGroupIds = 'SecurityGroupIds' in params ? params.SecurityGroupIds : null;
4001
- this.AlarmPolicyIds = 'AlarmPolicyIds' in params ? params.AlarmPolicyIds : null;
4002
-
4003
- if (params.ClusterParams) {
4004
- this.ClusterParams = new Array();
4005
- for (let z in params.ClusterParams) {
4006
- let obj = new ParamItem();
4007
- obj.deserialize(params.ClusterParams[z]);
4008
- this.ClusterParams.push(obj);
4009
- }
4010
- }
4011
- this.DealMode = 'DealMode' in params ? params.DealMode : null;
4012
- this.ParamTemplateId = 'ParamTemplateId' in params ? params.ParamTemplateId : null;
4013
-
4014
- }
4015
- }
4016
-
4017
3864
  /**
4018
3865
  * Cluster information
4019
3866
  * @class
@@ -4023,7 +3870,16 @@ class CynosdbCluster extends AbstractModel {
4023
3870
  super();
4024
3871
 
4025
3872
  /**
4026
- * Cluster status
3873
+ * Cluster status. Valid values are as follows:
3874
+ creating
3875
+ running
3876
+ isolating
3877
+ isolated
3878
+ activating (removing isolation)
3879
+ offlining (deactivating)
3880
+ offlined (deactivated)
3881
+ deleting
3882
+ deleted
4027
3883
  * @type {string || null}
4028
3884
  */
4029
3885
  this.Status = null;
@@ -4870,10 +4726,13 @@ class ModifyDBInstanceSecurityGroupsRequest extends AbstractModel {
4870
4726
 
4871
4727
  module.exports = {
4872
4728
  AddInstancesResponse: AddInstancesResponse,
4873
- UpgradeInstanceResponse: UpgradeInstanceResponse,
4729
+ NetAddr: NetAddr,
4730
+ ModifyClusterNameRequest: ModifyClusterNameRequest,
4874
4731
  Addr: Addr,
4875
4732
  DescribeClustersRequest: DescribeClustersRequest,
4733
+ NewAccount: NewAccount,
4876
4734
  InstanceSpec: InstanceSpec,
4735
+ UpgradeInstanceResponse: UpgradeInstanceResponse,
4877
4736
  DescribeProjectSecurityGroupsRequest: DescribeProjectSecurityGroupsRequest,
4878
4737
  ModifyClusterParamResponse: ModifyClusterParamResponse,
4879
4738
  BackupFileInfo: BackupFileInfo,
@@ -4883,11 +4742,13 @@ module.exports = {
4883
4742
  DescribeClusterInstanceGrpsRequest: DescribeClusterInstanceGrpsRequest,
4884
4743
  DescribeResourcesByDealNameResponse: DescribeResourcesByDealNameResponse,
4885
4744
  DescribeAccountsRequest: DescribeAccountsRequest,
4745
+ CreateAccountsRequest: CreateAccountsRequest,
4886
4746
  IsolateInstanceRequest: IsolateInstanceRequest,
4887
4747
  DescribeMaintainPeriodResponse: DescribeMaintainPeriodResponse,
4888
4748
  DescribeBackupListResponse: DescribeBackupListResponse,
4889
4749
  DescribeRollbackTimeRangeResponse: DescribeRollbackTimeRangeResponse,
4890
4750
  ModifyMaintainPeriodConfigRequest: ModifyMaintainPeriodConfigRequest,
4751
+ ResumeServerlessRequest: ResumeServerlessRequest,
4891
4752
  ModifyBackupConfigRequest: ModifyBackupConfigRequest,
4892
4753
  ActivateInstanceResponse: ActivateInstanceResponse,
4893
4754
  DescribeDBSecurityGroupsRequest: DescribeDBSecurityGroupsRequest,
@@ -4895,7 +4756,8 @@ module.exports = {
4895
4756
  IsolateClusterRequest: IsolateClusterRequest,
4896
4757
  DescribeClusterInstanceGrpsResponse: DescribeClusterInstanceGrpsResponse,
4897
4758
  AddInstancesRequest: AddInstancesRequest,
4898
- NetAddr: NetAddr,
4759
+ CreateAccountsResponse: CreateAccountsResponse,
4760
+ ModifyInstanceNameRequest: ModifyInstanceNameRequest,
4899
4761
  DescribeClusterDetailRequest: DescribeClusterDetailRequest,
4900
4762
  Tag: Tag,
4901
4763
  DescribeProjectSecurityGroupsResponse: DescribeProjectSecurityGroupsResponse,
@@ -4914,9 +4776,10 @@ module.exports = {
4914
4776
  DescribeResourcesByDealNameRequest: DescribeResourcesByDealNameRequest,
4915
4777
  IsolateInstanceResponse: IsolateInstanceResponse,
4916
4778
  DescribeBackupListRequest: DescribeBackupListRequest,
4917
- ResumeServerlessRequest: ResumeServerlessRequest,
4779
+ ModifyInstanceNameResponse: ModifyInstanceNameResponse,
4918
4780
  DescribeRollbackTimeRangeRequest: DescribeRollbackTimeRangeRequest,
4919
4781
  QueryFilter: QueryFilter,
4782
+ ObjectTask: ObjectTask,
4920
4783
  ModifyClusterParamRequest: ModifyClusterParamRequest,
4921
4784
  CynosdbInstance: CynosdbInstance,
4922
4785
  DescribeAccountsResponse: DescribeAccountsResponse,
@@ -4927,14 +4790,12 @@ module.exports = {
4927
4790
  OfflineClusterResponse: OfflineClusterResponse,
4928
4791
  DescribeInstanceSpecsResponse: DescribeInstanceSpecsResponse,
4929
4792
  PauseServerlessRequest: PauseServerlessRequest,
4930
- ObjectTask: ObjectTask,
4793
+ ModifyClusterNameResponse: ModifyClusterNameResponse,
4931
4794
  SetRenewFlagResponse: SetRenewFlagResponse,
4932
4795
  DescribeInstanceSpecsRequest: DescribeInstanceSpecsRequest,
4933
4796
  ParamItem: ParamItem,
4934
4797
  IsolateClusterResponse: IsolateClusterResponse,
4935
- CreateClustersResponse: CreateClustersResponse,
4936
4798
  SetRenewFlagRequest: SetRenewFlagRequest,
4937
- CreateClustersRequest: CreateClustersRequest,
4938
4799
  CynosdbCluster: CynosdbCluster,
4939
4800
  OfflineClusterRequest: OfflineClusterRequest,
4940
4801
  DescribeClusterDetailResponse: DescribeClusterDetailResponse,