@alicloud/dds20151201 3.6.9 → 3.7.0

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/dist/client.js CHANGED
@@ -379,8 +379,12 @@ class CreateDBInstanceRequest extends $tea.Model {
379
379
  DBInstanceDescription: 'DBInstanceDescription',
380
380
  DBInstanceStorage: 'DBInstanceStorage',
381
381
  databaseNames: 'DatabaseNames',
382
+ encrypted: 'Encrypted',
383
+ encryptionKey: 'EncryptionKey',
382
384
  engine: 'Engine',
383
385
  engineVersion: 'EngineVersion',
386
+ globalSecurityGroupIds: 'GlobalSecurityGroupIds',
387
+ hiddenZoneId: 'HiddenZoneId',
384
388
  networkType: 'NetworkType',
385
389
  ownerAccount: 'OwnerAccount',
386
390
  ownerId: 'OwnerId',
@@ -392,11 +396,13 @@ class CreateDBInstanceRequest extends $tea.Model {
392
396
  resourceOwnerAccount: 'ResourceOwnerAccount',
393
397
  resourceOwnerId: 'ResourceOwnerId',
394
398
  restoreTime: 'RestoreTime',
399
+ secondaryZoneId: 'SecondaryZoneId',
395
400
  securityIPList: 'SecurityIPList',
396
401
  securityToken: 'SecurityToken',
397
402
  srcDBInstanceId: 'SrcDBInstanceId',
398
403
  storageEngine: 'StorageEngine',
399
404
  storageType: 'StorageType',
405
+ tag: 'Tag',
400
406
  vSwitchId: 'VSwitchId',
401
407
  vpcId: 'VpcId',
402
408
  zoneId: 'ZoneId',
@@ -416,8 +422,12 @@ class CreateDBInstanceRequest extends $tea.Model {
416
422
  DBInstanceDescription: 'string',
417
423
  DBInstanceStorage: 'number',
418
424
  databaseNames: 'string',
425
+ encrypted: 'boolean',
426
+ encryptionKey: 'string',
419
427
  engine: 'string',
420
428
  engineVersion: 'string',
429
+ globalSecurityGroupIds: 'string',
430
+ hiddenZoneId: 'string',
421
431
  networkType: 'string',
422
432
  ownerAccount: 'string',
423
433
  ownerId: 'number',
@@ -429,11 +439,13 @@ class CreateDBInstanceRequest extends $tea.Model {
429
439
  resourceOwnerAccount: 'string',
430
440
  resourceOwnerId: 'number',
431
441
  restoreTime: 'string',
442
+ secondaryZoneId: 'string',
432
443
  securityIPList: 'string',
433
444
  securityToken: 'string',
434
445
  srcDBInstanceId: 'string',
435
446
  storageEngine: 'string',
436
447
  storageType: 'string',
448
+ tag: { 'type': 'array', 'itemType': CreateDBInstanceRequestTag },
437
449
  vSwitchId: 'string',
438
450
  vpcId: 'string',
439
451
  zoneId: 'string',
@@ -481,6 +493,74 @@ class CreateDBInstanceResponse extends $tea.Model {
481
493
  }
482
494
  }
483
495
  exports.CreateDBInstanceResponse = CreateDBInstanceResponse;
496
+ class CreateGlobalSecurityIPGroupRequest extends $tea.Model {
497
+ constructor(map) {
498
+ super(map);
499
+ }
500
+ static names() {
501
+ return {
502
+ GIpList: 'GIpList',
503
+ globalIgName: 'GlobalIgName',
504
+ ownerAccount: 'OwnerAccount',
505
+ ownerId: 'OwnerId',
506
+ regionId: 'RegionId',
507
+ resourceOwnerAccount: 'ResourceOwnerAccount',
508
+ resourceOwnerId: 'ResourceOwnerId',
509
+ securityToken: 'SecurityToken',
510
+ };
511
+ }
512
+ static types() {
513
+ return {
514
+ GIpList: 'string',
515
+ globalIgName: 'string',
516
+ ownerAccount: 'string',
517
+ ownerId: 'number',
518
+ regionId: 'string',
519
+ resourceOwnerAccount: 'string',
520
+ resourceOwnerId: 'number',
521
+ securityToken: 'string',
522
+ };
523
+ }
524
+ }
525
+ exports.CreateGlobalSecurityIPGroupRequest = CreateGlobalSecurityIPGroupRequest;
526
+ class CreateGlobalSecurityIPGroupResponseBody extends $tea.Model {
527
+ constructor(map) {
528
+ super(map);
529
+ }
530
+ static names() {
531
+ return {
532
+ globalSecurityIPGroup: 'GlobalSecurityIPGroup',
533
+ requestId: 'RequestId',
534
+ };
535
+ }
536
+ static types() {
537
+ return {
538
+ globalSecurityIPGroup: { 'type': 'array', 'itemType': CreateGlobalSecurityIPGroupResponseBodyGlobalSecurityIPGroup },
539
+ requestId: 'string',
540
+ };
541
+ }
542
+ }
543
+ exports.CreateGlobalSecurityIPGroupResponseBody = CreateGlobalSecurityIPGroupResponseBody;
544
+ class CreateGlobalSecurityIPGroupResponse extends $tea.Model {
545
+ constructor(map) {
546
+ super(map);
547
+ }
548
+ static names() {
549
+ return {
550
+ headers: 'headers',
551
+ statusCode: 'statusCode',
552
+ body: 'body',
553
+ };
554
+ }
555
+ static types() {
556
+ return {
557
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
558
+ statusCode: 'number',
559
+ body: CreateGlobalSecurityIPGroupResponseBody,
560
+ };
561
+ }
562
+ }
563
+ exports.CreateGlobalSecurityIPGroupResponse = CreateGlobalSecurityIPGroupResponse;
484
564
  class CreateNodeRequest extends $tea.Model {
485
565
  constructor(map) {
486
566
  super(map);
@@ -665,8 +745,11 @@ class CreateShardingDBInstanceRequest extends $tea.Model {
665
745
  clientToken: 'ClientToken',
666
746
  configServer: 'ConfigServer',
667
747
  DBInstanceDescription: 'DBInstanceDescription',
748
+ encrypted: 'Encrypted',
749
+ encryptionKey: 'EncryptionKey',
668
750
  engine: 'Engine',
669
751
  engineVersion: 'EngineVersion',
752
+ globalSecurityGroupIds: 'GlobalSecurityGroupIds',
670
753
  hiddenZoneId: 'HiddenZoneId',
671
754
  mongos: 'Mongos',
672
755
  networkType: 'NetworkType',
@@ -685,6 +768,8 @@ class CreateShardingDBInstanceRequest extends $tea.Model {
685
768
  securityToken: 'SecurityToken',
686
769
  srcDBInstanceId: 'SrcDBInstanceId',
687
770
  storageEngine: 'StorageEngine',
771
+ storageType: 'StorageType',
772
+ tag: 'Tag',
688
773
  vSwitchId: 'VSwitchId',
689
774
  vpcId: 'VpcId',
690
775
  zoneId: 'ZoneId',
@@ -698,8 +783,11 @@ class CreateShardingDBInstanceRequest extends $tea.Model {
698
783
  clientToken: 'string',
699
784
  configServer: { 'type': 'array', 'itemType': CreateShardingDBInstanceRequestConfigServer },
700
785
  DBInstanceDescription: 'string',
786
+ encrypted: 'boolean',
787
+ encryptionKey: 'string',
701
788
  engine: 'string',
702
789
  engineVersion: 'string',
790
+ globalSecurityGroupIds: 'string',
703
791
  hiddenZoneId: 'string',
704
792
  mongos: { 'type': 'array', 'itemType': CreateShardingDBInstanceRequestMongos },
705
793
  networkType: 'string',
@@ -718,6 +806,8 @@ class CreateShardingDBInstanceRequest extends $tea.Model {
718
806
  securityToken: 'string',
719
807
  srcDBInstanceId: 'string',
720
808
  storageEngine: 'string',
809
+ storageType: 'string',
810
+ tag: { 'type': 'array', 'itemType': CreateShardingDBInstanceRequestTag },
721
811
  vSwitchId: 'string',
722
812
  vpcId: 'string',
723
813
  zoneId: 'string',
@@ -829,6 +919,72 @@ class DeleteDBInstanceResponse extends $tea.Model {
829
919
  }
830
920
  }
831
921
  exports.DeleteDBInstanceResponse = DeleteDBInstanceResponse;
922
+ class DeleteGlobalSecurityIPGroupRequest extends $tea.Model {
923
+ constructor(map) {
924
+ super(map);
925
+ }
926
+ static names() {
927
+ return {
928
+ globalIgName: 'GlobalIgName',
929
+ globalSecurityGroupId: 'GlobalSecurityGroupId',
930
+ ownerAccount: 'OwnerAccount',
931
+ ownerId: 'OwnerId',
932
+ regionId: 'RegionId',
933
+ resourceOwnerAccount: 'ResourceOwnerAccount',
934
+ resourceOwnerId: 'ResourceOwnerId',
935
+ securityToken: 'SecurityToken',
936
+ };
937
+ }
938
+ static types() {
939
+ return {
940
+ globalIgName: 'string',
941
+ globalSecurityGroupId: 'string',
942
+ ownerAccount: 'string',
943
+ ownerId: 'number',
944
+ regionId: 'string',
945
+ resourceOwnerAccount: 'string',
946
+ resourceOwnerId: 'number',
947
+ securityToken: 'string',
948
+ };
949
+ }
950
+ }
951
+ exports.DeleteGlobalSecurityIPGroupRequest = DeleteGlobalSecurityIPGroupRequest;
952
+ class DeleteGlobalSecurityIPGroupResponseBody extends $tea.Model {
953
+ constructor(map) {
954
+ super(map);
955
+ }
956
+ static names() {
957
+ return {
958
+ requestId: 'RequestId',
959
+ };
960
+ }
961
+ static types() {
962
+ return {
963
+ requestId: 'string',
964
+ };
965
+ }
966
+ }
967
+ exports.DeleteGlobalSecurityIPGroupResponseBody = DeleteGlobalSecurityIPGroupResponseBody;
968
+ class DeleteGlobalSecurityIPGroupResponse extends $tea.Model {
969
+ constructor(map) {
970
+ super(map);
971
+ }
972
+ static names() {
973
+ return {
974
+ headers: 'headers',
975
+ statusCode: 'statusCode',
976
+ body: 'body',
977
+ };
978
+ }
979
+ static types() {
980
+ return {
981
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
982
+ statusCode: 'number',
983
+ body: DeleteGlobalSecurityIPGroupResponseBody,
984
+ };
985
+ }
986
+ }
987
+ exports.DeleteGlobalSecurityIPGroupResponse = DeleteGlobalSecurityIPGroupResponse;
832
988
  class DeleteNodeRequest extends $tea.Model {
833
989
  constructor(map) {
834
990
  super(map);
@@ -1319,6 +1475,90 @@ class DescribeAuditRecordsResponse extends $tea.Model {
1319
1475
  }
1320
1476
  }
1321
1477
  exports.DescribeAuditRecordsResponse = DescribeAuditRecordsResponse;
1478
+ class DescribeAvailabilityZonesRequest extends $tea.Model {
1479
+ constructor(map) {
1480
+ super(map);
1481
+ }
1482
+ static names() {
1483
+ return {
1484
+ acceptLanguage: 'AcceptLanguage',
1485
+ dbType: 'DbType',
1486
+ excludeSecondaryZoneId: 'ExcludeSecondaryZoneId',
1487
+ excludeZoneId: 'ExcludeZoneId',
1488
+ instanceChargeType: 'InstanceChargeType',
1489
+ mongoType: 'MongoType',
1490
+ ownerAccount: 'OwnerAccount',
1491
+ ownerId: 'OwnerId',
1492
+ regionId: 'RegionId',
1493
+ resourceGroupId: 'ResourceGroupId',
1494
+ resourceOwnerAccount: 'ResourceOwnerAccount',
1495
+ resourceOwnerId: 'ResourceOwnerId',
1496
+ securityToken: 'SecurityToken',
1497
+ storageSupport: 'StorageSupport',
1498
+ storageType: 'StorageType',
1499
+ zoneId: 'ZoneId',
1500
+ };
1501
+ }
1502
+ static types() {
1503
+ return {
1504
+ acceptLanguage: 'string',
1505
+ dbType: 'string',
1506
+ excludeSecondaryZoneId: 'string',
1507
+ excludeZoneId: 'string',
1508
+ instanceChargeType: 'string',
1509
+ mongoType: 'string',
1510
+ ownerAccount: 'string',
1511
+ ownerId: 'number',
1512
+ regionId: 'string',
1513
+ resourceGroupId: 'string',
1514
+ resourceOwnerAccount: 'string',
1515
+ resourceOwnerId: 'number',
1516
+ securityToken: 'string',
1517
+ storageSupport: 'string',
1518
+ storageType: 'string',
1519
+ zoneId: 'string',
1520
+ };
1521
+ }
1522
+ }
1523
+ exports.DescribeAvailabilityZonesRequest = DescribeAvailabilityZonesRequest;
1524
+ class DescribeAvailabilityZonesResponseBody extends $tea.Model {
1525
+ constructor(map) {
1526
+ super(map);
1527
+ }
1528
+ static names() {
1529
+ return {
1530
+ availableZones: 'AvailableZones',
1531
+ requestId: 'RequestId',
1532
+ };
1533
+ }
1534
+ static types() {
1535
+ return {
1536
+ availableZones: { 'type': 'array', 'itemType': DescribeAvailabilityZonesResponseBodyAvailableZones },
1537
+ requestId: 'string',
1538
+ };
1539
+ }
1540
+ }
1541
+ exports.DescribeAvailabilityZonesResponseBody = DescribeAvailabilityZonesResponseBody;
1542
+ class DescribeAvailabilityZonesResponse extends $tea.Model {
1543
+ constructor(map) {
1544
+ super(map);
1545
+ }
1546
+ static names() {
1547
+ return {
1548
+ headers: 'headers',
1549
+ statusCode: 'statusCode',
1550
+ body: 'body',
1551
+ };
1552
+ }
1553
+ static types() {
1554
+ return {
1555
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1556
+ statusCode: 'number',
1557
+ body: DescribeAvailabilityZonesResponseBody,
1558
+ };
1559
+ }
1560
+ }
1561
+ exports.DescribeAvailabilityZonesResponse = DescribeAvailabilityZonesResponse;
1322
1562
  class DescribeAvailableEngineVersionRequest extends $tea.Model {
1323
1563
  constructor(map) {
1324
1564
  super(map);
@@ -1567,22 +1807,26 @@ class DescribeBackupPolicyResponseBody extends $tea.Model {
1567
1807
  }
1568
1808
  static names() {
1569
1809
  return {
1810
+ backupInterval: 'BackupInterval',
1570
1811
  backupRetentionPeriod: 'BackupRetentionPeriod',
1571
1812
  enableBackupLog: 'EnableBackupLog',
1572
1813
  logBackupRetentionPeriod: 'LogBackupRetentionPeriod',
1573
1814
  preferredBackupPeriod: 'PreferredBackupPeriod',
1574
1815
  preferredBackupTime: 'PreferredBackupTime',
1575
1816
  requestId: 'RequestId',
1817
+ snapshotBackupType: 'SnapshotBackupType',
1576
1818
  };
1577
1819
  }
1578
1820
  static types() {
1579
1821
  return {
1822
+ backupInterval: 'number',
1580
1823
  backupRetentionPeriod: 'string',
1581
1824
  enableBackupLog: 'number',
1582
1825
  logBackupRetentionPeriod: 'number',
1583
1826
  preferredBackupPeriod: 'string',
1584
1827
  preferredBackupTime: 'string',
1585
1828
  requestId: 'string',
1829
+ snapshotBackupType: 'string',
1586
1830
  };
1587
1831
  }
1588
1832
  }
@@ -1697,6 +1941,7 @@ class DescribeDBInstanceAttributeRequest extends $tea.Model {
1697
1941
  return {
1698
1942
  DBInstanceId: 'DBInstanceId',
1699
1943
  engine: 'Engine',
1944
+ isDelete: 'IsDelete',
1700
1945
  ownerAccount: 'OwnerAccount',
1701
1946
  ownerId: 'OwnerId',
1702
1947
  resourceGroupId: 'ResourceGroupId',
@@ -1709,6 +1954,7 @@ class DescribeDBInstanceAttributeRequest extends $tea.Model {
1709
1954
  return {
1710
1955
  DBInstanceId: 'string',
1711
1956
  engine: 'string',
1957
+ isDelete: 'boolean',
1712
1958
  ownerAccount: 'string',
1713
1959
  ownerId: 'number',
1714
1960
  resourceGroupId: 'string',
@@ -2126,6 +2372,7 @@ class DescribeDBInstancesRequest extends $tea.Model {
2126
2372
  DBInstanceId: 'DBInstanceId',
2127
2373
  DBInstanceStatus: 'DBInstanceStatus',
2128
2374
  DBInstanceType: 'DBInstanceType',
2375
+ DBNodeType: 'DBNodeType',
2129
2376
  engine: 'Engine',
2130
2377
  engineVersion: 'EngineVersion',
2131
2378
  expireTime: 'ExpireTime',
@@ -2156,6 +2403,7 @@ class DescribeDBInstancesRequest extends $tea.Model {
2156
2403
  DBInstanceId: 'string',
2157
2404
  DBInstanceStatus: 'string',
2158
2405
  DBInstanceType: 'string',
2406
+ DBNodeType: 'string',
2159
2407
  engine: 'string',
2160
2408
  engineVersion: 'string',
2161
2409
  expireTime: 'string',
@@ -2311,77 +2559,75 @@ class DescribeDBInstancesOverviewResponse extends $tea.Model {
2311
2559
  }
2312
2560
  }
2313
2561
  exports.DescribeDBInstancesOverviewResponse = DescribeDBInstancesOverviewResponse;
2314
- class DescribeDedicatedClusterInstanceListRequest extends $tea.Model {
2562
+ class DescribeErrorLogRecordsRequest extends $tea.Model {
2315
2563
  constructor(map) {
2316
2564
  super(map);
2317
2565
  }
2318
2566
  static names() {
2319
2567
  return {
2320
- clusterId: 'ClusterId',
2321
- dedicatedHostName: 'DedicatedHostName',
2322
- engine: 'Engine',
2323
- engineVersion: 'EngineVersion',
2324
- instanceId: 'InstanceId',
2325
- instanceNetType: 'InstanceNetType',
2326
- instanceStatus: 'InstanceStatus',
2568
+ DBInstanceId: 'DBInstanceId',
2569
+ DBName: 'DBName',
2570
+ endTime: 'EndTime',
2571
+ nodeId: 'NodeId',
2327
2572
  ownerAccount: 'OwnerAccount',
2328
2573
  ownerId: 'OwnerId',
2329
2574
  pageNumber: 'PageNumber',
2330
2575
  pageSize: 'PageSize',
2331
- regionId: 'RegionId',
2576
+ resourceGroupId: 'ResourceGroupId',
2332
2577
  resourceOwnerAccount: 'ResourceOwnerAccount',
2333
2578
  resourceOwnerId: 'ResourceOwnerId',
2579
+ roleType: 'RoleType',
2334
2580
  securityToken: 'SecurityToken',
2335
- zoneId: 'ZoneId',
2581
+ startTime: 'StartTime',
2336
2582
  };
2337
2583
  }
2338
2584
  static types() {
2339
2585
  return {
2340
- clusterId: 'string',
2341
- dedicatedHostName: 'string',
2342
- engine: 'string',
2343
- engineVersion: 'string',
2344
- instanceId: 'string',
2345
- instanceNetType: 'string',
2346
- instanceStatus: 'string',
2586
+ DBInstanceId: 'string',
2587
+ DBName: 'string',
2588
+ endTime: 'string',
2589
+ nodeId: 'string',
2347
2590
  ownerAccount: 'string',
2348
2591
  ownerId: 'number',
2349
2592
  pageNumber: 'number',
2350
2593
  pageSize: 'number',
2351
- regionId: 'string',
2594
+ resourceGroupId: 'string',
2352
2595
  resourceOwnerAccount: 'string',
2353
2596
  resourceOwnerId: 'number',
2597
+ roleType: 'string',
2354
2598
  securityToken: 'string',
2355
- zoneId: 'string',
2599
+ startTime: 'string',
2356
2600
  };
2357
2601
  }
2358
2602
  }
2359
- exports.DescribeDedicatedClusterInstanceListRequest = DescribeDedicatedClusterInstanceListRequest;
2360
- class DescribeDedicatedClusterInstanceListResponseBody extends $tea.Model {
2603
+ exports.DescribeErrorLogRecordsRequest = DescribeErrorLogRecordsRequest;
2604
+ class DescribeErrorLogRecordsResponseBody extends $tea.Model {
2361
2605
  constructor(map) {
2362
2606
  super(map);
2363
2607
  }
2364
2608
  static names() {
2365
2609
  return {
2366
- instances: 'Instances',
2610
+ engine: 'Engine',
2611
+ items: 'Items',
2367
2612
  pageNumber: 'PageNumber',
2368
- pageSize: 'PageSize',
2613
+ pageRecordCount: 'PageRecordCount',
2369
2614
  requestId: 'RequestId',
2370
- totalCount: 'TotalCount',
2615
+ totalRecordCount: 'TotalRecordCount',
2371
2616
  };
2372
2617
  }
2373
2618
  static types() {
2374
2619
  return {
2375
- instances: DescribeDedicatedClusterInstanceListResponseBodyInstances,
2620
+ engine: 'string',
2621
+ items: DescribeErrorLogRecordsResponseBodyItems,
2376
2622
  pageNumber: 'number',
2377
- pageSize: 'number',
2623
+ pageRecordCount: 'number',
2378
2624
  requestId: 'string',
2379
- totalCount: 'number',
2625
+ totalRecordCount: 'number',
2380
2626
  };
2381
2627
  }
2382
2628
  }
2383
- exports.DescribeDedicatedClusterInstanceListResponseBody = DescribeDedicatedClusterInstanceListResponseBody;
2384
- class DescribeDedicatedClusterInstanceListResponse extends $tea.Model {
2629
+ exports.DescribeErrorLogRecordsResponseBody = DescribeErrorLogRecordsResponseBody;
2630
+ class DescribeErrorLogRecordsResponse extends $tea.Model {
2385
2631
  constructor(map) {
2386
2632
  super(map);
2387
2633
  }
@@ -2396,80 +2642,58 @@ class DescribeDedicatedClusterInstanceListResponse extends $tea.Model {
2396
2642
  return {
2397
2643
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2398
2644
  statusCode: 'number',
2399
- body: DescribeDedicatedClusterInstanceListResponseBody,
2645
+ body: DescribeErrorLogRecordsResponseBody,
2400
2646
  };
2401
2647
  }
2402
2648
  }
2403
- exports.DescribeDedicatedClusterInstanceListResponse = DescribeDedicatedClusterInstanceListResponse;
2404
- class DescribeErrorLogRecordsRequest extends $tea.Model {
2649
+ exports.DescribeErrorLogRecordsResponse = DescribeErrorLogRecordsResponse;
2650
+ class DescribeGlobalSecurityIPGroupRequest extends $tea.Model {
2405
2651
  constructor(map) {
2406
2652
  super(map);
2407
2653
  }
2408
2654
  static names() {
2409
2655
  return {
2410
- DBInstanceId: 'DBInstanceId',
2411
- DBName: 'DBName',
2412
- endTime: 'EndTime',
2413
- nodeId: 'NodeId',
2656
+ globalSecurityGroupId: 'GlobalSecurityGroupId',
2414
2657
  ownerAccount: 'OwnerAccount',
2415
2658
  ownerId: 'OwnerId',
2416
- pageNumber: 'PageNumber',
2417
- pageSize: 'PageSize',
2418
- resourceGroupId: 'ResourceGroupId',
2659
+ regionId: 'RegionId',
2419
2660
  resourceOwnerAccount: 'ResourceOwnerAccount',
2420
2661
  resourceOwnerId: 'ResourceOwnerId',
2421
- roleType: 'RoleType',
2422
2662
  securityToken: 'SecurityToken',
2423
- startTime: 'StartTime',
2424
2663
  };
2425
2664
  }
2426
2665
  static types() {
2427
2666
  return {
2428
- DBInstanceId: 'string',
2429
- DBName: 'string',
2430
- endTime: 'string',
2431
- nodeId: 'string',
2667
+ globalSecurityGroupId: 'string',
2432
2668
  ownerAccount: 'string',
2433
2669
  ownerId: 'number',
2434
- pageNumber: 'number',
2435
- pageSize: 'number',
2436
- resourceGroupId: 'string',
2670
+ regionId: 'string',
2437
2671
  resourceOwnerAccount: 'string',
2438
2672
  resourceOwnerId: 'number',
2439
- roleType: 'string',
2440
2673
  securityToken: 'string',
2441
- startTime: 'string',
2442
2674
  };
2443
2675
  }
2444
2676
  }
2445
- exports.DescribeErrorLogRecordsRequest = DescribeErrorLogRecordsRequest;
2446
- class DescribeErrorLogRecordsResponseBody extends $tea.Model {
2677
+ exports.DescribeGlobalSecurityIPGroupRequest = DescribeGlobalSecurityIPGroupRequest;
2678
+ class DescribeGlobalSecurityIPGroupResponseBody extends $tea.Model {
2447
2679
  constructor(map) {
2448
2680
  super(map);
2449
2681
  }
2450
2682
  static names() {
2451
2683
  return {
2452
- engine: 'Engine',
2453
- items: 'Items',
2454
- pageNumber: 'PageNumber',
2455
- pageRecordCount: 'PageRecordCount',
2684
+ globalSecurityIPGroup: 'GlobalSecurityIPGroup',
2456
2685
  requestId: 'RequestId',
2457
- totalRecordCount: 'TotalRecordCount',
2458
2686
  };
2459
2687
  }
2460
2688
  static types() {
2461
2689
  return {
2462
- engine: 'string',
2463
- items: DescribeErrorLogRecordsResponseBodyItems,
2464
- pageNumber: 'number',
2465
- pageRecordCount: 'number',
2690
+ globalSecurityIPGroup: { 'type': 'array', 'itemType': DescribeGlobalSecurityIPGroupResponseBodyGlobalSecurityIPGroup },
2466
2691
  requestId: 'string',
2467
- totalRecordCount: 'number',
2468
2692
  };
2469
2693
  }
2470
2694
  }
2471
- exports.DescribeErrorLogRecordsResponseBody = DescribeErrorLogRecordsResponseBody;
2472
- class DescribeErrorLogRecordsResponse extends $tea.Model {
2695
+ exports.DescribeGlobalSecurityIPGroupResponseBody = DescribeGlobalSecurityIPGroupResponseBody;
2696
+ class DescribeGlobalSecurityIPGroupResponse extends $tea.Model {
2473
2697
  constructor(map) {
2474
2698
  super(map);
2475
2699
  }
@@ -2484,11 +2708,79 @@ class DescribeErrorLogRecordsResponse extends $tea.Model {
2484
2708
  return {
2485
2709
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2486
2710
  statusCode: 'number',
2487
- body: DescribeErrorLogRecordsResponseBody,
2711
+ body: DescribeGlobalSecurityIPGroupResponseBody,
2488
2712
  };
2489
2713
  }
2490
2714
  }
2491
- exports.DescribeErrorLogRecordsResponse = DescribeErrorLogRecordsResponse;
2715
+ exports.DescribeGlobalSecurityIPGroupResponse = DescribeGlobalSecurityIPGroupResponse;
2716
+ class DescribeGlobalSecurityIPGroupRelationRequest extends $tea.Model {
2717
+ constructor(map) {
2718
+ super(map);
2719
+ }
2720
+ static names() {
2721
+ return {
2722
+ DBClusterId: 'DBClusterId',
2723
+ ownerAccount: 'OwnerAccount',
2724
+ ownerId: 'OwnerId',
2725
+ regionId: 'RegionId',
2726
+ resourceOwnerAccount: 'ResourceOwnerAccount',
2727
+ resourceOwnerId: 'ResourceOwnerId',
2728
+ securityToken: 'SecurityToken',
2729
+ };
2730
+ }
2731
+ static types() {
2732
+ return {
2733
+ DBClusterId: 'string',
2734
+ ownerAccount: 'string',
2735
+ ownerId: 'number',
2736
+ regionId: 'string',
2737
+ resourceOwnerAccount: 'string',
2738
+ resourceOwnerId: 'number',
2739
+ securityToken: 'string',
2740
+ };
2741
+ }
2742
+ }
2743
+ exports.DescribeGlobalSecurityIPGroupRelationRequest = DescribeGlobalSecurityIPGroupRelationRequest;
2744
+ class DescribeGlobalSecurityIPGroupRelationResponseBody extends $tea.Model {
2745
+ constructor(map) {
2746
+ super(map);
2747
+ }
2748
+ static names() {
2749
+ return {
2750
+ DBClusterId: 'DBClusterId',
2751
+ globalSecurityIPGroupRel: 'GlobalSecurityIPGroupRel',
2752
+ requestId: 'RequestId',
2753
+ };
2754
+ }
2755
+ static types() {
2756
+ return {
2757
+ DBClusterId: 'string',
2758
+ globalSecurityIPGroupRel: { 'type': 'array', 'itemType': DescribeGlobalSecurityIPGroupRelationResponseBodyGlobalSecurityIPGroupRel },
2759
+ requestId: 'string',
2760
+ };
2761
+ }
2762
+ }
2763
+ exports.DescribeGlobalSecurityIPGroupRelationResponseBody = DescribeGlobalSecurityIPGroupRelationResponseBody;
2764
+ class DescribeGlobalSecurityIPGroupRelationResponse extends $tea.Model {
2765
+ constructor(map) {
2766
+ super(map);
2767
+ }
2768
+ static names() {
2769
+ return {
2770
+ headers: 'headers',
2771
+ statusCode: 'statusCode',
2772
+ body: 'body',
2773
+ };
2774
+ }
2775
+ static types() {
2776
+ return {
2777
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2778
+ statusCode: 'number',
2779
+ body: DescribeGlobalSecurityIPGroupRelationResponseBody,
2780
+ };
2781
+ }
2782
+ }
2783
+ exports.DescribeGlobalSecurityIPGroupRelationResponse = DescribeGlobalSecurityIPGroupRelationResponse;
2492
2784
  class DescribeInstanceAutoRenewalAttributeRequest extends $tea.Model {
2493
2785
  constructor(map) {
2494
2786
  super(map);
@@ -2869,6 +3161,7 @@ class DescribeParametersRequest extends $tea.Model {
2869
3161
  return {
2870
3162
  characterType: 'CharacterType',
2871
3163
  DBInstanceId: 'DBInstanceId',
3164
+ extraParam: 'ExtraParam',
2872
3165
  nodeId: 'NodeId',
2873
3166
  ownerAccount: 'OwnerAccount',
2874
3167
  ownerId: 'OwnerId',
@@ -2881,6 +3174,7 @@ class DescribeParametersRequest extends $tea.Model {
2881
3174
  return {
2882
3175
  characterType: 'string',
2883
3176
  DBInstanceId: 'string',
3177
+ extraParam: 'string',
2884
3178
  nodeId: 'string',
2885
3179
  ownerAccount: 'string',
2886
3180
  ownerId: 'number',
@@ -3892,6 +4186,7 @@ class EvaluateResourceRequest extends $tea.Model {
3892
4186
  resourceOwnerId: 'ResourceOwnerId',
3893
4187
  securityToken: 'SecurityToken',
3894
4188
  shardsInfo: 'ShardsInfo',
4189
+ storage: 'Storage',
3895
4190
  zoneId: 'ZoneId',
3896
4191
  };
3897
4192
  }
@@ -3910,6 +4205,7 @@ class EvaluateResourceRequest extends $tea.Model {
3910
4205
  resourceOwnerId: 'number',
3911
4206
  securityToken: 'string',
3912
4207
  shardsInfo: 'string',
4208
+ storage: 'string',
3913
4209
  zoneId: 'string',
3914
4210
  };
3915
4211
  }
@@ -4369,6 +4665,7 @@ class ModifyBackupPolicyRequest extends $tea.Model {
4369
4665
  }
4370
4666
  static names() {
4371
4667
  return {
4668
+ backupInterval: 'BackupInterval',
4372
4669
  backupRetentionPeriod: 'BackupRetentionPeriod',
4373
4670
  DBInstanceId: 'DBInstanceId',
4374
4671
  enableBackupLog: 'EnableBackupLog',
@@ -4380,10 +4677,12 @@ class ModifyBackupPolicyRequest extends $tea.Model {
4380
4677
  resourceOwnerAccount: 'ResourceOwnerAccount',
4381
4678
  resourceOwnerId: 'ResourceOwnerId',
4382
4679
  securityToken: 'SecurityToken',
4680
+ snapshotBackupType: 'SnapshotBackupType',
4383
4681
  };
4384
4682
  }
4385
4683
  static types() {
4386
4684
  return {
4685
+ backupInterval: 'string',
4387
4686
  backupRetentionPeriod: 'number',
4388
4687
  DBInstanceId: 'string',
4389
4688
  enableBackupLog: 'number',
@@ -4395,6 +4694,7 @@ class ModifyBackupPolicyRequest extends $tea.Model {
4395
4694
  resourceOwnerAccount: 'string',
4396
4695
  resourceOwnerId: 'number',
4397
4696
  securityToken: 'string',
4697
+ snapshotBackupType: 'string',
4398
4698
  };
4399
4699
  }
4400
4700
  }
@@ -4444,6 +4744,7 @@ class ModifyDBInstanceConnectionStringRequest extends $tea.Model {
4444
4744
  currentConnectionString: 'CurrentConnectionString',
4445
4745
  DBInstanceId: 'DBInstanceId',
4446
4746
  newConnectionString: 'NewConnectionString',
4747
+ newPort: 'NewPort',
4447
4748
  nodeId: 'NodeId',
4448
4749
  ownerAccount: 'OwnerAccount',
4449
4750
  ownerId: 'OwnerId',
@@ -4457,6 +4758,7 @@ class ModifyDBInstanceConnectionStringRequest extends $tea.Model {
4457
4758
  currentConnectionString: 'string',
4458
4759
  DBInstanceId: 'string',
4459
4760
  newConnectionString: 'string',
4761
+ newPort: 'number',
4460
4762
  nodeId: 'string',
4461
4763
  ownerAccount: 'string',
4462
4764
  ownerId: 'number',
@@ -4782,6 +5084,7 @@ class ModifyDBInstanceNetworkTypeRequest extends $tea.Model {
4782
5084
  securityToken: 'SecurityToken',
4783
5085
  vSwitchId: 'VSwitchId',
4784
5086
  vpcId: 'VpcId',
5087
+ zoneId: 'ZoneId',
4785
5088
  };
4786
5089
  }
4787
5090
  static types() {
@@ -4797,6 +5100,7 @@ class ModifyDBInstanceNetworkTypeRequest extends $tea.Model {
4797
5100
  securityToken: 'string',
4798
5101
  vSwitchId: 'string',
4799
5102
  vpcId: 'string',
5103
+ zoneId: 'string',
4800
5104
  };
4801
5105
  }
4802
5106
  }
@@ -4844,7 +5148,6 @@ class ModifyDBInstanceSSLRequest extends $tea.Model {
4844
5148
  static names() {
4845
5149
  return {
4846
5150
  DBInstanceId: 'DBInstanceId',
4847
- disableTlsProtocol: 'DisableTlsProtocol',
4848
5151
  ownerAccount: 'OwnerAccount',
4849
5152
  ownerId: 'OwnerId',
4850
5153
  resourceOwnerAccount: 'ResourceOwnerAccount',
@@ -4856,7 +5159,6 @@ class ModifyDBInstanceSSLRequest extends $tea.Model {
4856
5159
  static types() {
4857
5160
  return {
4858
5161
  DBInstanceId: 'string',
4859
- disableTlsProtocol: 'string',
4860
5162
  ownerAccount: 'string',
4861
5163
  ownerId: 'number',
4862
5164
  resourceOwnerAccount: 'string',
@@ -4916,6 +5218,7 @@ class ModifyDBInstanceSpecRequest extends $tea.Model {
4916
5218
  DBInstanceId: 'DBInstanceId',
4917
5219
  DBInstanceStorage: 'DBInstanceStorage',
4918
5220
  effectiveTime: 'EffectiveTime',
5221
+ extraParam: 'ExtraParam',
4919
5222
  orderType: 'OrderType',
4920
5223
  ownerAccount: 'OwnerAccount',
4921
5224
  ownerId: 'OwnerId',
@@ -4935,6 +5238,7 @@ class ModifyDBInstanceSpecRequest extends $tea.Model {
4935
5238
  DBInstanceId: 'string',
4936
5239
  DBInstanceStorage: 'string',
4937
5240
  effectiveTime: 'string',
5241
+ extraParam: 'string',
4938
5242
  orderType: 'string',
4939
5243
  ownerAccount: 'string',
4940
5244
  ownerId: 'number',
@@ -5055,6 +5359,208 @@ class ModifyDBInstanceTDEResponse extends $tea.Model {
5055
5359
  }
5056
5360
  }
5057
5361
  exports.ModifyDBInstanceTDEResponse = ModifyDBInstanceTDEResponse;
5362
+ class ModifyGlobalSecurityIPGroupRequest extends $tea.Model {
5363
+ constructor(map) {
5364
+ super(map);
5365
+ }
5366
+ static names() {
5367
+ return {
5368
+ GIpList: 'GIpList',
5369
+ globalIgName: 'GlobalIgName',
5370
+ globalSecurityGroupId: 'GlobalSecurityGroupId',
5371
+ ownerAccount: 'OwnerAccount',
5372
+ ownerId: 'OwnerId',
5373
+ regionId: 'RegionId',
5374
+ resourceOwnerAccount: 'ResourceOwnerAccount',
5375
+ resourceOwnerId: 'ResourceOwnerId',
5376
+ securityToken: 'SecurityToken',
5377
+ };
5378
+ }
5379
+ static types() {
5380
+ return {
5381
+ GIpList: 'string',
5382
+ globalIgName: 'string',
5383
+ globalSecurityGroupId: 'string',
5384
+ ownerAccount: 'string',
5385
+ ownerId: 'number',
5386
+ regionId: 'string',
5387
+ resourceOwnerAccount: 'string',
5388
+ resourceOwnerId: 'number',
5389
+ securityToken: 'string',
5390
+ };
5391
+ }
5392
+ }
5393
+ exports.ModifyGlobalSecurityIPGroupRequest = ModifyGlobalSecurityIPGroupRequest;
5394
+ class ModifyGlobalSecurityIPGroupResponseBody extends $tea.Model {
5395
+ constructor(map) {
5396
+ super(map);
5397
+ }
5398
+ static names() {
5399
+ return {
5400
+ requestId: 'RequestId',
5401
+ };
5402
+ }
5403
+ static types() {
5404
+ return {
5405
+ requestId: 'string',
5406
+ };
5407
+ }
5408
+ }
5409
+ exports.ModifyGlobalSecurityIPGroupResponseBody = ModifyGlobalSecurityIPGroupResponseBody;
5410
+ class ModifyGlobalSecurityIPGroupResponse extends $tea.Model {
5411
+ constructor(map) {
5412
+ super(map);
5413
+ }
5414
+ static names() {
5415
+ return {
5416
+ headers: 'headers',
5417
+ statusCode: 'statusCode',
5418
+ body: 'body',
5419
+ };
5420
+ }
5421
+ static types() {
5422
+ return {
5423
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5424
+ statusCode: 'number',
5425
+ body: ModifyGlobalSecurityIPGroupResponseBody,
5426
+ };
5427
+ }
5428
+ }
5429
+ exports.ModifyGlobalSecurityIPGroupResponse = ModifyGlobalSecurityIPGroupResponse;
5430
+ class ModifyGlobalSecurityIPGroupNameRequest extends $tea.Model {
5431
+ constructor(map) {
5432
+ super(map);
5433
+ }
5434
+ static names() {
5435
+ return {
5436
+ globalIgName: 'GlobalIgName',
5437
+ globalSecurityGroupId: 'GlobalSecurityGroupId',
5438
+ ownerAccount: 'OwnerAccount',
5439
+ ownerId: 'OwnerId',
5440
+ regionId: 'RegionId',
5441
+ resourceOwnerAccount: 'ResourceOwnerAccount',
5442
+ resourceOwnerId: 'ResourceOwnerId',
5443
+ securityToken: 'SecurityToken',
5444
+ };
5445
+ }
5446
+ static types() {
5447
+ return {
5448
+ globalIgName: 'string',
5449
+ globalSecurityGroupId: 'string',
5450
+ ownerAccount: 'string',
5451
+ ownerId: 'number',
5452
+ regionId: 'string',
5453
+ resourceOwnerAccount: 'string',
5454
+ resourceOwnerId: 'number',
5455
+ securityToken: 'string',
5456
+ };
5457
+ }
5458
+ }
5459
+ exports.ModifyGlobalSecurityIPGroupNameRequest = ModifyGlobalSecurityIPGroupNameRequest;
5460
+ class ModifyGlobalSecurityIPGroupNameResponseBody extends $tea.Model {
5461
+ constructor(map) {
5462
+ super(map);
5463
+ }
5464
+ static names() {
5465
+ return {
5466
+ globalSecurityIPGroup: 'GlobalSecurityIPGroup',
5467
+ requestId: 'RequestId',
5468
+ };
5469
+ }
5470
+ static types() {
5471
+ return {
5472
+ globalSecurityIPGroup: { 'type': 'array', 'itemType': ModifyGlobalSecurityIPGroupNameResponseBodyGlobalSecurityIPGroup },
5473
+ requestId: 'string',
5474
+ };
5475
+ }
5476
+ }
5477
+ exports.ModifyGlobalSecurityIPGroupNameResponseBody = ModifyGlobalSecurityIPGroupNameResponseBody;
5478
+ class ModifyGlobalSecurityIPGroupNameResponse extends $tea.Model {
5479
+ constructor(map) {
5480
+ super(map);
5481
+ }
5482
+ static names() {
5483
+ return {
5484
+ headers: 'headers',
5485
+ statusCode: 'statusCode',
5486
+ body: 'body',
5487
+ };
5488
+ }
5489
+ static types() {
5490
+ return {
5491
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5492
+ statusCode: 'number',
5493
+ body: ModifyGlobalSecurityIPGroupNameResponseBody,
5494
+ };
5495
+ }
5496
+ }
5497
+ exports.ModifyGlobalSecurityIPGroupNameResponse = ModifyGlobalSecurityIPGroupNameResponse;
5498
+ class ModifyGlobalSecurityIPGroupRelationRequest extends $tea.Model {
5499
+ constructor(map) {
5500
+ super(map);
5501
+ }
5502
+ static names() {
5503
+ return {
5504
+ DBClusterId: 'DBClusterId',
5505
+ globalSecurityGroupId: 'GlobalSecurityGroupId',
5506
+ ownerAccount: 'OwnerAccount',
5507
+ ownerId: 'OwnerId',
5508
+ regionId: 'RegionId',
5509
+ resourceOwnerAccount: 'ResourceOwnerAccount',
5510
+ resourceOwnerId: 'ResourceOwnerId',
5511
+ securityToken: 'SecurityToken',
5512
+ };
5513
+ }
5514
+ static types() {
5515
+ return {
5516
+ DBClusterId: 'string',
5517
+ globalSecurityGroupId: 'string',
5518
+ ownerAccount: 'string',
5519
+ ownerId: 'number',
5520
+ regionId: 'string',
5521
+ resourceOwnerAccount: 'string',
5522
+ resourceOwnerId: 'number',
5523
+ securityToken: 'string',
5524
+ };
5525
+ }
5526
+ }
5527
+ exports.ModifyGlobalSecurityIPGroupRelationRequest = ModifyGlobalSecurityIPGroupRelationRequest;
5528
+ class ModifyGlobalSecurityIPGroupRelationResponseBody extends $tea.Model {
5529
+ constructor(map) {
5530
+ super(map);
5531
+ }
5532
+ static names() {
5533
+ return {
5534
+ requestId: 'RequestId',
5535
+ };
5536
+ }
5537
+ static types() {
5538
+ return {
5539
+ requestId: 'string',
5540
+ };
5541
+ }
5542
+ }
5543
+ exports.ModifyGlobalSecurityIPGroupRelationResponseBody = ModifyGlobalSecurityIPGroupRelationResponseBody;
5544
+ class ModifyGlobalSecurityIPGroupRelationResponse extends $tea.Model {
5545
+ constructor(map) {
5546
+ super(map);
5547
+ }
5548
+ static names() {
5549
+ return {
5550
+ headers: 'headers',
5551
+ statusCode: 'statusCode',
5552
+ body: 'body',
5553
+ };
5554
+ }
5555
+ static types() {
5556
+ return {
5557
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5558
+ statusCode: 'number',
5559
+ body: ModifyGlobalSecurityIPGroupRelationResponseBody,
5560
+ };
5561
+ }
5562
+ }
5563
+ exports.ModifyGlobalSecurityIPGroupRelationResponse = ModifyGlobalSecurityIPGroupRelationResponse;
5058
5564
  class ModifyInstanceAutoRenewalAttributeRequest extends $tea.Model {
5059
5565
  constructor(map) {
5060
5566
  super(map);
@@ -5839,6 +6345,7 @@ class ResetAccountPasswordRequest extends $tea.Model {
5839
6345
  return {
5840
6346
  accountName: 'AccountName',
5841
6347
  accountPassword: 'AccountPassword',
6348
+ characterType: 'CharacterType',
5842
6349
  DBInstanceId: 'DBInstanceId',
5843
6350
  ownerAccount: 'OwnerAccount',
5844
6351
  ownerId: 'OwnerId',
@@ -5851,6 +6358,7 @@ class ResetAccountPasswordRequest extends $tea.Model {
5851
6358
  return {
5852
6359
  accountName: 'string',
5853
6360
  accountPassword: 'string',
6361
+ characterType: 'string',
5854
6362
  DBInstanceId: 'string',
5855
6363
  ownerAccount: 'string',
5856
6364
  ownerId: 'number',
@@ -6161,6 +6669,82 @@ class TagResourcesResponse extends $tea.Model {
6161
6669
  }
6162
6670
  }
6163
6671
  exports.TagResourcesResponse = TagResourcesResponse;
6672
+ class TransformInstanceChargeTypeRequest extends $tea.Model {
6673
+ constructor(map) {
6674
+ super(map);
6675
+ }
6676
+ static names() {
6677
+ return {
6678
+ autoPay: 'AutoPay',
6679
+ autoRenew: 'AutoRenew',
6680
+ businessInfo: 'BusinessInfo',
6681
+ chargeType: 'ChargeType',
6682
+ couponNo: 'CouponNo',
6683
+ instanceId: 'InstanceId',
6684
+ ownerAccount: 'OwnerAccount',
6685
+ ownerId: 'OwnerId',
6686
+ period: 'Period',
6687
+ resourceOwnerAccount: 'ResourceOwnerAccount',
6688
+ resourceOwnerId: 'ResourceOwnerId',
6689
+ securityToken: 'SecurityToken',
6690
+ };
6691
+ }
6692
+ static types() {
6693
+ return {
6694
+ autoPay: 'boolean',
6695
+ autoRenew: 'string',
6696
+ businessInfo: 'string',
6697
+ chargeType: 'string',
6698
+ couponNo: 'string',
6699
+ instanceId: 'string',
6700
+ ownerAccount: 'string',
6701
+ ownerId: 'number',
6702
+ period: 'number',
6703
+ resourceOwnerAccount: 'string',
6704
+ resourceOwnerId: 'number',
6705
+ securityToken: 'string',
6706
+ };
6707
+ }
6708
+ }
6709
+ exports.TransformInstanceChargeTypeRequest = TransformInstanceChargeTypeRequest;
6710
+ class TransformInstanceChargeTypeResponseBody extends $tea.Model {
6711
+ constructor(map) {
6712
+ super(map);
6713
+ }
6714
+ static names() {
6715
+ return {
6716
+ orderId: 'OrderId',
6717
+ requestId: 'RequestId',
6718
+ };
6719
+ }
6720
+ static types() {
6721
+ return {
6722
+ orderId: 'string',
6723
+ requestId: 'string',
6724
+ };
6725
+ }
6726
+ }
6727
+ exports.TransformInstanceChargeTypeResponseBody = TransformInstanceChargeTypeResponseBody;
6728
+ class TransformInstanceChargeTypeResponse extends $tea.Model {
6729
+ constructor(map) {
6730
+ super(map);
6731
+ }
6732
+ static names() {
6733
+ return {
6734
+ headers: 'headers',
6735
+ statusCode: 'statusCode',
6736
+ body: 'body',
6737
+ };
6738
+ }
6739
+ static types() {
6740
+ return {
6741
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6742
+ statusCode: 'number',
6743
+ body: TransformInstanceChargeTypeResponseBody,
6744
+ };
6745
+ }
6746
+ }
6747
+ exports.TransformInstanceChargeTypeResponse = TransformInstanceChargeTypeResponse;
6164
6748
  class TransformToPrePaidRequest extends $tea.Model {
6165
6749
  constructor(map) {
6166
6750
  super(map);
@@ -6431,6 +7015,46 @@ class UpgradeDBInstanceKernelVersionResponse extends $tea.Model {
6431
7015
  }
6432
7016
  }
6433
7017
  exports.UpgradeDBInstanceKernelVersionResponse = UpgradeDBInstanceKernelVersionResponse;
7018
+ class CreateDBInstanceRequestTag extends $tea.Model {
7019
+ constructor(map) {
7020
+ super(map);
7021
+ }
7022
+ static names() {
7023
+ return {
7024
+ key: 'Key',
7025
+ value: 'Value',
7026
+ };
7027
+ }
7028
+ static types() {
7029
+ return {
7030
+ key: 'string',
7031
+ value: 'string',
7032
+ };
7033
+ }
7034
+ }
7035
+ exports.CreateDBInstanceRequestTag = CreateDBInstanceRequestTag;
7036
+ class CreateGlobalSecurityIPGroupResponseBodyGlobalSecurityIPGroup extends $tea.Model {
7037
+ constructor(map) {
7038
+ super(map);
7039
+ }
7040
+ static names() {
7041
+ return {
7042
+ GIpList: 'GIpList',
7043
+ globalIgName: 'GlobalIgName',
7044
+ globalSecurityGroupId: 'GlobalSecurityGroupId',
7045
+ regionId: 'RegionId',
7046
+ };
7047
+ }
7048
+ static types() {
7049
+ return {
7050
+ GIpList: 'string',
7051
+ globalIgName: 'string',
7052
+ globalSecurityGroupId: 'string',
7053
+ regionId: 'string',
7054
+ };
7055
+ }
7056
+ }
7057
+ exports.CreateGlobalSecurityIPGroupResponseBodyGlobalSecurityIPGroup = CreateGlobalSecurityIPGroupResponseBodyGlobalSecurityIPGroup;
6434
7058
  class CreateShardingDBInstanceRequestConfigServer extends $tea.Model {
6435
7059
  constructor(map) {
6436
7060
  super(map);
@@ -6485,6 +7109,24 @@ class CreateShardingDBInstanceRequestReplicaSet extends $tea.Model {
6485
7109
  }
6486
7110
  }
6487
7111
  exports.CreateShardingDBInstanceRequestReplicaSet = CreateShardingDBInstanceRequestReplicaSet;
7112
+ class CreateShardingDBInstanceRequestTag extends $tea.Model {
7113
+ constructor(map) {
7114
+ super(map);
7115
+ }
7116
+ static names() {
7117
+ return {
7118
+ key: 'Key',
7119
+ value: 'Value',
7120
+ };
7121
+ }
7122
+ static types() {
7123
+ return {
7124
+ key: 'string',
7125
+ value: 'string',
7126
+ };
7127
+ }
7128
+ }
7129
+ exports.CreateShardingDBInstanceRequestTag = CreateShardingDBInstanceRequestTag;
6488
7130
  class DescribeAccountsResponseBodyAccountsAccount extends $tea.Model {
6489
7131
  constructor(map) {
6490
7132
  super(map);
@@ -6595,6 +7237,26 @@ class DescribeAuditRecordsResponseBodyItems extends $tea.Model {
6595
7237
  }
6596
7238
  }
6597
7239
  exports.DescribeAuditRecordsResponseBodyItems = DescribeAuditRecordsResponseBodyItems;
7240
+ class DescribeAvailabilityZonesResponseBodyAvailableZones extends $tea.Model {
7241
+ constructor(map) {
7242
+ super(map);
7243
+ }
7244
+ static names() {
7245
+ return {
7246
+ regionId: 'RegionId',
7247
+ zoneId: 'ZoneId',
7248
+ zoneName: 'ZoneName',
7249
+ };
7250
+ }
7251
+ static types() {
7252
+ return {
7253
+ regionId: 'string',
7254
+ zoneId: 'string',
7255
+ zoneName: 'string',
7256
+ };
7257
+ }
7258
+ }
7259
+ exports.DescribeAvailabilityZonesResponseBodyAvailableZones = DescribeAvailabilityZonesResponseBodyAvailableZones;
6598
7260
  class DescribeAvailableEngineVersionResponseBodyEngineVersions extends $tea.Model {
6599
7261
  constructor(map) {
6600
7262
  super(map);
@@ -7167,10 +7829,14 @@ class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstance extends $tea.
7167
7829
  DBInstanceClass: 'DBInstanceClass',
7168
7830
  DBInstanceDescription: 'DBInstanceDescription',
7169
7831
  DBInstanceId: 'DBInstanceId',
7832
+ DBInstanceOrderStatus: 'DBInstanceOrderStatus',
7170
7833
  DBInstanceReleaseProtection: 'DBInstanceReleaseProtection',
7171
7834
  DBInstanceStatus: 'DBInstanceStatus',
7172
7835
  DBInstanceStorage: 'DBInstanceStorage',
7173
7836
  DBInstanceType: 'DBInstanceType',
7837
+ destroyTime: 'DestroyTime',
7838
+ encrypted: 'Encrypted',
7839
+ encryptionKey: 'EncryptionKey',
7174
7840
  engine: 'Engine',
7175
7841
  engineVersion: 'EngineVersion',
7176
7842
  expireTime: 'ExpireTime',
@@ -7195,6 +7861,8 @@ class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstance extends $tea.
7195
7861
  secondaryZoneId: 'SecondaryZoneId',
7196
7862
  shardList: 'ShardList',
7197
7863
  storageEngine: 'StorageEngine',
7864
+ storageType: 'StorageType',
7865
+ syncPercent: 'SyncPercent',
7198
7866
  tags: 'Tags',
7199
7867
  VPCCloudInstanceIds: 'VPCCloudInstanceIds',
7200
7868
  VPCId: 'VPCId',
@@ -7213,10 +7881,14 @@ class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstance extends $tea.
7213
7881
  DBInstanceClass: 'string',
7214
7882
  DBInstanceDescription: 'string',
7215
7883
  DBInstanceId: 'string',
7884
+ DBInstanceOrderStatus: 'string',
7216
7885
  DBInstanceReleaseProtection: 'boolean',
7217
7886
  DBInstanceStatus: 'string',
7218
7887
  DBInstanceStorage: 'number',
7219
7888
  DBInstanceType: 'string',
7889
+ destroyTime: 'string',
7890
+ encrypted: 'boolean',
7891
+ encryptionKey: 'string',
7220
7892
  engine: 'string',
7221
7893
  engineVersion: 'string',
7222
7894
  expireTime: 'string',
@@ -7241,6 +7913,8 @@ class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstance extends $tea.
7241
7913
  secondaryZoneId: 'string',
7242
7914
  shardList: DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceShardList,
7243
7915
  storageEngine: 'string',
7916
+ storageType: 'string',
7917
+ syncPercent: 'string',
7244
7918
  tags: DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceTags,
7245
7919
  VPCCloudInstanceIds: 'string',
7246
7920
  VPCId: 'string',
@@ -7679,162 +8353,92 @@ class DescribeDBInstancesOverviewResponseBodyDBInstances extends $tea.Model {
7679
8353
  }
7680
8354
  }
7681
8355
  exports.DescribeDBInstancesOverviewResponseBodyDBInstances = DescribeDBInstancesOverviewResponseBodyDBInstances;
7682
- class DescribeDedicatedClusterInstanceListResponseBodyInstancesDbInstanceInstanceNodeListInstanceNodes extends $tea.Model {
7683
- constructor(map) {
7684
- super(map);
7685
- }
7686
- static names() {
7687
- return {
7688
- dedicatedHostName: 'DedicatedHostName',
7689
- insName: 'InsName',
7690
- nodeId: 'NodeId',
7691
- nodeIp: 'NodeIp',
7692
- nodeType: 'NodeType',
7693
- port: 'Port',
7694
- role: 'Role',
7695
- zoneId: 'ZoneId',
7696
- };
7697
- }
7698
- static types() {
7699
- return {
7700
- dedicatedHostName: 'string',
7701
- insName: 'string',
7702
- nodeId: 'number',
7703
- nodeIp: 'string',
7704
- nodeType: 'string',
7705
- port: 'number',
7706
- role: 'string',
7707
- zoneId: 'string',
7708
- };
7709
- }
7710
- }
7711
- exports.DescribeDedicatedClusterInstanceListResponseBodyInstancesDbInstanceInstanceNodeListInstanceNodes = DescribeDedicatedClusterInstanceListResponseBodyInstancesDbInstanceInstanceNodeListInstanceNodes;
7712
- class DescribeDedicatedClusterInstanceListResponseBodyInstancesDbInstanceInstanceNodeList extends $tea.Model {
7713
- constructor(map) {
7714
- super(map);
7715
- }
7716
- static names() {
7717
- return {
7718
- instanceNodes: 'InstanceNodes',
7719
- };
7720
- }
7721
- static types() {
7722
- return {
7723
- instanceNodes: { 'type': 'array', 'itemType': DescribeDedicatedClusterInstanceListResponseBodyInstancesDbInstanceInstanceNodeListInstanceNodes },
7724
- };
7725
- }
7726
- }
7727
- exports.DescribeDedicatedClusterInstanceListResponseBodyInstancesDbInstanceInstanceNodeList = DescribeDedicatedClusterInstanceListResponseBodyInstancesDbInstanceInstanceNodeList;
7728
- class DescribeDedicatedClusterInstanceListResponseBodyInstancesDbInstance extends $tea.Model {
8356
+ class DescribeErrorLogRecordsResponseBodyItemsLogRecords extends $tea.Model {
7729
8357
  constructor(map) {
7730
8358
  super(map);
7731
8359
  }
7732
8360
  static names() {
7733
8361
  return {
7734
- characterType: 'CharacterType',
7735
- clusterId: 'ClusterId',
7736
- clusterName: 'ClusterName',
8362
+ category: 'Category',
8363
+ connInfo: 'ConnInfo',
8364
+ content: 'Content',
7737
8365
  createTime: 'CreateTime',
7738
- customId: 'CustomId',
7739
- engine: 'Engine',
7740
- engineVersion: 'EngineVersion',
7741
- instanceClass: 'InstanceClass',
7742
- instanceId: 'InstanceId',
7743
- instanceName: 'InstanceName',
7744
- instanceNodeList: 'InstanceNodeList',
7745
- instanceStatus: 'InstanceStatus',
7746
- maintainEndTime: 'MaintainEndTime',
7747
- maintainStartTime: 'MaintainStartTime',
7748
- region: 'Region',
7749
- regionId: 'RegionId',
7750
- storageType: 'StorageType',
7751
- vpcId: 'VpcId',
7752
- vswitchId: 'VswitchId',
7753
- zoneId: 'ZoneId',
8366
+ id: 'Id',
7754
8367
  };
7755
8368
  }
7756
8369
  static types() {
7757
8370
  return {
7758
- characterType: 'string',
7759
- clusterId: 'string',
7760
- clusterName: 'string',
8371
+ category: 'string',
8372
+ connInfo: 'string',
8373
+ content: 'string',
7761
8374
  createTime: 'string',
7762
- customId: 'string',
7763
- engine: 'string',
7764
- engineVersion: 'string',
7765
- instanceClass: 'string',
7766
- instanceId: 'string',
7767
- instanceName: 'string',
7768
- instanceNodeList: DescribeDedicatedClusterInstanceListResponseBodyInstancesDbInstanceInstanceNodeList,
7769
- instanceStatus: 'string',
7770
- maintainEndTime: 'string',
7771
- maintainStartTime: 'string',
7772
- region: 'string',
7773
- regionId: 'string',
7774
- storageType: 'string',
7775
- vpcId: 'string',
7776
- vswitchId: 'string',
7777
- zoneId: 'string',
8375
+ id: 'number',
7778
8376
  };
7779
8377
  }
7780
8378
  }
7781
- exports.DescribeDedicatedClusterInstanceListResponseBodyInstancesDbInstance = DescribeDedicatedClusterInstanceListResponseBodyInstancesDbInstance;
7782
- class DescribeDedicatedClusterInstanceListResponseBodyInstances extends $tea.Model {
8379
+ exports.DescribeErrorLogRecordsResponseBodyItemsLogRecords = DescribeErrorLogRecordsResponseBodyItemsLogRecords;
8380
+ class DescribeErrorLogRecordsResponseBodyItems extends $tea.Model {
7783
8381
  constructor(map) {
7784
8382
  super(map);
7785
8383
  }
7786
8384
  static names() {
7787
8385
  return {
7788
- dbInstance: 'dbInstance',
8386
+ logRecords: 'LogRecords',
7789
8387
  };
7790
8388
  }
7791
8389
  static types() {
7792
8390
  return {
7793
- dbInstance: { 'type': 'array', 'itemType': DescribeDedicatedClusterInstanceListResponseBodyInstancesDbInstance },
8391
+ logRecords: { 'type': 'array', 'itemType': DescribeErrorLogRecordsResponseBodyItemsLogRecords },
7794
8392
  };
7795
8393
  }
7796
8394
  }
7797
- exports.DescribeDedicatedClusterInstanceListResponseBodyInstances = DescribeDedicatedClusterInstanceListResponseBodyInstances;
7798
- class DescribeErrorLogRecordsResponseBodyItemsLogRecords extends $tea.Model {
8395
+ exports.DescribeErrorLogRecordsResponseBodyItems = DescribeErrorLogRecordsResponseBodyItems;
8396
+ class DescribeGlobalSecurityIPGroupResponseBodyGlobalSecurityIPGroup extends $tea.Model {
7799
8397
  constructor(map) {
7800
8398
  super(map);
7801
8399
  }
7802
8400
  static names() {
7803
8401
  return {
7804
- category: 'Category',
7805
- connInfo: 'ConnInfo',
7806
- content: 'Content',
7807
- createTime: 'CreateTime',
7808
- id: 'Id',
8402
+ DBInstances: 'DBInstances',
8403
+ GIpList: 'GIpList',
8404
+ globalIgName: 'GlobalIgName',
8405
+ globalSecurityGroupId: 'GlobalSecurityGroupId',
8406
+ regionId: 'RegionId',
7809
8407
  };
7810
8408
  }
7811
8409
  static types() {
7812
8410
  return {
7813
- category: 'string',
7814
- connInfo: 'string',
7815
- content: 'string',
7816
- createTime: 'string',
7817
- id: 'number',
8411
+ DBInstances: { 'type': 'array', 'itemType': 'string' },
8412
+ GIpList: 'string',
8413
+ globalIgName: 'string',
8414
+ globalSecurityGroupId: 'string',
8415
+ regionId: 'string',
7818
8416
  };
7819
8417
  }
7820
8418
  }
7821
- exports.DescribeErrorLogRecordsResponseBodyItemsLogRecords = DescribeErrorLogRecordsResponseBodyItemsLogRecords;
7822
- class DescribeErrorLogRecordsResponseBodyItems extends $tea.Model {
8419
+ exports.DescribeGlobalSecurityIPGroupResponseBodyGlobalSecurityIPGroup = DescribeGlobalSecurityIPGroupResponseBodyGlobalSecurityIPGroup;
8420
+ class DescribeGlobalSecurityIPGroupRelationResponseBodyGlobalSecurityIPGroupRel extends $tea.Model {
7823
8421
  constructor(map) {
7824
8422
  super(map);
7825
8423
  }
7826
8424
  static names() {
7827
8425
  return {
7828
- logRecords: 'LogRecords',
8426
+ GIpList: 'GIpList',
8427
+ globalIgName: 'GlobalIgName',
8428
+ globalSecurityGroupId: 'GlobalSecurityGroupId',
8429
+ regionId: 'RegionId',
7829
8430
  };
7830
8431
  }
7831
8432
  static types() {
7832
8433
  return {
7833
- logRecords: { 'type': 'array', 'itemType': DescribeErrorLogRecordsResponseBodyItemsLogRecords },
8434
+ GIpList: 'string',
8435
+ globalIgName: 'string',
8436
+ globalSecurityGroupId: 'string',
8437
+ regionId: 'string',
7834
8438
  };
7835
8439
  }
7836
8440
  }
7837
- exports.DescribeErrorLogRecordsResponseBodyItems = DescribeErrorLogRecordsResponseBodyItems;
8441
+ exports.DescribeGlobalSecurityIPGroupRelationResponseBodyGlobalSecurityIPGroupRel = DescribeGlobalSecurityIPGroupRelationResponseBodyGlobalSecurityIPGroupRel;
7838
8442
  class DescribeInstanceAutoRenewalAttributeResponseBodyItemsItem extends $tea.Model {
7839
8443
  constructor(map) {
7840
8444
  super(map);
@@ -8037,6 +8641,7 @@ class DescribeParametersResponseBodyRunningParametersParameter extends $tea.Mode
8037
8641
  }
8038
8642
  static names() {
8039
8643
  return {
8644
+ characterType: 'CharacterType',
8040
8645
  checkingCode: 'CheckingCode',
8041
8646
  forceRestart: 'ForceRestart',
8042
8647
  modifiableStatus: 'ModifiableStatus',
@@ -8047,6 +8652,7 @@ class DescribeParametersResponseBodyRunningParametersParameter extends $tea.Mode
8047
8652
  }
8048
8653
  static types() {
8049
8654
  return {
8655
+ characterType: 'string',
8050
8656
  checkingCode: 'string',
8051
8657
  forceRestart: 'string',
8052
8658
  modifiableStatus: 'string',
@@ -8056,41 +8662,65 @@ class DescribeParametersResponseBodyRunningParametersParameter extends $tea.Mode
8056
8662
  };
8057
8663
  }
8058
8664
  }
8059
- exports.DescribeParametersResponseBodyRunningParametersParameter = DescribeParametersResponseBodyRunningParametersParameter;
8060
- class DescribeParametersResponseBodyRunningParameters extends $tea.Model {
8665
+ exports.DescribeParametersResponseBodyRunningParametersParameter = DescribeParametersResponseBodyRunningParametersParameter;
8666
+ class DescribeParametersResponseBodyRunningParameters extends $tea.Model {
8667
+ constructor(map) {
8668
+ super(map);
8669
+ }
8670
+ static names() {
8671
+ return {
8672
+ parameter: 'Parameter',
8673
+ };
8674
+ }
8675
+ static types() {
8676
+ return {
8677
+ parameter: { 'type': 'array', 'itemType': DescribeParametersResponseBodyRunningParametersParameter },
8678
+ };
8679
+ }
8680
+ }
8681
+ exports.DescribeParametersResponseBodyRunningParameters = DescribeParametersResponseBodyRunningParameters;
8682
+ class DescribePriceResponseBodyOrderCouponsCouponPromotionRuleIdList extends $tea.Model {
8061
8683
  constructor(map) {
8062
8684
  super(map);
8063
8685
  }
8064
8686
  static names() {
8065
8687
  return {
8066
- parameter: 'Parameter',
8688
+ promotionRuleId: 'PromotionRuleId',
8067
8689
  };
8068
8690
  }
8069
8691
  static types() {
8070
8692
  return {
8071
- parameter: { 'type': 'array', 'itemType': DescribeParametersResponseBodyRunningParametersParameter },
8693
+ promotionRuleId: { 'type': 'array', 'itemType': 'number' },
8072
8694
  };
8073
8695
  }
8074
8696
  }
8075
- exports.DescribeParametersResponseBodyRunningParameters = DescribeParametersResponseBodyRunningParameters;
8697
+ exports.DescribePriceResponseBodyOrderCouponsCouponPromotionRuleIdList = DescribePriceResponseBodyOrderCouponsCouponPromotionRuleIdList;
8076
8698
  class DescribePriceResponseBodyOrderCouponsCoupon extends $tea.Model {
8077
8699
  constructor(map) {
8078
8700
  super(map);
8079
8701
  }
8080
8702
  static names() {
8081
8703
  return {
8704
+ activityCategory: 'ActivityCategory',
8082
8705
  couponNo: 'CouponNo',
8083
8706
  description: 'Description',
8084
8707
  isSelected: 'IsSelected',
8085
8708
  name: 'Name',
8709
+ optionCode: 'OptionCode',
8710
+ promotionOptionCode: 'PromotionOptionCode',
8711
+ promotionRuleIdList: 'PromotionRuleIdList',
8086
8712
  };
8087
8713
  }
8088
8714
  static types() {
8089
8715
  return {
8716
+ activityCategory: 'string',
8090
8717
  couponNo: 'string',
8091
8718
  description: 'string',
8092
8719
  isSelected: 'string',
8093
8720
  name: 'string',
8721
+ optionCode: 'string',
8722
+ promotionOptionCode: 'string',
8723
+ promotionRuleIdList: DescribePriceResponseBodyOrderCouponsCouponPromotionRuleIdList,
8094
8724
  };
8095
8725
  }
8096
8726
  }
@@ -8581,7 +9211,6 @@ class DescribeRunningLogRecordsResponseBodyItemsLogRecords extends $tea.Model {
8581
9211
  connInfo: 'ConnInfo',
8582
9212
  content: 'Content',
8583
9213
  createTime: 'CreateTime',
8584
- id: 'Id',
8585
9214
  };
8586
9215
  }
8587
9216
  static types() {
@@ -8590,7 +9219,6 @@ class DescribeRunningLogRecordsResponseBodyItemsLogRecords extends $tea.Model {
8590
9219
  connInfo: 'string',
8591
9220
  content: 'string',
8592
9221
  createTime: 'string',
8593
- id: 'number',
8594
9222
  };
8595
9223
  }
8596
9224
  }
@@ -8917,6 +9545,28 @@ class ListTagResourcesResponseBodyTagResources extends $tea.Model {
8917
9545
  }
8918
9546
  }
8919
9547
  exports.ListTagResourcesResponseBodyTagResources = ListTagResourcesResponseBodyTagResources;
9548
+ class ModifyGlobalSecurityIPGroupNameResponseBodyGlobalSecurityIPGroup extends $tea.Model {
9549
+ constructor(map) {
9550
+ super(map);
9551
+ }
9552
+ static names() {
9553
+ return {
9554
+ GIpList: 'GIpList',
9555
+ globalIgName: 'GlobalIgName',
9556
+ globalSecurityGroupId: 'GlobalSecurityGroupId',
9557
+ regionId: 'RegionId',
9558
+ };
9559
+ }
9560
+ static types() {
9561
+ return {
9562
+ GIpList: 'string',
9563
+ globalIgName: 'string',
9564
+ globalSecurityGroupId: 'string',
9565
+ regionId: 'string',
9566
+ };
9567
+ }
9568
+ }
9569
+ exports.ModifyGlobalSecurityIPGroupNameResponseBodyGlobalSecurityIPGroup = ModifyGlobalSecurityIPGroupNameResponseBodyGlobalSecurityIPGroup;
8920
9570
  class TagResourcesRequestTag extends $tea.Model {
8921
9571
  constructor(map) {
8922
9572
  super(map);
@@ -8951,6 +9601,14 @@ class Client extends openapi_client_1.default {
8951
9601
  }
8952
9602
  return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
8953
9603
  }
9604
+ /**
9605
+ * This operation applies only to sharded cluster instances. For more information, see [Apply for an endpoint for a shard or Configserver node](~~134037~~).
9606
+ * > The requested endpoint can only be accessed over the internal network. If you want to access the endpoint over the Internet, call the [AllocatePublicNetworkAddress](~~67602~~) operation to apply for a public endpoint.
9607
+ *
9608
+ * @param request AllocateNodePrivateNetworkAddressRequest
9609
+ * @param runtime runtime options for this request RuntimeOptions
9610
+ * @return AllocateNodePrivateNetworkAddressResponse
9611
+ */
8954
9612
  async allocateNodePrivateNetworkAddressWithOptions(request, runtime) {
8955
9613
  tea_util_1.default.validateModel(request);
8956
9614
  let query = {};
@@ -9000,6 +9658,13 @@ class Client extends openapi_client_1.default {
9000
9658
  });
9001
9659
  return $tea.cast(await this.callApi(params, req, runtime), new AllocateNodePrivateNetworkAddressResponse({}));
9002
9660
  }
9661
+ /**
9662
+ * This operation applies only to sharded cluster instances. For more information, see [Apply for an endpoint for a shard or Configserver node](~~134037~~).
9663
+ * > The requested endpoint can only be accessed over the internal network. If you want to access the endpoint over the Internet, call the [AllocatePublicNetworkAddress](~~67602~~) operation to apply for a public endpoint.
9664
+ *
9665
+ * @param request AllocateNodePrivateNetworkAddressRequest
9666
+ * @return AllocateNodePrivateNetworkAddressResponse
9667
+ */
9003
9668
  async allocateNodePrivateNetworkAddress(request) {
9004
9669
  let runtime = new $Util.RuntimeOptions({});
9005
9670
  return await this.allocateNodePrivateNetworkAddressWithOptions(request, runtime);
@@ -9048,6 +9713,13 @@ class Client extends openapi_client_1.default {
9048
9713
  let runtime = new $Util.RuntimeOptions({});
9049
9714
  return await this.allocatePublicNetworkAddressWithOptions(request, runtime);
9050
9715
  }
9716
+ /**
9717
+ * Before you enable Transparent Data Encryption (TDE) by calling the [ModifyDBInstanceTDE](~~131267~~) operation, you can call this operation to check whether KMS keys are authorized to ApsaraDB for MongoDB instances.
9718
+ *
9719
+ * @param request CheckCloudResourceAuthorizedRequest
9720
+ * @param runtime runtime options for this request RuntimeOptions
9721
+ * @return CheckCloudResourceAuthorizedResponse
9722
+ */
9051
9723
  async checkCloudResourceAuthorizedWithOptions(request, runtime) {
9052
9724
  tea_util_1.default.validateModel(request);
9053
9725
  let query = {};
@@ -9088,10 +9760,23 @@ class Client extends openapi_client_1.default {
9088
9760
  });
9089
9761
  return $tea.cast(await this.callApi(params, req, runtime), new CheckCloudResourceAuthorizedResponse({}));
9090
9762
  }
9763
+ /**
9764
+ * Before you enable Transparent Data Encryption (TDE) by calling the [ModifyDBInstanceTDE](~~131267~~) operation, you can call this operation to check whether KMS keys are authorized to ApsaraDB for MongoDB instances.
9765
+ *
9766
+ * @param request CheckCloudResourceAuthorizedRequest
9767
+ * @return CheckCloudResourceAuthorizedResponse
9768
+ */
9091
9769
  async checkCloudResourceAuthorized(request) {
9092
9770
  let runtime = new $Util.RuntimeOptions({});
9093
9771
  return await this.checkCloudResourceAuthorizedWithOptions(request, runtime);
9094
9772
  }
9773
+ /**
9774
+ * You can call this operation to check whether an ApsaraDB for MongoDB instance meets the data recovery conditions.
9775
+ *
9776
+ * @param request CheckRecoveryConditionRequest
9777
+ * @param runtime runtime options for this request RuntimeOptions
9778
+ * @return CheckRecoveryConditionResponse
9779
+ */
9095
9780
  async checkRecoveryConditionWithOptions(request, runtime) {
9096
9781
  tea_util_1.default.validateModel(request);
9097
9782
  let query = {};
@@ -9141,10 +9826,24 @@ class Client extends openapi_client_1.default {
9141
9826
  });
9142
9827
  return $tea.cast(await this.callApi(params, req, runtime), new CheckRecoveryConditionResponse({}));
9143
9828
  }
9829
+ /**
9830
+ * You can call this operation to check whether an ApsaraDB for MongoDB instance meets the data recovery conditions.
9831
+ *
9832
+ * @param request CheckRecoveryConditionRequest
9833
+ * @return CheckRecoveryConditionResponse
9834
+ */
9144
9835
  async checkRecoveryCondition(request) {
9145
9836
  let runtime = new $Util.RuntimeOptions({});
9146
9837
  return await this.checkRecoveryConditionWithOptions(request, runtime);
9147
9838
  }
9839
+ /**
9840
+ * ## Usage
9841
+ * When you call this operation, the instance must be in the Running state.
9842
+ *
9843
+ * @param request CreateBackupRequest
9844
+ * @param runtime runtime options for this request RuntimeOptions
9845
+ * @return CreateBackupResponse
9846
+ */
9148
9847
  async createBackupWithOptions(request, runtime) {
9149
9848
  tea_util_1.default.validateModel(request);
9150
9849
  let query = {};
@@ -9185,10 +9884,24 @@ class Client extends openapi_client_1.default {
9185
9884
  });
9186
9885
  return $tea.cast(await this.callApi(params, req, runtime), new CreateBackupResponse({}));
9187
9886
  }
9887
+ /**
9888
+ * ## Usage
9889
+ * When you call this operation, the instance must be in the Running state.
9890
+ *
9891
+ * @param request CreateBackupRequest
9892
+ * @return CreateBackupResponse
9893
+ */
9188
9894
  async createBackup(request) {
9189
9895
  let runtime = new $Util.RuntimeOptions({});
9190
9896
  return await this.createBackupWithOptions(request, runtime);
9191
9897
  }
9898
+ /**
9899
+ * Creates or clones an ApsaraDB for MongoDB replica set instance.
9900
+ *
9901
+ * @param request CreateDBInstanceRequest
9902
+ * @param runtime runtime options for this request RuntimeOptions
9903
+ * @return CreateDBInstanceResponse
9904
+ */
9192
9905
  async createDBInstanceWithOptions(request, runtime) {
9193
9906
  tea_util_1.default.validateModel(request);
9194
9907
  let query = {};
@@ -9228,12 +9941,24 @@ class Client extends openapi_client_1.default {
9228
9941
  if (!tea_util_1.default.isUnset(request.databaseNames)) {
9229
9942
  query["DatabaseNames"] = request.databaseNames;
9230
9943
  }
9944
+ if (!tea_util_1.default.isUnset(request.encrypted)) {
9945
+ query["Encrypted"] = request.encrypted;
9946
+ }
9947
+ if (!tea_util_1.default.isUnset(request.encryptionKey)) {
9948
+ query["EncryptionKey"] = request.encryptionKey;
9949
+ }
9231
9950
  if (!tea_util_1.default.isUnset(request.engine)) {
9232
9951
  query["Engine"] = request.engine;
9233
9952
  }
9234
9953
  if (!tea_util_1.default.isUnset(request.engineVersion)) {
9235
9954
  query["EngineVersion"] = request.engineVersion;
9236
9955
  }
9956
+ if (!tea_util_1.default.isUnset(request.globalSecurityGroupIds)) {
9957
+ query["GlobalSecurityGroupIds"] = request.globalSecurityGroupIds;
9958
+ }
9959
+ if (!tea_util_1.default.isUnset(request.hiddenZoneId)) {
9960
+ query["HiddenZoneId"] = request.hiddenZoneId;
9961
+ }
9237
9962
  if (!tea_util_1.default.isUnset(request.networkType)) {
9238
9963
  query["NetworkType"] = request.networkType;
9239
9964
  }
@@ -9267,6 +9992,9 @@ class Client extends openapi_client_1.default {
9267
9992
  if (!tea_util_1.default.isUnset(request.restoreTime)) {
9268
9993
  query["RestoreTime"] = request.restoreTime;
9269
9994
  }
9995
+ if (!tea_util_1.default.isUnset(request.secondaryZoneId)) {
9996
+ query["SecondaryZoneId"] = request.secondaryZoneId;
9997
+ }
9270
9998
  if (!tea_util_1.default.isUnset(request.securityIPList)) {
9271
9999
  query["SecurityIPList"] = request.securityIPList;
9272
10000
  }
@@ -9282,6 +10010,9 @@ class Client extends openapi_client_1.default {
9282
10010
  if (!tea_util_1.default.isUnset(request.storageType)) {
9283
10011
  query["StorageType"] = request.storageType;
9284
10012
  }
10013
+ if (!tea_util_1.default.isUnset(request.tag)) {
10014
+ query["Tag"] = request.tag;
10015
+ }
9285
10016
  if (!tea_util_1.default.isUnset(request.vSwitchId)) {
9286
10017
  query["VSwitchId"] = request.vSwitchId;
9287
10018
  }
@@ -9307,10 +10038,71 @@ class Client extends openapi_client_1.default {
9307
10038
  });
9308
10039
  return $tea.cast(await this.callApi(params, req, runtime), new CreateDBInstanceResponse({}));
9309
10040
  }
10041
+ /**
10042
+ * Creates or clones an ApsaraDB for MongoDB replica set instance.
10043
+ *
10044
+ * @param request CreateDBInstanceRequest
10045
+ * @return CreateDBInstanceResponse
10046
+ */
9310
10047
  async createDBInstance(request) {
9311
10048
  let runtime = new $Util.RuntimeOptions({});
9312
10049
  return await this.createDBInstanceWithOptions(request, runtime);
9313
10050
  }
10051
+ async createGlobalSecurityIPGroupWithOptions(request, runtime) {
10052
+ tea_util_1.default.validateModel(request);
10053
+ let query = {};
10054
+ if (!tea_util_1.default.isUnset(request.GIpList)) {
10055
+ query["GIpList"] = request.GIpList;
10056
+ }
10057
+ if (!tea_util_1.default.isUnset(request.globalIgName)) {
10058
+ query["GlobalIgName"] = request.globalIgName;
10059
+ }
10060
+ if (!tea_util_1.default.isUnset(request.ownerAccount)) {
10061
+ query["OwnerAccount"] = request.ownerAccount;
10062
+ }
10063
+ if (!tea_util_1.default.isUnset(request.ownerId)) {
10064
+ query["OwnerId"] = request.ownerId;
10065
+ }
10066
+ if (!tea_util_1.default.isUnset(request.regionId)) {
10067
+ query["RegionId"] = request.regionId;
10068
+ }
10069
+ if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
10070
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
10071
+ }
10072
+ if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
10073
+ query["ResourceOwnerId"] = request.resourceOwnerId;
10074
+ }
10075
+ if (!tea_util_1.default.isUnset(request.securityToken)) {
10076
+ query["SecurityToken"] = request.securityToken;
10077
+ }
10078
+ let req = new $OpenApi.OpenApiRequest({
10079
+ query: openapi_util_1.default.query(query),
10080
+ });
10081
+ let params = new $OpenApi.Params({
10082
+ action: "CreateGlobalSecurityIPGroup",
10083
+ version: "2015-12-01",
10084
+ protocol: "HTTPS",
10085
+ pathname: "/",
10086
+ method: "POST",
10087
+ authType: "AK",
10088
+ style: "RPC",
10089
+ reqBodyType: "formData",
10090
+ bodyType: "json",
10091
+ });
10092
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateGlobalSecurityIPGroupResponse({}));
10093
+ }
10094
+ async createGlobalSecurityIPGroup(request) {
10095
+ let runtime = new $Util.RuntimeOptions({});
10096
+ return await this.createGlobalSecurityIPGroupWithOptions(request, runtime);
10097
+ }
10098
+ /**
10099
+ * Before you call this operation, make sure that you fully understand the billing methods and [pricing](https://www.alibabacloud.com/zh/product/apsaradb-for-mongodb/pricing) of ApsaraDB for MongoDB.
10100
+ * This operation is applicable only to sharded cluster instances.
10101
+ *
10102
+ * @param request CreateNodeRequest
10103
+ * @param runtime runtime options for this request RuntimeOptions
10104
+ * @return CreateNodeResponse
10105
+ */
9314
10106
  async createNodeWithOptions(request, runtime) {
9315
10107
  tea_util_1.default.validateModel(request);
9316
10108
  let query = {};
@@ -9381,10 +10173,24 @@ class Client extends openapi_client_1.default {
9381
10173
  });
9382
10174
  return $tea.cast(await this.callApi(params, req, runtime), new CreateNodeResponse({}));
9383
10175
  }
10176
+ /**
10177
+ * Before you call this operation, make sure that you fully understand the billing methods and [pricing](https://www.alibabacloud.com/zh/product/apsaradb-for-mongodb/pricing) of ApsaraDB for MongoDB.
10178
+ * This operation is applicable only to sharded cluster instances.
10179
+ *
10180
+ * @param request CreateNodeRequest
10181
+ * @return CreateNodeResponse
10182
+ */
9384
10183
  async createNode(request) {
9385
10184
  let runtime = new $Util.RuntimeOptions({});
9386
10185
  return await this.createNodeWithOptions(request, runtime);
9387
10186
  }
10187
+ /**
10188
+ * The ID of the request.
10189
+ *
10190
+ * @param request CreateNodeBatchRequest
10191
+ * @param runtime runtime options for this request RuntimeOptions
10192
+ * @return CreateNodeBatchResponse
10193
+ */
9388
10194
  async createNodeBatchWithOptions(request, runtime) {
9389
10195
  tea_util_1.default.validateModel(request);
9390
10196
  let query = {};
@@ -9449,10 +10255,25 @@ class Client extends openapi_client_1.default {
9449
10255
  });
9450
10256
  return $tea.cast(await this.callApi(params, req, runtime), new CreateNodeBatchResponse({}));
9451
10257
  }
10258
+ /**
10259
+ * The ID of the request.
10260
+ *
10261
+ * @param request CreateNodeBatchRequest
10262
+ * @return CreateNodeBatchResponse
10263
+ */
9452
10264
  async createNodeBatch(request) {
9453
10265
  let runtime = new $Util.RuntimeOptions({});
9454
10266
  return await this.createNodeBatchWithOptions(request, runtime);
9455
10267
  }
10268
+ /**
10269
+ * * Make sure that you fully understand the billing methods and [pricing](https://www.aliyun.com/price/product#/mongodb/detail) of ApsaraDB for MongoDB before you call this operation.
10270
+ * * For more information about the instance types of ApsaraDB for MongoDB, see [Instance types](~~57141~~).
10271
+ * * To create standalone instances and replica set instances, you can call the [CreateDBInstance](~~61763~~) operation.
10272
+ *
10273
+ * @param request CreateShardingDBInstanceRequest
10274
+ * @param runtime runtime options for this request RuntimeOptions
10275
+ * @return CreateShardingDBInstanceResponse
10276
+ */
9456
10277
  async createShardingDBInstanceWithOptions(request, runtime) {
9457
10278
  tea_util_1.default.validateModel(request);
9458
10279
  let query = {};
@@ -9474,12 +10295,21 @@ class Client extends openapi_client_1.default {
9474
10295
  if (!tea_util_1.default.isUnset(request.DBInstanceDescription)) {
9475
10296
  query["DBInstanceDescription"] = request.DBInstanceDescription;
9476
10297
  }
10298
+ if (!tea_util_1.default.isUnset(request.encrypted)) {
10299
+ query["Encrypted"] = request.encrypted;
10300
+ }
10301
+ if (!tea_util_1.default.isUnset(request.encryptionKey)) {
10302
+ query["EncryptionKey"] = request.encryptionKey;
10303
+ }
9477
10304
  if (!tea_util_1.default.isUnset(request.engine)) {
9478
10305
  query["Engine"] = request.engine;
9479
10306
  }
9480
10307
  if (!tea_util_1.default.isUnset(request.engineVersion)) {
9481
10308
  query["EngineVersion"] = request.engineVersion;
9482
10309
  }
10310
+ if (!tea_util_1.default.isUnset(request.globalSecurityGroupIds)) {
10311
+ query["GlobalSecurityGroupIds"] = request.globalSecurityGroupIds;
10312
+ }
9483
10313
  if (!tea_util_1.default.isUnset(request.hiddenZoneId)) {
9484
10314
  query["HiddenZoneId"] = request.hiddenZoneId;
9485
10315
  }
@@ -9534,6 +10364,12 @@ class Client extends openapi_client_1.default {
9534
10364
  if (!tea_util_1.default.isUnset(request.storageEngine)) {
9535
10365
  query["StorageEngine"] = request.storageEngine;
9536
10366
  }
10367
+ if (!tea_util_1.default.isUnset(request.storageType)) {
10368
+ query["StorageType"] = request.storageType;
10369
+ }
10370
+ if (!tea_util_1.default.isUnset(request.tag)) {
10371
+ query["Tag"] = request.tag;
10372
+ }
9537
10373
  if (!tea_util_1.default.isUnset(request.vSwitchId)) {
9538
10374
  query["VSwitchId"] = request.vSwitchId;
9539
10375
  }
@@ -9559,10 +10395,28 @@ class Client extends openapi_client_1.default {
9559
10395
  });
9560
10396
  return $tea.cast(await this.callApi(params, req, runtime), new CreateShardingDBInstanceResponse({}));
9561
10397
  }
10398
+ /**
10399
+ * * Make sure that you fully understand the billing methods and [pricing](https://www.aliyun.com/price/product#/mongodb/detail) of ApsaraDB for MongoDB before you call this operation.
10400
+ * * For more information about the instance types of ApsaraDB for MongoDB, see [Instance types](~~57141~~).
10401
+ * * To create standalone instances and replica set instances, you can call the [CreateDBInstance](~~61763~~) operation.
10402
+ *
10403
+ * @param request CreateShardingDBInstanceRequest
10404
+ * @return CreateShardingDBInstanceResponse
10405
+ */
9562
10406
  async createShardingDBInstance(request) {
9563
10407
  let runtime = new $Util.RuntimeOptions({});
9564
10408
  return await this.createShardingDBInstanceWithOptions(request, runtime);
9565
10409
  }
10410
+ /**
10411
+ * Before you call this operation, make sure that the instance meets the following requirements:
10412
+ * * The instance is in the running state.
10413
+ * * A pay-as-you-go instance is used.
10414
+ * > After you release an ApsaraDB for MongoDB instance, data in the instance can no longer be recovered. Proceed with caution.
10415
+ *
10416
+ * @param request DeleteDBInstanceRequest
10417
+ * @param runtime runtime options for this request RuntimeOptions
10418
+ * @return DeleteDBInstanceResponse
10419
+ */
9566
10420
  async deleteDBInstanceWithOptions(request, runtime) {
9567
10421
  tea_util_1.default.validateModel(request);
9568
10422
  let query = {};
@@ -9603,10 +10457,77 @@ class Client extends openapi_client_1.default {
9603
10457
  });
9604
10458
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteDBInstanceResponse({}));
9605
10459
  }
10460
+ /**
10461
+ * Before you call this operation, make sure that the instance meets the following requirements:
10462
+ * * The instance is in the running state.
10463
+ * * A pay-as-you-go instance is used.
10464
+ * > After you release an ApsaraDB for MongoDB instance, data in the instance can no longer be recovered. Proceed with caution.
10465
+ *
10466
+ * @param request DeleteDBInstanceRequest
10467
+ * @return DeleteDBInstanceResponse
10468
+ */
9606
10469
  async deleteDBInstance(request) {
9607
10470
  let runtime = new $Util.RuntimeOptions({});
9608
10471
  return await this.deleteDBInstanceWithOptions(request, runtime);
9609
10472
  }
10473
+ async deleteGlobalSecurityIPGroupWithOptions(request, runtime) {
10474
+ tea_util_1.default.validateModel(request);
10475
+ let query = {};
10476
+ if (!tea_util_1.default.isUnset(request.globalIgName)) {
10477
+ query["GlobalIgName"] = request.globalIgName;
10478
+ }
10479
+ if (!tea_util_1.default.isUnset(request.globalSecurityGroupId)) {
10480
+ query["GlobalSecurityGroupId"] = request.globalSecurityGroupId;
10481
+ }
10482
+ if (!tea_util_1.default.isUnset(request.ownerAccount)) {
10483
+ query["OwnerAccount"] = request.ownerAccount;
10484
+ }
10485
+ if (!tea_util_1.default.isUnset(request.ownerId)) {
10486
+ query["OwnerId"] = request.ownerId;
10487
+ }
10488
+ if (!tea_util_1.default.isUnset(request.regionId)) {
10489
+ query["RegionId"] = request.regionId;
10490
+ }
10491
+ if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
10492
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
10493
+ }
10494
+ if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
10495
+ query["ResourceOwnerId"] = request.resourceOwnerId;
10496
+ }
10497
+ if (!tea_util_1.default.isUnset(request.securityToken)) {
10498
+ query["SecurityToken"] = request.securityToken;
10499
+ }
10500
+ let req = new $OpenApi.OpenApiRequest({
10501
+ query: openapi_util_1.default.query(query),
10502
+ });
10503
+ let params = new $OpenApi.Params({
10504
+ action: "DeleteGlobalSecurityIPGroup",
10505
+ version: "2015-12-01",
10506
+ protocol: "HTTPS",
10507
+ pathname: "/",
10508
+ method: "POST",
10509
+ authType: "AK",
10510
+ style: "RPC",
10511
+ reqBodyType: "formData",
10512
+ bodyType: "json",
10513
+ });
10514
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteGlobalSecurityIPGroupResponse({}));
10515
+ }
10516
+ async deleteGlobalSecurityIPGroup(request) {
10517
+ let runtime = new $Util.RuntimeOptions({});
10518
+ return await this.deleteGlobalSecurityIPGroupWithOptions(request, runtime);
10519
+ }
10520
+ /**
10521
+ * Before you call this operation, make sure that the following requirements are met:
10522
+ * * The instance is in the running state.
10523
+ * * The instance is a sharded cluster instance.
10524
+ * * The billing method of the instance is pay-as-you-go.
10525
+ * * The number of the shard or mongos nodes in the instance is greater than two.
10526
+ *
10527
+ * @param request DeleteNodeRequest
10528
+ * @param runtime runtime options for this request RuntimeOptions
10529
+ * @return DeleteNodeResponse
10530
+ */
9610
10531
  async deleteNodeWithOptions(request, runtime) {
9611
10532
  tea_util_1.default.validateModel(request);
9612
10533
  let query = {};
@@ -9650,10 +10571,27 @@ class Client extends openapi_client_1.default {
9650
10571
  });
9651
10572
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteNodeResponse({}));
9652
10573
  }
10574
+ /**
10575
+ * Before you call this operation, make sure that the following requirements are met:
10576
+ * * The instance is in the running state.
10577
+ * * The instance is a sharded cluster instance.
10578
+ * * The billing method of the instance is pay-as-you-go.
10579
+ * * The number of the shard or mongos nodes in the instance is greater than two.
10580
+ *
10581
+ * @param request DeleteNodeRequest
10582
+ * @return DeleteNodeResponse
10583
+ */
9653
10584
  async deleteNode(request) {
9654
10585
  let runtime = new $Util.RuntimeOptions({});
9655
10586
  return await this.deleteNodeWithOptions(request, runtime);
9656
10587
  }
10588
+ /**
10589
+ * > This operation can query only the information of the root account.
10590
+ *
10591
+ * @param request DescribeAccountsRequest
10592
+ * @param runtime runtime options for this request RuntimeOptions
10593
+ * @return DescribeAccountsResponse
10594
+ */
9657
10595
  async describeAccountsWithOptions(request, runtime) {
9658
10596
  tea_util_1.default.validateModel(request);
9659
10597
  let query = {};
@@ -9694,6 +10632,12 @@ class Client extends openapi_client_1.default {
9694
10632
  });
9695
10633
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeAccountsResponse({}));
9696
10634
  }
10635
+ /**
10636
+ * > This operation can query only the information of the root account.
10637
+ *
10638
+ * @param request DescribeAccountsRequest
10639
+ * @return DescribeAccountsResponse
10640
+ */
9697
10641
  async describeAccounts(request) {
9698
10642
  let runtime = new $Util.RuntimeOptions({});
9699
10643
  return await this.describeAccountsWithOptions(request, runtime);
@@ -9783,6 +10727,15 @@ class Client extends openapi_client_1.default {
9783
10727
  let runtime = new $Util.RuntimeOptions({});
9784
10728
  return await this.describeActiveOperationTaskTypeWithOptions(request, runtime);
9785
10729
  }
10730
+ /**
10731
+ * The role of the node in the instance. Valid values:
10732
+ * * **primary**
10733
+ * * **secondary**
10734
+ *
10735
+ * @param request DescribeAuditLogFilterRequest
10736
+ * @param runtime runtime options for this request RuntimeOptions
10737
+ * @return DescribeAuditLogFilterResponse
10738
+ */
9786
10739
  async describeAuditLogFilterWithOptions(request, runtime) {
9787
10740
  tea_util_1.default.validateModel(request);
9788
10741
  let query = {};
@@ -9823,10 +10776,27 @@ class Client extends openapi_client_1.default {
9823
10776
  });
9824
10777
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeAuditLogFilterResponse({}));
9825
10778
  }
10779
+ /**
10780
+ * The role of the node in the instance. Valid values:
10781
+ * * **primary**
10782
+ * * **secondary**
10783
+ *
10784
+ * @param request DescribeAuditLogFilterRequest
10785
+ * @return DescribeAuditLogFilterResponse
10786
+ */
9826
10787
  async describeAuditLogFilter(request) {
9827
10788
  let runtime = new $Util.RuntimeOptions({});
9828
10789
  return await this.describeAuditLogFilterWithOptions(request, runtime);
9829
10790
  }
10791
+ /**
10792
+ * * The instance must be in the running state when you call this operation.
10793
+ * * This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
10794
+ * * You can call this operation up to 30 times per minute. To call this operation at a higher frequency, use a Logstore. For more information, see [Manage a Logstore](~~48990~~).
10795
+ *
10796
+ * @param request DescribeAuditPolicyRequest
10797
+ * @param runtime runtime options for this request RuntimeOptions
10798
+ * @return DescribeAuditPolicyResponse
10799
+ */
9830
10800
  async describeAuditPolicyWithOptions(request, runtime) {
9831
10801
  tea_util_1.default.validateModel(request);
9832
10802
  let query = {};
@@ -9864,10 +10834,27 @@ class Client extends openapi_client_1.default {
9864
10834
  });
9865
10835
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeAuditPolicyResponse({}));
9866
10836
  }
10837
+ /**
10838
+ * * The instance must be in the running state when you call this operation.
10839
+ * * This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
10840
+ * * You can call this operation up to 30 times per minute. To call this operation at a higher frequency, use a Logstore. For more information, see [Manage a Logstore](~~48990~~).
10841
+ *
10842
+ * @param request DescribeAuditPolicyRequest
10843
+ * @return DescribeAuditPolicyResponse
10844
+ */
9867
10845
  async describeAuditPolicy(request) {
9868
10846
  let runtime = new $Util.RuntimeOptions({});
9869
10847
  return await this.describeAuditPolicyWithOptions(request, runtime);
9870
10848
  }
10849
+ /**
10850
+ * * When you call this operation, ensure that the audit log feature of the instance is enabled. Otherwise, the operation returns an empty audit log.
10851
+ * * This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
10852
+ * * You can call this operation up to 30 times per minute. To call this operation at a higher frequency, use a Logstore. For more information, see [Manage a Logstore](~~48990~~).
10853
+ *
10854
+ * @param request DescribeAuditRecordsRequest
10855
+ * @param runtime runtime options for this request RuntimeOptions
10856
+ * @return DescribeAuditRecordsResponse
10857
+ */
9871
10858
  async describeAuditRecordsWithOptions(request, runtime) {
9872
10859
  tea_util_1.default.validateModel(request);
9873
10860
  let query = {};
@@ -9935,10 +10922,102 @@ class Client extends openapi_client_1.default {
9935
10922
  });
9936
10923
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeAuditRecordsResponse({}));
9937
10924
  }
10925
+ /**
10926
+ * * When you call this operation, ensure that the audit log feature of the instance is enabled. Otherwise, the operation returns an empty audit log.
10927
+ * * This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
10928
+ * * You can call this operation up to 30 times per minute. To call this operation at a higher frequency, use a Logstore. For more information, see [Manage a Logstore](~~48990~~).
10929
+ *
10930
+ * @param request DescribeAuditRecordsRequest
10931
+ * @return DescribeAuditRecordsResponse
10932
+ */
9938
10933
  async describeAuditRecords(request) {
9939
10934
  let runtime = new $Util.RuntimeOptions({});
9940
10935
  return await this.describeAuditRecordsWithOptions(request, runtime);
9941
10936
  }
10937
+ /**
10938
+ * You can call this operation to query zones in which you can create an ApsaraDB for MongoDB instance.
10939
+ *
10940
+ * @param request DescribeAvailabilityZonesRequest
10941
+ * @param runtime runtime options for this request RuntimeOptions
10942
+ * @return DescribeAvailabilityZonesResponse
10943
+ */
10944
+ async describeAvailabilityZonesWithOptions(request, runtime) {
10945
+ tea_util_1.default.validateModel(request);
10946
+ let query = {};
10947
+ if (!tea_util_1.default.isUnset(request.acceptLanguage)) {
10948
+ query["AcceptLanguage"] = request.acceptLanguage;
10949
+ }
10950
+ if (!tea_util_1.default.isUnset(request.dbType)) {
10951
+ query["DbType"] = request.dbType;
10952
+ }
10953
+ if (!tea_util_1.default.isUnset(request.excludeSecondaryZoneId)) {
10954
+ query["ExcludeSecondaryZoneId"] = request.excludeSecondaryZoneId;
10955
+ }
10956
+ if (!tea_util_1.default.isUnset(request.excludeZoneId)) {
10957
+ query["ExcludeZoneId"] = request.excludeZoneId;
10958
+ }
10959
+ if (!tea_util_1.default.isUnset(request.instanceChargeType)) {
10960
+ query["InstanceChargeType"] = request.instanceChargeType;
10961
+ }
10962
+ if (!tea_util_1.default.isUnset(request.mongoType)) {
10963
+ query["MongoType"] = request.mongoType;
10964
+ }
10965
+ if (!tea_util_1.default.isUnset(request.ownerAccount)) {
10966
+ query["OwnerAccount"] = request.ownerAccount;
10967
+ }
10968
+ if (!tea_util_1.default.isUnset(request.ownerId)) {
10969
+ query["OwnerId"] = request.ownerId;
10970
+ }
10971
+ if (!tea_util_1.default.isUnset(request.regionId)) {
10972
+ query["RegionId"] = request.regionId;
10973
+ }
10974
+ if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
10975
+ query["ResourceGroupId"] = request.resourceGroupId;
10976
+ }
10977
+ if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
10978
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
10979
+ }
10980
+ if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
10981
+ query["ResourceOwnerId"] = request.resourceOwnerId;
10982
+ }
10983
+ if (!tea_util_1.default.isUnset(request.securityToken)) {
10984
+ query["SecurityToken"] = request.securityToken;
10985
+ }
10986
+ if (!tea_util_1.default.isUnset(request.storageSupport)) {
10987
+ query["StorageSupport"] = request.storageSupport;
10988
+ }
10989
+ if (!tea_util_1.default.isUnset(request.storageType)) {
10990
+ query["StorageType"] = request.storageType;
10991
+ }
10992
+ if (!tea_util_1.default.isUnset(request.zoneId)) {
10993
+ query["ZoneId"] = request.zoneId;
10994
+ }
10995
+ let req = new $OpenApi.OpenApiRequest({
10996
+ query: openapi_util_1.default.query(query),
10997
+ });
10998
+ let params = new $OpenApi.Params({
10999
+ action: "DescribeAvailabilityZones",
11000
+ version: "2015-12-01",
11001
+ protocol: "HTTPS",
11002
+ pathname: "/",
11003
+ method: "POST",
11004
+ authType: "AK",
11005
+ style: "RPC",
11006
+ reqBodyType: "formData",
11007
+ bodyType: "json",
11008
+ });
11009
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeAvailabilityZonesResponse({}));
11010
+ }
11011
+ /**
11012
+ * You can call this operation to query zones in which you can create an ApsaraDB for MongoDB instance.
11013
+ *
11014
+ * @param request DescribeAvailabilityZonesRequest
11015
+ * @return DescribeAvailabilityZonesResponse
11016
+ */
11017
+ async describeAvailabilityZones(request) {
11018
+ let runtime = new $Util.RuntimeOptions({});
11019
+ return await this.describeAvailabilityZonesWithOptions(request, runtime);
11020
+ }
9942
11021
  async describeAvailableEngineVersionWithOptions(request, runtime) {
9943
11022
  tea_util_1.default.validateModel(request);
9944
11023
  let query = {};
@@ -10033,6 +11112,20 @@ class Client extends openapi_client_1.default {
10033
11112
  let runtime = new $Util.RuntimeOptions({});
10034
11113
  return await this.describeAvailableResourceWithOptions(request, runtime);
10035
11114
  }
11115
+ /**
11116
+ * ## Precautions
11117
+ * You can call the [CreateDBInstance](~~61763~~) operation to restore a database for an ApsaraDB for MongoDB instance. For more information, see [Restore one or more databases of an ApsaraDB for MongoDB instance](~~112274~~).
11118
+ * Before you call this operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
11119
+ * * The instance was created after March 26, 2019.
11120
+ * * The instance is located in the China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Hangzhou), China (Shanghai), China (Shenzhen), or Singapore (Singapore) region. Other regions are not supported.
11121
+ * * The instance is a replica set instance.
11122
+ * * The version of the database engine is 3.4, 4.0, or 4.2.
11123
+ * * The storage engine of the instance is WiredTiger.
11124
+ *
11125
+ * @param request DescribeBackupDBsRequest
11126
+ * @param runtime runtime options for this request RuntimeOptions
11127
+ * @return DescribeBackupDBsResponse
11128
+ */
10036
11129
  async describeBackupDBsWithOptions(request, runtime) {
10037
11130
  tea_util_1.default.validateModel(request);
10038
11131
  let query = {};
@@ -10085,6 +11178,19 @@ class Client extends openapi_client_1.default {
10085
11178
  });
10086
11179
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeBackupDBsResponse({}));
10087
11180
  }
11181
+ /**
11182
+ * ## Precautions
11183
+ * You can call the [CreateDBInstance](~~61763~~) operation to restore a database for an ApsaraDB for MongoDB instance. For more information, see [Restore one or more databases of an ApsaraDB for MongoDB instance](~~112274~~).
11184
+ * Before you call this operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
11185
+ * * The instance was created after March 26, 2019.
11186
+ * * The instance is located in the China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Hangzhou), China (Shanghai), China (Shenzhen), or Singapore (Singapore) region. Other regions are not supported.
11187
+ * * The instance is a replica set instance.
11188
+ * * The version of the database engine is 3.4, 4.0, or 4.2.
11189
+ * * The storage engine of the instance is WiredTiger.
11190
+ *
11191
+ * @param request DescribeBackupDBsRequest
11192
+ * @return DescribeBackupDBsResponse
11193
+ */
10088
11194
  async describeBackupDBs(request) {
10089
11195
  let runtime = new $Util.RuntimeOptions({});
10090
11196
  return await this.describeBackupDBsWithOptions(request, runtime);
@@ -10198,6 +11304,9 @@ class Client extends openapi_client_1.default {
10198
11304
  if (!tea_util_1.default.isUnset(request.engine)) {
10199
11305
  query["Engine"] = request.engine;
10200
11306
  }
11307
+ if (!tea_util_1.default.isUnset(request.isDelete)) {
11308
+ query["IsDelete"] = request.isDelete;
11309
+ }
10201
11310
  if (!tea_util_1.default.isUnset(request.ownerAccount)) {
10202
11311
  query["OwnerAccount"] = request.ownerAccount;
10203
11312
  }
@@ -10236,6 +11345,14 @@ class Client extends openapi_client_1.default {
10236
11345
  let runtime = new $Util.RuntimeOptions({});
10237
11346
  return await this.describeDBInstanceAttributeWithOptions(request, runtime);
10238
11347
  }
11348
+ /**
11349
+ * ## Usage
11350
+ * When you call the DescribeDBInstanceEncryptionKey operation, the instance must have transparent data encryption (TDE) enabled in BYOK mode. You can call the [ModifyDBInstanceTDE](~~131267~~) operation to enable TDE.
11351
+ *
11352
+ * @param request DescribeDBInstanceEncryptionKeyRequest
11353
+ * @param runtime runtime options for this request RuntimeOptions
11354
+ * @return DescribeDBInstanceEncryptionKeyResponse
11355
+ */
10239
11356
  async describeDBInstanceEncryptionKeyWithOptions(request, runtime) {
10240
11357
  tea_util_1.default.validateModel(request);
10241
11358
  let query = {};
@@ -10276,6 +11393,13 @@ class Client extends openapi_client_1.default {
10276
11393
  });
10277
11394
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeDBInstanceEncryptionKeyResponse({}));
10278
11395
  }
11396
+ /**
11397
+ * ## Usage
11398
+ * When you call the DescribeDBInstanceEncryptionKey operation, the instance must have transparent data encryption (TDE) enabled in BYOK mode. You can call the [ModifyDBInstanceTDE](~~131267~~) operation to enable TDE.
11399
+ *
11400
+ * @param request DescribeDBInstanceEncryptionKeyRequest
11401
+ * @return DescribeDBInstanceEncryptionKeyResponse
11402
+ */
10279
11403
  async describeDBInstanceEncryptionKey(request) {
10280
11404
  let runtime = new $Util.RuntimeOptions({});
10281
11405
  return await this.describeDBInstanceEncryptionKeyWithOptions(request, runtime);
@@ -10380,6 +11504,16 @@ class Client extends openapi_client_1.default {
10380
11504
  let runtime = new $Util.RuntimeOptions({});
10381
11505
  return await this.describeDBInstancePerformanceWithOptions(request, runtime);
10382
11506
  }
11507
+ /**
11508
+ * Before you call this operation, make sure that the following requirements are met:
11509
+ * * The instance is in the Running state.
11510
+ * * The instance is a replica set instance.
11511
+ * * The instance runs MongoDB 3.4 or later.
11512
+ *
11513
+ * @param request DescribeDBInstanceSSLRequest
11514
+ * @param runtime runtime options for this request RuntimeOptions
11515
+ * @return DescribeDBInstanceSSLResponse
11516
+ */
10383
11517
  async describeDBInstanceSSLWithOptions(request, runtime) {
10384
11518
  tea_util_1.default.validateModel(request);
10385
11519
  let query = {};
@@ -10417,10 +11551,26 @@ class Client extends openapi_client_1.default {
10417
11551
  });
10418
11552
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeDBInstanceSSLResponse({}));
10419
11553
  }
11554
+ /**
11555
+ * Before you call this operation, make sure that the following requirements are met:
11556
+ * * The instance is in the Running state.
11557
+ * * The instance is a replica set instance.
11558
+ * * The instance runs MongoDB 3.4 or later.
11559
+ *
11560
+ * @param request DescribeDBInstanceSSLRequest
11561
+ * @return DescribeDBInstanceSSLResponse
11562
+ */
10420
11563
  async describeDBInstanceSSL(request) {
10421
11564
  let runtime = new $Util.RuntimeOptions({});
10422
11565
  return await this.describeDBInstanceSSLWithOptions(request, runtime);
10423
11566
  }
11567
+ /**
11568
+ * You can call this operation to query whether TDE is enabled for an ApsaraDB for MongoDB instance.
11569
+ *
11570
+ * @param request DescribeDBInstanceTDEInfoRequest
11571
+ * @param runtime runtime options for this request RuntimeOptions
11572
+ * @return DescribeDBInstanceTDEInfoResponse
11573
+ */
10424
11574
  async describeDBInstanceTDEInfoWithOptions(request, runtime) {
10425
11575
  tea_util_1.default.validateModel(request);
10426
11576
  let query = {};
@@ -10458,10 +11608,23 @@ class Client extends openapi_client_1.default {
10458
11608
  });
10459
11609
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeDBInstanceTDEInfoResponse({}));
10460
11610
  }
11611
+ /**
11612
+ * You can call this operation to query whether TDE is enabled for an ApsaraDB for MongoDB instance.
11613
+ *
11614
+ * @param request DescribeDBInstanceTDEInfoRequest
11615
+ * @return DescribeDBInstanceTDEInfoResponse
11616
+ */
10461
11617
  async describeDBInstanceTDEInfo(request) {
10462
11618
  let runtime = new $Util.RuntimeOptions({});
10463
11619
  return await this.describeDBInstanceTDEInfoWithOptions(request, runtime);
10464
11620
  }
11621
+ /**
11622
+ * The list of replica set and standalone instances is displayed when the **DBInstanceType** parameter uses the default value **replicate**. To query the list of sharded cluster instances, you must set the **DBInstanceType** parameter to **sharding**.
11623
+ *
11624
+ * @param request DescribeDBInstancesRequest
11625
+ * @param runtime runtime options for this request RuntimeOptions
11626
+ * @return DescribeDBInstancesResponse
11627
+ */
10465
11628
  async describeDBInstancesWithOptions(request, runtime) {
10466
11629
  tea_util_1.default.validateModel(request);
10467
11630
  let query = {};
@@ -10486,6 +11649,9 @@ class Client extends openapi_client_1.default {
10486
11649
  if (!tea_util_1.default.isUnset(request.DBInstanceType)) {
10487
11650
  query["DBInstanceType"] = request.DBInstanceType;
10488
11651
  }
11652
+ if (!tea_util_1.default.isUnset(request.DBNodeType)) {
11653
+ query["DBNodeType"] = request.DBNodeType;
11654
+ }
10489
11655
  if (!tea_util_1.default.isUnset(request.engine)) {
10490
11656
  query["Engine"] = request.engine;
10491
11657
  }
@@ -10557,125 +11723,62 @@ class Client extends openapi_client_1.default {
10557
11723
  reqBodyType: "formData",
10558
11724
  bodyType: "json",
10559
11725
  });
10560
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeDBInstancesResponse({}));
10561
- }
10562
- async describeDBInstances(request) {
10563
- let runtime = new $Util.RuntimeOptions({});
10564
- return await this.describeDBInstancesWithOptions(request, runtime);
10565
- }
10566
- async describeDBInstancesOverviewWithOptions(request, runtime) {
10567
- tea_util_1.default.validateModel(request);
10568
- let query = {};
10569
- if (!tea_util_1.default.isUnset(request.chargeType)) {
10570
- query["ChargeType"] = request.chargeType;
10571
- }
10572
- if (!tea_util_1.default.isUnset(request.engineVersion)) {
10573
- query["EngineVersion"] = request.engineVersion;
10574
- }
10575
- if (!tea_util_1.default.isUnset(request.instanceClass)) {
10576
- query["InstanceClass"] = request.instanceClass;
10577
- }
10578
- if (!tea_util_1.default.isUnset(request.instanceIds)) {
10579
- query["InstanceIds"] = request.instanceIds;
10580
- }
10581
- if (!tea_util_1.default.isUnset(request.instanceStatus)) {
10582
- query["InstanceStatus"] = request.instanceStatus;
10583
- }
10584
- if (!tea_util_1.default.isUnset(request.instanceType)) {
10585
- query["InstanceType"] = request.instanceType;
10586
- }
10587
- if (!tea_util_1.default.isUnset(request.networkType)) {
10588
- query["NetworkType"] = request.networkType;
10589
- }
10590
- if (!tea_util_1.default.isUnset(request.ownerAccount)) {
10591
- query["OwnerAccount"] = request.ownerAccount;
10592
- }
10593
- if (!tea_util_1.default.isUnset(request.ownerId)) {
10594
- query["OwnerId"] = request.ownerId;
10595
- }
10596
- if (!tea_util_1.default.isUnset(request.regionId)) {
10597
- query["RegionId"] = request.regionId;
10598
- }
10599
- if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
10600
- query["ResourceGroupId"] = request.resourceGroupId;
10601
- }
10602
- if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
10603
- query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
10604
- }
10605
- if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
10606
- query["ResourceOwnerId"] = request.resourceOwnerId;
10607
- }
10608
- if (!tea_util_1.default.isUnset(request.securityToken)) {
10609
- query["SecurityToken"] = request.securityToken;
10610
- }
10611
- if (!tea_util_1.default.isUnset(request.vSwitchId)) {
10612
- query["VSwitchId"] = request.vSwitchId;
10613
- }
10614
- if (!tea_util_1.default.isUnset(request.vpcId)) {
10615
- query["VpcId"] = request.vpcId;
10616
- }
10617
- if (!tea_util_1.default.isUnset(request.zoneId)) {
10618
- query["ZoneId"] = request.zoneId;
10619
- }
10620
- let req = new $OpenApi.OpenApiRequest({
10621
- query: openapi_util_1.default.query(query),
10622
- });
10623
- let params = new $OpenApi.Params({
10624
- action: "DescribeDBInstancesOverview",
10625
- version: "2015-12-01",
10626
- protocol: "HTTPS",
10627
- pathname: "/",
10628
- method: "POST",
10629
- authType: "AK",
10630
- style: "RPC",
10631
- reqBodyType: "formData",
10632
- bodyType: "json",
10633
- });
10634
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeDBInstancesOverviewResponse({}));
11726
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeDBInstancesResponse({}));
10635
11727
  }
10636
- async describeDBInstancesOverview(request) {
11728
+ /**
11729
+ * The list of replica set and standalone instances is displayed when the **DBInstanceType** parameter uses the default value **replicate**. To query the list of sharded cluster instances, you must set the **DBInstanceType** parameter to **sharding**.
11730
+ *
11731
+ * @param request DescribeDBInstancesRequest
11732
+ * @return DescribeDBInstancesResponse
11733
+ */
11734
+ async describeDBInstances(request) {
10637
11735
  let runtime = new $Util.RuntimeOptions({});
10638
- return await this.describeDBInstancesOverviewWithOptions(request, runtime);
11736
+ return await this.describeDBInstancesWithOptions(request, runtime);
10639
11737
  }
10640
- async describeDedicatedClusterInstanceListWithOptions(request, runtime) {
11738
+ /**
11739
+ * * If you do not specify an instance when you call this operation, the overview information of all instances in the specified region within this account is returned.
11740
+ * * Paged query is disabled for this operation.
11741
+ *
11742
+ * @param request DescribeDBInstancesOverviewRequest
11743
+ * @param runtime runtime options for this request RuntimeOptions
11744
+ * @return DescribeDBInstancesOverviewResponse
11745
+ */
11746
+ async describeDBInstancesOverviewWithOptions(request, runtime) {
10641
11747
  tea_util_1.default.validateModel(request);
10642
11748
  let query = {};
10643
- if (!tea_util_1.default.isUnset(request.clusterId)) {
10644
- query["ClusterId"] = request.clusterId;
10645
- }
10646
- if (!tea_util_1.default.isUnset(request.dedicatedHostName)) {
10647
- query["DedicatedHostName"] = request.dedicatedHostName;
10648
- }
10649
- if (!tea_util_1.default.isUnset(request.engine)) {
10650
- query["Engine"] = request.engine;
11749
+ if (!tea_util_1.default.isUnset(request.chargeType)) {
11750
+ query["ChargeType"] = request.chargeType;
10651
11751
  }
10652
11752
  if (!tea_util_1.default.isUnset(request.engineVersion)) {
10653
11753
  query["EngineVersion"] = request.engineVersion;
10654
11754
  }
10655
- if (!tea_util_1.default.isUnset(request.instanceId)) {
10656
- query["InstanceId"] = request.instanceId;
11755
+ if (!tea_util_1.default.isUnset(request.instanceClass)) {
11756
+ query["InstanceClass"] = request.instanceClass;
10657
11757
  }
10658
- if (!tea_util_1.default.isUnset(request.instanceNetType)) {
10659
- query["InstanceNetType"] = request.instanceNetType;
11758
+ if (!tea_util_1.default.isUnset(request.instanceIds)) {
11759
+ query["InstanceIds"] = request.instanceIds;
10660
11760
  }
10661
11761
  if (!tea_util_1.default.isUnset(request.instanceStatus)) {
10662
11762
  query["InstanceStatus"] = request.instanceStatus;
10663
11763
  }
11764
+ if (!tea_util_1.default.isUnset(request.instanceType)) {
11765
+ query["InstanceType"] = request.instanceType;
11766
+ }
11767
+ if (!tea_util_1.default.isUnset(request.networkType)) {
11768
+ query["NetworkType"] = request.networkType;
11769
+ }
10664
11770
  if (!tea_util_1.default.isUnset(request.ownerAccount)) {
10665
11771
  query["OwnerAccount"] = request.ownerAccount;
10666
11772
  }
10667
11773
  if (!tea_util_1.default.isUnset(request.ownerId)) {
10668
11774
  query["OwnerId"] = request.ownerId;
10669
11775
  }
10670
- if (!tea_util_1.default.isUnset(request.pageNumber)) {
10671
- query["PageNumber"] = request.pageNumber;
10672
- }
10673
- if (!tea_util_1.default.isUnset(request.pageSize)) {
10674
- query["PageSize"] = request.pageSize;
10675
- }
10676
11776
  if (!tea_util_1.default.isUnset(request.regionId)) {
10677
11777
  query["RegionId"] = request.regionId;
10678
11778
  }
11779
+ if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
11780
+ query["ResourceGroupId"] = request.resourceGroupId;
11781
+ }
10679
11782
  if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
10680
11783
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
10681
11784
  }
@@ -10685,6 +11788,12 @@ class Client extends openapi_client_1.default {
10685
11788
  if (!tea_util_1.default.isUnset(request.securityToken)) {
10686
11789
  query["SecurityToken"] = request.securityToken;
10687
11790
  }
11791
+ if (!tea_util_1.default.isUnset(request.vSwitchId)) {
11792
+ query["VSwitchId"] = request.vSwitchId;
11793
+ }
11794
+ if (!tea_util_1.default.isUnset(request.vpcId)) {
11795
+ query["VpcId"] = request.vpcId;
11796
+ }
10688
11797
  if (!tea_util_1.default.isUnset(request.zoneId)) {
10689
11798
  query["ZoneId"] = request.zoneId;
10690
11799
  }
@@ -10692,7 +11801,7 @@ class Client extends openapi_client_1.default {
10692
11801
  query: openapi_util_1.default.query(query),
10693
11802
  });
10694
11803
  let params = new $OpenApi.Params({
10695
- action: "DescribeDedicatedClusterInstanceList",
11804
+ action: "DescribeDBInstancesOverview",
10696
11805
  version: "2015-12-01",
10697
11806
  protocol: "HTTPS",
10698
11807
  pathname: "/",
@@ -10702,12 +11811,27 @@ class Client extends openapi_client_1.default {
10702
11811
  reqBodyType: "formData",
10703
11812
  bodyType: "json",
10704
11813
  });
10705
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeDedicatedClusterInstanceListResponse({}));
11814
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeDBInstancesOverviewResponse({}));
10706
11815
  }
10707
- async describeDedicatedClusterInstanceList(request) {
11816
+ /**
11817
+ * * If you do not specify an instance when you call this operation, the overview information of all instances in the specified region within this account is returned.
11818
+ * * Paged query is disabled for this operation.
11819
+ *
11820
+ * @param request DescribeDBInstancesOverviewRequest
11821
+ * @return DescribeDBInstancesOverviewResponse
11822
+ */
11823
+ async describeDBInstancesOverview(request) {
10708
11824
  let runtime = new $Util.RuntimeOptions({});
10709
- return await this.describeDedicatedClusterInstanceListWithOptions(request, runtime);
11825
+ return await this.describeDBInstancesOverviewWithOptions(request, runtime);
10710
11826
  }
11827
+ /**
11828
+ * * This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
11829
+ * * You can call this operation up to 30 times per minute. To call this operation at a higher frequency, use a Logstore. For more information, see [Manage a Logstore](~~48990~~).
11830
+ *
11831
+ * @param request DescribeErrorLogRecordsRequest
11832
+ * @param runtime runtime options for this request RuntimeOptions
11833
+ * @return DescribeErrorLogRecordsResponse
11834
+ */
10711
11835
  async describeErrorLogRecordsWithOptions(request, runtime) {
10712
11836
  tea_util_1.default.validateModel(request);
10713
11837
  let query = {};
@@ -10769,10 +11893,70 @@ class Client extends openapi_client_1.default {
10769
11893
  });
10770
11894
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeErrorLogRecordsResponse({}));
10771
11895
  }
11896
+ /**
11897
+ * * This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
11898
+ * * You can call this operation up to 30 times per minute. To call this operation at a higher frequency, use a Logstore. For more information, see [Manage a Logstore](~~48990~~).
11899
+ *
11900
+ * @param request DescribeErrorLogRecordsRequest
11901
+ * @return DescribeErrorLogRecordsResponse
11902
+ */
10772
11903
  async describeErrorLogRecords(request) {
10773
11904
  let runtime = new $Util.RuntimeOptions({});
10774
11905
  return await this.describeErrorLogRecordsWithOptions(request, runtime);
10775
11906
  }
11907
+ async describeGlobalSecurityIPGroupWithOptions(request, runtime) {
11908
+ tea_util_1.default.validateModel(request);
11909
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
11910
+ let req = new $OpenApi.OpenApiRequest({
11911
+ query: openapi_util_1.default.query(query),
11912
+ });
11913
+ let params = new $OpenApi.Params({
11914
+ action: "DescribeGlobalSecurityIPGroup",
11915
+ version: "2015-12-01",
11916
+ protocol: "HTTPS",
11917
+ pathname: "/",
11918
+ method: "GET",
11919
+ authType: "AK",
11920
+ style: "RPC",
11921
+ reqBodyType: "formData",
11922
+ bodyType: "json",
11923
+ });
11924
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeGlobalSecurityIPGroupResponse({}));
11925
+ }
11926
+ async describeGlobalSecurityIPGroup(request) {
11927
+ let runtime = new $Util.RuntimeOptions({});
11928
+ return await this.describeGlobalSecurityIPGroupWithOptions(request, runtime);
11929
+ }
11930
+ async describeGlobalSecurityIPGroupRelationWithOptions(request, runtime) {
11931
+ tea_util_1.default.validateModel(request);
11932
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
11933
+ let req = new $OpenApi.OpenApiRequest({
11934
+ query: openapi_util_1.default.query(query),
11935
+ });
11936
+ let params = new $OpenApi.Params({
11937
+ action: "DescribeGlobalSecurityIPGroupRelation",
11938
+ version: "2015-12-01",
11939
+ protocol: "HTTPS",
11940
+ pathname: "/",
11941
+ method: "GET",
11942
+ authType: "AK",
11943
+ style: "RPC",
11944
+ reqBodyType: "formData",
11945
+ bodyType: "json",
11946
+ });
11947
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeGlobalSecurityIPGroupRelationResponse({}));
11948
+ }
11949
+ async describeGlobalSecurityIPGroupRelation(request) {
11950
+ let runtime = new $Util.RuntimeOptions({});
11951
+ return await this.describeGlobalSecurityIPGroupRelationWithOptions(request, runtime);
11952
+ }
11953
+ /**
11954
+ * This operation is applicable to subscription instances.
11955
+ *
11956
+ * @param request DescribeInstanceAutoRenewalAttributeRequest
11957
+ * @param runtime runtime options for this request RuntimeOptions
11958
+ * @return DescribeInstanceAutoRenewalAttributeResponse
11959
+ */
10776
11960
  async describeInstanceAutoRenewalAttributeWithOptions(request, runtime) {
10777
11961
  tea_util_1.default.validateModel(request);
10778
11962
  let query = {};
@@ -10822,6 +12006,12 @@ class Client extends openapi_client_1.default {
10822
12006
  });
10823
12007
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstanceAutoRenewalAttributeResponse({}));
10824
12008
  }
12009
+ /**
12010
+ * This operation is applicable to subscription instances.
12011
+ *
12012
+ * @param request DescribeInstanceAutoRenewalAttributeRequest
12013
+ * @return DescribeInstanceAutoRenewalAttributeResponse
12014
+ */
10825
12015
  async describeInstanceAutoRenewalAttribute(request) {
10826
12016
  let runtime = new $Util.RuntimeOptions({});
10827
12017
  return await this.describeInstanceAutoRenewalAttributeWithOptions(request, runtime);
@@ -10867,6 +12057,16 @@ class Client extends openapi_client_1.default {
10867
12057
  let runtime = new $Util.RuntimeOptions({});
10868
12058
  return await this.describeKernelReleaseNotesWithOptions(request, runtime);
10869
12059
  }
12060
+ /**
12061
+ * This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
12062
+ * This operation depends on the audit log feature of ApsaraDB for MongoDB. You can enable the audit log feature based on your business needs. For more information, see [Enable the audit log feature](~~59903~~)
12063
+ * * Starting from January 6, 2022, the official edition of the audit log feature has been launched in all regions, and new applications for the free trial edition have ended. For more information, see [Notice on official launch of the pay-as-you-go audit log feature and no more application for the free trial edition](~~377480~~)
12064
+ * * The official edition is charged based on the storage usage and retention period. For more information, see the [Pricing](https://www.alibabacloud.com/product/apsaradb-for-mongodb/pricing) tab of the ApsaraDB for MongoDB product page.
12065
+ *
12066
+ * @param request DescribeMongoDBLogConfigRequest
12067
+ * @param runtime runtime options for this request RuntimeOptions
12068
+ * @return DescribeMongoDBLogConfigResponse
12069
+ */
10870
12070
  async describeMongoDBLogConfigWithOptions(request, runtime) {
10871
12071
  tea_util_1.default.validateModel(request);
10872
12072
  let query = {};
@@ -10904,6 +12104,15 @@ class Client extends openapi_client_1.default {
10904
12104
  });
10905
12105
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeMongoDBLogConfigResponse({}));
10906
12106
  }
12107
+ /**
12108
+ * This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
12109
+ * This operation depends on the audit log feature of ApsaraDB for MongoDB. You can enable the audit log feature based on your business needs. For more information, see [Enable the audit log feature](~~59903~~)
12110
+ * * Starting from January 6, 2022, the official edition of the audit log feature has been launched in all regions, and new applications for the free trial edition have ended. For more information, see [Notice on official launch of the pay-as-you-go audit log feature and no more application for the free trial edition](~~377480~~)
12111
+ * * The official edition is charged based on the storage usage and retention period. For more information, see the [Pricing](https://www.alibabacloud.com/product/apsaradb-for-mongodb/pricing) tab of the ApsaraDB for MongoDB product page.
12112
+ *
12113
+ * @param request DescribeMongoDBLogConfigRequest
12114
+ * @return DescribeMongoDBLogConfigResponse
12115
+ */
10907
12116
  async describeMongoDBLogConfig(request) {
10908
12117
  let runtime = new $Util.RuntimeOptions({});
10909
12118
  return await this.describeMongoDBLogConfigWithOptions(request, runtime);
@@ -11017,6 +12226,9 @@ class Client extends openapi_client_1.default {
11017
12226
  if (!tea_util_1.default.isUnset(request.DBInstanceId)) {
11018
12227
  query["DBInstanceId"] = request.DBInstanceId;
11019
12228
  }
12229
+ if (!tea_util_1.default.isUnset(request.extraParam)) {
12230
+ query["ExtraParam"] = request.extraParam;
12231
+ }
11020
12232
  if (!tea_util_1.default.isUnset(request.nodeId)) {
11021
12233
  query["NodeId"] = request.nodeId;
11022
12234
  }
@@ -11120,6 +12332,13 @@ class Client extends openapi_client_1.default {
11120
12332
  let runtime = new $Util.RuntimeOptions({});
11121
12333
  return await this.describePriceWithOptions(request, runtime);
11122
12334
  }
12335
+ /**
12336
+ * > To query available regions and zones where ApsaraDB for MongoDB instances can be created, call the [DescribeAvailableResource](~~149719~~) operation.
12337
+ *
12338
+ * @param request DescribeRegionsRequest
12339
+ * @param runtime runtime options for this request RuntimeOptions
12340
+ * @return DescribeRegionsResponse
12341
+ */
11123
12342
  async describeRegionsWithOptions(request, runtime) {
11124
12343
  tea_util_1.default.validateModel(request);
11125
12344
  let query = {};
@@ -11160,10 +12379,23 @@ class Client extends openapi_client_1.default {
11160
12379
  });
11161
12380
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeRegionsResponse({}));
11162
12381
  }
12382
+ /**
12383
+ * > To query available regions and zones where ApsaraDB for MongoDB instances can be created, call the [DescribeAvailableResource](~~149719~~) operation.
12384
+ *
12385
+ * @param request DescribeRegionsRequest
12386
+ * @return DescribeRegionsResponse
12387
+ */
11163
12388
  async describeRegions(request) {
11164
12389
  let runtime = new $Util.RuntimeOptions({});
11165
12390
  return await this.describeRegionsWithOptions(request, runtime);
11166
12391
  }
12392
+ /**
12393
+ * This operation is applicable to subscription instances.
12394
+ *
12395
+ * @param request DescribeRenewalPriceRequest
12396
+ * @param runtime runtime options for this request RuntimeOptions
12397
+ * @return DescribeRenewalPriceResponse
12398
+ */
11167
12399
  async describeRenewalPriceWithOptions(request, runtime) {
11168
12400
  tea_util_1.default.validateModel(request);
11169
12401
  let query = {};
@@ -11207,10 +12439,23 @@ class Client extends openapi_client_1.default {
11207
12439
  });
11208
12440
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeRenewalPriceResponse({}));
11209
12441
  }
12442
+ /**
12443
+ * This operation is applicable to subscription instances.
12444
+ *
12445
+ * @param request DescribeRenewalPriceRequest
12446
+ * @return DescribeRenewalPriceResponse
12447
+ */
11210
12448
  async describeRenewalPrice(request) {
11211
12449
  let runtime = new $Util.RuntimeOptions({});
11212
12450
  return await this.describeRenewalPriceWithOptions(request, runtime);
11213
12451
  }
12452
+ /**
12453
+ * This operation is applicable to replica set instances and standalone instances, but not to sharded cluster instances.
12454
+ *
12455
+ * @param request DescribeReplicaSetRoleRequest
12456
+ * @param runtime runtime options for this request RuntimeOptions
12457
+ * @return DescribeReplicaSetRoleResponse
12458
+ */
11214
12459
  async describeReplicaSetRoleWithOptions(request, runtime) {
11215
12460
  tea_util_1.default.validateModel(request);
11216
12461
  let query = {};
@@ -11248,10 +12493,24 @@ class Client extends openapi_client_1.default {
11248
12493
  });
11249
12494
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeReplicaSetRoleResponse({}));
11250
12495
  }
12496
+ /**
12497
+ * This operation is applicable to replica set instances and standalone instances, but not to sharded cluster instances.
12498
+ *
12499
+ * @param request DescribeReplicaSetRoleRequest
12500
+ * @return DescribeReplicaSetRoleResponse
12501
+ */
11251
12502
  async describeReplicaSetRole(request) {
11252
12503
  let runtime = new $Util.RuntimeOptions({});
11253
12504
  return await this.describeReplicaSetRoleWithOptions(request, runtime);
11254
12505
  }
12506
+ /**
12507
+ * > For more information, see [View the zone of a node](~~123825~~).
12508
+ * This operation is applicable only to replica set and sharded cluster instances, but not to standalone instances.
12509
+ *
12510
+ * @param request DescribeRoleZoneInfoRequest
12511
+ * @param runtime runtime options for this request RuntimeOptions
12512
+ * @return DescribeRoleZoneInfoResponse
12513
+ */
11255
12514
  async describeRoleZoneInfoWithOptions(request, runtime) {
11256
12515
  tea_util_1.default.validateModel(request);
11257
12516
  let query = {};
@@ -11289,10 +12548,25 @@ class Client extends openapi_client_1.default {
11289
12548
  });
11290
12549
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeRoleZoneInfoResponse({}));
11291
12550
  }
12551
+ /**
12552
+ * > For more information, see [View the zone of a node](~~123825~~).
12553
+ * This operation is applicable only to replica set and sharded cluster instances, but not to standalone instances.
12554
+ *
12555
+ * @param request DescribeRoleZoneInfoRequest
12556
+ * @return DescribeRoleZoneInfoResponse
12557
+ */
11292
12558
  async describeRoleZoneInfo(request) {
11293
12559
  let runtime = new $Util.RuntimeOptions({});
11294
12560
  return await this.describeRoleZoneInfoWithOptions(request, runtime);
11295
12561
  }
12562
+ /**
12563
+ * * This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
12564
+ * * You can call this operation up to 30 times per minute. To call this operation at a higher frequency, use a Logstore. For more information, see [Manage a Logstore](~~48990~~).
12565
+ *
12566
+ * @param request DescribeRunningLogRecordsRequest
12567
+ * @param runtime runtime options for this request RuntimeOptions
12568
+ * @return DescribeRunningLogRecordsResponse
12569
+ */
11296
12570
  async describeRunningLogRecordsWithOptions(request, runtime) {
11297
12571
  tea_util_1.default.validateModel(request);
11298
12572
  let query = {};
@@ -11360,6 +12634,13 @@ class Client extends openapi_client_1.default {
11360
12634
  });
11361
12635
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeRunningLogRecordsResponse({}));
11362
12636
  }
12637
+ /**
12638
+ * * This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
12639
+ * * You can call this operation up to 30 times per minute. To call this operation at a higher frequency, use a Logstore. For more information, see [Manage a Logstore](~~48990~~).
12640
+ *
12641
+ * @param request DescribeRunningLogRecordsRequest
12642
+ * @return DescribeRunningLogRecordsResponse
12643
+ */
11363
12644
  async describeRunningLogRecords(request) {
11364
12645
  let runtime = new $Util.RuntimeOptions({});
11365
12646
  return await this.describeRunningLogRecordsWithOptions(request, runtime);
@@ -11446,6 +12727,13 @@ class Client extends openapi_client_1.default {
11446
12727
  let runtime = new $Util.RuntimeOptions({});
11447
12728
  return await this.describeSecurityIpsWithOptions(request, runtime);
11448
12729
  }
12730
+ /**
12731
+ * This operation supports sharded cluster instances only.
12732
+ *
12733
+ * @param request DescribeShardingNetworkAddressRequest
12734
+ * @param runtime runtime options for this request RuntimeOptions
12735
+ * @return DescribeShardingNetworkAddressResponse
12736
+ */
11449
12737
  async describeShardingNetworkAddressWithOptions(request, runtime) {
11450
12738
  tea_util_1.default.validateModel(request);
11451
12739
  let query = {};
@@ -11486,10 +12774,24 @@ class Client extends openapi_client_1.default {
11486
12774
  });
11487
12775
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeShardingNetworkAddressResponse({}));
11488
12776
  }
