tencentcloud-sdk-nodejs-intl-en 3.0.1462 → 3.0.1464
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.
- package/package.json +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/faceid/v20180301/models.js +10 -0
- package/tencentcloud/mongodb/v20190725/models.js +1296 -103
- package/tencentcloud/mongodb/v20190725/mongodb_client.js +123 -14
- package/tencentcloud/teo/v20220901/models.js +219 -36
- package/tencentcloud/teo/v20220901/teo_client.js +38 -8
|
@@ -575,6 +575,41 @@ class DBInstancePrice extends AbstractModel {
|
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
|
|
578
|
+
/**
|
|
579
|
+
* Role
|
|
580
|
+
* @class
|
|
581
|
+
*/
|
|
582
|
+
class Role extends AbstractModel {
|
|
583
|
+
constructor(){
|
|
584
|
+
super();
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* <p>role name</p>
|
|
588
|
+
* @type {string || null}
|
|
589
|
+
*/
|
|
590
|
+
this.RoleName = null;
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* <p>Role belongs to db</p>
|
|
594
|
+
* @type {string || null}
|
|
595
|
+
*/
|
|
596
|
+
this.Database = null;
|
|
597
|
+
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* @private
|
|
602
|
+
*/
|
|
603
|
+
deserialize(params) {
|
|
604
|
+
if (!params) {
|
|
605
|
+
return;
|
|
606
|
+
}
|
|
607
|
+
this.RoleName = 'RoleName' in params ? params.RoleName : null;
|
|
608
|
+
this.Database = 'Database' in params ? params.Database : null;
|
|
609
|
+
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
|
|
578
613
|
/**
|
|
579
614
|
* DescribePasswordRotation response structure.
|
|
580
615
|
* @class
|
|
@@ -972,6 +1007,46 @@ class DescribeCurrentOpResponse extends AbstractModel {
|
|
|
972
1007
|
}
|
|
973
1008
|
}
|
|
974
1009
|
|
|
1010
|
+
/**
|
|
1011
|
+
* Role permission
|
|
1012
|
+
* @class
|
|
1013
|
+
*/
|
|
1014
|
+
class RolePrivilege extends AbstractModel {
|
|
1015
|
+
constructor(){
|
|
1016
|
+
super();
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* <p>Resource</p>
|
|
1020
|
+
* @type {RoleResource || null}
|
|
1021
|
+
*/
|
|
1022
|
+
this.Resource = null;
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* <p>Action</p>
|
|
1026
|
+
* @type {Array.<string> || null}
|
|
1027
|
+
*/
|
|
1028
|
+
this.Actions = null;
|
|
1029
|
+
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* @private
|
|
1034
|
+
*/
|
|
1035
|
+
deserialize(params) {
|
|
1036
|
+
if (!params) {
|
|
1037
|
+
return;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
if (params.Resource) {
|
|
1041
|
+
let obj = new RoleResource();
|
|
1042
|
+
obj.deserialize(params.Resource)
|
|
1043
|
+
this.Resource = obj;
|
|
1044
|
+
}
|
|
1045
|
+
this.Actions = 'Actions' in params ? params.Actions : null;
|
|
1046
|
+
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
|
|
975
1050
|
/**
|
|
976
1051
|
* SetDBInstanceDeletionProtection request structure.
|
|
977
1052
|
* @class
|
|
@@ -1633,6 +1708,69 @@ class AssignProjectResponse extends AbstractModel {
|
|
|
1633
1708
|
}
|
|
1634
1709
|
}
|
|
1635
1710
|
|
|
1711
|
+
/**
|
|
1712
|
+
* ModifyInstanceAz request structure.
|
|
1713
|
+
* @class
|
|
1714
|
+
*/
|
|
1715
|
+
class ModifyInstanceAzRequest extends AbstractModel {
|
|
1716
|
+
constructor(){
|
|
1717
|
+
super();
|
|
1718
|
+
|
|
1719
|
+
/**
|
|
1720
|
+
* <p>Instance ID, such as cmgo-p8vn****. Log in to the <a href="https://console.cloud.tencent.com/mongodb">MongoDB console</a> and copy the instance ID from the instance list.</p>
|
|
1721
|
+
* @type {string || null}
|
|
1722
|
+
*/
|
|
1723
|
+
this.InstanceId = null;
|
|
1724
|
+
|
|
1725
|
+
/**
|
|
1726
|
+
* <p>Availability zone ID where the primary node is located. For the method for obtaining, please see <a href="https://www.tencentcloud.com/document/product/240/3637?from_cn_redirect=1">Regions and Availability Zones</a>.</p>
|
|
1727
|
+
* @type {string || null}
|
|
1728
|
+
*/
|
|
1729
|
+
this.PrimaryNodeZone = null;
|
|
1730
|
+
|
|
1731
|
+
/**
|
|
1732
|
+
* <p>ID list of the availability zone where the secondary node resides.<br><strong>Note</strong>: It cannot contain the availability zones where the primary node and Hidden nodes reside.</p>
|
|
1733
|
+
* @type {Array.<string> || null}
|
|
1734
|
+
*/
|
|
1735
|
+
this.SecondaryNodeZone = null;
|
|
1736
|
+
|
|
1737
|
+
/**
|
|
1738
|
+
* <p>If the current instance has no configuration for Hidden nodes, this parameter is not required.</p>
|
|
1739
|
+
* @type {string || null}
|
|
1740
|
+
*/
|
|
1741
|
+
this.HiddenNodeZone = null;
|
|
1742
|
+
|
|
1743
|
+
/**
|
|
1744
|
+
* <p>List of AZ IDs where read-only nodes reside.<br><strong>Note</strong>: If the current instance contains read-only nodes, this parameter is required.</p>
|
|
1745
|
+
* @type {Array.<string> || null}
|
|
1746
|
+
*/
|
|
1747
|
+
this.ReadonlyNodeZone = null;
|
|
1748
|
+
|
|
1749
|
+
/**
|
|
1750
|
+
* <p>Specify the time policy for executing the availability zone switch.</p><ul><li>0: Execute the switch immediately.</li><li>1: Execute the switch within the set maintenance window. For details, please refer to <a href="https://www.tencentcloud.com/document/product/240/19910?from_cn_redirect=1">setting instance maintenance time</a>.</li></ul>
|
|
1751
|
+
* @type {number || null}
|
|
1752
|
+
*/
|
|
1753
|
+
this.InMaintenance = null;
|
|
1754
|
+
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
/**
|
|
1758
|
+
* @private
|
|
1759
|
+
*/
|
|
1760
|
+
deserialize(params) {
|
|
1761
|
+
if (!params) {
|
|
1762
|
+
return;
|
|
1763
|
+
}
|
|
1764
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
1765
|
+
this.PrimaryNodeZone = 'PrimaryNodeZone' in params ? params.PrimaryNodeZone : null;
|
|
1766
|
+
this.SecondaryNodeZone = 'SecondaryNodeZone' in params ? params.SecondaryNodeZone : null;
|
|
1767
|
+
this.HiddenNodeZone = 'HiddenNodeZone' in params ? params.HiddenNodeZone : null;
|
|
1768
|
+
this.ReadonlyNodeZone = 'ReadonlyNodeZone' in params ? params.ReadonlyNodeZone : null;
|
|
1769
|
+
this.InMaintenance = 'InMaintenance' in params ? params.InMaintenance : null;
|
|
1770
|
+
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1636
1774
|
/**
|
|
1637
1775
|
* Audit log filter criteria
|
|
1638
1776
|
* @class
|
|
@@ -2200,13 +2338,25 @@ class AddNodeList extends AbstractModel {
|
|
|
2200
2338
|
}
|
|
2201
2339
|
|
|
2202
2340
|
/**
|
|
2203
|
-
*
|
|
2341
|
+
* DescribeInstanceRoles response structure.
|
|
2204
2342
|
* @class
|
|
2205
2343
|
*/
|
|
2206
|
-
class
|
|
2344
|
+
class DescribeInstanceRolesResponse extends AbstractModel {
|
|
2207
2345
|
constructor(){
|
|
2208
2346
|
super();
|
|
2209
2347
|
|
|
2348
|
+
/**
|
|
2349
|
+
* <p>Total.</p>
|
|
2350
|
+
* @type {number || null}
|
|
2351
|
+
*/
|
|
2352
|
+
this.Total = null;
|
|
2353
|
+
|
|
2354
|
+
/**
|
|
2355
|
+
* <p>List of characters.</p>
|
|
2356
|
+
* @type {Array.<RoleInfo> || null}
|
|
2357
|
+
*/
|
|
2358
|
+
this.Roles = null;
|
|
2359
|
+
|
|
2210
2360
|
/**
|
|
2211
2361
|
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
2212
2362
|
* @type {string || null}
|
|
@@ -2222,6 +2372,16 @@ class EnablePasswordRotationResponse extends AbstractModel {
|
|
|
2222
2372
|
if (!params) {
|
|
2223
2373
|
return;
|
|
2224
2374
|
}
|
|
2375
|
+
this.Total = 'Total' in params ? params.Total : null;
|
|
2376
|
+
|
|
2377
|
+
if (params.Roles) {
|
|
2378
|
+
this.Roles = new Array();
|
|
2379
|
+
for (let z in params.Roles) {
|
|
2380
|
+
let obj = new RoleInfo();
|
|
2381
|
+
obj.deserialize(params.Roles[z]);
|
|
2382
|
+
this.Roles.push(obj);
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2225
2385
|
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
2226
2386
|
|
|
2227
2387
|
}
|
|
@@ -2298,19 +2458,13 @@ class ParamType extends AbstractModel {
|
|
|
2298
2458
|
}
|
|
2299
2459
|
|
|
2300
2460
|
/**
|
|
2301
|
-
*
|
|
2461
|
+
* EnablePasswordRotation response structure.
|
|
2302
2462
|
* @class
|
|
2303
2463
|
*/
|
|
2304
|
-
class
|
|
2464
|
+
class EnablePasswordRotationResponse extends AbstractModel {
|
|
2305
2465
|
constructor(){
|
|
2306
2466
|
super();
|
|
2307
2467
|
|
|
2308
|
-
/**
|
|
2309
|
-
* Task ID.
|
|
2310
|
-
* @type {number || null}
|
|
2311
|
-
*/
|
|
2312
|
-
this.FlowId = null;
|
|
2313
|
-
|
|
2314
2468
|
/**
|
|
2315
2469
|
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
2316
2470
|
* @type {string || null}
|
|
@@ -2326,7 +2480,6 @@ class SetAccountUserPrivilegeResponse extends AbstractModel {
|
|
|
2326
2480
|
if (!params) {
|
|
2327
2481
|
return;
|
|
2328
2482
|
}
|
|
2329
|
-
this.FlowId = 'FlowId' in params ? params.FlowId : null;
|
|
2330
2483
|
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
2331
2484
|
|
|
2332
2485
|
}
|
|
@@ -3015,18 +3168,18 @@ class DescribeDetailedSlowLogsRequest extends AbstractModel {
|
|
|
3015
3168
|
}
|
|
3016
3169
|
|
|
3017
3170
|
/**
|
|
3018
|
-
*
|
|
3171
|
+
* CreateInstanceUser response structure.
|
|
3019
3172
|
* @class
|
|
3020
3173
|
*/
|
|
3021
|
-
class
|
|
3174
|
+
class CreateInstanceUserResponse extends AbstractModel {
|
|
3022
3175
|
constructor(){
|
|
3023
3176
|
super();
|
|
3024
3177
|
|
|
3025
3178
|
/**
|
|
3026
|
-
* <p>
|
|
3027
|
-
* @type {
|
|
3179
|
+
* <p>Asynchronous task ID.</p>
|
|
3180
|
+
* @type {number || null}
|
|
3028
3181
|
*/
|
|
3029
|
-
this.
|
|
3182
|
+
this.FlowId = null;
|
|
3030
3183
|
|
|
3031
3184
|
/**
|
|
3032
3185
|
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
@@ -3043,7 +3196,7 @@ class ModifyInstanceAzResponse extends AbstractModel {
|
|
|
3043
3196
|
if (!params) {
|
|
3044
3197
|
return;
|
|
3045
3198
|
}
|
|
3046
|
-
this.
|
|
3199
|
+
this.FlowId = 'FlowId' in params ? params.FlowId : null;
|
|
3047
3200
|
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
3048
3201
|
|
|
3049
3202
|
}
|
|
@@ -3101,24 +3254,66 @@ class UpgradeDbInstanceVersionRequest extends AbstractModel {
|
|
|
3101
3254
|
}
|
|
3102
3255
|
|
|
3103
3256
|
/**
|
|
3104
|
-
*
|
|
3257
|
+
* Account information
|
|
3105
3258
|
* @class
|
|
3106
3259
|
*/
|
|
3107
|
-
class
|
|
3260
|
+
class InstanceUserInfo extends AbstractModel {
|
|
3108
3261
|
constructor(){
|
|
3109
3262
|
super();
|
|
3110
3263
|
|
|
3111
3264
|
/**
|
|
3112
|
-
*
|
|
3265
|
+
* <p>Username.</p>
|
|
3266
|
+
* @type {string || null}
|
|
3267
|
+
*/
|
|
3268
|
+
this.UserName = null;
|
|
3269
|
+
|
|
3270
|
+
/**
|
|
3271
|
+
* <p>Authentication database</p>
|
|
3272
|
+
* @type {string || null}
|
|
3273
|
+
*/
|
|
3274
|
+
this.Database = null;
|
|
3275
|
+
|
|
3276
|
+
/**
|
|
3277
|
+
* <p>Get role list (new method)</p>
|
|
3278
|
+
* @type {Array.<Role> || null}
|
|
3279
|
+
*/
|
|
3280
|
+
this.Roles = null;
|
|
3281
|
+
|
|
3282
|
+
/**
|
|
3283
|
+
* <p>Permission list (old method)</p>
|
|
3284
|
+
* @type {Array.<Auth> || null}
|
|
3285
|
+
*/
|
|
3286
|
+
this.AuthRole = null;
|
|
3287
|
+
|
|
3288
|
+
/**
|
|
3289
|
+
* <p>Creation time.</p>
|
|
3290
|
+
* @type {string || null}
|
|
3291
|
+
*/
|
|
3292
|
+
this.CreateTime = null;
|
|
3293
|
+
|
|
3294
|
+
/**
|
|
3295
|
+
* <p>Update time.</p>
|
|
3296
|
+
* @type {string || null}
|
|
3297
|
+
*/
|
|
3298
|
+
this.UpdateTime = null;
|
|
3299
|
+
|
|
3300
|
+
/**
|
|
3301
|
+
* <p>Console password last update time</p>
|
|
3302
|
+
* @type {string || null}
|
|
3303
|
+
*/
|
|
3304
|
+
this.ConsolePassUpdateTime = null;
|
|
3305
|
+
|
|
3306
|
+
/**
|
|
3307
|
+
* <p>Whether to enable password rotation</p>
|
|
3113
3308
|
* @type {number || null}
|
|
3114
3309
|
*/
|
|
3115
|
-
this.
|
|
3310
|
+
this.EnablePasswordRotation = null;
|
|
3116
3311
|
|
|
3117
3312
|
/**
|
|
3118
|
-
*
|
|
3313
|
+
* <p>Custom description</p>
|
|
3119
3314
|
* @type {string || null}
|
|
3120
3315
|
*/
|
|
3121
|
-
this.
|
|
3316
|
+
this.Description = null;
|
|
3122
3317
|
|
|
3123
3318
|
}
|
|
3124
3319
|
|
|
@@ -3129,8 +3324,31 @@ class ModifyDBInstanceNetworkAddressResponse extends AbstractModel {
|
|
|
3129
3324
|
if (!params) {
|
|
3130
3325
|
return;
|
|
3131
3326
|
}
|
|
3132
|
-
this.
|
|
3133
|
-
this.
|
|
3327
|
+
this.UserName = 'UserName' in params ? params.UserName : null;
|
|
3328
|
+
this.Database = 'Database' in params ? params.Database : null;
|
|
3329
|
+
|
|
3330
|
+
if (params.Roles) {
|
|
3331
|
+
this.Roles = new Array();
|
|
3332
|
+
for (let z in params.Roles) {
|
|
3333
|
+
let obj = new Role();
|
|
3334
|
+
obj.deserialize(params.Roles[z]);
|
|
3335
|
+
this.Roles.push(obj);
|
|
3336
|
+
}
|
|
3337
|
+
}
|
|
3338
|
+
|
|
3339
|
+
if (params.AuthRole) {
|
|
3340
|
+
this.AuthRole = new Array();
|
|
3341
|
+
for (let z in params.AuthRole) {
|
|
3342
|
+
let obj = new Auth();
|
|
3343
|
+
obj.deserialize(params.AuthRole[z]);
|
|
3344
|
+
this.AuthRole.push(obj);
|
|
3345
|
+
}
|
|
3346
|
+
}
|
|
3347
|
+
this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
|
|
3348
|
+
this.UpdateTime = 'UpdateTime' in params ? params.UpdateTime : null;
|
|
3349
|
+
this.ConsolePassUpdateTime = 'ConsolePassUpdateTime' in params ? params.ConsolePassUpdateTime : null;
|
|
3350
|
+
this.EnablePasswordRotation = 'EnablePasswordRotation' in params ? params.EnablePasswordRotation : null;
|
|
3351
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
3134
3352
|
|
|
3135
3353
|
}
|
|
3136
3354
|
}
|
|
@@ -3629,41 +3847,24 @@ class DescribeDBInstancesRequest extends AbstractModel {
|
|
|
3629
3847
|
}
|
|
3630
3848
|
|
|
3631
3849
|
/**
|
|
3632
|
-
*
|
|
3850
|
+
* DescribeInstanceUsers response structure.
|
|
3633
3851
|
* @class
|
|
3634
3852
|
*/
|
|
3635
|
-
class
|
|
3853
|
+
class DescribeInstanceUsersResponse extends AbstractModel {
|
|
3636
3854
|
constructor(){
|
|
3637
3855
|
super();
|
|
3638
3856
|
|
|
3639
3857
|
/**
|
|
3640
|
-
*
|
|
3641
|
-
|
|
3642
|
-
- 1: enabled.
|
|
3643
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3644
|
-
* @type {number || null}
|
|
3645
|
-
*/
|
|
3646
|
-
this.Status = null;
|
|
3647
|
-
|
|
3648
|
-
/**
|
|
3649
|
-
* Certificate file expiration time, in the format of 2023-05-01 12:00:00.
|
|
3650
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3651
|
-
* @type {string || null}
|
|
3652
|
-
*/
|
|
3653
|
-
this.ExpiredTime = null;
|
|
3654
|
-
|
|
3655
|
-
/**
|
|
3656
|
-
* Download URL of the certificate file.
|
|
3657
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3658
|
-
* @type {string || null}
|
|
3858
|
+
* <p>Account list</p>
|
|
3859
|
+
* @type {Array.<InstanceUserInfo> || null}
|
|
3659
3860
|
*/
|
|
3660
|
-
this.
|
|
3861
|
+
this.Users = null;
|
|
3661
3862
|
|
|
3662
3863
|
/**
|
|
3663
|
-
*
|
|
3864
|
+
* <p>Total.</p>
|
|
3664
3865
|
* @type {number || null}
|
|
3665
3866
|
*/
|
|
3666
|
-
this.
|
|
3867
|
+
this.Total = null;
|
|
3667
3868
|
|
|
3668
3869
|
/**
|
|
3669
3870
|
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
@@ -3680,10 +3881,16 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3680
3881
|
if (!params) {
|
|
3681
3882
|
return;
|
|
3682
3883
|
}
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3884
|
+
|
|
3885
|
+
if (params.Users) {
|
|
3886
|
+
this.Users = new Array();
|
|
3887
|
+
for (let z in params.Users) {
|
|
3888
|
+
let obj = new InstanceUserInfo();
|
|
3889
|
+
obj.deserialize(params.Users[z]);
|
|
3890
|
+
this.Users.push(obj);
|
|
3891
|
+
}
|
|
3892
|
+
}
|
|
3893
|
+
this.Total = 'Total' in params ? params.Total : null;
|
|
3687
3894
|
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
3688
3895
|
|
|
3689
3896
|
}
|
|
@@ -3980,7 +4187,6 @@ class Auth extends AbstractModel {
|
|
|
3980
4187
|
- 0: no permissions.
|
|
3981
4188
|
- 1: read-only.
|
|
3982
4189
|
- 3: read-write.
|
|
3983
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3984
4190
|
* @type {number || null}
|
|
3985
4191
|
*/
|
|
3986
4192
|
this.Mask = null;
|
|
@@ -3989,7 +4195,6 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3989
4195
|
* Specifies the name of the database that has the current account permissions.
|
|
3990
4196
|
- \*: indicates all databases.
|
|
3991
4197
|
- db.name: indicates the database with a specific name.
|
|
3992
|
-
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3993
4198
|
* @type {string || null}
|
|
3994
4199
|
*/
|
|
3995
4200
|
this.NameSpace = null;
|
|
@@ -4054,21 +4259,63 @@ class ResetDBInstancePasswordRequest extends AbstractModel {
|
|
|
4054
4259
|
}
|
|
4055
4260
|
|
|
4056
4261
|
/**
|
|
4057
|
-
*
|
|
4262
|
+
* DeleteInstanceRole request structure.
|
|
4058
4263
|
* @class
|
|
4059
4264
|
*/
|
|
4060
|
-
class
|
|
4265
|
+
class DeleteInstanceRoleRequest extends AbstractModel {
|
|
4061
4266
|
constructor(){
|
|
4062
4267
|
super();
|
|
4063
4268
|
|
|
4064
4269
|
/**
|
|
4065
|
-
*
|
|
4270
|
+
* <p>Instance id</p>
|
|
4066
4271
|
* @type {string || null}
|
|
4067
4272
|
*/
|
|
4068
|
-
this.
|
|
4273
|
+
this.InstanceId = null;
|
|
4069
4274
|
|
|
4070
4275
|
/**
|
|
4071
|
-
*
|
|
4276
|
+
* <p>Role name</p>
|
|
4277
|
+
* @type {string || null}
|
|
4278
|
+
*/
|
|
4279
|
+
this.RoleName = null;
|
|
4280
|
+
|
|
4281
|
+
/**
|
|
4282
|
+
* <p>Database of the character.</p>
|
|
4283
|
+
* @type {string || null}
|
|
4284
|
+
*/
|
|
4285
|
+
this.Database = null;
|
|
4286
|
+
|
|
4287
|
+
}
|
|
4288
|
+
|
|
4289
|
+
/**
|
|
4290
|
+
* @private
|
|
4291
|
+
*/
|
|
4292
|
+
deserialize(params) {
|
|
4293
|
+
if (!params) {
|
|
4294
|
+
return;
|
|
4295
|
+
}
|
|
4296
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
4297
|
+
this.RoleName = 'RoleName' in params ? params.RoleName : null;
|
|
4298
|
+
this.Database = 'Database' in params ? params.Database : null;
|
|
4299
|
+
|
|
4300
|
+
}
|
|
4301
|
+
}
|
|
4302
|
+
|
|
4303
|
+
/**
|
|
4304
|
+
* Collection of modifiable instance parameters of the Integer type.
|
|
4305
|
+
* @class
|
|
4306
|
+
*/
|
|
4307
|
+
class InstanceIntegerParam extends AbstractModel {
|
|
4308
|
+
constructor(){
|
|
4309
|
+
super();
|
|
4310
|
+
|
|
4311
|
+
/**
|
|
4312
|
+
* Current parameter value.
|
|
4313
|
+
* @type {string || null}
|
|
4314
|
+
*/
|
|
4315
|
+
this.CurrentValue = null;
|
|
4316
|
+
|
|
4317
|
+
/**
|
|
4318
|
+
* Default parameter value.
|
|
4072
4319
|
* @type {string || null}
|
|
4073
4320
|
*/
|
|
4074
4321
|
this.DefaultValue = null;
|
|
@@ -4149,48 +4396,66 @@ class InstanceIntegerParam extends AbstractModel {
|
|
|
4149
4396
|
}
|
|
4150
4397
|
|
|
4151
4398
|
/**
|
|
4152
|
-
*
|
|
4399
|
+
* CreateInstanceUser request structure.
|
|
4153
4400
|
* @class
|
|
4154
4401
|
*/
|
|
4155
|
-
class
|
|
4402
|
+
class CreateInstanceUserRequest extends AbstractModel {
|
|
4156
4403
|
constructor(){
|
|
4157
4404
|
super();
|
|
4158
4405
|
|
|
4159
4406
|
/**
|
|
4160
|
-
* <p>Instance
|
|
4407
|
+
* <p>Instance id</p>
|
|
4161
4408
|
* @type {string || null}
|
|
4162
4409
|
*/
|
|
4163
4410
|
this.InstanceId = null;
|
|
4164
4411
|
|
|
4165
4412
|
/**
|
|
4166
|
-
* <p>
|
|
4413
|
+
* <p>Username.</p>
|
|
4167
4414
|
* @type {string || null}
|
|
4168
4415
|
*/
|
|
4169
|
-
this.
|
|
4416
|
+
this.UserName = null;
|
|
4170
4417
|
|
|
4171
4418
|
/**
|
|
4172
|
-
* <p>
|
|
4173
|
-
* @type {
|
|
4419
|
+
* <p>Password</p>
|
|
4420
|
+
* @type {string || null}
|
|
4174
4421
|
*/
|
|
4175
|
-
this.
|
|
4422
|
+
this.Password = null;
|
|
4176
4423
|
|
|
4177
4424
|
/**
|
|
4178
|
-
* <p>
|
|
4425
|
+
* <p>Encrypted password (choose either this or Password)</p>
|
|
4179
4426
|
* @type {string || null}
|
|
4180
4427
|
*/
|
|
4181
|
-
this.
|
|
4428
|
+
this.EncryptedPassword = null;
|
|
4182
4429
|
|
|
4183
4430
|
/**
|
|
4184
|
-
* <p>
|
|
4185
|
-
* @type {
|
|
4431
|
+
* <p>Authentication database (Belonging Database of the user).</p>
|
|
4432
|
+
* @type {string || null}
|
|
4186
4433
|
*/
|
|
4187
|
-
this.
|
|
4434
|
+
this.Database = null;
|
|
4188
4435
|
|
|
4189
4436
|
/**
|
|
4190
|
-
* <p>
|
|
4437
|
+
* <p>Get role list (new method, can include built-in role and custom role)</p>
|
|
4438
|
+
* @type {Array.<Role> || null}
|
|
4439
|
+
*/
|
|
4440
|
+
this.Roles = null;
|
|
4441
|
+
|
|
4442
|
+
/**
|
|
4443
|
+
* <p>Permission list (old method)</p>
|
|
4444
|
+
* @type {Array.<Auth> || null}
|
|
4445
|
+
*/
|
|
4446
|
+
this.AuthRole = null;
|
|
4447
|
+
|
|
4448
|
+
/**
|
|
4449
|
+
* <p>Custom description.</p>
|
|
4450
|
+
* @type {string || null}
|
|
4451
|
+
*/
|
|
4452
|
+
this.Description = null;
|
|
4453
|
+
|
|
4454
|
+
/**
|
|
4455
|
+
* <p>Whether password rotation is enabled (0: not enabled, 1: enabled)</p>
|
|
4191
4456
|
* @type {number || null}
|
|
4192
4457
|
*/
|
|
4193
|
-
this.
|
|
4458
|
+
this.EnablePasswordRotation = null;
|
|
4194
4459
|
|
|
4195
4460
|
}
|
|
4196
4461
|
|
|
@@ -4202,11 +4467,30 @@ class ModifyInstanceAzRequest extends AbstractModel {
|
|
|
4202
4467
|
return;
|
|
4203
4468
|
}
|
|
4204
4469
|
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
4205
|
-
this.
|
|
4206
|
-
this.
|
|
4207
|
-
this.
|
|
4208
|
-
this.
|
|
4209
|
-
|
|
4470
|
+
this.UserName = 'UserName' in params ? params.UserName : null;
|
|
4471
|
+
this.Password = 'Password' in params ? params.Password : null;
|
|
4472
|
+
this.EncryptedPassword = 'EncryptedPassword' in params ? params.EncryptedPassword : null;
|
|
4473
|
+
this.Database = 'Database' in params ? params.Database : null;
|
|
4474
|
+
|
|
4475
|
+
if (params.Roles) {
|
|
4476
|
+
this.Roles = new Array();
|
|
4477
|
+
for (let z in params.Roles) {
|
|
4478
|
+
let obj = new Role();
|
|
4479
|
+
obj.deserialize(params.Roles[z]);
|
|
4480
|
+
this.Roles.push(obj);
|
|
4481
|
+
}
|
|
4482
|
+
}
|
|
4483
|
+
|
|
4484
|
+
if (params.AuthRole) {
|
|
4485
|
+
this.AuthRole = new Array();
|
|
4486
|
+
for (let z in params.AuthRole) {
|
|
4487
|
+
let obj = new Auth();
|
|
4488
|
+
obj.deserialize(params.AuthRole[z]);
|
|
4489
|
+
this.AuthRole.push(obj);
|
|
4490
|
+
}
|
|
4491
|
+
}
|
|
4492
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
4493
|
+
this.EnablePasswordRotation = 'EnablePasswordRotation' in params ? params.EnablePasswordRotation : null;
|
|
4210
4494
|
|
|
4211
4495
|
}
|
|
4212
4496
|
}
|
|
@@ -4372,6 +4656,41 @@ class CreateDBInstanceResponse extends AbstractModel {
|
|
|
4372
4656
|
}
|
|
4373
4657
|
}
|
|
4374
4658
|
|
|
4659
|
+
/**
|
|
4660
|
+
* DeleteInstanceRole response structure.
|
|
4661
|
+
* @class
|
|
4662
|
+
*/
|
|
4663
|
+
class DeleteInstanceRoleResponse extends AbstractModel {
|
|
4664
|
+
constructor(){
|
|
4665
|
+
super();
|
|
4666
|
+
|
|
4667
|
+
/**
|
|
4668
|
+
* <p>Task ID.</p>
|
|
4669
|
+
* @type {number || null}
|
|
4670
|
+
*/
|
|
4671
|
+
this.TaskId = null;
|
|
4672
|
+
|
|
4673
|
+
/**
|
|
4674
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
4675
|
+
* @type {string || null}
|
|
4676
|
+
*/
|
|
4677
|
+
this.RequestId = null;
|
|
4678
|
+
|
|
4679
|
+
}
|
|
4680
|
+
|
|
4681
|
+
/**
|
|
4682
|
+
* @private
|
|
4683
|
+
*/
|
|
4684
|
+
deserialize(params) {
|
|
4685
|
+
if (!params) {
|
|
4686
|
+
return;
|
|
4687
|
+
}
|
|
4688
|
+
this.TaskId = 'TaskId' in params ? params.TaskId : null;
|
|
4689
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
4690
|
+
|
|
4691
|
+
}
|
|
4692
|
+
}
|
|
4693
|
+
|
|
4375
4694
|
/**
|
|
4376
4695
|
* CreateLogDownloadTask request structure.
|
|
4377
4696
|
* @class
|
|
@@ -4646,25 +4965,47 @@ class InstanceTextParam extends AbstractModel {
|
|
|
4646
4965
|
}
|
|
4647
4966
|
|
|
4648
4967
|
/**
|
|
4649
|
-
*
|
|
4968
|
+
* InstanceEnableSSL response structure.
|
|
4650
4969
|
* @class
|
|
4651
4970
|
*/
|
|
4652
|
-
class
|
|
4971
|
+
class InstanceEnableSSLResponse extends AbstractModel {
|
|
4653
4972
|
constructor(){
|
|
4654
4973
|
super();
|
|
4655
4974
|
|
|
4656
4975
|
/**
|
|
4657
|
-
*
|
|
4976
|
+
* SSL enabling status.
|
|
4977
|
+
- 0: disabled.
|
|
4978
|
+
- 1: enabled.
|
|
4979
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
4980
|
+
* @type {number || null}
|
|
4981
|
+
*/
|
|
4982
|
+
this.Status = null;
|
|
4983
|
+
|
|
4984
|
+
/**
|
|
4985
|
+
* Certificate file expiration time, in the format of 2023-05-01 12:00:00.
|
|
4986
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
4658
4987
|
* @type {string || null}
|
|
4659
4988
|
*/
|
|
4660
|
-
this.
|
|
4989
|
+
this.ExpiredTime = null;
|
|
4661
4990
|
|
|
4662
4991
|
/**
|
|
4663
|
-
*
|
|
4664
|
-
|
|
4665
|
-
* @type {
|
|
4992
|
+
* Download URL of the certificate file.
|
|
4993
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
4994
|
+
* @type {string || null}
|
|
4666
4995
|
*/
|
|
4667
|
-
this.
|
|
4996
|
+
this.CertUrl = null;
|
|
4997
|
+
|
|
4998
|
+
/**
|
|
4999
|
+
* Process ID.
|
|
5000
|
+
* @type {number || null}
|
|
5001
|
+
*/
|
|
5002
|
+
this.FlowId = null;
|
|
5003
|
+
|
|
5004
|
+
/**
|
|
5005
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
5006
|
+
* @type {string || null}
|
|
5007
|
+
*/
|
|
5008
|
+
this.RequestId = null;
|
|
4668
5009
|
|
|
4669
5010
|
}
|
|
4670
5011
|
|
|
@@ -4675,8 +5016,11 @@ class ModifyDBInstanceSecurityGroupRequest extends AbstractModel {
|
|
|
4675
5016
|
if (!params) {
|
|
4676
5017
|
return;
|
|
4677
5018
|
}
|
|
4678
|
-
this.
|
|
4679
|
-
this.
|
|
5019
|
+
this.Status = 'Status' in params ? params.Status : null;
|
|
5020
|
+
this.ExpiredTime = 'ExpiredTime' in params ? params.ExpiredTime : null;
|
|
5021
|
+
this.CertUrl = 'CertUrl' in params ? params.CertUrl : null;
|
|
5022
|
+
this.FlowId = 'FlowId' in params ? params.FlowId : null;
|
|
5023
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
4680
5024
|
|
|
4681
5025
|
}
|
|
4682
5026
|
}
|
|
@@ -4851,6 +5195,42 @@ class DescribeBackupDownloadTaskRequest extends AbstractModel {
|
|
|
4851
5195
|
}
|
|
4852
5196
|
}
|
|
4853
5197
|
|
|
5198
|
+
/**
|
|
5199
|
+
* ModifyDBInstanceSecurityGroup request structure.
|
|
5200
|
+
* @class
|
|
5201
|
+
*/
|
|
5202
|
+
class ModifyDBInstanceSecurityGroupRequest extends AbstractModel {
|
|
5203
|
+
constructor(){
|
|
5204
|
+
super();
|
|
5205
|
+
|
|
5206
|
+
/**
|
|
5207
|
+
* Instance ID. Log in to the [TencentDB for MongoDB console](https://console.cloud.tencent.com/mongodb), and copy the instance ID from the instance list.
|
|
5208
|
+
* @type {string || null}
|
|
5209
|
+
*/
|
|
5210
|
+
this.InstanceId = null;
|
|
5211
|
+
|
|
5212
|
+
/**
|
|
5213
|
+
* Target security group ID. Log in to the [security group console](https://console.cloud.tencent.com/vpc/security-group) page to copy the target security group ID.
|
|
5214
|
+
**Note**: This input parameter performs a full replacement on all existing collections but not an incremental update. To modify it, import the expected full collections.
|
|
5215
|
+
* @type {Array.<string> || null}
|
|
5216
|
+
*/
|
|
5217
|
+
this.SecurityGroupIds = null;
|
|
5218
|
+
|
|
5219
|
+
}
|
|
5220
|
+
|
|
5221
|
+
/**
|
|
5222
|
+
* @private
|
|
5223
|
+
*/
|
|
5224
|
+
deserialize(params) {
|
|
5225
|
+
if (!params) {
|
|
5226
|
+
return;
|
|
5227
|
+
}
|
|
5228
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
5229
|
+
this.SecurityGroupIds = 'SecurityGroupIds' in params ? params.SecurityGroupIds : null;
|
|
5230
|
+
|
|
5231
|
+
}
|
|
5232
|
+
}
|
|
5233
|
+
|
|
4854
5234
|
/**
|
|
4855
5235
|
* ModifySRVConnectionUrl request structure.
|
|
4856
5236
|
* @class
|
|
@@ -5287,6 +5667,41 @@ class CloseAuditServiceRequest extends AbstractModel {
|
|
|
5287
5667
|
}
|
|
5288
5668
|
}
|
|
5289
5669
|
|
|
5670
|
+
/**
|
|
5671
|
+
* DeleteInstanceUser response structure.
|
|
5672
|
+
* @class
|
|
5673
|
+
*/
|
|
5674
|
+
class DeleteInstanceUserResponse extends AbstractModel {
|
|
5675
|
+
constructor(){
|
|
5676
|
+
super();
|
|
5677
|
+
|
|
5678
|
+
/**
|
|
5679
|
+
* <p>Process ID</p>
|
|
5680
|
+
* @type {number || null}
|
|
5681
|
+
*/
|
|
5682
|
+
this.FlowId = null;
|
|
5683
|
+
|
|
5684
|
+
/**
|
|
5685
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
5686
|
+
* @type {string || null}
|
|
5687
|
+
*/
|
|
5688
|
+
this.RequestId = null;
|
|
5689
|
+
|
|
5690
|
+
}
|
|
5691
|
+
|
|
5692
|
+
/**
|
|
5693
|
+
* @private
|
|
5694
|
+
*/
|
|
5695
|
+
deserialize(params) {
|
|
5696
|
+
if (!params) {
|
|
5697
|
+
return;
|
|
5698
|
+
}
|
|
5699
|
+
this.FlowId = 'FlowId' in params ? params.FlowId : null;
|
|
5700
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
5701
|
+
|
|
5702
|
+
}
|
|
5703
|
+
}
|
|
5704
|
+
|
|
5290
5705
|
/**
|
|
5291
5706
|
* DescribeSecurityGroup response structure.
|
|
5292
5707
|
* @class
|
|
@@ -5330,6 +5745,99 @@ class DescribeSecurityGroupResponse extends AbstractModel {
|
|
|
5330
5745
|
}
|
|
5331
5746
|
}
|
|
5332
5747
|
|
|
5748
|
+
/**
|
|
5749
|
+
* UpdateInstanceUser request structure.
|
|
5750
|
+
* @class
|
|
5751
|
+
*/
|
|
5752
|
+
class UpdateInstanceUserRequest extends AbstractModel {
|
|
5753
|
+
constructor(){
|
|
5754
|
+
super();
|
|
5755
|
+
|
|
5756
|
+
/**
|
|
5757
|
+
* <p>Instance ID.</p>
|
|
5758
|
+
* @type {string || null}
|
|
5759
|
+
*/
|
|
5760
|
+
this.InstanceId = null;
|
|
5761
|
+
|
|
5762
|
+
/**
|
|
5763
|
+
* <p>Username.</p>
|
|
5764
|
+
* @type {string || null}
|
|
5765
|
+
*/
|
|
5766
|
+
this.UserName = null;
|
|
5767
|
+
|
|
5768
|
+
/**
|
|
5769
|
+
* <p>Authentication database</p>
|
|
5770
|
+
* @type {string || null}
|
|
5771
|
+
*/
|
|
5772
|
+
this.Database = null;
|
|
5773
|
+
|
|
5774
|
+
/**
|
|
5775
|
+
* <p>New password (Optional. If left empty, the password will not be changed)</p>
|
|
5776
|
+
* @type {string || null}
|
|
5777
|
+
*/
|
|
5778
|
+
this.Password = null;
|
|
5779
|
+
|
|
5780
|
+
/**
|
|
5781
|
+
* <p>Encrypted password (Optional, choose either this or Password)</p>
|
|
5782
|
+
* @type {string || null}
|
|
5783
|
+
*/
|
|
5784
|
+
this.EncryptedPassword = null;
|
|
5785
|
+
|
|
5786
|
+
/**
|
|
5787
|
+
* <p>New role list (Optional. Leave it empty to not modify the role).</p>
|
|
5788
|
+
* @type {Array.<Role> || null}
|
|
5789
|
+
*/
|
|
5790
|
+
this.Roles = null;
|
|
5791
|
+
|
|
5792
|
+
/**
|
|
5793
|
+
* <p>New permission list (Optional. If left empty, no permission will be modified)</p>
|
|
5794
|
+
* @type {Array.<Auth> || null}
|
|
5795
|
+
*/
|
|
5796
|
+
this.AuthRole = null;
|
|
5797
|
+
|
|
5798
|
+
/**
|
|
5799
|
+
* <p>User description (Optional, leave it empty to not modify description)</p>
|
|
5800
|
+
* @type {string || null}
|
|
5801
|
+
*/
|
|
5802
|
+
this.Description = null;
|
|
5803
|
+
|
|
5804
|
+
}
|
|
5805
|
+
|
|
5806
|
+
/**
|
|
5807
|
+
* @private
|
|
5808
|
+
*/
|
|
5809
|
+
deserialize(params) {
|
|
5810
|
+
if (!params) {
|
|
5811
|
+
return;
|
|
5812
|
+
}
|
|
5813
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
5814
|
+
this.UserName = 'UserName' in params ? params.UserName : null;
|
|
5815
|
+
this.Database = 'Database' in params ? params.Database : null;
|
|
5816
|
+
this.Password = 'Password' in params ? params.Password : null;
|
|
5817
|
+
this.EncryptedPassword = 'EncryptedPassword' in params ? params.EncryptedPassword : null;
|
|
5818
|
+
|
|
5819
|
+
if (params.Roles) {
|
|
5820
|
+
this.Roles = new Array();
|
|
5821
|
+
for (let z in params.Roles) {
|
|
5822
|
+
let obj = new Role();
|
|
5823
|
+
obj.deserialize(params.Roles[z]);
|
|
5824
|
+
this.Roles.push(obj);
|
|
5825
|
+
}
|
|
5826
|
+
}
|
|
5827
|
+
|
|
5828
|
+
if (params.AuthRole) {
|
|
5829
|
+
this.AuthRole = new Array();
|
|
5830
|
+
for (let z in params.AuthRole) {
|
|
5831
|
+
let obj = new Auth();
|
|
5832
|
+
obj.deserialize(params.AuthRole[z]);
|
|
5833
|
+
this.AuthRole.push(obj);
|
|
5834
|
+
}
|
|
5835
|
+
}
|
|
5836
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
5837
|
+
|
|
5838
|
+
}
|
|
5839
|
+
}
|
|
5840
|
+
|
|
5333
5841
|
/**
|
|
5334
5842
|
* Security group information
|
|
5335
5843
|
* @class
|
|
@@ -5681,10 +6189,50 @@ class DescribeAsyncRequestInfoRequest extends AbstractModel {
|
|
|
5681
6189
|
super();
|
|
5682
6190
|
|
|
5683
6191
|
/**
|
|
5684
|
-
* Specifies the ID of the asynchronous request to be queried. When an asynchronous process is involved in the API operation (such as [CreateBackupDBInstance](https://www.tencentcloud.com/document/product/240/46599?from_cn_redirect=1)), the response value of AsyncRequestId is the ID to be filled in for this parameter.
|
|
6192
|
+
* Specifies the ID of the asynchronous request to be queried. When an asynchronous process is involved in the API operation (such as [CreateBackupDBInstance](https://www.tencentcloud.com/document/product/240/46599?from_cn_redirect=1)), the response value of AsyncRequestId is the ID to be filled in for this parameter.
|
|
6193
|
+
* @type {string || null}
|
|
6194
|
+
*/
|
|
6195
|
+
this.AsyncRequestId = null;
|
|
6196
|
+
|
|
6197
|
+
}
|
|
6198
|
+
|
|
6199
|
+
/**
|
|
6200
|
+
* @private
|
|
6201
|
+
*/
|
|
6202
|
+
deserialize(params) {
|
|
6203
|
+
if (!params) {
|
|
6204
|
+
return;
|
|
6205
|
+
}
|
|
6206
|
+
this.AsyncRequestId = 'AsyncRequestId' in params ? params.AsyncRequestId : null;
|
|
6207
|
+
|
|
6208
|
+
}
|
|
6209
|
+
}
|
|
6210
|
+
|
|
6211
|
+
/**
|
|
6212
|
+
* DeleteInstanceUser request structure.
|
|
6213
|
+
* @class
|
|
6214
|
+
*/
|
|
6215
|
+
class DeleteInstanceUserRequest extends AbstractModel {
|
|
6216
|
+
constructor(){
|
|
6217
|
+
super();
|
|
6218
|
+
|
|
6219
|
+
/**
|
|
6220
|
+
* <p>Instance ID.</p>
|
|
6221
|
+
* @type {string || null}
|
|
6222
|
+
*/
|
|
6223
|
+
this.InstanceId = null;
|
|
6224
|
+
|
|
6225
|
+
/**
|
|
6226
|
+
* <p>Username.</p>
|
|
6227
|
+
* @type {string || null}
|
|
6228
|
+
*/
|
|
6229
|
+
this.UserName = null;
|
|
6230
|
+
|
|
6231
|
+
/**
|
|
6232
|
+
* <p>Authentication database.</p>
|
|
5685
6233
|
* @type {string || null}
|
|
5686
6234
|
*/
|
|
5687
|
-
this.
|
|
6235
|
+
this.Database = null;
|
|
5688
6236
|
|
|
5689
6237
|
}
|
|
5690
6238
|
|
|
@@ -5695,7 +6243,9 @@ class DescribeAsyncRequestInfoRequest extends AbstractModel {
|
|
|
5695
6243
|
if (!params) {
|
|
5696
6244
|
return;
|
|
5697
6245
|
}
|
|
5698
|
-
this.
|
|
6246
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
6247
|
+
this.UserName = 'UserName' in params ? params.UserName : null;
|
|
6248
|
+
this.Database = 'Database' in params ? params.Database : null;
|
|
5699
6249
|
|
|
5700
6250
|
}
|
|
5701
6251
|
}
|
|
@@ -6663,6 +7213,41 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
6663
7213
|
}
|
|
6664
7214
|
}
|
|
6665
7215
|
|
|
7216
|
+
/**
|
|
7217
|
+
* ModifyDBInstanceNetworkAddress response structure.
|
|
7218
|
+
* @class
|
|
7219
|
+
*/
|
|
7220
|
+
class ModifyDBInstanceNetworkAddressResponse extends AbstractModel {
|
|
7221
|
+
constructor(){
|
|
7222
|
+
super();
|
|
7223
|
+
|
|
7224
|
+
/**
|
|
7225
|
+
* ID of the asynchronous process task for modifying the network information.
|
|
7226
|
+
* @type {number || null}
|
|
7227
|
+
*/
|
|
7228
|
+
this.FlowId = null;
|
|
7229
|
+
|
|
7230
|
+
/**
|
|
7231
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
7232
|
+
* @type {string || null}
|
|
7233
|
+
*/
|
|
7234
|
+
this.RequestId = null;
|
|
7235
|
+
|
|
7236
|
+
}
|
|
7237
|
+
|
|
7238
|
+
/**
|
|
7239
|
+
* @private
|
|
7240
|
+
*/
|
|
7241
|
+
deserialize(params) {
|
|
7242
|
+
if (!params) {
|
|
7243
|
+
return;
|
|
7244
|
+
}
|
|
7245
|
+
this.FlowId = 'FlowId' in params ? params.FlowId : null;
|
|
7246
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
7247
|
+
|
|
7248
|
+
}
|
|
7249
|
+
}
|
|
7250
|
+
|
|
6666
7251
|
/**
|
|
6667
7252
|
* DescribeCurrentOp request structure.
|
|
6668
7253
|
* @class
|
|
@@ -6983,13 +7568,19 @@ class DescribeClientConnectionsRequest extends AbstractModel {
|
|
|
6983
7568
|
}
|
|
6984
7569
|
|
|
6985
7570
|
/**
|
|
6986
|
-
*
|
|
7571
|
+
* SetAccountUserPrivilege response structure.
|
|
6987
7572
|
* @class
|
|
6988
7573
|
*/
|
|
6989
|
-
class
|
|
7574
|
+
class SetAccountUserPrivilegeResponse extends AbstractModel {
|
|
6990
7575
|
constructor(){
|
|
6991
7576
|
super();
|
|
6992
7577
|
|
|
7578
|
+
/**
|
|
7579
|
+
* Task ID.
|
|
7580
|
+
* @type {number || null}
|
|
7581
|
+
*/
|
|
7582
|
+
this.FlowId = null;
|
|
7583
|
+
|
|
6993
7584
|
/**
|
|
6994
7585
|
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
6995
7586
|
* @type {string || null}
|
|
@@ -7005,6 +7596,7 @@ class SetDBInstanceDeletionProtectionResponse extends AbstractModel {
|
|
|
7005
7596
|
if (!params) {
|
|
7006
7597
|
return;
|
|
7007
7598
|
}
|
|
7599
|
+
this.FlowId = 'FlowId' in params ? params.FlowId : null;
|
|
7008
7600
|
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
7009
7601
|
|
|
7010
7602
|
}
|
|
@@ -7477,6 +8069,76 @@ class RestoreDatabases extends AbstractModel {
|
|
|
7477
8069
|
}
|
|
7478
8070
|
}
|
|
7479
8071
|
|
|
8072
|
+
/**
|
|
8073
|
+
* DescribeInstanceUsers request structure.
|
|
8074
|
+
* @class
|
|
8075
|
+
*/
|
|
8076
|
+
class DescribeInstanceUsersRequest extends AbstractModel {
|
|
8077
|
+
constructor(){
|
|
8078
|
+
super();
|
|
8079
|
+
|
|
8080
|
+
/**
|
|
8081
|
+
* <p>Instance ID.</p>
|
|
8082
|
+
* @type {string || null}
|
|
8083
|
+
*/
|
|
8084
|
+
this.InstanceId = null;
|
|
8085
|
+
|
|
8086
|
+
/**
|
|
8087
|
+
* <p>userName. If left empty, query all users</p>
|
|
8088
|
+
* @type {string || null}
|
|
8089
|
+
*/
|
|
8090
|
+
this.UserName = null;
|
|
8091
|
+
|
|
8092
|
+
/**
|
|
8093
|
+
* <p>Database name. If left empty, query all database accounts.</p>
|
|
8094
|
+
* @type {string || null}
|
|
8095
|
+
*/
|
|
8096
|
+
this.Database = null;
|
|
8097
|
+
|
|
8098
|
+
/**
|
|
8099
|
+
* <p>Sorting field, available values: UserName; by default, sort by UserName if not passed.</p>
|
|
8100
|
+
* @type {string || null}
|
|
8101
|
+
*/
|
|
8102
|
+
this.OrderBy = null;
|
|
8103
|
+
|
|
8104
|
+
/**
|
|
8105
|
+
* <p>Sorting method. Value range: asc (in ascending order), desc (in descending order). Default: asc.</p>
|
|
8106
|
+
* @type {string || null}
|
|
8107
|
+
*/
|
|
8108
|
+
this.OrderType = null;
|
|
8109
|
+
|
|
8110
|
+
/**
|
|
8111
|
+
* <p>Pagination offset, defaults to 0</p>
|
|
8112
|
+
* @type {number || null}
|
|
8113
|
+
*/
|
|
8114
|
+
this.Offset = null;
|
|
8115
|
+
|
|
8116
|
+
/**
|
|
8117
|
+
* <p>Number of items per page, defaults to 20, maximum 100.</p>
|
|
8118
|
+
* @type {number || null}
|
|
8119
|
+
*/
|
|
8120
|
+
this.Limit = null;
|
|
8121
|
+
|
|
8122
|
+
}
|
|
8123
|
+
|
|
8124
|
+
/**
|
|
8125
|
+
* @private
|
|
8126
|
+
*/
|
|
8127
|
+
deserialize(params) {
|
|
8128
|
+
if (!params) {
|
|
8129
|
+
return;
|
|
8130
|
+
}
|
|
8131
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
8132
|
+
this.UserName = 'UserName' in params ? params.UserName : null;
|
|
8133
|
+
this.Database = 'Database' in params ? params.Database : null;
|
|
8134
|
+
this.OrderBy = 'OrderBy' in params ? params.OrderBy : null;
|
|
8135
|
+
this.OrderType = 'OrderType' in params ? params.OrderType : null;
|
|
8136
|
+
this.Offset = 'Offset' in params ? params.Offset : null;
|
|
8137
|
+
this.Limit = 'Limit' in params ? params.Limit : null;
|
|
8138
|
+
|
|
8139
|
+
}
|
|
8140
|
+
}
|
|
8141
|
+
|
|
7480
8142
|
/**
|
|
7481
8143
|
* SetAccountUserPrivilege request structure.
|
|
7482
8144
|
* @class
|
|
@@ -7748,6 +8410,41 @@ class IsolateDBInstanceRequest extends AbstractModel {
|
|
|
7748
8410
|
}
|
|
7749
8411
|
}
|
|
7750
8412
|
|
|
8413
|
+
/**
|
|
8414
|
+
* UpdateInstanceRole response structure.
|
|
8415
|
+
* @class
|
|
8416
|
+
*/
|
|
8417
|
+
class UpdateInstanceRoleResponse extends AbstractModel {
|
|
8418
|
+
constructor(){
|
|
8419
|
+
super();
|
|
8420
|
+
|
|
8421
|
+
/**
|
|
8422
|
+
* <p>Task ID.</p>
|
|
8423
|
+
* @type {number || null}
|
|
8424
|
+
*/
|
|
8425
|
+
this.TaskId = null;
|
|
8426
|
+
|
|
8427
|
+
/**
|
|
8428
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
8429
|
+
* @type {string || null}
|
|
8430
|
+
*/
|
|
8431
|
+
this.RequestId = null;
|
|
8432
|
+
|
|
8433
|
+
}
|
|
8434
|
+
|
|
8435
|
+
/**
|
|
8436
|
+
* @private
|
|
8437
|
+
*/
|
|
8438
|
+
deserialize(params) {
|
|
8439
|
+
if (!params) {
|
|
8440
|
+
return;
|
|
8441
|
+
}
|
|
8442
|
+
this.TaskId = 'TaskId' in params ? params.TaskId : null;
|
|
8443
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
8444
|
+
|
|
8445
|
+
}
|
|
8446
|
+
}
|
|
8447
|
+
|
|
7751
8448
|
/**
|
|
7752
8449
|
* DescribePasswordRotation request structure.
|
|
7753
8450
|
* @class
|
|
@@ -7880,6 +8577,48 @@ class EnableTransparentDataEncryptionResponse extends AbstractModel {
|
|
|
7880
8577
|
}
|
|
7881
8578
|
}
|
|
7882
8579
|
|
|
8580
|
+
/**
|
|
8581
|
+
* Role resource
|
|
8582
|
+
* @class
|
|
8583
|
+
*/
|
|
8584
|
+
class RoleResource extends AbstractModel {
|
|
8585
|
+
constructor(){
|
|
8586
|
+
super();
|
|
8587
|
+
|
|
8588
|
+
/**
|
|
8589
|
+
* <p>Whether cluster-level resource</p>
|
|
8590
|
+
* @type {boolean || null}
|
|
8591
|
+
*/
|
|
8592
|
+
this.Cluster = null;
|
|
8593
|
+
|
|
8594
|
+
/**
|
|
8595
|
+
* <p>Database name.</p>
|
|
8596
|
+
* @type {string || null}
|
|
8597
|
+
*/
|
|
8598
|
+
this.Database = null;
|
|
8599
|
+
|
|
8600
|
+
/**
|
|
8601
|
+
* <p>collection name.</p>
|
|
8602
|
+
* @type {string || null}
|
|
8603
|
+
*/
|
|
8604
|
+
this.Collection = null;
|
|
8605
|
+
|
|
8606
|
+
}
|
|
8607
|
+
|
|
8608
|
+
/**
|
|
8609
|
+
* @private
|
|
8610
|
+
*/
|
|
8611
|
+
deserialize(params) {
|
|
8612
|
+
if (!params) {
|
|
8613
|
+
return;
|
|
8614
|
+
}
|
|
8615
|
+
this.Cluster = 'Cluster' in params ? params.Cluster : null;
|
|
8616
|
+
this.Database = 'Database' in params ? params.Database : null;
|
|
8617
|
+
this.Collection = 'Collection' in params ? params.Collection : null;
|
|
8618
|
+
|
|
8619
|
+
}
|
|
8620
|
+
}
|
|
8621
|
+
|
|
7883
8622
|
/**
|
|
7884
8623
|
* DescribeAuditLogFiles request structure.
|
|
7885
8624
|
* @class
|
|
@@ -8739,6 +9478,76 @@ class OfflineIsolatedDBInstanceRequest extends AbstractModel {
|
|
|
8739
9478
|
}
|
|
8740
9479
|
}
|
|
8741
9480
|
|
|
9481
|
+
/**
|
|
9482
|
+
* ModifyInstanceAz response structure.
|
|
9483
|
+
* @class
|
|
9484
|
+
*/
|
|
9485
|
+
class ModifyInstanceAzResponse extends AbstractModel {
|
|
9486
|
+
constructor(){
|
|
9487
|
+
super();
|
|
9488
|
+
|
|
9489
|
+
/**
|
|
9490
|
+
* <p>Order ID for availability zone adjustment.</p>
|
|
9491
|
+
* @type {string || null}
|
|
9492
|
+
*/
|
|
9493
|
+
this.DealId = null;
|
|
9494
|
+
|
|
9495
|
+
/**
|
|
9496
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
9497
|
+
* @type {string || null}
|
|
9498
|
+
*/
|
|
9499
|
+
this.RequestId = null;
|
|
9500
|
+
|
|
9501
|
+
}
|
|
9502
|
+
|
|
9503
|
+
/**
|
|
9504
|
+
* @private
|
|
9505
|
+
*/
|
|
9506
|
+
deserialize(params) {
|
|
9507
|
+
if (!params) {
|
|
9508
|
+
return;
|
|
9509
|
+
}
|
|
9510
|
+
this.DealId = 'DealId' in params ? params.DealId : null;
|
|
9511
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
9512
|
+
|
|
9513
|
+
}
|
|
9514
|
+
}
|
|
9515
|
+
|
|
9516
|
+
/**
|
|
9517
|
+
* CreateInstanceRole response structure.
|
|
9518
|
+
* @class
|
|
9519
|
+
*/
|
|
9520
|
+
class CreateInstanceRoleResponse extends AbstractModel {
|
|
9521
|
+
constructor(){
|
|
9522
|
+
super();
|
|
9523
|
+
|
|
9524
|
+
/**
|
|
9525
|
+
* <p>Task ID.</p>
|
|
9526
|
+
* @type {number || null}
|
|
9527
|
+
*/
|
|
9528
|
+
this.TaskId = null;
|
|
9529
|
+
|
|
9530
|
+
/**
|
|
9531
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
9532
|
+
* @type {string || null}
|
|
9533
|
+
*/
|
|
9534
|
+
this.RequestId = null;
|
|
9535
|
+
|
|
9536
|
+
}
|
|
9537
|
+
|
|
9538
|
+
/**
|
|
9539
|
+
* @private
|
|
9540
|
+
*/
|
|
9541
|
+
deserialize(params) {
|
|
9542
|
+
if (!params) {
|
|
9543
|
+
return;
|
|
9544
|
+
}
|
|
9545
|
+
this.TaskId = 'TaskId' in params ? params.TaskId : null;
|
|
9546
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
9547
|
+
|
|
9548
|
+
}
|
|
9549
|
+
}
|
|
9550
|
+
|
|
8742
9551
|
/**
|
|
8743
9552
|
* InquirePriceCreateDBInstances request structure.
|
|
8744
9553
|
* @class
|
|
@@ -8893,6 +9702,41 @@ class InquirePriceCreateDBInstancesRequest extends AbstractModel {
|
|
|
8893
9702
|
}
|
|
8894
9703
|
}
|
|
8895
9704
|
|
|
9705
|
+
/**
|
|
9706
|
+
* UpdateInstanceUser response structure.
|
|
9707
|
+
* @class
|
|
9708
|
+
*/
|
|
9709
|
+
class UpdateInstanceUserResponse extends AbstractModel {
|
|
9710
|
+
constructor(){
|
|
9711
|
+
super();
|
|
9712
|
+
|
|
9713
|
+
/**
|
|
9714
|
+
* <p>Process ID</p>
|
|
9715
|
+
* @type {number || null}
|
|
9716
|
+
*/
|
|
9717
|
+
this.FlowId = null;
|
|
9718
|
+
|
|
9719
|
+
/**
|
|
9720
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
9721
|
+
* @type {string || null}
|
|
9722
|
+
*/
|
|
9723
|
+
this.RequestId = null;
|
|
9724
|
+
|
|
9725
|
+
}
|
|
9726
|
+
|
|
9727
|
+
/**
|
|
9728
|
+
* @private
|
|
9729
|
+
*/
|
|
9730
|
+
deserialize(params) {
|
|
9731
|
+
if (!params) {
|
|
9732
|
+
return;
|
|
9733
|
+
}
|
|
9734
|
+
this.FlowId = 'FlowId' in params ? params.FlowId : null;
|
|
9735
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
9736
|
+
|
|
9737
|
+
}
|
|
9738
|
+
}
|
|
9739
|
+
|
|
8896
9740
|
/**
|
|
8897
9741
|
* Operation to be terminated.
|
|
8898
9742
|
* @class
|
|
@@ -9080,6 +9924,162 @@ class DescribeDBInstanceParamTplResponse extends AbstractModel {
|
|
|
9080
9924
|
}
|
|
9081
9925
|
}
|
|
9082
9926
|
|
|
9927
|
+
/**
|
|
9928
|
+
* Role detailed information
|
|
9929
|
+
* @class
|
|
9930
|
+
*/
|
|
9931
|
+
class RoleInfo extends AbstractModel {
|
|
9932
|
+
constructor(){
|
|
9933
|
+
super();
|
|
9934
|
+
|
|
9935
|
+
/**
|
|
9936
|
+
* <p>Role name.</p>
|
|
9937
|
+
* @type {string || null}
|
|
9938
|
+
*/
|
|
9939
|
+
this.RoleName = null;
|
|
9940
|
+
|
|
9941
|
+
/**
|
|
9942
|
+
* <p>Character's Belonging Database</p>
|
|
9943
|
+
* @type {string || null}
|
|
9944
|
+
*/
|
|
9945
|
+
this.Database = null;
|
|
9946
|
+
|
|
9947
|
+
/**
|
|
9948
|
+
* <p>Role type: builtin_database - built-in database role, builtin_cluster - built-in cluster role, custom - custom role</p>
|
|
9949
|
+
* @type {string || null}
|
|
9950
|
+
*/
|
|
9951
|
+
this.RoleType = null;
|
|
9952
|
+
|
|
9953
|
+
/**
|
|
9954
|
+
* <p>Grant permission</p>
|
|
9955
|
+
* @type {Array.<RolePrivilege> || null}
|
|
9956
|
+
*/
|
|
9957
|
+
this.Privileges = null;
|
|
9958
|
+
|
|
9959
|
+
/**
|
|
9960
|
+
* <p>Inheritable role.</p>
|
|
9961
|
+
* @type {Array.<Role> || null}
|
|
9962
|
+
*/
|
|
9963
|
+
this.InheritedRoles = null;
|
|
9964
|
+
|
|
9965
|
+
}
|
|
9966
|
+
|
|
9967
|
+
/**
|
|
9968
|
+
* @private
|
|
9969
|
+
*/
|
|
9970
|
+
deserialize(params) {
|
|
9971
|
+
if (!params) {
|
|
9972
|
+
return;
|
|
9973
|
+
}
|
|
9974
|
+
this.RoleName = 'RoleName' in params ? params.RoleName : null;
|
|
9975
|
+
this.Database = 'Database' in params ? params.Database : null;
|
|
9976
|
+
this.RoleType = 'RoleType' in params ? params.RoleType : null;
|
|
9977
|
+
|
|
9978
|
+
if (params.Privileges) {
|
|
9979
|
+
this.Privileges = new Array();
|
|
9980
|
+
for (let z in params.Privileges) {
|
|
9981
|
+
let obj = new RolePrivilege();
|
|
9982
|
+
obj.deserialize(params.Privileges[z]);
|
|
9983
|
+
this.Privileges.push(obj);
|
|
9984
|
+
}
|
|
9985
|
+
}
|
|
9986
|
+
|
|
9987
|
+
if (params.InheritedRoles) {
|
|
9988
|
+
this.InheritedRoles = new Array();
|
|
9989
|
+
for (let z in params.InheritedRoles) {
|
|
9990
|
+
let obj = new Role();
|
|
9991
|
+
obj.deserialize(params.InheritedRoles[z]);
|
|
9992
|
+
this.InheritedRoles.push(obj);
|
|
9993
|
+
}
|
|
9994
|
+
}
|
|
9995
|
+
|
|
9996
|
+
}
|
|
9997
|
+
}
|
|
9998
|
+
|
|
9999
|
+
/**
|
|
10000
|
+
* DescribeInstanceRoles request structure.
|
|
10001
|
+
* @class
|
|
10002
|
+
*/
|
|
10003
|
+
class DescribeInstanceRolesRequest extends AbstractModel {
|
|
10004
|
+
constructor(){
|
|
10005
|
+
super();
|
|
10006
|
+
|
|
10007
|
+
/**
|
|
10008
|
+
* <p>Instance id</p>
|
|
10009
|
+
* @type {string || null}
|
|
10010
|
+
*/
|
|
10011
|
+
this.InstanceId = null;
|
|
10012
|
+
|
|
10013
|
+
/**
|
|
10014
|
+
* <p>Database name. If it is empty, query the role of all databases.</p>
|
|
10015
|
+
* @type {string || null}
|
|
10016
|
+
*/
|
|
10017
|
+
this.Database = null;
|
|
10018
|
+
|
|
10019
|
+
/**
|
|
10020
|
+
* <p>Role type: builtin_database - built-in database role, builtin_cluster - built-in cluster role, custom - custom role. Query all if left empty.</p>
|
|
10021
|
+
* @type {Array.<string> || null}
|
|
10022
|
+
*/
|
|
10023
|
+
this.RoleType = null;
|
|
10024
|
+
|
|
10025
|
+
/**
|
|
10026
|
+
* <p>Role name. Query all roles if left empty.</p>
|
|
10027
|
+
* @type {string || null}
|
|
10028
|
+
*/
|
|
10029
|
+
this.RoleName = null;
|
|
10030
|
+
|
|
10031
|
+
/**
|
|
10032
|
+
* <p>Common search keywords, fuzzy match inheritable roles and permissions relevant database name, role name, Action name, etc.</p>
|
|
10033
|
+
* @type {string || null}
|
|
10034
|
+
*/
|
|
10035
|
+
this.SearchKey = null;
|
|
10036
|
+
|
|
10037
|
+
/**
|
|
10038
|
+
* <p>Sorting field, supports: RoleName, defaults to RoleName</p>
|
|
10039
|
+
* @type {string || null}
|
|
10040
|
+
*/
|
|
10041
|
+
this.OrderBy = null;
|
|
10042
|
+
|
|
10043
|
+
/**
|
|
10044
|
+
* <p>Sorting method: asc-ascending, desc-descending, defaults to asc</p>
|
|
10045
|
+
* @type {string || null}
|
|
10046
|
+
*/
|
|
10047
|
+
this.OrderType = null;
|
|
10048
|
+
|
|
10049
|
+
/**
|
|
10050
|
+
* <p>Pagination offset, defaults to 0</p>
|
|
10051
|
+
* @type {number || null}
|
|
10052
|
+
*/
|
|
10053
|
+
this.Offset = null;
|
|
10054
|
+
|
|
10055
|
+
/**
|
|
10056
|
+
* <p>Number of items per page. Default: 20. Maximum: 100.</p>
|
|
10057
|
+
* @type {number || null}
|
|
10058
|
+
*/
|
|
10059
|
+
this.Limit = null;
|
|
10060
|
+
|
|
10061
|
+
}
|
|
10062
|
+
|
|
10063
|
+
/**
|
|
10064
|
+
* @private
|
|
10065
|
+
*/
|
|
10066
|
+
deserialize(params) {
|
|
10067
|
+
if (!params) {
|
|
10068
|
+
return;
|
|
10069
|
+
}
|
|
10070
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
10071
|
+
this.Database = 'Database' in params ? params.Database : null;
|
|
10072
|
+
this.RoleType = 'RoleType' in params ? params.RoleType : null;
|
|
10073
|
+
this.RoleName = 'RoleName' in params ? params.RoleName : null;
|
|
10074
|
+
this.SearchKey = 'SearchKey' in params ? params.SearchKey : null;
|
|
10075
|
+
this.OrderBy = 'OrderBy' in params ? params.OrderBy : null;
|
|
10076
|
+
this.OrderType = 'OrderType' in params ? params.OrderType : null;
|
|
10077
|
+
this.Offset = 'Offset' in params ? params.Offset : null;
|
|
10078
|
+
this.Limit = 'Limit' in params ? params.Limit : null;
|
|
10079
|
+
|
|
10080
|
+
}
|
|
10081
|
+
}
|
|
10082
|
+
|
|
9083
10083
|
/**
|
|
9084
10084
|
* Audit log
|
|
9085
10085
|
* @class
|
|
@@ -9257,6 +10257,150 @@ class SlowLogItem extends AbstractModel {
|
|
|
9257
10257
|
}
|
|
9258
10258
|
}
|
|
9259
10259
|
|
|
10260
|
+
/**
|
|
10261
|
+
* UpdateInstanceRole request structure.
|
|
10262
|
+
* @class
|
|
10263
|
+
*/
|
|
10264
|
+
class UpdateInstanceRoleRequest extends AbstractModel {
|
|
10265
|
+
constructor(){
|
|
10266
|
+
super();
|
|
10267
|
+
|
|
10268
|
+
/**
|
|
10269
|
+
* <p>Instance ID.</p>
|
|
10270
|
+
* @type {string || null}
|
|
10271
|
+
*/
|
|
10272
|
+
this.InstanceId = null;
|
|
10273
|
+
|
|
10274
|
+
/**
|
|
10275
|
+
* <p>Role name.</p>
|
|
10276
|
+
* @type {string || null}
|
|
10277
|
+
*/
|
|
10278
|
+
this.RoleName = null;
|
|
10279
|
+
|
|
10280
|
+
/**
|
|
10281
|
+
* <p>Belonging Database of the character.</p>
|
|
10282
|
+
* @type {string || null}
|
|
10283
|
+
*/
|
|
10284
|
+
this.Database = null;
|
|
10285
|
+
|
|
10286
|
+
/**
|
|
10287
|
+
* <p>Role permission list. If not passed, no modification will be made.</p>
|
|
10288
|
+
* @type {Array.<RolePrivilege> || null}
|
|
10289
|
+
*/
|
|
10290
|
+
this.Privileges = null;
|
|
10291
|
+
|
|
10292
|
+
/**
|
|
10293
|
+
* <p>Get role list. If not passed, no modification is made.</p>
|
|
10294
|
+
* @type {Array.<Role> || null}
|
|
10295
|
+
*/
|
|
10296
|
+
this.InheritedRoles = null;
|
|
10297
|
+
|
|
10298
|
+
}
|
|
10299
|
+
|
|
10300
|
+
/**
|
|
10301
|
+
* @private
|
|
10302
|
+
*/
|
|
10303
|
+
deserialize(params) {
|
|
10304
|
+
if (!params) {
|
|
10305
|
+
return;
|
|
10306
|
+
}
|
|
10307
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
10308
|
+
this.RoleName = 'RoleName' in params ? params.RoleName : null;
|
|
10309
|
+
this.Database = 'Database' in params ? params.Database : null;
|
|
10310
|
+
|
|
10311
|
+
if (params.Privileges) {
|
|
10312
|
+
this.Privileges = new Array();
|
|
10313
|
+
for (let z in params.Privileges) {
|
|
10314
|
+
let obj = new RolePrivilege();
|
|
10315
|
+
obj.deserialize(params.Privileges[z]);
|
|
10316
|
+
this.Privileges.push(obj);
|
|
10317
|
+
}
|
|
10318
|
+
}
|
|
10319
|
+
|
|
10320
|
+
if (params.InheritedRoles) {
|
|
10321
|
+
this.InheritedRoles = new Array();
|
|
10322
|
+
for (let z in params.InheritedRoles) {
|
|
10323
|
+
let obj = new Role();
|
|
10324
|
+
obj.deserialize(params.InheritedRoles[z]);
|
|
10325
|
+
this.InheritedRoles.push(obj);
|
|
10326
|
+
}
|
|
10327
|
+
}
|
|
10328
|
+
|
|
10329
|
+
}
|
|
10330
|
+
}
|
|
10331
|
+
|
|
10332
|
+
/**
|
|
10333
|
+
* CreateInstanceRole request structure.
|
|
10334
|
+
* @class
|
|
10335
|
+
*/
|
|
10336
|
+
class CreateInstanceRoleRequest extends AbstractModel {
|
|
10337
|
+
constructor(){
|
|
10338
|
+
super();
|
|
10339
|
+
|
|
10340
|
+
/**
|
|
10341
|
+
* <p>Instance id</p>
|
|
10342
|
+
* @type {string || null}
|
|
10343
|
+
*/
|
|
10344
|
+
this.InstanceId = null;
|
|
10345
|
+
|
|
10346
|
+
/**
|
|
10347
|
+
* <p>role name</p>
|
|
10348
|
+
* @type {string || null}
|
|
10349
|
+
*/
|
|
10350
|
+
this.RoleName = null;
|
|
10351
|
+
|
|
10352
|
+
/**
|
|
10353
|
+
* <p>Role-based db</p>
|
|
10354
|
+
* @type {string || null}
|
|
10355
|
+
*/
|
|
10356
|
+
this.Database = null;
|
|
10357
|
+
|
|
10358
|
+
/**
|
|
10359
|
+
* <p>Permission</p>
|
|
10360
|
+
* @type {Array.<RolePrivilege> || null}
|
|
10361
|
+
*/
|
|
10362
|
+
this.Privileges = null;
|
|
10363
|
+
|
|
10364
|
+
/**
|
|
10365
|
+
* <p>Inheritable role</p>
|
|
10366
|
+
* @type {Array.<Role> || null}
|
|
10367
|
+
*/
|
|
10368
|
+
this.InheritedRoles = null;
|
|
10369
|
+
|
|
10370
|
+
}
|
|
10371
|
+
|
|
10372
|
+
/**
|
|
10373
|
+
* @private
|
|
10374
|
+
*/
|
|
10375
|
+
deserialize(params) {
|
|
10376
|
+
if (!params) {
|
|
10377
|
+
return;
|
|
10378
|
+
}
|
|
10379
|
+
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
10380
|
+
this.RoleName = 'RoleName' in params ? params.RoleName : null;
|
|
10381
|
+
this.Database = 'Database' in params ? params.Database : null;
|
|
10382
|
+
|
|
10383
|
+
if (params.Privileges) {
|
|
10384
|
+
this.Privileges = new Array();
|
|
10385
|
+
for (let z in params.Privileges) {
|
|
10386
|
+
let obj = new RolePrivilege();
|
|
10387
|
+
obj.deserialize(params.Privileges[z]);
|
|
10388
|
+
this.Privileges.push(obj);
|
|
10389
|
+
}
|
|
10390
|
+
}
|
|
10391
|
+
|
|
10392
|
+
if (params.InheritedRoles) {
|
|
10393
|
+
this.InheritedRoles = new Array();
|
|
10394
|
+
for (let z in params.InheritedRoles) {
|
|
10395
|
+
let obj = new Role();
|
|
10396
|
+
obj.deserialize(params.InheritedRoles[z]);
|
|
10397
|
+
this.InheritedRoles.push(obj);
|
|
10398
|
+
}
|
|
10399
|
+
}
|
|
10400
|
+
|
|
10401
|
+
}
|
|
10402
|
+
}
|
|
10403
|
+
|
|
9260
10404
|
/**
|
|
9261
10405
|
* Modifies the request parameters of a TencentDB for MongoDB instance.
|
|
9262
10406
|
* @class
|
|
@@ -9337,6 +10481,34 @@ class SetInstanceMaintenanceRequest extends AbstractModel {
|
|
|
9337
10481
|
}
|
|
9338
10482
|
}
|
|
9339
10483
|
|
|
10484
|
+
/**
|
|
10485
|
+
* SetDBInstanceDeletionProtection response structure.
|
|
10486
|
+
* @class
|
|
10487
|
+
*/
|
|
10488
|
+
class SetDBInstanceDeletionProtectionResponse extends AbstractModel {
|
|
10489
|
+
constructor(){
|
|
10490
|
+
super();
|
|
10491
|
+
|
|
10492
|
+
/**
|
|
10493
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
10494
|
+
* @type {string || null}
|
|
10495
|
+
*/
|
|
10496
|
+
this.RequestId = null;
|
|
10497
|
+
|
|
10498
|
+
}
|
|
10499
|
+
|
|
10500
|
+
/**
|
|
10501
|
+
* @private
|
|
10502
|
+
*/
|
|
10503
|
+
deserialize(params) {
|
|
10504
|
+
if (!params) {
|
|
10505
|
+
return;
|
|
10506
|
+
}
|
|
10507
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
10508
|
+
|
|
10509
|
+
}
|
|
10510
|
+
}
|
|
10511
|
+
|
|
9340
10512
|
/**
|
|
9341
10513
|
* DescribeDBInstanceParamTplDetail request structure.
|
|
9342
10514
|
* @class
|
|
@@ -10066,6 +11238,7 @@ module.exports = {
|
|
|
10066
11238
|
CreateBackupDBInstanceResponse: CreateBackupDBInstanceResponse,
|
|
10067
11239
|
DescribeAuditLogsRequest: DescribeAuditLogsRequest,
|
|
10068
11240
|
DBInstancePrice: DBInstancePrice,
|
|
11241
|
+
Role: Role,
|
|
10069
11242
|
DescribePasswordRotationResponse: DescribePasswordRotationResponse,
|
|
10070
11243
|
KillOpsRequest: KillOpsRequest,
|
|
10071
11244
|
EnablePasswordRotationRequest: EnablePasswordRotationRequest,
|
|
@@ -10076,6 +11249,7 @@ module.exports = {
|
|
|
10076
11249
|
DescribeSlowLogsRequest: DescribeSlowLogsRequest,
|
|
10077
11250
|
FlushInstanceRouterConfigResponse: FlushInstanceRouterConfigResponse,
|
|
10078
11251
|
DescribeCurrentOpResponse: DescribeCurrentOpResponse,
|
|
11252
|
+
RolePrivilege: RolePrivilege,
|
|
10079
11253
|
SetDBInstanceDeletionProtectionRequest: SetDBInstanceDeletionProtectionRequest,
|
|
10080
11254
|
InstanceMultiParam: InstanceMultiParam,
|
|
10081
11255
|
DescribeSRVConnectionDomainResponse: DescribeSRVConnectionDomainResponse,
|
|
@@ -10089,6 +11263,7 @@ module.exports = {
|
|
|
10089
11263
|
Task: Task,
|
|
10090
11264
|
ModifySRVConnectionUrlResponse: ModifySRVConnectionUrlResponse,
|
|
10091
11265
|
AssignProjectResponse: AssignProjectResponse,
|
|
11266
|
+
ModifyInstanceAzRequest: ModifyInstanceAzRequest,
|
|
10092
11267
|
AuditLogFilter: AuditLogFilter,
|
|
10093
11268
|
DescribeDBInstanceDealResponse: DescribeDBInstanceDealResponse,
|
|
10094
11269
|
DescribeAuditLogsResponse: DescribeAuditLogsResponse,
|
|
@@ -10101,10 +11276,10 @@ module.exports = {
|
|
|
10101
11276
|
DescribeBackupRulesRequest: DescribeBackupRulesRequest,
|
|
10102
11277
|
DescribeBackupDownloadTaskResponse: DescribeBackupDownloadTaskResponse,
|
|
10103
11278
|
AddNodeList: AddNodeList,
|
|
10104
|
-
|
|
11279
|
+
DescribeInstanceRolesResponse: DescribeInstanceRolesResponse,
|
|
10105
11280
|
DBInstanceInfo: DBInstanceInfo,
|
|
10106
11281
|
ParamType: ParamType,
|
|
10107
|
-
|
|
11282
|
+
EnablePasswordRotationResponse: EnablePasswordRotationResponse,
|
|
10108
11283
|
ModifyDBInstanceNetworkAddressRequest: ModifyDBInstanceNetworkAddressRequest,
|
|
10109
11284
|
CreateDBInstanceHourResponse: CreateDBInstanceHourResponse,
|
|
10110
11285
|
InstanceEnableSSLRequest: InstanceEnableSSLRequest,
|
|
@@ -10114,9 +11289,9 @@ module.exports = {
|
|
|
10114
11289
|
DeleteAccountUserRequest: DeleteAccountUserRequest,
|
|
10115
11290
|
SpecItem: SpecItem,
|
|
10116
11291
|
DescribeDetailedSlowLogsRequest: DescribeDetailedSlowLogsRequest,
|
|
10117
|
-
|
|
11292
|
+
CreateInstanceUserResponse: CreateInstanceUserResponse,
|
|
10118
11293
|
UpgradeDbInstanceVersionRequest: UpgradeDbInstanceVersionRequest,
|
|
10119
|
-
|
|
11294
|
+
InstanceUserInfo: InstanceUserInfo,
|
|
10120
11295
|
CreateAccountUserResponse: CreateAccountUserResponse,
|
|
10121
11296
|
DescribeSlowLogPatternsResponse: DescribeSlowLogPatternsResponse,
|
|
10122
11297
|
BackupDownloadTaskStatus: BackupDownloadTaskStatus,
|
|
@@ -10124,26 +11299,29 @@ module.exports = {
|
|
|
10124
11299
|
InquirePriceModifyDBInstanceSpecRequest: InquirePriceModifyDBInstanceSpecRequest,
|
|
10125
11300
|
BackupInfo: BackupInfo,
|
|
10126
11301
|
DescribeDBInstancesRequest: DescribeDBInstancesRequest,
|
|
10127
|
-
|
|
11302
|
+
DescribeInstanceUsersResponse: DescribeInstanceUsersResponse,
|
|
10128
11303
|
CurrentOp: CurrentOp,
|
|
10129
11304
|
ModifyDBInstanceSpecRequest: ModifyDBInstanceSpecRequest,
|
|
10130
11305
|
DescribeLogDownloadTasksRequest: DescribeLogDownloadTasksRequest,
|
|
10131
11306
|
Auth: Auth,
|
|
10132
11307
|
ResetDBInstancePasswordRequest: ResetDBInstancePasswordRequest,
|
|
11308
|
+
DeleteInstanceRoleRequest: DeleteInstanceRoleRequest,
|
|
10133
11309
|
InstanceIntegerParam: InstanceIntegerParam,
|
|
10134
|
-
|
|
11310
|
+
CreateInstanceUserRequest: CreateInstanceUserRequest,
|
|
10135
11311
|
ModifyNetworkAddress: ModifyNetworkAddress,
|
|
10136
11312
|
EnableSRVConnectionUrlResponse: EnableSRVConnectionUrlResponse,
|
|
10137
11313
|
DescribeAsyncRequestInfoResponse: DescribeAsyncRequestInfoResponse,
|
|
10138
11314
|
CreateDBInstanceResponse: CreateDBInstanceResponse,
|
|
11315
|
+
DeleteInstanceRoleResponse: DeleteInstanceRoleResponse,
|
|
10139
11316
|
CreateLogDownloadTaskRequest: CreateLogDownloadTaskRequest,
|
|
10140
11317
|
WanServiceNodeList: WanServiceNodeList,
|
|
10141
11318
|
CreateAccountUserRequest: CreateAccountUserRequest,
|
|
10142
11319
|
InstanceTextParam: InstanceTextParam,
|
|
10143
|
-
|
|
11320
|
+
InstanceEnableSSLResponse: InstanceEnableSSLResponse,
|
|
10144
11321
|
DeleteDBBackupsRequest: DeleteDBBackupsRequest,
|
|
10145
11322
|
DescribeDBInstanceNamespaceResponse: DescribeDBInstanceNamespaceResponse,
|
|
10146
11323
|
DescribeBackupDownloadTaskRequest: DescribeBackupDownloadTaskRequest,
|
|
11324
|
+
ModifyDBInstanceSecurityGroupRequest: ModifyDBInstanceSecurityGroupRequest,
|
|
10147
11325
|
ModifySRVConnectionUrlRequest: ModifySRVConnectionUrlRequest,
|
|
10148
11326
|
DescribeClientConnectionsResponse: DescribeClientConnectionsResponse,
|
|
10149
11327
|
DescribeAccountUsersResponse: DescribeAccountUsersResponse,
|
|
@@ -10155,7 +11333,9 @@ module.exports = {
|
|
|
10155
11333
|
NodeTag: NodeTag,
|
|
10156
11334
|
InquirePriceCreateDBInstancesResponse: InquirePriceCreateDBInstancesResponse,
|
|
10157
11335
|
CloseAuditServiceRequest: CloseAuditServiceRequest,
|
|
11336
|
+
DeleteInstanceUserResponse: DeleteInstanceUserResponse,
|
|
10158
11337
|
DescribeSecurityGroupResponse: DescribeSecurityGroupResponse,
|
|
11338
|
+
UpdateInstanceUserRequest: UpdateInstanceUserRequest,
|
|
10159
11339
|
SecurityGroup: SecurityGroup,
|
|
10160
11340
|
EnableWanServiceRequest: EnableWanServiceRequest,
|
|
10161
11341
|
ReplicaSetInfo: ReplicaSetInfo,
|
|
@@ -10165,6 +11345,7 @@ module.exports = {
|
|
|
10165
11345
|
DescribeDBInstanceDealRequest: DescribeDBInstanceDealRequest,
|
|
10166
11346
|
UpgradeDBInstanceKernelVersionResponse: UpgradeDBInstanceKernelVersionResponse,
|
|
10167
11347
|
DescribeAsyncRequestInfoRequest: DescribeAsyncRequestInfoRequest,
|
|
11348
|
+
DeleteInstanceUserRequest: DeleteInstanceUserRequest,
|
|
10168
11349
|
CreateBackupDownloadTaskRequest: CreateBackupDownloadTaskRequest,
|
|
10169
11350
|
TerminateDBInstancesRequest: TerminateDBInstancesRequest,
|
|
10170
11351
|
ParamTpl: ParamTpl,
|
|
@@ -10180,11 +11361,12 @@ module.exports = {
|
|
|
10180
11361
|
DescribeMongodbLogsResponse: DescribeMongodbLogsResponse,
|
|
10181
11362
|
ModifyBackupExpireTimeRequest: ModifyBackupExpireTimeRequest,
|
|
10182
11363
|
DescribeInstanceSSLResponse: DescribeInstanceSSLResponse,
|
|
11364
|
+
ModifyDBInstanceNetworkAddressResponse: ModifyDBInstanceNetworkAddressResponse,
|
|
10183
11365
|
DescribeCurrentOpRequest: DescribeCurrentOpRequest,
|
|
10184
11366
|
BackupDownloadTask: BackupDownloadTask,
|
|
10185
11367
|
DescribeDBBackupsRequest: DescribeDBBackupsRequest,
|
|
10186
11368
|
DescribeClientConnectionsRequest: DescribeClientConnectionsRequest,
|
|
10187
|
-
|
|
11369
|
+
SetAccountUserPrivilegeResponse: SetAccountUserPrivilegeResponse,
|
|
10188
11370
|
DescribeDetailedSlowLogsResponse: DescribeDetailedSlowLogsResponse,
|
|
10189
11371
|
ShardInfo: ShardInfo,
|
|
10190
11372
|
TerminateDBInstancesResponse: TerminateDBInstancesResponse,
|
|
@@ -10196,14 +11378,17 @@ module.exports = {
|
|
|
10196
11378
|
DescribeAuditConfigRequest: DescribeAuditConfigRequest,
|
|
10197
11379
|
CreateBackupDBInstanceRequest: CreateBackupDBInstanceRequest,
|
|
10198
11380
|
RestoreDatabases: RestoreDatabases,
|
|
11381
|
+
DescribeInstanceUsersRequest: DescribeInstanceUsersRequest,
|
|
10199
11382
|
SetAccountUserPrivilegeRequest: SetAccountUserPrivilegeRequest,
|
|
10200
11383
|
UpgradeDbInstanceVersionResponse: UpgradeDbInstanceVersionResponse,
|
|
10201
11384
|
NodeProperty: NodeProperty,
|
|
10202
11385
|
KillOpsResponse: KillOpsResponse,
|
|
10203
11386
|
IsolateDBInstanceRequest: IsolateDBInstanceRequest,
|
|
11387
|
+
UpdateInstanceRoleResponse: UpdateInstanceRoleResponse,
|
|
10204
11388
|
DescribePasswordRotationRequest: DescribePasswordRotationRequest,
|
|
10205
11389
|
AuditLogFile: AuditLogFile,
|
|
10206
11390
|
EnableTransparentDataEncryptionResponse: EnableTransparentDataEncryptionResponse,
|
|
11391
|
+
RoleResource: RoleResource,
|
|
10207
11392
|
DescribeAuditLogFilesRequest: DescribeAuditLogFilesRequest,
|
|
10208
11393
|
AssignProjectRequest: AssignProjectRequest,
|
|
10209
11394
|
DescribeMongodbLogsRequest: DescribeMongodbLogsRequest,
|
|
@@ -10221,15 +11406,23 @@ module.exports = {
|
|
|
10221
11406
|
DeleteAccountUserResponse: DeleteAccountUserResponse,
|
|
10222
11407
|
DescribeDBInstancesResponse: DescribeDBInstancesResponse,
|
|
10223
11408
|
OfflineIsolatedDBInstanceRequest: OfflineIsolatedDBInstanceRequest,
|
|
11409
|
+
ModifyInstanceAzResponse: ModifyInstanceAzResponse,
|
|
11410
|
+
CreateInstanceRoleResponse: CreateInstanceRoleResponse,
|
|
10224
11411
|
InquirePriceCreateDBInstancesRequest: InquirePriceCreateDBInstancesRequest,
|
|
11412
|
+
UpdateInstanceUserResponse: UpdateInstanceUserResponse,
|
|
10225
11413
|
Operation: Operation,
|
|
10226
11414
|
DescribeInstanceParamsResponse: DescribeInstanceParamsResponse,
|
|
10227
11415
|
DescribeDBInstanceParamTplResponse: DescribeDBInstanceParamTplResponse,
|
|
11416
|
+
RoleInfo: RoleInfo,
|
|
11417
|
+
DescribeInstanceRolesRequest: DescribeInstanceRolesRequest,
|
|
10228
11418
|
AuditLog: AuditLog,
|
|
10229
11419
|
DescribeLogDownloadTasksResponse: DescribeLogDownloadTasksResponse,
|
|
10230
11420
|
SlowLogItem: SlowLogItem,
|
|
11421
|
+
UpdateInstanceRoleRequest: UpdateInstanceRoleRequest,
|
|
11422
|
+
CreateInstanceRoleRequest: CreateInstanceRoleRequest,
|
|
10231
11423
|
ModifyMongoDBParamType: ModifyMongoDBParamType,
|
|
10232
11424
|
SetInstanceMaintenanceRequest: SetInstanceMaintenanceRequest,
|
|
11425
|
+
SetDBInstanceDeletionProtectionResponse: SetDBInstanceDeletionProtectionResponse,
|
|
10233
11426
|
DescribeDBInstanceParamTplDetailRequest: DescribeDBInstanceParamTplDetailRequest,
|
|
10234
11427
|
InstanceDetail: InstanceDetail,
|
|
10235
11428
|
ModifyDBInstanceSpecResponse: ModifyDBInstanceSpecResponse,
|