12777
+ /**
12778
+ * This operation supports sharded cluster instances only.
12779
+ *
12780
+ * @param request DescribeShardingNetworkAddressRequest
12781
+ * @return DescribeShardingNetworkAddressResponse
12782
+ */
11489
12783
  async describeShardingNetworkAddress(request) {
11490
12784
  let runtime = new $Util.RuntimeOptions({});
11491
12785
  return await this.describeShardingNetworkAddressWithOptions(request, runtime);
11492
12786
  }
12787
+ /**
12788
+ * * This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
12789
+ * * You can call this operation up to 30 times per minute. To call this operation at a higher frequency, use a Logstore. For more information, see [Manage a Logstore](~~48990~~).
12790
+ *
12791
+ * @param request DescribeSlowLogRecordsRequest
12792
+ * @param runtime runtime options for this request RuntimeOptions
12793
+ * @return DescribeSlowLogRecordsResponse
12794
+ */
11493
12795
  async describeSlowLogRecordsWithOptions(request, runtime) {
11494
12796
  tea_util_1.default.validateModel(request);
11495
12797
  let query = {};
@@ -11551,6 +12853,13 @@ class Client extends openapi_client_1.default {
11551
12853
  });
11552
12854
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeSlowLogRecordsResponse({}));
11553
12855
  }
12856
+ /**
12857
+ * * This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
12858
+ * * You can call this operation up to 30 times per minute. To call this operation at a higher frequency, use a Logstore. For more information, see [Manage a Logstore](~~48990~~).
12859
+ *
12860
+ * @param request DescribeSlowLogRecordsRequest
12861
+ * @return DescribeSlowLogRecordsResponse
12862
+ */
11554
12863
  async describeSlowLogRecords(request) {
11555
12864
  let runtime = new $Util.RuntimeOptions({});
11556
12865
  return await this.describeSlowLogRecordsWithOptions(request, runtime);
@@ -11602,6 +12911,13 @@ class Client extends openapi_client_1.default {
11602
12911
  let runtime = new $Util.RuntimeOptions({});
11603
12912
  return await this.describeTagsWithOptions(request, runtime);
11604
12913
  }
12914
+ /**
12915
+ * You can use the custom key obtained by calling the DescribeUserEncryptionKeyList operation to enable TDE. For more information, see [ModifyDBInstanceTDE](~~131267~~).
12916
+ *
12917
+ * @param request DescribeUserEncryptionKeyListRequest
12918
+ * @param runtime runtime options for this request RuntimeOptions
12919
+ * @return DescribeUserEncryptionKeyListResponse
12920
+ */
11605
12921
  async describeUserEncryptionKeyListWithOptions(request, runtime) {
11606
12922
  tea_util_1.default.validateModel(request);
11607
12923
  let query = {};
@@ -11642,10 +12958,25 @@ class Client extends openapi_client_1.default {
11642
12958
  });
11643
12959
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeUserEncryptionKeyListResponse({}));
11644
12960
  }
12961
+ /**
12962
+ * You can use the custom key obtained by calling the DescribeUserEncryptionKeyList operation to enable TDE. For more information, see [ModifyDBInstanceTDE](~~131267~~).
12963
+ *
12964
+ * @param request DescribeUserEncryptionKeyListRequest
12965
+ * @return DescribeUserEncryptionKeyListResponse
12966
+ */
11645
12967
  async describeUserEncryptionKeyList(request) {
11646
12968
  let runtime = new $Util.RuntimeOptions({});
11647
12969
  return await this.describeUserEncryptionKeyListWithOptions(request, runtime);
11648
12970
  }
12971
+ /**
12972
+ * Before you call this operation, make sure that the instance meets the following requirements:
12973
+ * * The billing method of the instance is subscription.
12974
+ * * The instance has expired and is in the **Locking** state.
12975
+ *
12976
+ * @param request DestroyInstanceRequest
12977
+ * @param runtime runtime options for this request RuntimeOptions
12978
+ * @return DestroyInstanceResponse
12979
+ */
11649
12980
  async destroyInstanceWithOptions(request, runtime) {
11650
12981
  tea_util_1.default.validateModel(request);
11651
12982
  let query = {};
@@ -11692,10 +13023,26 @@ class Client extends openapi_client_1.default {
11692
13023
  });
11693
13024
  return $tea.cast(await this.callApi(params, req, runtime), new DestroyInstanceResponse({}));
11694
13025
  }
13026
+ /**
13027
+ * Before you call this operation, make sure that the instance meets the following requirements:
13028
+ * * The billing method of the instance is subscription.
13029
+ * * The instance has expired and is in the **Locking** state.
13030
+ *
13031
+ * @param request DestroyInstanceRequest
13032
+ * @return DestroyInstanceResponse
13033
+ */
11695
13034
  async destroyInstance(request) {
11696
13035
  let runtime = new $Util.RuntimeOptions({});
11697
13036
  return await this.destroyInstanceWithOptions(request, runtime);
11698
13037
  }
13038
+ /**
13039
+ * This operation is applicable to replica set instances and sharded cluster instances. You can call this operation to check whether resources are sufficient for creating an instance, upgrading a replica set or sharded cluster instance, or upgrading a single node of the sharded cluster instance.
13040
+ * > You can call this operation a maximum of 200 times per minute.
13041
+ *
13042
+ * @param request EvaluateResourceRequest
13043
+ * @param runtime runtime options for this request RuntimeOptions
13044
+ * @return EvaluateResourceResponse
13045
+ */
11699
13046
  async evaluateResourceWithOptions(request, runtime) {
11700
13047
  tea_util_1.default.validateModel(request);
11701
13048
  let query = {};
@@ -11738,6 +13085,9 @@ class Client extends openapi_client_1.default {
11738
13085
  if (!tea_util_1.default.isUnset(request.shardsInfo)) {
11739
13086
  query["ShardsInfo"] = request.shardsInfo;
11740
13087
  }
13088
+ if (!tea_util_1.default.isUnset(request.storage)) {
13089
+ query["Storage"] = request.storage;
13090
+ }
11741
13091
  if (!tea_util_1.default.isUnset(request.zoneId)) {
11742
13092
  query["ZoneId"] = request.zoneId;
11743
13093
  }
@@ -11757,6 +13107,13 @@ class Client extends openapi_client_1.default {
11757
13107
  });
11758
13108
  return $tea.cast(await this.callApi(params, req, runtime), new EvaluateResourceResponse({}));
11759
13109
  }
13110
+ /**
13111
+ * This operation is applicable to replica set instances and sharded cluster instances. You can call this operation to check whether resources are sufficient for creating an instance, upgrading a replica set or sharded cluster instance, or upgrading a single node of the sharded cluster instance.
13112
+ * > You can call this operation a maximum of 200 times per minute.
13113
+ *
13114
+ * @param request EvaluateResourceRequest
13115
+ * @return EvaluateResourceResponse
13116
+ */
11760
13117
  async evaluateResource(request) {
11761
13118
  let runtime = new $Util.RuntimeOptions({});
11762
13119
  return await this.evaluateResourceWithOptions(request, runtime);
@@ -11811,6 +13168,17 @@ class Client extends openapi_client_1.default {
11811
13168
  let runtime = new $Util.RuntimeOptions({});
11812
13169
  return await this.listTagResourcesWithOptions(request, runtime);
11813
13170
  }
13171
+ /**
13172
+ * * This operation is available only for replica set instances that run MongoDB 4.2 or earlier and sharded cluster instances.
13173
+ * * If you have applied for a public endpoint for the ApsaraDB for MongoDB instance, you must call the [ReleasePublicNetworkAddress](~~67604~~) operation to release the public endpoint before you call the MigrateAvailableZone operation.
13174
+ * * Transparent data encryption (TDE) is disabled for the ApsaraDB for MongoDB instance.
13175
+ * * The source zone and the destination zone belong to the same region.
13176
+ * * A vSwitch is created in the destination zone. This prerequisite must be met if the instance resides in a virtual private cloud (VPC). For more information about how to create a vSwitch, see [Work with vSwitches](~~65387~~).
13177
+ *
13178
+ * @param request MigrateAvailableZoneRequest
13179
+ * @param runtime runtime options for this request RuntimeOptions
13180
+ * @return MigrateAvailableZoneResponse
13181
+ */
11814
13182
  async migrateAvailableZoneWithOptions(request, runtime) {
11815
13183
  tea_util_1.default.validateModel(request);
11816
13184
  let query = {};
@@ -11854,10 +13222,28 @@ class Client extends openapi_client_1.default {
11854
13222
  });
11855
13223
  return $tea.cast(await this.callApi(params, req, runtime), new MigrateAvailableZoneResponse({}));
11856
13224
  }
13225
+ /**
13226
+ * * This operation is available only for replica set instances that run MongoDB 4.2 or earlier and sharded cluster instances.
13227
+ * * If you have applied for a public endpoint for the ApsaraDB for MongoDB instance, you must call the [ReleasePublicNetworkAddress](~~67604~~) operation to release the public endpoint before you call the MigrateAvailableZone operation.
13228
+ * * Transparent data encryption (TDE) is disabled for the ApsaraDB for MongoDB instance.
13229
+ * * The source zone and the destination zone belong to the same region.
13230
+ * * A vSwitch is created in the destination zone. This prerequisite must be met if the instance resides in a virtual private cloud (VPC). For more information about how to create a vSwitch, see [Work with vSwitches](~~65387~~).
13231
+ *
13232
+ * @param request MigrateAvailableZoneRequest
13233
+ * @return MigrateAvailableZoneResponse
13234
+ */
11857
13235
  async migrateAvailableZone(request) {
11858
13236
  let runtime = new $Util.RuntimeOptions({});
11859
13237
  return await this.migrateAvailableZoneWithOptions(request, runtime);
11860
13238
  }
13239
+ /**
13240
+ * This operation is applicable only to replica set instances, but not to standalone instances or sharded cluster instances.
13241
+ * > If you have applied for a public endpoint of the instance, you must first call the [ReleasePublicNetworkAddress](~~67604~~) operation to release the public endpoint.
13242
+ *
13243
+ * @param request MigrateToOtherZoneRequest
13244
+ * @param runtime runtime options for this request RuntimeOptions
13245
+ * @return MigrateToOtherZoneResponse
13246
+ */
11861
13247
  async migrateToOtherZoneWithOptions(request, runtime) {
11862
13248
  tea_util_1.default.validateModel(request);
11863
13249
  let query = {};
@@ -11901,6 +13287,13 @@ class Client extends openapi_client_1.default {
11901
13287
  });
11902
13288
  return $tea.cast(await this.callApi(params, req, runtime), new MigrateToOtherZoneResponse({}));
11903
13289
  }
13290
+ /**
13291
+ * This operation is applicable only to replica set instances, but not to standalone instances or sharded cluster instances.
13292
+ * > If you have applied for a public endpoint of the instance, you must first call the [ReleasePublicNetworkAddress](~~67604~~) operation to release the public endpoint.
13293
+ *
13294
+ * @param request MigrateToOtherZoneRequest
13295
+ * @return MigrateToOtherZoneResponse
13296
+ */
11904
13297
  async migrateToOtherZone(request) {
11905
13298
  let runtime = new $Util.RuntimeOptions({});
11906
13299
  return await this.migrateToOtherZoneWithOptions(request, runtime);
@@ -11952,6 +13345,15 @@ class Client extends openapi_client_1.default {
11952
13345
  let runtime = new $Util.RuntimeOptions({});
11953
13346
  return await this.modifyAccountDescriptionWithOptions(request, runtime);
11954
13347
  }
13348
+ /**
13349
+ * * The instance must be in the running state when you call this operation.
13350
+ * * This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
13351
+ * * You can call this operation up to 30 times per minute. To call this operation at a higher frequency, use a Logstore. For more information, see [Manage a Logstore](~~48990~~).
13352
+ *
13353
+ * @param request ModifyAuditLogFilterRequest
13354
+ * @param runtime runtime options for this request RuntimeOptions
13355
+ * @return ModifyAuditLogFilterResponse
13356
+ */
11955
13357
  async modifyAuditLogFilterWithOptions(request, runtime) {
11956
13358
  tea_util_1.default.validateModel(request);
11957
13359
  let query = {};
@@ -11995,10 +13397,26 @@ class Client extends openapi_client_1.default {
11995
13397
  });
11996
13398
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyAuditLogFilterResponse({}));
11997
13399
  }
13400
+ /**
13401
+ * * The instance must be in the running state when you call this operation.
13402
+ * * This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
13403
+ * * You can call this operation up to 30 times per minute. To call this operation at a higher frequency, use a Logstore. For more information, see [Manage a Logstore](~~48990~~).
13404
+ *
13405
+ * @param request ModifyAuditLogFilterRequest
13406
+ * @return ModifyAuditLogFilterResponse
13407
+ */
11998
13408
  async modifyAuditLogFilter(request) {
11999
13409
  let runtime = new $Util.RuntimeOptions({});
12000
13410
  return await this.modifyAuditLogFilterWithOptions(request, runtime);
12001
13411
  }
13412
+ /**
13413
+ * * This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
13414
+ * * You can call this operation up to 30 times per minute. To call this operation at a higher frequency, use a Logstore. For more information, see [Manage a Logstore](~~48990~~).
13415
+ *
13416
+ * @param request ModifyAuditPolicyRequest
13417
+ * @param runtime runtime options for this request RuntimeOptions
13418
+ * @return ModifyAuditPolicyResponse
13419
+ */
12002
13420
  async modifyAuditPolicyWithOptions(request, runtime) {
12003
13421
  tea_util_1.default.validateModel(request);
12004
13422
  let query = {};
@@ -12048,6 +13466,13 @@ class Client extends openapi_client_1.default {
12048
13466
  });
12049
13467
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyAuditPolicyResponse({}));
12050
13468
  }
13469
+ /**
13470
+ * * This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
13471
+ * * You can call this operation up to 30 times per minute. To call this operation at a higher frequency, use a Logstore. For more information, see [Manage a Logstore](~~48990~~).
13472
+ *
13473
+ * @param request ModifyAuditPolicyRequest
13474
+ * @return ModifyAuditPolicyResponse
13475
+ */
12051
13476
  async modifyAuditPolicy(request) {
12052
13477
  let runtime = new $Util.RuntimeOptions({});
12053
13478
  return await this.modifyAuditPolicyWithOptions(request, runtime);
@@ -12055,6 +13480,9 @@ class Client extends openapi_client_1.default {
12055
13480
  async modifyBackupPolicyWithOptions(request, runtime) {
12056
13481
  tea_util_1.default.validateModel(request);
12057
13482
  let query = {};
13483
+ if (!tea_util_1.default.isUnset(request.backupInterval)) {
13484
+ query["BackupInterval"] = request.backupInterval;
13485
+ }
12058
13486
  if (!tea_util_1.default.isUnset(request.backupRetentionPeriod)) {
12059
13487
  query["BackupRetentionPeriod"] = request.backupRetentionPeriod;
12060
13488
  }
@@ -12088,6 +13516,9 @@ class Client extends openapi_client_1.default {
12088
13516
  if (!tea_util_1.default.isUnset(request.securityToken)) {
12089
13517
  query["SecurityToken"] = request.securityToken;
12090
13518
  }
13519
+ if (!tea_util_1.default.isUnset(request.snapshotBackupType)) {
13520
+ query["SnapshotBackupType"] = request.snapshotBackupType;
13521
+ }
12091
13522
  let req = new $OpenApi.OpenApiRequest({
12092
13523
  query: openapi_util_1.default.query(query),
12093
13524
  });
@@ -12120,6 +13551,9 @@ class Client extends openapi_client_1.default {
12120
13551
  if (!tea_util_1.default.isUnset(request.newConnectionString)) {
12121
13552
  query["NewConnectionString"] = request.newConnectionString;
12122
13553
  }
13554
+ if (!tea_util_1.default.isUnset(request.newPort)) {
13555
+ query["NewPort"] = request.newPort;
13556
+ }
12123
13557
  if (!tea_util_1.default.isUnset(request.nodeId)) {
12124
13558
  query["NodeId"] = request.nodeId;
12125
13559
  }
@@ -12252,6 +13686,16 @@ class Client extends openapi_client_1.default {
12252
13686
  let runtime = new $Util.RuntimeOptions({});
12253
13687
  return await this.modifyDBInstanceMaintainTimeWithOptions(request, runtime);
12254
13688
  }
13689
+ /**
13690
+ * > operation is currently unavailable.
13691
+ * Before you call this operation, make sure that the following requirements are met:
13692
+ * * A replica set or sharded cluster instance is used.
13693
+ * * MongoDB 3.4 (the latest minor version) or 4.0 must be selected.
13694
+ *
13695
+ * @param request ModifyDBInstanceMonitorRequest
13696
+ * @param runtime runtime options for this request RuntimeOptions
13697
+ * @return ModifyDBInstanceMonitorResponse
13698
+ */
12255
13699
  async modifyDBInstanceMonitorWithOptions(request, runtime) {
12256
13700
  tea_util_1.default.validateModel(request);
12257
13701
  let query = {};
@@ -12292,10 +13736,29 @@ class Client extends openapi_client_1.default {
12292
13736
  });
12293
13737
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyDBInstanceMonitorResponse({}));
12294
13738
  }
13739
+ /**
13740
+ * > operation is currently unavailable.
13741
+ * Before you call this operation, make sure that the following requirements are met:
13742
+ * * A replica set or sharded cluster instance is used.
13743
+ * * MongoDB 3.4 (the latest minor version) or 4.0 must be selected.
13744
+ *
13745
+ * @param request ModifyDBInstanceMonitorRequest
13746
+ * @return ModifyDBInstanceMonitorResponse
13747
+ */
12295
13748
  async modifyDBInstanceMonitor(request) {
12296
13749
  let runtime = new $Util.RuntimeOptions({});
12297
13750
  return await this.modifyDBInstanceMonitorWithOptions(request, runtime);
12298
13751
  }
13752
+ /**
13753
+ * Before you call this operation, make sure that the following requirements are met:
13754
+ * * The instance is in the running state.
13755
+ * * The network of the instance is in hybrid access mode.
13756
+ * > This operation is applicable only to replica set and sharded cluster instances, but not to standalone instances.
13757
+ *
13758
+ * @param request ModifyDBInstanceNetExpireTimeRequest
13759
+ * @param runtime runtime options for this request RuntimeOptions
13760
+ * @return ModifyDBInstanceNetExpireTimeResponse
13761
+ */
12299
13762
  async modifyDBInstanceNetExpireTimeWithOptions(request, runtime) {
12300
13763
  tea_util_1.default.validateModel(request);
12301
13764
  let query = {};
@@ -12339,10 +13802,26 @@ class Client extends openapi_client_1.default {
12339
13802
  });
12340
13803
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyDBInstanceNetExpireTimeResponse({}));
12341
13804
  }
13805
+ /**
13806
+ * Before you call this operation, make sure that the following requirements are met:
13807
+ * * The instance is in the running state.
13808
+ * * The network of the instance is in hybrid access mode.
13809
+ * > This operation is applicable only to replica set and sharded cluster instances, but not to standalone instances.
13810
+ *
13811
+ * @param request ModifyDBInstanceNetExpireTimeRequest
13812
+ * @return ModifyDBInstanceNetExpireTimeResponse
13813
+ */
12342
13814
  async modifyDBInstanceNetExpireTime(request) {
12343
13815
  let runtime = new $Util.RuntimeOptions({});
12344
13816
  return await this.modifyDBInstanceNetExpireTimeWithOptions(request, runtime);
12345
13817
  }
13818
+ /**
13819
+ * This operation is applicable only to replica set instances and sharded cluster instances.
13820
+ *
13821
+ * @param request ModifyDBInstanceNetworkTypeRequest
13822
+ * @param runtime runtime options for this request RuntimeOptions
13823
+ * @return ModifyDBInstanceNetworkTypeResponse
13824
+ */
12346
13825
  async modifyDBInstanceNetworkTypeWithOptions(request, runtime) {
12347
13826
  tea_util_1.default.validateModel(request);
12348
13827
  let query = {};
@@ -12379,6 +13858,9 @@ class Client extends openapi_client_1.default {
12379
13858
  if (!tea_util_1.default.isUnset(request.vpcId)) {
12380
13859
  query["VpcId"] = request.vpcId;
12381
13860
  }
13861
+ if (!tea_util_1.default.isUnset(request.zoneId)) {
13862
+ query["ZoneId"] = request.zoneId;
13863
+ }
12382
13864
  let req = new $OpenApi.OpenApiRequest({
12383
13865
  query: openapi_util_1.default.query(query),
12384
13866
  });
@@ -12395,19 +13877,34 @@ class Client extends openapi_client_1.default {
12395
13877
  });
12396
13878
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyDBInstanceNetworkTypeResponse({}));
12397
13879
  }
13880
+ /**
13881
+ * This operation is applicable only to replica set instances and sharded cluster instances.
13882
+ *
13883
+ * @param request ModifyDBInstanceNetworkTypeRequest
13884
+ * @return ModifyDBInstanceNetworkTypeResponse
13885
+ */
12398
13886
  async modifyDBInstanceNetworkType(request) {
12399
13887
  let runtime = new $Util.RuntimeOptions({});
12400
13888
  return await this.modifyDBInstanceNetworkTypeWithOptions(request, runtime);
12401
13889
  }
13890
+ /**
13891
+ * ## Usage
13892
+ * Before you call this operation, make sure that the following requirements are met:
13893
+ * * The instance is in the running state.
13894
+ * * The instance is a replica set instance.
13895
+ * * The engine version of the instance is \\<ph props="intl">3.4 or 4.0\\</ph>\\<ph props="china">3.4, 4.0, or 4.2\\</ph>.
13896
+ * > When you enable or disable SSL encryption or update the SSL certificate, the instance restarts. We recommend that you call this operation during off-peak hours.
13897
+ *
13898
+ * @param request ModifyDBInstanceSSLRequest
13899
+ * @param runtime runtime options for this request RuntimeOptions
13900
+ * @return ModifyDBInstanceSSLResponse
13901
+ */
12402
13902
  async modifyDBInstanceSSLWithOptions(request, runtime) {
12403
13903
  tea_util_1.default.validateModel(request);
12404
13904
  let query = {};
12405
13905
  if (!tea_util_1.default.isUnset(request.DBInstanceId)) {
12406
13906
  query["DBInstanceId"] = request.DBInstanceId;
12407
13907
  }
12408
- if (!tea_util_1.default.isUnset(request.disableTlsProtocol)) {
12409
- query["DisableTlsProtocol"] = request.disableTlsProtocol;
12410
- }
12411
13908
  if (!tea_util_1.default.isUnset(request.ownerAccount)) {
12412
13909
  query["OwnerAccount"] = request.ownerAccount;
12413
13910
  }
@@ -12442,10 +13939,29 @@ class Client extends openapi_client_1.default {
12442
13939
  });
12443
13940
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyDBInstanceSSLResponse({}));
12444
13941
  }
13942
+ /**
13943
+ * ## Usage
13944
+ * Before you call this operation, make sure that the following requirements are met:
13945
+ * * The instance is in the running state.
13946
+ * * The instance is a replica set instance.
13947
+ * * The engine version of the instance is \\<ph props="intl">3.4 or 4.0\\</ph>\\<ph props="china">3.4, 4.0, or 4.2\\</ph>.
13948
+ * > When you enable or disable SSL encryption or update the SSL certificate, the instance restarts. We recommend that you call this operation during off-peak hours.
13949
+ *
13950
+ * @param request ModifyDBInstanceSSLRequest
13951
+ * @return ModifyDBInstanceSSLResponse
13952
+ */
12445
13953
  async modifyDBInstanceSSL(request) {
12446
13954
  let runtime = new $Util.RuntimeOptions({});
12447
13955
  return await this.modifyDBInstanceSSLWithOptions(request, runtime);
12448
13956
  }
13957
+ /**
13958
+ * Before you call this operation, make sure that you understand the billing methods and [pricing](https://www.alibabacloud.com/zh/product/apsaradb-for-mongodb/pricing) of ApsaraDB for MongoDB.
13959
+ * This operation applies only to standalone and replica set instances. To modify the specifications of sharded cluster instances, you can call the [ModifyNodeSpec](~~61911~~), [CreateNode](~~61922~~), [DeleteNode](~~61816~~), or [ModifyNodeSpecBatch](~~61923~~) operation.
13960
+ *
13961
+ * @param request ModifyDBInstanceSpecRequest
13962
+ * @param runtime runtime options for this request RuntimeOptions
13963
+ * @return ModifyDBInstanceSpecResponse
13964
+ */
12449
13965
  async modifyDBInstanceSpecWithOptions(request, runtime) {
12450
13966
  tea_util_1.default.validateModel(request);
12451
13967
  let query = {};
@@ -12470,6 +13986,9 @@ class Client extends openapi_client_1.default {
12470
13986
  if (!tea_util_1.default.isUnset(request.effectiveTime)) {
12471
13987
  query["EffectiveTime"] = request.effectiveTime;
12472
13988
  }
13989
+ if (!tea_util_1.default.isUnset(request.extraParam)) {
13990
+ query["ExtraParam"] = request.extraParam;
13991
+ }
12473
13992
  if (!tea_util_1.default.isUnset(request.orderType)) {
12474
13993
  query["OrderType"] = request.orderType;
12475
13994
  }
@@ -12510,10 +14029,29 @@ class Client extends openapi_client_1.default {
12510
14029
  });
12511
14030
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyDBInstanceSpecResponse({}));
12512
14031
  }
14032
+ /**
14033
+ * Before you call this operation, make sure that you understand the billing methods and [pricing](https://www.alibabacloud.com/zh/product/apsaradb-for-mongodb/pricing) of ApsaraDB for MongoDB.
14034
+ * This operation applies only to standalone and replica set instances. To modify the specifications of sharded cluster instances, you can call the [ModifyNodeSpec](~~61911~~), [CreateNode](~~61922~~), [DeleteNode](~~61816~~), or [ModifyNodeSpecBatch](~~61923~~) operation.
14035
+ *
14036
+ * @param request ModifyDBInstanceSpecRequest
14037
+ * @return ModifyDBInstanceSpecResponse
14038
+ */
12513
14039
  async modifyDBInstanceSpec(request) {
12514
14040
  let runtime = new $Util.RuntimeOptions({});
12515
14041
  return await this.modifyDBInstanceSpecWithOptions(request, runtime);
12516
14042
  }
14043
+ /**
14044
+ * TDE allows you to perform real-time I/O encryption and decryption on data files. Data is encrypted before it is written to a disk and is decrypted when it is read from the disk to the memory. For more information, see [Configure TDE](~~131048~~).
14045
+ * > You cannot disable TDE after it is enabled.
14046
+ * Before you call this API operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
14047
+ * * The instance is a replica set or sharded cluster instance.
14048
+ * * The storage engine of the instance is WiredTiger.
14049
+ * * The database engine version of the instance is 4.0 or 4.2. If the database engine version is earlier than 4.0, you can call the [UpgradeDBInstanceEngineVersion](~~67608~~) operation to upgrade the database engine.
14050
+ *
14051
+ * @param request ModifyDBInstanceTDERequest
14052
+ * @param runtime runtime options for this request RuntimeOptions
14053
+ * @return ModifyDBInstanceTDEResponse
14054
+ */
12517
14055
  async modifyDBInstanceTDEWithOptions(request, runtime) {
12518
14056
  tea_util_1.default.validateModel(request);
12519
14057
  let query = {};
@@ -12563,10 +14101,174 @@ class Client extends openapi_client_1.default {
12563
14101
  });
12564
14102
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyDBInstanceTDEResponse({}));
12565
14103
  }
14104
+ /**
14105
+ * TDE allows you to perform real-time I/O encryption and decryption on data files. Data is encrypted before it is written to a disk and is decrypted when it is read from the disk to the memory. For more information, see [Configure TDE](~~131048~~).
14106
+ * > You cannot disable TDE after it is enabled.
14107
+ * Before you call this API operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
14108
+ * * The instance is a replica set or sharded cluster instance.
14109
+ * * The storage engine of the instance is WiredTiger.
14110
+ * * The database engine version of the instance is 4.0 or 4.2. If the database engine version is earlier than 4.0, you can call the [UpgradeDBInstanceEngineVersion](~~67608~~) operation to upgrade the database engine.
14111
+ *
14112
+ * @param request ModifyDBInstanceTDERequest
14113
+ * @return ModifyDBInstanceTDEResponse
14114
+ */
12566
14115
  async modifyDBInstanceTDE(request) {
12567
14116
  let runtime = new $Util.RuntimeOptions({});
12568
14117
  return await this.modifyDBInstanceTDEWithOptions(request, runtime);
12569
14118
  }
14119
+ async modifyGlobalSecurityIPGroupWithOptions(request, runtime) {
14120
+ tea_util_1.default.validateModel(request);
14121
+ let query = {};
14122
+ if (!tea_util_1.default.isUnset(request.GIpList)) {
14123
+ query["GIpList"] = request.GIpList;
14124
+ }
14125
+ if (!tea_util_1.default.isUnset(request.globalIgName)) {
14126
+ query["GlobalIgName"] = request.globalIgName;
14127
+ }
14128
+ if (!tea_util_1.default.isUnset(request.globalSecurityGroupId)) {
14129
+ query["GlobalSecurityGroupId"] = request.globalSecurityGroupId;
14130
+ }
14131
+ if (!tea_util_1.default.isUnset(request.ownerAccount)) {
14132
+ query["OwnerAccount"] = request.ownerAccount;
14133
+ }
14134
+ if (!tea_util_1.default.isUnset(request.ownerId)) {
14135
+ query["OwnerId"] = request.ownerId;
14136
+ }
14137
+ if (!tea_util_1.default.isUnset(request.regionId)) {
14138
+ query["RegionId"] = request.regionId;
14139
+ }
14140
+ if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
14141
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
14142
+ }
14143
+ if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
14144
+ query["ResourceOwnerId"] = request.resourceOwnerId;
14145
+ }
14146
+ if (!tea_util_1.default.isUnset(request.securityToken)) {
14147
+ query["SecurityToken"] = request.securityToken;
14148
+ }
14149
+ let req = new $OpenApi.OpenApiRequest({
14150
+ query: openapi_util_1.default.query(query),
14151
+ });
14152
+ let params = new $OpenApi.Params({
14153
+ action: "ModifyGlobalSecurityIPGroup",
14154
+ version: "2015-12-01",
14155
+ protocol: "HTTPS",
14156
+ pathname: "/",
14157
+ method: "POST",
14158
+ authType: "AK",
14159
+ style: "RPC",
14160
+ reqBodyType: "formData",
14161
+ bodyType: "json",
14162
+ });
14163
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyGlobalSecurityIPGroupResponse({}));
14164
+ }
14165
+ async modifyGlobalSecurityIPGroup(request) {
14166
+ let runtime = new $Util.RuntimeOptions({});
14167
+ return await this.modifyGlobalSecurityIPGroupWithOptions(request, runtime);
14168
+ }
14169
+ async modifyGlobalSecurityIPGroupNameWithOptions(request, runtime) {
14170
+ tea_util_1.default.validateModel(request);
14171
+ let query = {};
14172
+ if (!tea_util_1.default.isUnset(request.globalIgName)) {
14173
+ query["GlobalIgName"] = request.globalIgName;
14174
+ }
14175
+ if (!tea_util_1.default.isUnset(request.globalSecurityGroupId)) {
14176
+ query["GlobalSecurityGroupId"] = request.globalSecurityGroupId;
14177
+ }
14178
+ if (!tea_util_1.default.isUnset(request.ownerAccount)) {
14179
+ query["OwnerAccount"] = request.ownerAccount;
14180
+ }
14181
+ if (!tea_util_1.default.isUnset(request.ownerId)) {
14182
+ query["OwnerId"] = request.ownerId;
14183
+ }
14184
+ if (!tea_util_1.default.isUnset(request.regionId)) {
14185
+ query["RegionId"] = request.regionId;
14186
+ }
14187
+ if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
14188
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
14189
+ }
14190
+ if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
14191
+ query["ResourceOwnerId"] = request.resourceOwnerId;
14192
+ }
14193
+ if (!tea_util_1.default.isUnset(request.securityToken)) {
14194
+ query["SecurityToken"] = request.securityToken;
14195
+ }
14196
+ let req = new $OpenApi.OpenApiRequest({
14197
+ query: openapi_util_1.default.query(query),
14198
+ });
14199
+ let params = new $OpenApi.Params({
14200
+ action: "ModifyGlobalSecurityIPGroupName",
14201
+ version: "2015-12-01",
14202
+ protocol: "HTTPS",
14203
+ pathname: "/",
14204
+ method: "POST",
14205
+ authType: "AK",
14206
+ style: "RPC",
14207
+ reqBodyType: "formData",
14208
+ bodyType: "json",
14209
+ });
14210
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyGlobalSecurityIPGroupNameResponse({}));
14211
+ }
14212
+ async modifyGlobalSecurityIPGroupName(request) {
14213
+ let runtime = new $Util.RuntimeOptions({});
14214
+ return await this.modifyGlobalSecurityIPGroupNameWithOptions(request, runtime);
14215
+ }
14216
+ async modifyGlobalSecurityIPGroupRelationWithOptions(request, runtime) {
14217
+ tea_util_1.default.validateModel(request);
14218
+ let query = {};
14219
+ if (!tea_util_1.default.isUnset(request.DBClusterId)) {
14220
+ query["DBClusterId"] = request.DBClusterId;
14221
+ }
14222
+ if (!tea_util_1.default.isUnset(request.globalSecurityGroupId)) {
14223
+ query["GlobalSecurityGroupId"] = request.globalSecurityGroupId;
14224
+ }
14225
+ if (!tea_util_1.default.isUnset(request.ownerAccount)) {
14226
+ query["OwnerAccount"] = request.ownerAccount;
14227
+ }
14228
+ if (!tea_util_1.default.isUnset(request.ownerId)) {
14229
+ query["OwnerId"] = request.ownerId;
14230
+ }
14231
+ if (!tea_util_1.default.isUnset(request.regionId)) {
14232
+ query["RegionId"] = request.regionId;
14233
+ }
14234
+ if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
14235
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
14236
+ }
14237
+ if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
14238
+ query["ResourceOwnerId"] = request.resourceOwnerId;
14239
+ }
14240
+ if (!tea_util_1.default.isUnset(request.securityToken)) {
14241
+ query["SecurityToken"] = request.securityToken;
14242
+ }
14243
+ let req = new $OpenApi.OpenApiRequest({
14244
+ query: openapi_util_1.default.query(query),
14245
+ });
14246
+ let params = new $OpenApi.Params({
14247
+ action: "ModifyGlobalSecurityIPGroupRelation",
14248
+ version: "2015-12-01",
14249
+ protocol: "HTTPS",
14250
+ pathname: "/",
14251
+ method: "POST",
14252
+ authType: "AK",
14253
+ style: "RPC",
14254
+ reqBodyType: "formData",
14255
+ bodyType: "json",
14256
+ });
14257
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyGlobalSecurityIPGroupRelationResponse({}));
14258
+ }
14259
+ async modifyGlobalSecurityIPGroupRelation(request) {
14260
+ let runtime = new $Util.RuntimeOptions({});
14261
+ return await this.modifyGlobalSecurityIPGroupRelationWithOptions(request, runtime);
14262
+ }
14263
+ /**
14264
+ * Before you call this operation, make sure that you fully understand the billing methods and [pricing](https://www.alibabacloud.com/zh/product/apsaradb-for-mongodb/pricing).
14265
+ * This operation is applicable to subscription instances.
14266
+ * > When auto-renewal is enabled, your payment will be collected nine days before the expiration date of ApsaraDB for MongoDB. Ensure that your account has sufficient balance.
14267
+ *
14268
+ * @param request ModifyInstanceAutoRenewalAttributeRequest
14269
+ * @param runtime runtime options for this request RuntimeOptions
14270
+ * @return ModifyInstanceAutoRenewalAttributeResponse
14271
+ */
12570
14272
  async modifyInstanceAutoRenewalAttributeWithOptions(request, runtime) {
12571
14273
  tea_util_1.default.validateModel(request);
12572
14274
  let query = {};
@@ -12613,10 +14315,25 @@ class Client extends openapi_client_1.default {
12613
14315
  });
12614
14316
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceAutoRenewalAttributeResponse({}));
12615
14317
  }
14318
+ /**
14319
+ * Before you call this operation, make sure that you fully understand the billing methods and [pricing](https://www.alibabacloud.com/zh/product/apsaradb-for-mongodb/pricing).
14320
+ * This operation is applicable to subscription instances.
14321
+ * > When auto-renewal is enabled, your payment will be collected nine days before the expiration date of ApsaraDB for MongoDB. Ensure that your account has sufficient balance.
14322
+ *
14323
+ * @param request ModifyInstanceAutoRenewalAttributeRequest
14324
+ * @return ModifyInstanceAutoRenewalAttributeResponse
14325
+ */
12616
14326
  async modifyInstanceAutoRenewalAttribute(request) {
12617
14327
  let runtime = new $Util.RuntimeOptions({});
12618
14328
  return await this.modifyInstanceAutoRenewalAttributeWithOptions(request, runtime);
12619
14329
  }
14330
+ /**
14331
+ * You can call this operation to enable or disable password-free access from the same VPC as an ApsaraDB for MongoDB instance.
14332
+ *
14333
+ * @param request ModifyInstanceVpcAuthModeRequest
14334
+ * @param runtime runtime options for this request RuntimeOptions
14335
+ * @return ModifyInstanceVpcAuthModeResponse
14336
+ */
12620
14337
  async modifyInstanceVpcAuthModeWithOptions(request, runtime) {
12621
14338
  tea_util_1.default.validateModel(request);
12622
14339
  let query = {};
@@ -12660,10 +14377,24 @@ class Client extends openapi_client_1.default {
12660
14377
  });
12661
14378
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceVpcAuthModeResponse({}));
12662
14379
  }
14380
+ /**
14381
+ * You can call this operation to enable or disable password-free access from the same VPC as an ApsaraDB for MongoDB instance.
14382
+ *
14383
+ * @param request ModifyInstanceVpcAuthModeRequest
14384
+ * @return ModifyInstanceVpcAuthModeResponse
14385
+ */
12663
14386
  async modifyInstanceVpcAuthMode(request) {
12664
14387
  let runtime = new $Util.RuntimeOptions({});
12665
14388
  return await this.modifyInstanceVpcAuthModeWithOptions(request, runtime);
12666
14389
  }
14390
+ /**
14391
+ * Before you call this operation, make sure that you understand the billing methods and [pricing](https://www.alibabacloud.com/zh/product/apsaradb-for-mongodb/pricing) of ApsaraDB for MongoDB.
14392
+ * > This operation is applicable only to sharded cluster instances.
14393
+ *
14394
+ * @param request ModifyNodeSpecRequest
14395
+ * @param runtime runtime options for this request RuntimeOptions
14396
+ * @return ModifyNodeSpecResponse
14397
+ */
12667
14398
  async modifyNodeSpecWithOptions(request, runtime) {
12668
14399
  tea_util_1.default.validateModel(request);
12669
14400
  let query = {};
@@ -12737,10 +14468,25 @@ class Client extends openapi_client_1.default {
12737
14468
  });
12738
14469
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyNodeSpecResponse({}));
12739
14470
  }
14471
+ /**
14472
+ * Before you call this operation, make sure that you understand the billing methods and [pricing](https://www.alibabacloud.com/zh/product/apsaradb-for-mongodb/pricing) of ApsaraDB for MongoDB.
14473
+ * > This operation is applicable only to sharded cluster instances.
14474
+ *
14475
+ * @param request ModifyNodeSpecRequest
14476
+ * @return ModifyNodeSpecResponse
14477
+ */
12740
14478
  async modifyNodeSpec(request) {
12741
14479
  let runtime = new $Util.RuntimeOptions({});
12742
14480
  return await this.modifyNodeSpecWithOptions(request, runtime);
12743
14481
  }
14482
+ /**
14483
+ * Make sure that you fully understand the billing methods and [pricing](https://www.aliyun.com/price/product#/mongodb/detail) of ApsaraDB for MongoDB before you call this operation.
14484
+ * This operation is applicable to only sharded cluster instances.
14485
+ *
14486
+ * @param request ModifyNodeSpecBatchRequest
14487
+ * @param runtime runtime options for this request RuntimeOptions
14488
+ * @return ModifyNodeSpecBatchResponse
14489
+ */
12744
14490
  async modifyNodeSpecBatchWithOptions(request, runtime) {
12745
14491
  tea_util_1.default.validateModel(request);
12746
14492
  let query = {};
@@ -12802,10 +14548,26 @@ class Client extends openapi_client_1.default {
12802
14548
  });
12803
14549
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyNodeSpecBatchResponse({}));
12804
14550
  }
14551
+ /**
14552
+ * Make sure that you fully understand the billing methods and [pricing](https://www.aliyun.com/price/product#/mongodb/detail) of ApsaraDB for MongoDB before you call this operation.
14553
+ * This operation is applicable to only sharded cluster instances.
14554
+ *
14555
+ * @param request ModifyNodeSpecBatchRequest
14556
+ * @return ModifyNodeSpecBatchResponse
14557
+ */
12805
14558
  async modifyNodeSpecBatch(request) {
12806
14559
  let runtime = new $Util.RuntimeOptions({});
12807
14560
  return await this.modifyNodeSpecBatchWithOptions(request, runtime);
12808
14561
  }
14562
+ /**
14563
+ * ## Precautions
14564
+ * * The instance must be in the Running state when you call this operation.
14565
+ * * If you call this operation to modify specific instance parameters and the modification for part of the parameters can take effect only after an instance restart, the instance is automatically restarted after this operation is called. You can call the [DescribeParameterTemplates](~~67618~~) operation to query the parameters that take effect only after the instance is restarted.
14566
+ *
14567
+ * @param request ModifyParametersRequest
14568
+ * @param runtime runtime options for this request RuntimeOptions
14569
+ * @return ModifyParametersResponse
14570
+ */
12809
14571
  async modifyParametersWithOptions(request, runtime) {
12810
14572
  tea_util_1.default.validateModel(request);
12811
14573
  let query = {};
@@ -12855,10 +14617,25 @@ class Client extends openapi_client_1.default {
12855
14617
  });
12856
14618
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyParametersResponse({}));
12857
14619
  }
14620
+ /**
14621
+ * ## Precautions
14622
+ * * The instance must be in the Running state when you call this operation.
14623
+ * * If you call this operation to modify specific instance parameters and the modification for part of the parameters can take effect only after an instance restart, the instance is automatically restarted after this operation is called. You can call the [DescribeParameterTemplates](~~67618~~) operation to query the parameters that take effect only after the instance is restarted.
14624
+ *
14625
+ * @param request ModifyParametersRequest
14626
+ * @return ModifyParametersResponse
14627
+ */
12858
14628
  async modifyParameters(request) {
12859
14629
  let runtime = new $Util.RuntimeOptions({});
12860
14630
  return await this.modifyParametersWithOptions(request, runtime);
12861
14631
  }
14632
+ /**
14633
+ * Resource Management allows you to build an organizational structure for resources based on your business requirements. You can use resource directories, folders, accounts, and resource groups to hierarchically organize and manage resources. For more information, see [What is Resource Management?](~~94475~~)
14634
+ *
14635
+ * @param request ModifyResourceGroupRequest
14636
+ * @param runtime runtime options for this request RuntimeOptions
14637
+ * @return ModifyResourceGroupResponse
14638
+ */
12862
14639
  async modifyResourceGroupWithOptions(request, runtime) {
12863
14640
  tea_util_1.default.validateModel(request);
12864
14641
  let query = {};
@@ -12902,10 +14679,23 @@ class Client extends openapi_client_1.default {
12902
14679
  });
12903
14680
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyResourceGroupResponse({}));
12904
14681
  }
14682
+ /**
14683
+ * Resource Management allows you to build an organizational structure for resources based on your business requirements. You can use resource directories, folders, accounts, and resource groups to hierarchically organize and manage resources. For more information, see [What is Resource Management?](~~94475~~)
14684
+ *
14685
+ * @param request ModifyResourceGroupRequest
14686
+ * @return ModifyResourceGroupResponse
14687
+ */
12905
14688
  async modifyResourceGroup(request) {
12906
14689
  let runtime = new $Util.RuntimeOptions({});
12907
14690
  return await this.modifyResourceGroupWithOptions(request, runtime);
12908
14691
  }
14692
+ /**
14693
+ * > For a sharded cluster instance, the bound ECS security group takes effect only for mongos nodes.
14694
+ *
14695
+ * @param request ModifySecurityGroupConfigurationRequest
14696
+ * @param runtime runtime options for this request RuntimeOptions
14697
+ * @return ModifySecurityGroupConfigurationResponse
14698
+ */
12909
14699
  async modifySecurityGroupConfigurationWithOptions(request, runtime) {
12910
14700
  tea_util_1.default.validateModel(request);
12911
14701
  let query = {};
@@ -12946,6 +14736,12 @@ class Client extends openapi_client_1.default {
12946
14736
  });
12947
14737
  return $tea.cast(await this.callApi(params, req, runtime), new ModifySecurityGroupConfigurationResponse({}));
12948
14738
  }
14739
+ /**
14740
+ * > For a sharded cluster instance, the bound ECS security group takes effect only for mongos nodes.
14741
+ *
14742
+ * @param request ModifySecurityGroupConfigurationRequest
14743
+ * @return ModifySecurityGroupConfigurationResponse
14744
+ */
12949
14745
  async modifySecurityGroupConfiguration(request) {
12950
14746
  let runtime = new $Util.RuntimeOptions({});
12951
14747
  return await this.modifySecurityGroupConfigurationWithOptions(request, runtime);
@@ -13003,6 +14799,14 @@ class Client extends openapi_client_1.default {
13003
14799
  let runtime = new $Util.RuntimeOptions({});
13004
14800
  return await this.modifySecurityIpsWithOptions(request, runtime);
13005
14801
  }
14802
+ /**
14803
+ * * This operation can be used to release the internal endpoint of a shard or Configserver node in a sharded cluster instance. For more information, see [Release the endpoint of a shard or Configserver node](~~134067~~).
14804
+ * * To release the public endpoint of a shard or Configserver node in a sharded cluster instance, you can call the [ReleasePublicNetworkAddress](~~67604~~) operation.
14805
+ *
14806
+ * @param request ReleaseNodePrivateNetworkAddressRequest
14807
+ * @param runtime runtime options for this request RuntimeOptions
14808
+ * @return ReleaseNodePrivateNetworkAddressResponse
14809
+ */
13006
14810
  async releaseNodePrivateNetworkAddressWithOptions(request, runtime) {
13007
14811
  tea_util_1.default.validateModel(request);
13008
14812
  let query = {};
@@ -13046,6 +14850,13 @@ class Client extends openapi_client_1.default {
13046
14850
  });
13047
14851
  return $tea.cast(await this.callApi(params, req, runtime), new ReleaseNodePrivateNetworkAddressResponse({}));
13048
14852
  }
14853
+ /**
14854
+ * * This operation can be used to release the internal endpoint of a shard or Configserver node in a sharded cluster instance. For more information, see [Release the endpoint of a shard or Configserver node](~~134067~~).
14855
+ * * To release the public endpoint of a shard or Configserver node in a sharded cluster instance, you can call the [ReleasePublicNetworkAddress](~~67604~~) operation.
14856
+ *
14857
+ * @param request ReleaseNodePrivateNetworkAddressRequest
14858
+ * @return ReleaseNodePrivateNetworkAddressResponse
14859
+ */
13049
14860
  async releaseNodePrivateNetworkAddress(request) {
13050
14861
  let runtime = new $Util.RuntimeOptions({});
13051
14862
  return await this.releaseNodePrivateNetworkAddressWithOptions(request, runtime);
@@ -13094,6 +14905,14 @@ class Client extends openapi_client_1.default {
13094
14905
  let runtime = new $Util.RuntimeOptions({});
13095
14906
  return await this.releasePublicNetworkAddressWithOptions(request, runtime);
13096
14907
  }
14908
+ /**
14909
+ * Make sure that you fully understand the billing methods and [pricing](https://www.alibabacloud.com/zh/product/apsaradb-for-mongodb/pricing) of ApsaraDB for MongoDB before you call this operation.
14910
+ * This parameter is only applicable to Subscription instances.
14911
+ *
14912
+ * @param request RenewDBInstanceRequest
14913
+ * @param runtime runtime options for this request RuntimeOptions
14914
+ * @return RenewDBInstanceResponse
14915
+ */
13097
14916
  async renewDBInstanceWithOptions(request, runtime) {
13098
14917
  tea_util_1.default.validateModel(request);
13099
14918
  let query = {};
@@ -13146,10 +14965,24 @@ class Client extends openapi_client_1.default {
13146
14965
  });
13147
14966
  return $tea.cast(await this.callApi(params, req, runtime), new RenewDBInstanceResponse({}));
13148
14967
  }
14968
+ /**
14969
+ * Make sure that you fully understand the billing methods and [pricing](https://www.alibabacloud.com/zh/product/apsaradb-for-mongodb/pricing) of ApsaraDB for MongoDB before you call this operation.
14970
+ * This parameter is only applicable to Subscription instances.
14971
+ *
14972
+ * @param request RenewDBInstanceRequest
14973
+ * @return RenewDBInstanceResponse
14974
+ */
13149
14975
  async renewDBInstance(request) {
13150
14976
  let runtime = new $Util.RuntimeOptions({});
13151
14977
  return await this.renewDBInstanceWithOptions(request, runtime);
13152
14978
  }
14979
+ /**
14980
+ * > This operation can reset only the password of the root account of an instance.
14981
+ *
14982
+ * @param request ResetAccountPasswordRequest
14983
+ * @param runtime runtime options for this request RuntimeOptions
14984
+ * @return ResetAccountPasswordResponse
14985
+ */
13153
14986
  async resetAccountPasswordWithOptions(request, runtime) {
13154
14987
  tea_util_1.default.validateModel(request);
13155
14988
  let query = {};
@@ -13159,6 +14992,9 @@ class Client extends openapi_client_1.default {
13159
14992
  if (!tea_util_1.default.isUnset(request.accountPassword)) {
13160
14993
  query["AccountPassword"] = request.accountPassword;
13161
14994
  }
14995
+ if (!tea_util_1.default.isUnset(request.characterType)) {
14996
+ query["CharacterType"] = request.characterType;
14997
+ }
13162
14998
  if (!tea_util_1.default.isUnset(request.DBInstanceId)) {
13163
14999
  query["DBInstanceId"] = request.DBInstanceId;
13164
15000
  }
@@ -13193,10 +15029,23 @@ class Client extends openapi_client_1.default {
13193
15029
  });
13194
15030
  return $tea.cast(await this.callApi(params, req, runtime), new ResetAccountPasswordResponse({}));
13195
15031
  }
15032
+ /**
15033
+ * > This operation can reset only the password of the root account of an instance.
15034
+ *
15035
+ * @param request ResetAccountPasswordRequest
15036
+ * @return ResetAccountPasswordResponse
15037
+ */
13196
15038
  async resetAccountPassword(request) {
13197
15039
  let runtime = new $Util.RuntimeOptions({});
13198
15040
  return await this.resetAccountPasswordWithOptions(request, runtime);
13199
15041
  }
15042
+ /**
15043
+ * This operation can also be used to restart a shard or mongos node in a sharded cluster instance.
15044
+ *
15045
+ * @param request RestartDBInstanceRequest
15046
+ * @param runtime runtime options for this request RuntimeOptions
15047
+ * @return RestartDBInstanceResponse
15048
+ */
13200
15049
  async restartDBInstanceWithOptions(request, runtime) {
13201
15050
  tea_util_1.default.validateModel(request);
13202
15051
  let query = {};
@@ -13237,10 +15086,24 @@ class Client extends openapi_client_1.default {
13237
15086
  });
13238
15087
  return $tea.cast(await this.callApi(params, req, runtime), new RestartDBInstanceResponse({}));
13239
15088
  }
15089
+ /**
15090
+ * This operation can also be used to restart a shard or mongos node in a sharded cluster instance.
15091
+ *
15092
+ * @param request RestartDBInstanceRequest
15093
+ * @return RestartDBInstanceResponse
15094
+ */
13240
15095
  async restartDBInstance(request) {
13241
15096
  let runtime = new $Util.RuntimeOptions({});
13242
15097
  return await this.restartDBInstanceWithOptions(request, runtime);
13243
15098
  }
15099
+ /**
15100
+ * This operation is applicable to replica set instances, but cannot be called on standalone instances or sharded cluster instances. You can use the following methods to clone an instance: [Create an instance from a backup](~~55013~~) to clone a standalone instance. Call the [CreateShardingDBInstance](~~61884~~) operation to clone a sharded cluster instance.
15101
+ * > This operation overwrites the data of the current instance, and the data cannot be recovered. Exercise caution when performing this operation.
15102
+ *
15103
+ * @param request RestoreDBInstanceRequest
15104
+ * @param runtime runtime options for this request RuntimeOptions
15105
+ * @return RestoreDBInstanceResponse
15106
+ */
13244
15107
  async restoreDBInstanceWithOptions(request, runtime) {
13245
15108
  tea_util_1.default.validateModel(request);
13246
15109
  let query = {};
@@ -13281,10 +15144,27 @@ class Client extends openapi_client_1.default {
13281
15144
  });
13282
15145
  return $tea.cast(await this.callApi(params, req, runtime), new RestoreDBInstanceResponse({}));
13283
15146
  }
15147
+ /**
15148
+ * This operation is applicable to replica set instances, but cannot be called on standalone instances or sharded cluster instances. You can use the following methods to clone an instance: [Create an instance from a backup](~~55013~~) to clone a standalone instance. Call the [CreateShardingDBInstance](~~61884~~) operation to clone a sharded cluster instance.
15149
+ * > This operation overwrites the data of the current instance, and the data cannot be recovered. Exercise caution when performing this operation.
15150
+ *
15151
+ * @param request RestoreDBInstanceRequest
15152
+ * @return RestoreDBInstanceResponse
15153
+ */
13284
15154
  async restoreDBInstance(request) {
13285
15155
  let runtime = new $Util.RuntimeOptions({});
13286
15156
  return await this.restoreDBInstanceWithOptions(request, runtime);
13287
15157
  }
15158
+ /**
15159
+ * The instance must be running when you call this operation.
15160
+ * >
15161
+ * * This operation is applicable to replica set instances and sharded cluster instances, but cannot be performed on standalone instances.
15162
+ * * On replica set instances, the switch is performed between instances. On sharded cluster instances, the switch is performed between shards.
15163
+ *
15164
+ * @param request SwitchDBInstanceHARequest
15165
+ * @param runtime runtime options for this request RuntimeOptions
15166
+ * @return SwitchDBInstanceHAResponse
15167
+ */
13288
15168
  async switchDBInstanceHAWithOptions(request, runtime) {
13289
15169
  tea_util_1.default.validateModel(request);
13290
15170
  let query = {};
@@ -13331,10 +15211,31 @@ class Client extends openapi_client_1.default {
13331
15211
  });
13332
15212
  return $tea.cast(await this.callApi(params, req, runtime), new SwitchDBInstanceHAResponse({}));
13333
15213
  }
15214
+ /**
15215
+ * The instance must be running when you call this operation.
15216
+ * >
15217
+ * * This operation is applicable to replica set instances and sharded cluster instances, but cannot be performed on standalone instances.
15218
+ * * On replica set instances, the switch is performed between instances. On sharded cluster instances, the switch is performed between shards.
15219
+ *
15220
+ * @param request SwitchDBInstanceHARequest
15221
+ * @return SwitchDBInstanceHAResponse
15222
+ */
13334
15223
  async switchDBInstanceHA(request) {
13335
15224
  let runtime = new $Util.RuntimeOptions({});
13336
15225
  return await this.switchDBInstanceHAWithOptions(request, runtime);
13337
15226
  }
15227
+ /**
15228
+ * You can create multiple tags and bind them to multiple instances. This allows you to classify and filter instances by tag.
15229
+ * * A tag consists of a key and a value. Each key must be unique in a region for an Alibaba Cloud account. Different keys can have the same value.
15230
+ * * If the tag you specify does not exist, this tag is automatically created and bound to the specified instance.
15231
+ * * If a tag that has the same key is already bound to the instance, the new tag overwrites the existing tag.
15232
+ * * You can bind up to 20 tags to each instance.
15233
+ * * You can bind tags to up to 50 instances each time you call the operation.
15234
+ *
15235
+ * @param request TagResourcesRequest
15236
+ * @param runtime runtime options for this request RuntimeOptions
15237
+ * @return TagResourcesResponse
15238
+ */
13338
15239
  async tagResourcesWithOptions(request, runtime) {
13339
15240
  tea_util_1.default.validateModel(request);
13340
15241
  let query = {};
@@ -13381,10 +15282,117 @@ class Client extends openapi_client_1.default {
13381
15282
  });
13382
15283
  return $tea.cast(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
13383
15284
  }
15285
+ /**
15286
+ * You can create multiple tags and bind them to multiple instances. This allows you to classify and filter instances by tag.
15287
+ * * A tag consists of a key and a value. Each key must be unique in a region for an Alibaba Cloud account. Different keys can have the same value.
15288
+ * * If the tag you specify does not exist, this tag is automatically created and bound to the specified instance.
15289
+ * * If a tag that has the same key is already bound to the instance, the new tag overwrites the existing tag.
15290
+ * * You can bind up to 20 tags to each instance.
15291
+ * * You can bind tags to up to 50 instances each time you call the operation.
15292
+ *
15293
+ * @param request TagResourcesRequest
15294
+ * @return TagResourcesResponse
15295
+ */
13384
15296
  async tagResources(request) {
13385
15297
  let runtime = new $Util.RuntimeOptions({});
13386
15298
  return await this.tagResourcesWithOptions(request, runtime);
13387
15299
  }
15300
+ /**
15301
+ * Before you call this operation, make sure that you understand the billing methods and [pricing](https://www.aliyun.com/price/product#/mongodb/detail) of ApsaraDB for MongoDB.
15302
+ * Before you call this API operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
15303
+ * * The instance is in the Running state.
15304
+ * * Your instance has no unpaid billing method change orders.
15305
+ * * The instance type is available for purchase. For more information about unavailable instance types, see [Instance types](~~57141~~).
15306
+ * > To change the billing method of an instance whose instance type is no longer available to purchase, call the [ModifyDBInstanceSpec](~~61816~~) or [ModifyNodeSpec](~~61923~~) operation to first change the instance type.
15307
+ *
15308
+ * @param request TransformInstanceChargeTypeRequest
15309
+ * @param runtime runtime options for this request RuntimeOptions
15310
+ * @return TransformInstanceChargeTypeResponse
15311
+ */
15312
+ async transformInstanceChargeTypeWithOptions(request, runtime) {
15313
+ tea_util_1.default.validateModel(request);
15314
+ let query = {};
15315
+ if (!tea_util_1.default.isUnset(request.autoPay)) {
15316
+ query["AutoPay"] = request.autoPay;
15317
+ }
15318
+ if (!tea_util_1.default.isUnset(request.autoRenew)) {
15319
+ query["AutoRenew"] = request.autoRenew;
15320
+ }
15321
+ if (!tea_util_1.default.isUnset(request.businessInfo)) {
15322
+ query["BusinessInfo"] = request.businessInfo;
15323
+ }
15324
+ if (!tea_util_1.default.isUnset(request.chargeType)) {
15325
+ query["ChargeType"] = request.chargeType;
15326
+ }
15327
+ if (!tea_util_1.default.isUnset(request.couponNo)) {
15328
+ query["CouponNo"] = request.couponNo;
15329
+ }
15330
+ if (!tea_util_1.default.isUnset(request.instanceId)) {
15331
+ query["InstanceId"] = request.instanceId;
15332
+ }
15333
+ if (!tea_util_1.default.isUnset(request.ownerAccount)) {
15334
+ query["OwnerAccount"] = request.ownerAccount;
15335
+ }
15336
+ if (!tea_util_1.default.isUnset(request.ownerId)) {
15337
+ query["OwnerId"] = request.ownerId;
15338
+ }
15339
+ if (!tea_util_1.default.isUnset(request.period)) {
15340
+ query["Period"] = request.period;
15341
+ }
15342
+ if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
15343
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
15344
+ }
15345
+ if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
15346
+ query["ResourceOwnerId"] = request.resourceOwnerId;
15347
+ }
15348
+ if (!tea_util_1.default.isUnset(request.securityToken)) {
15349
+ query["SecurityToken"] = request.securityToken;
15350
+ }
15351
+ let req = new $OpenApi.OpenApiRequest({
15352
+ query: openapi_util_1.default.query(query),
15353
+ });
15354
+ let params = new $OpenApi.Params({
15355
+ action: "TransformInstanceChargeType",
15356
+ version: "2015-12-01",
15357
+ protocol: "HTTPS",
15358
+ pathname: "/",
15359
+ method: "POST",
15360
+ authType: "AK",
15361
+ style: "RPC",
15362
+ reqBodyType: "formData",
15363
+ bodyType: "json",
15364
+ });
15365
+ return $tea.cast(await this.callApi(params, req, runtime), new TransformInstanceChargeTypeResponse({}));
15366
+ }
15367
+ /**
15368
+ * Before you call this operation, make sure that you understand the billing methods and [pricing](https://www.aliyun.com/price/product#/mongodb/detail) of ApsaraDB for MongoDB.
15369
+ * Before you call this API operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
15370
+ * * The instance is in the Running state.
15371
+ * * Your instance has no unpaid billing method change orders.
15372
+ * * The instance type is available for purchase. For more information about unavailable instance types, see [Instance types](~~57141~~).
15373
+ * > To change the billing method of an instance whose instance type is no longer available to purchase, call the [ModifyDBInstanceSpec](~~61816~~) or [ModifyNodeSpec](~~61923~~) operation to first change the instance type.
15374
+ *
15375
+ * @param request TransformInstanceChargeTypeRequest
15376
+ * @return TransformInstanceChargeTypeResponse
15377
+ */
15378
+ async transformInstanceChargeType(request) {
15379
+ let runtime = new $Util.RuntimeOptions({});
15380
+ return await this.transformInstanceChargeTypeWithOptions(request, runtime);
15381
+ }
15382
+ /**
15383
+ * Before you call this operation, make sure that you understand the billing methods and [pricing](https://www.alibabacloud.com/zh/product/apsaradb-for-mongodb/pricing).
15384
+ * A subscription instance cannot be changed to a pay-as-you-go instance. To avoid wasting resources, proceed with caution.
15385
+ * Before you call this API operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
15386
+ * * The instance is in the running state.
15387
+ * * The billing method of the instance is pay-as-you-go.
15388
+ * * The instance has no unpaid subscription orders.
15389
+ * * The instance type is available for purchase. For more information about unavailable instance types, see [Instance types](~~57141~~).
15390
+ * > To change the billing method of an instance whose instance type is no longer available to subscription, call the [ModifyDBInstanceSpec](~~61816~~) or [ModifyNodeSpec](~~61923~~) operation to first change the instance type.
15391
+ *
15392
+ * @param request TransformToPrePaidRequest
15393
+ * @param runtime runtime options for this request RuntimeOptions
15394
+ * @return TransformToPrePaidResponse
15395
+ */
13388
15396
  async transformToPrePaidWithOptions(request, runtime) {
13389
15397
  tea_util_1.default.validateModel(request);
13390
15398
  let query = {};
@@ -13437,10 +15445,32 @@ class Client extends openapi_client_1.default {
13437
15445
  });
13438
15446
  return $tea.cast(await this.callApi(params, req, runtime), new TransformToPrePaidResponse({}));
13439
15447
  }
15448
+ /**
15449
+ * Before you call this operation, make sure that you understand the billing methods and [pricing](https://www.alibabacloud.com/zh/product/apsaradb-for-mongodb/pricing).
15450
+ * A subscription instance cannot be changed to a pay-as-you-go instance. To avoid wasting resources, proceed with caution.
15451
+ * Before you call this API operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
15452
+ * * The instance is in the running state.
15453
+ * * The billing method of the instance is pay-as-you-go.
15454
+ * * The instance has no unpaid subscription orders.
15455
+ * * The instance type is available for purchase. For more information about unavailable instance types, see [Instance types](~~57141~~).
15456
+ * > To change the billing method of an instance whose instance type is no longer available to subscription, call the [ModifyDBInstanceSpec](~~61816~~) or [ModifyNodeSpec](~~61923~~) operation to first change the instance type.
15457
+ *
15458
+ * @param request TransformToPrePaidRequest
15459
+ * @return TransformToPrePaidResponse
15460
+ */
13440
15461
  async transformToPrePaid(request) {
13441
15462
  let runtime = new $Util.RuntimeOptions({});
13442
15463
  return await this.transformToPrePaidWithOptions(request, runtime);
13443
15464
  }
15465
+ /**
15466
+ * >
15467
+ * * You can remove up to 20 tags at a time.
15468
+ * * If you remove a tag from all instances, the tag is automatically deleted.
15469
+ *
15470
+ * @param request UntagResourcesRequest
15471
+ * @param runtime runtime options for this request RuntimeOptions
15472
+ * @return UntagResourcesResponse
15473
+ */
13444
15474
  async untagResourcesWithOptions(request, runtime) {
13445
15475
  tea_util_1.default.validateModel(request);
13446
15476
  let query = {};
@@ -13490,10 +15520,28 @@ class Client extends openapi_client_1.default {
13490
15520
  });
13491
15521
  return $tea.cast(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
13492
15522
  }
15523
+ /**
15524
+ * >
15525
+ * * You can remove up to 20 tags at a time.
15526
+ * * If you remove a tag from all instances, the tag is automatically deleted.
15527
+ *
15528
+ * @param request UntagResourcesRequest
15529
+ * @return UntagResourcesResponse
15530
+ */
13493
15531
  async untagResources(request) {
13494
15532
  let runtime = new $Util.RuntimeOptions({});
13495
15533
  return await this.untagResourcesWithOptions(request, runtime);
13496
15534
  }
15535
+ /**
15536
+ * The instance must be in the running state when you call this operation.
15537
+ * > * The available database versions depend on the storage engine used by the instance. For more information, see [Upgrades of MongoDB major versions](~~398673~~). You can also call the [DescribeAvailableEngineVersion](~~141355~~) operation to query the available database versions.
15538
+ * > * You cannot downgrade the MongoDB version of an instance after you upgrade it.
15539
+ * > * The instance is automatically restarted for two to three times during the upgrade process. Make sure that you upgrade the instance during off-peak hours.
15540
+ *
15541
+ * @param request UpgradeDBInstanceEngineVersionRequest
15542
+ * @param runtime runtime options for this request RuntimeOptions
15543
+ * @return UpgradeDBInstanceEngineVersionResponse
15544
+ */
13497
15545
  async upgradeDBInstanceEngineVersionWithOptions(request, runtime) {
13498
15546
  tea_util_1.default.validateModel(request);
13499
15547
  let query = {};
@@ -13534,10 +15582,28 @@ class Client extends openapi_client_1.default {
13534
15582
  });
13535
15583
  return $tea.cast(await this.callApi(params, req, runtime), new UpgradeDBInstanceEngineVersionResponse({}));
13536
15584
  }
15585
+ /**
15586
+ * The instance must be in the running state when you call this operation.
15587
+ * > * The available database versions depend on the storage engine used by the instance. For more information, see [Upgrades of MongoDB major versions](~~398673~~). You can also call the [DescribeAvailableEngineVersion](~~141355~~) operation to query the available database versions.
15588
+ * > * You cannot downgrade the MongoDB version of an instance after you upgrade it.
15589
+ * > * The instance is automatically restarted for two to three times during the upgrade process. Make sure that you upgrade the instance during off-peak hours.
15590
+ *
15591
+ * @param request UpgradeDBInstanceEngineVersionRequest
15592
+ * @return UpgradeDBInstanceEngineVersionResponse
15593
+ */
13537
15594
  async upgradeDBInstanceEngineVersion(request) {
13538
15595
  let runtime = new $Util.RuntimeOptions({});
13539
15596
  return await this.upgradeDBInstanceEngineVersionWithOptions(request, runtime);
13540
15597
  }
15598
+ /**
15599
+ * When you call the UpgradeDBInstanceKernelVersion operation, the instance must be in the Running state.
15600
+ * > * The UpgradeDBInstanceKernelVersion operation is applicable to replica set and sharded cluster instances, but not to standalone instances.
15601
+ * > * The instance will be restarted once during the upgrade. Call this operation during off-peak hours.
15602
+ *
15603
+ * @param request UpgradeDBInstanceKernelVersionRequest
15604
+ * @param runtime runtime options for this request RuntimeOptions
15605
+ * @return UpgradeDBInstanceKernelVersionResponse
15606
+ */
13541
15607
  async upgradeDBInstanceKernelVersionWithOptions(request, runtime) {
13542
15608
  tea_util_1.default.validateModel(request);
13543
15609
  let query = {};
@@ -13575,6 +15641,14 @@ class Client extends openapi_client_1.default {
13575
15641
  });
13576
15642
  return $tea.cast(await this.callApi(params, req, runtime), new UpgradeDBInstanceKernelVersionResponse({}));
13577
15643
  }
15644
+ /**
15645
+ * When you call the UpgradeDBInstanceKernelVersion operation, the instance must be in the Running state.
15646
+ * > * The UpgradeDBInstanceKernelVersion operation is applicable to replica set and sharded cluster instances, but not to standalone instances.
15647
+ * > * The instance will be restarted once during the upgrade. Call this operation during off-peak hours.
15648
+ *
15649
+ * @param request UpgradeDBInstanceKernelVersionRequest
15650
+ * @return UpgradeDBInstanceKernelVersionResponse
15651
+ */
13578
15652
  async upgradeDBInstanceKernelVersion(request) {
13579
15653
  let runtime = new $Util.RuntimeOptions({});
13580
15654
  return await this.upgradeDBInstanceKernelVersionWithOptions(request, runtime);