@alicloud/dds20151201 7.2.0 → 8.0.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/src/client.ts CHANGED
@@ -202,10 +202,13 @@ export class CreateShardingDBInstanceRequestMongos extends $dara.Model {
202
202
  export class CreateShardingDBInstanceRequestReplicaSet extends $dara.Model {
203
203
  /**
204
204
  * @remarks
205
- * The instance type of the shard node. For more information, see [Sharded cluster instance types](https://help.aliyun.com/document_detail/311414.html).
205
+ * The instance type of the shard component. For more information, see [Sharded cluster instance types](https://help.aliyun.com/document_detail/311414.html).
206
206
  *
207
- * > * **N** specifies the serial number of the shard node for which the instance type is specified. For example, **ReplicaSet.2.Class** specifies the instance type of the second shard node.
208
- * > * Valid values of **N**: **2** to **32**.
207
+ * >
208
+ *
209
+ * * **N** specifies the serial number of the shard component for which the instance type is specified. For example, **ReplicaSet.2.Class** specifies the instance type of the second shard component.
210
+ *
211
+ * * Valid values of **N**: **2** to **32**.
209
212
  *
210
213
  * This parameter is required.
211
214
  *
@@ -215,11 +218,11 @@ export class CreateShardingDBInstanceRequestReplicaSet extends $dara.Model {
215
218
  class?: string;
216
219
  /**
217
220
  * @remarks
218
- * The number of read-only nodes in the shard node.
221
+ * The number of read-only nodes in the shard component.
219
222
  *
220
223
  * Valid values: **0**, **1, 2, 3, 4, and 5**. Default value: **0**.
221
224
  *
222
- * > **N** specifies the serial number of the shard node for which you want to set the number of read-only nodes. **ReplicaSet.2.ReadonlyReplicas** specifies the number of read-only nodes in the second shard node.
225
+ * > **N** specifies the serial number of the shard component for which you want to set the number of read-only nodes. **ReplicaSet.2.ReadonlyReplicas** specifies the number of read-only nodes in the second shard component.
223
226
  *
224
227
  * @example
225
228
  * 0
@@ -227,10 +230,13 @@ export class CreateShardingDBInstanceRequestReplicaSet extends $dara.Model {
227
230
  readonlyReplicas?: number;
228
231
  /**
229
232
  * @remarks
230
- * The storage capacity of the shard node. Unit: GB.
233
+ * The storage capacity of the shard component. Unit: GB.
231
234
  *
232
- * > * The values that can be specified for this parameter vary based on the instance types. For more information, see [Sharded cluster instance types](https://help.aliyun.com/document_detail/311414.html).
233
- * > * **N** specifies the serial number of the shard node for which the storage space is specified. For example, **ReplicaSet.2.Storage** specifies the storage space of the second shard node.
235
+ * >
236
+ *
237
+ * * The values that can be specified for this parameter vary based on the instance types. For more information, see [Sharded cluster instance types](https://help.aliyun.com/document_detail/311414.html).
238
+ *
239
+ * * **N** specifies the serial number of the shard component for which the storage capacity is specified. For example, **ReplicaSet.2.Storage** specifies the storage capacity of the second shard component.
234
240
  *
235
241
  * This parameter is required.
236
242
  *
@@ -2721,6 +2727,13 @@ export class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceMongosL
2721
2727
  * s-bp1d8c262a15****.mongodb.rds.aliyuncs.com
2722
2728
  */
2723
2729
  connectSting?: string;
2730
+ /**
2731
+ * @remarks
2732
+ * The endpoint of the mongos node.
2733
+ *
2734
+ * @example
2735
+ * s-bp1d8c262a15****.mongodb.rds.aliyuncs.com
2736
+ */
2724
2737
  connectString?: string;
2725
2738
  /**
2726
2739
  * @remarks
@@ -5798,7 +5811,7 @@ export class DescribeHistoryTasksResponseBodyItems extends $dara.Model {
5798
5811
  * @example
5799
5812
  * Succeed
5800
5813
  */
5801
- status?: number;
5814
+ status?: string;
5802
5815
  /**
5803
5816
  * @remarks
5804
5817
  * The details of the task. The task details vary based on the value of the taskType parameter.
@@ -5897,7 +5910,7 @@ export class DescribeHistoryTasksResponseBodyItems extends $dara.Model {
5897
5910
  regionId: 'string',
5898
5911
  remainTime: 'number',
5899
5912
  startTime: 'string',
5900
- status: 'number',
5913
+ status: 'string',
5901
5914
  taskDetail: 'string',
5902
5915
  taskId: 'string',
5903
5916
  taskType: 'string',
@@ -8000,7 +8013,7 @@ export class DescribePriceResponseBodySubOrdersSubOrderModuleInstanceModuleInsta
8000
8013
  promDetailList?: DescribePriceResponseBodySubOrdersSubOrderModuleInstanceModuleInstancePromDetailList;
8001
8014
  /**
8002
8015
  * @remarks
8003
- * The discount.
8016
+ * The discounted price.
8004
8017
  *
8005
8018
  * @example
8006
8019
  * 451.00
@@ -8022,7 +8035,21 @@ export class DescribePriceResponseBodySubOrdersSubOrderModuleInstanceModuleInsta
8022
8035
  * 0.0
8023
8036
  */
8024
8037
  totalProductFee?: number;
8038
+ /**
8039
+ * @remarks
8040
+ * The price type.
8041
+ *
8042
+ * @example
8043
+ * monthPrice
8044
+ */
8025
8045
  priceType?: string;
8046
+ /**
8047
+ * @remarks
8048
+ * The unit of the price.
8049
+ *
8050
+ * @example
8051
+ * xxxx
8052
+ */
8026
8053
  priceUnit?: string;
8027
8054
  static names(): { [key: string]: string } {
8028
8055
  return {
@@ -8217,7 +8244,7 @@ export class DescribePriceResponseBodySubOrdersSubOrderOptionalPromotionsOptiona
8217
8244
  promotionOptionNo?: string;
8218
8245
  /**
8219
8246
  * @remarks
8220
- * The IDs of the rules that correspond to the coupon.
8247
+ * The promotion IDs.
8221
8248
  */
8222
8249
  promotionRuleIdList?: DescribePriceResponseBodySubOrdersSubOrderOptionalPromotionsOptionalPromotionPromotionRuleIdList;
8223
8250
  /**
@@ -11461,6 +11488,19 @@ export class CreateAccountRequest extends $dara.Model {
11461
11488
  * Test123456!
11462
11489
  */
11463
11490
  accountPassword?: string;
11491
+ /**
11492
+ * @remarks
11493
+ * The type of the account that you want to create. Valid values:
11494
+ *
11495
+ * * **db** (default): shard account (available)
11496
+ * * **cs**: ConfigServer account
11497
+ * * **normal**: replica set account
11498
+ *
11499
+ * > You can set this parameter only to **db**.
11500
+ *
11501
+ * @example
11502
+ * db
11503
+ */
11464
11504
  characterType?: string;
11465
11505
  /**
11466
11506
  * @remarks
@@ -12997,9 +13037,11 @@ export class CreateShardingDBInstanceRequest extends $dara.Model {
12997
13037
  * @remarks
12998
13038
  * The password of the root account. The password must meet the following requirements:
12999
13039
  *
13000
- * * The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.
13001
- * * The special characters include ! # $ % ^ & \\* ( ) _ + - =
13002
- * * The password of the account must be 8 to 32 characters in length.
13040
+ * * The password contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.
13041
+ * * The following special characters are supported: ! @ # $ % ^ & \\* ( ) _ + - =.
13042
+ * * The password must be 8 to 32 characters in length.
13043
+ *
13044
+ * > For more information about how to resolve failed database connections due to special characters, see [What do I do if my instance is not connected due to special characters in the password in the connection string of the instance?](https://help.aliyun.com/document_detail/471568.html)
13003
13045
  *
13004
13046
  * @example
13005
13047
  * 123456Aa
@@ -13035,7 +13077,7 @@ export class CreateShardingDBInstanceRequest extends $dara.Model {
13035
13077
  * * **PostPaid** (default): pay-as-you-go
13036
13078
  * * **PrePaid**: subscription
13037
13079
  *
13038
- * > If this parameter is set to **PrePaid**, you must also configure the **Period** parameter.
13080
+ * > If you set this parameter to **PrePaid**, you must also configure the **Period** parameter.
13039
13081
  *
13040
13082
  * @example
13041
13083
  * PrePaid
@@ -13080,7 +13122,7 @@ export class CreateShardingDBInstanceRequest extends $dara.Model {
13080
13122
  destRegion?: string;
13081
13123
  /**
13082
13124
  * @remarks
13083
- * Indicates whether disk encryption is enabled.
13125
+ * Specifies whether to enable disk encryption.
13084
13126
  *
13085
13127
  * @example
13086
13128
  * true
@@ -13115,8 +13157,11 @@ export class CreateShardingDBInstanceRequest extends $dara.Model {
13115
13157
  * * **4.2**
13116
13158
  * * **4.0**
13117
13159
  *
13118
- * > * For more information about the limits on database versions and storage engines, see [MongoDB versions and storage engines](https://help.aliyun.com/document_detail/61906.html).
13119
- * > * If you call this operation to clone an instance, set the value of this parameter to the database engine version of the source instance.
13160
+ * >
13161
+ *
13162
+ * * For more information about the limits on database versions and storage engines, see [MongoDB versions and storage engines](https://help.aliyun.com/document_detail/61906.html).
13163
+ *
13164
+ * * If you call this operation to clone an instance, set the value of this parameter to the database engine version of the source instance.
13120
13165
  *
13121
13166
  * This parameter is required.
13122
13167
  *
@@ -13172,9 +13217,9 @@ export class CreateShardingDBInstanceRequest extends $dara.Model {
13172
13217
  mongos?: CreateShardingDBInstanceRequestMongos[];
13173
13218
  /**
13174
13219
  * @remarks
13175
- * The network type of the instance.
13220
+ * The network type of the instance. Set the value to VPC.
13176
13221
  *
13177
- * Set the value to **VPC**.
13222
+ * ****
13178
13223
  *
13179
13224
  * @example
13180
13225
  * VPC
@@ -13225,7 +13270,7 @@ export class CreateShardingDBInstanceRequest extends $dara.Model {
13225
13270
  regionId?: string;
13226
13271
  /**
13227
13272
  * @remarks
13228
- * The information of the shard node.
13273
+ * The information of the shard component.
13229
13274
  *
13230
13275
  * This parameter is required.
13231
13276
  */
@@ -13252,10 +13297,11 @@ export class CreateShardingDBInstanceRequest extends $dara.Model {
13252
13297
  restoreTime?: string;
13253
13298
  /**
13254
13299
  * @remarks
13255
- * The backup restore type of the instance.
13256
- * - 1: restore an instance to the specified time.
13257
- * - 2: restore an released instance to the specified backup set.
13258
- * - 3:restore an instance to the specified cross-regional backup set.
13300
+ * The restoration type of the instance. Valid values:
13301
+ *
13302
+ * * 1: restores the instance data to the specified point in time.
13303
+ * * 2: restores the data of the released instance to the specified backup set.
13304
+ * * 3: restores the instance data to the specified cross-region backup set.
13259
13305
  *
13260
13306
  * @example
13261
13307
  * 1
@@ -13331,8 +13377,11 @@ export class CreateShardingDBInstanceRequest extends $dara.Model {
13331
13377
  * @remarks
13332
13378
  * The storage engine of the instance. Set the value to **WiredTiger**.
13333
13379
  *
13334
- * > * If you call this operation to clone an instance, set the value of this parameter to the storage engine of the source instance.
13335
- * > * For more information about the limits on database versions and storage engines, see [MongoDB versions and storage engines](https://help.aliyun.com/document_detail/61906.html).
13380
+ * >
13381
+ *
13382
+ * * If you call this operation to clone an instance, set the value of this parameter to the storage engine of the source instance.
13383
+ *
13384
+ * * For more information about the limits on database versions and storage engines, see [MongoDB versions and storage engines](https://help.aliyun.com/document_detail/61906.html).
13336
13385
  *
13337
13386
  * @example
13338
13387
  * WiredTiger
@@ -14896,7 +14945,7 @@ export class DescribeActiveOperationTasksRequest extends $dara.Model {
14896
14945
  ownerId?: number;
14897
14946
  /**
14898
14947
  * @remarks
14899
- * The page number of the page to return.
14948
+ * The number of the page to return. Specify the parameter to a positive integer that is greater than **0**. Default value: **1**.
14900
14949
  *
14901
14950
  * @example
14902
14951
  * 1
@@ -14904,7 +14953,7 @@ export class DescribeActiveOperationTasksRequest extends $dara.Model {
14904
14953
  pageNumber?: number;
14905
14954
  /**
14906
14955
  * @remarks
14907
- * The number of entries to return on each page. Valid values: **30, 50, and 100**. Default value: **30**.
14956
+ * The number of entries to return on each page. Valid values: **30**, **50**, and **100**. Default value: **30**.
14908
14957
  *
14909
14958
  * @example
14910
14959
  * 30
@@ -14928,6 +14977,14 @@ export class DescribeActiveOperationTasksRequest extends $dara.Model {
14928
14977
  * cn-beijing
14929
14978
  */
14930
14979
  region?: string;
14980
+ /**
14981
+ * @remarks
14982
+ * The ID of the resource group.
14983
+ *
14984
+ * @example
14985
+ * rg-acfmyiu4ekp****
14986
+ */
14987
+ resourceGroupId?: string;
14931
14988
  resourceOwnerAccount?: string;
14932
14989
  resourceOwnerId?: number;
14933
14990
  /**
@@ -14964,6 +15021,7 @@ export class DescribeActiveOperationTasksRequest extends $dara.Model {
14964
15021
  pageSize: 'PageSize',
14965
15022
  productId: 'ProductId',
14966
15023
  region: 'Region',
15024
+ resourceGroupId: 'ResourceGroupId',
14967
15025
  resourceOwnerAccount: 'ResourceOwnerAccount',
14968
15026
  resourceOwnerId: 'ResourceOwnerId',
14969
15027
  status: 'Status',
@@ -14984,6 +15042,7 @@ export class DescribeActiveOperationTasksRequest extends $dara.Model {
14984
15042
  pageSize: 'number',
14985
15043
  productId: 'string',
14986
15044
  region: 'string',
15045
+ resourceGroupId: 'string',
14987
15046
  resourceOwnerAccount: 'string',
14988
15047
  resourceOwnerId: 'number',
14989
15048
  status: 'number',
@@ -15661,7 +15720,7 @@ export class DescribeAuditRecordsResponse extends $dara.Model {
15661
15720
  export class DescribeAvailabilityZonesRequest extends $dara.Model {
15662
15721
  /**
15663
15722
  * @remarks
15664
- * The language of the values of the returned **RegionName** and **ZoneName** parameters. Valid values:
15723
+ * The language of the returned **RegionName** and **ZoneName** parameter values. Valid values:
15665
15724
  *
15666
15725
  * * **zh** (default): Chinese
15667
15726
  * * **en**: English
@@ -15715,15 +15774,26 @@ export class DescribeAvailabilityZonesRequest extends $dara.Model {
15715
15774
  excludeZoneId?: string;
15716
15775
  /**
15717
15776
  * @remarks
15718
- * The billing method. Valid values:
15777
+ * The billing method of the product. Valid values:
15719
15778
  *
15720
- * * **PrePaid** (default): subscription
15721
- * * **PostPaid**: pay-as-you-go
15779
+ * * **PrePaid**: subscription
15780
+ * * **PostPaid:** pay-as-you-go
15722
15781
  *
15723
15782
  * @example
15724
15783
  * PrePaid
15725
15784
  */
15726
15785
  instanceChargeType?: string;
15786
+ /**
15787
+ * @remarks
15788
+ * The architecture of the instance. Valid values:
15789
+ *
15790
+ * * **sharding**: sharded cluster instance
15791
+ * * **replicate**: replica set or standalone instance
15792
+ *
15793
+ * @example
15794
+ * replicate
15795
+ */
15796
+ instanceType?: string;
15727
15797
  /**
15728
15798
  * @remarks
15729
15799
  * The edition of the instance. High-Available Edition and Preview Edition (dbfs) are supported.
@@ -15746,7 +15816,16 @@ export class DescribeAvailabilityZonesRequest extends $dara.Model {
15746
15816
  regionId?: string;
15747
15817
  /**
15748
15818
  * @remarks
15749
- * The number of nodes. This parameter is available only for replica set instances.
15819
+ * The number of nodes in the instance.
15820
+ *
15821
+ * > This parameter is available only for replica set instances.
15822
+ *
15823
+ * Valid values:
15824
+ *
15825
+ * * 1
15826
+ * * 3
15827
+ * * 5
15828
+ * * 7
15750
15829
  *
15751
15830
  * @example
15752
15831
  * 3
@@ -15764,10 +15843,11 @@ export class DescribeAvailabilityZonesRequest extends $dara.Model {
15764
15843
  resourceOwnerId?: number;
15765
15844
  /**
15766
15845
  * @remarks
15767
- * The storage type of the instance.
15768
- * - **cloud**: The system displays only zones in which cloud disk-based instances can be deployed.
15769
- * - **local**: The system displays only zones in which local disk-based instances can be deployed.
15770
- * - **default** or null: The system displays only zones in which cloud disk-based and local disk-based instances can be deployed.
15846
+ * The storage type. Valid values:
15847
+ *
15848
+ * * **cloud**: displays only zones available for instances that use cloud disks.
15849
+ * * **local**: only displays zones available for instances that use local disks instances.
15850
+ * * **default** or unspecified: displays zones available for instances that use cloud disks and those that use local disks.
15771
15851
  *
15772
15852
  * @example
15773
15853
  * local
@@ -15775,15 +15855,18 @@ export class DescribeAvailabilityZonesRequest extends $dara.Model {
15775
15855
  storageSupport?: string;
15776
15856
  /**
15777
15857
  * @remarks
15778
- * The storage type of the instance. Valid values:
15858
+ * The disk type. Valid values:
15779
15859
  *
15780
- * * **cloud_essd1**: PL1 enhanced SSD (ESSD)
15860
+ * * **cloud_essd**: PL1 Enterprise SSD (ESSD)
15781
15861
  * * **cloud_essd2**: PL2 ESSD
15782
15862
  * * **cloud_essd3**: PL3 ESSD
15783
- * * **local_ssd**: Local SSD
15863
+ * * **dhg_local_ssd**: local SSD
15784
15864
  *
15785
- * > * Instances that run MongoDB 4.4 or later support only cloud disks. **cloud_essd1** is selected if you leave this parameter empty.
15786
- * > * Instances that run MongoDB 4.2 and earlier support only local disks. **local_ssd** is selected if you leave this parameter empty.
15865
+ * >
15866
+ *
15867
+ * * Instances that run MongoDB 4.4 or later only use cloud disks to store data. If you do not specify this parameter, the value **cloud_essd1** is used by default.
15868
+ *
15869
+ * * Instances that run MongoDB 4.2 and earlier only use local disks to store data. If you do not specify this parameter, the value **local_ssd** is used by default.
15787
15870
  *
15788
15871
  * @example
15789
15872
  * local_ssd
@@ -15806,6 +15889,7 @@ export class DescribeAvailabilityZonesRequest extends $dara.Model {
15806
15889
  excludeSecondaryZoneId: 'ExcludeSecondaryZoneId',
15807
15890
  excludeZoneId: 'ExcludeZoneId',
15808
15891
  instanceChargeType: 'InstanceChargeType',
15892
+ instanceType: 'InstanceType',
15809
15893
  mongoType: 'MongoType',
15810
15894
  ownerAccount: 'OwnerAccount',
15811
15895
  ownerId: 'OwnerId',
@@ -15829,6 +15913,7 @@ export class DescribeAvailabilityZonesRequest extends $dara.Model {
15829
15913
  excludeSecondaryZoneId: 'string',
15830
15914
  excludeZoneId: 'string',
15831
15915
  instanceChargeType: 'string',
15916
+ instanceType: 'string',
15832
15917
  mongoType: 'string',
15833
15918
  ownerAccount: 'string',
15834
15919
  ownerId: 'number',
@@ -17004,7 +17089,7 @@ export class DescribeBackupTasksRequest extends $dara.Model {
17004
17089
  * @remarks
17005
17090
  * The ID of the backup task.
17006
17091
  *
17007
- * > If you call the [CreateBackup](https://help.aliyun.com/document_detail/61075.html) operation to perform a manual backup task, you can set this parameter to the returned backup ID to query the backup progress of the task.
17092
+ * > If you call the [CreateBackup](https://help.aliyun.com/document_detail/468439.html) operation to perform a manual backup task, you can set this parameter to the returned backup ID to query the backup progress of the task.
17008
17093
  *
17009
17094
  * @example
17010
17095
  * 170034
@@ -17188,7 +17273,7 @@ export class DescribeBackupsRequest extends $dara.Model {
17188
17273
  ownerId?: number;
17189
17274
  /**
17190
17275
  * @remarks
17191
- * The number of the page to return. The value must be a positive integer that does not exceed the maximum value of the INTEGER data type. Default value: **1**.
17276
+ * The page number. Pages start from page 1. Default value: **1**.
17192
17277
  *
17193
17278
  * @example
17194
17279
  * 1
@@ -18593,6 +18678,130 @@ export class DescribeDBInstanceSSLResponse extends $dara.Model {
18593
18678
  }
18594
18679
  }
18595
18680
 
18681
+ export class DescribeDBInstanceSpecInfoRequest extends $dara.Model {
18682
+ /**
18683
+ * @remarks
18684
+ * This parameter is required.
18685
+ *
18686
+ * @example
18687
+ * mdb.shard.4x.large.d
18688
+ */
18689
+ instanceClass?: string;
18690
+ ownerAccount?: string;
18691
+ ownerId?: number;
18692
+ resourceOwnerAccount?: string;
18693
+ resourceOwnerId?: number;
18694
+ securityToken?: string;
18695
+ static names(): { [key: string]: string } {
18696
+ return {
18697
+ instanceClass: 'InstanceClass',
18698
+ ownerAccount: 'OwnerAccount',
18699
+ ownerId: 'OwnerId',
18700
+ resourceOwnerAccount: 'ResourceOwnerAccount',
18701
+ resourceOwnerId: 'ResourceOwnerId',
18702
+ securityToken: 'SecurityToken',
18703
+ };
18704
+ }
18705
+
18706
+ static types(): { [key: string]: any } {
18707
+ return {
18708
+ instanceClass: 'string',
18709
+ ownerAccount: 'string',
18710
+ ownerId: 'number',
18711
+ resourceOwnerAccount: 'string',
18712
+ resourceOwnerId: 'number',
18713
+ securityToken: 'string',
18714
+ };
18715
+ }
18716
+
18717
+ validate() {
18718
+ super.validate();
18719
+ }
18720
+
18721
+ constructor(map?: { [key: string]: any }) {
18722
+ super(map);
18723
+ }
18724
+ }
18725
+
18726
+ export class DescribeDBInstanceSpecInfoResponseBody extends $dara.Model {
18727
+ /**
18728
+ * @example
18729
+ * 2
18730
+ */
18731
+ CPU?: string;
18732
+ description?: string;
18733
+ /**
18734
+ * @example
18735
+ * 8
18736
+ */
18737
+ memory?: string;
18738
+ /**
18739
+ * @example
18740
+ * 6B82A9EF-9961-5A31-A19F-009B709xxxxx
18741
+ */
18742
+ requestId?: string;
18743
+ static names(): { [key: string]: string } {
18744
+ return {
18745
+ CPU: 'CPU',
18746
+ description: 'Description',
18747
+ memory: 'Memory',
18748
+ requestId: 'RequestId',
18749
+ };
18750
+ }
18751
+
18752
+ static types(): { [key: string]: any } {
18753
+ return {
18754
+ CPU: 'string',
18755
+ description: 'string',
18756
+ memory: 'string',
18757
+ requestId: 'string',
18758
+ };
18759
+ }
18760
+
18761
+ validate() {
18762
+ super.validate();
18763
+ }
18764
+
18765
+ constructor(map?: { [key: string]: any }) {
18766
+ super(map);
18767
+ }
18768
+ }
18769
+
18770
+ export class DescribeDBInstanceSpecInfoResponse extends $dara.Model {
18771
+ headers?: { [key: string]: string };
18772
+ statusCode?: number;
18773
+ body?: DescribeDBInstanceSpecInfoResponseBody;
18774
+ static names(): { [key: string]: string } {
18775
+ return {
18776
+ headers: 'headers',
18777
+ statusCode: 'statusCode',
18778
+ body: 'body',
18779
+ };
18780
+ }
18781
+
18782
+ static types(): { [key: string]: any } {
18783
+ return {
18784
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
18785
+ statusCode: 'number',
18786
+ body: DescribeDBInstanceSpecInfoResponseBody,
18787
+ };
18788
+ }
18789
+
18790
+ validate() {
18791
+ if(this.headers) {
18792
+ $dara.Model.validateMap(this.headers);
18793
+ }
18794
+ if(this.body && typeof (this.body as any).validate === 'function') {
18795
+ (this.body as any).validate();
18796
+ }
18797
+ super.validate();
18798
+ }
18799
+
18800
+ constructor(map?: { [key: string]: any }) {
18801
+ super(map);
18802
+ }
18803
+ }
18804
+
18596
18805
  export class DescribeDBInstanceSwitchLogRequest extends $dara.Model {
18597
18806
  /**
18598
18807
  * @remarks
@@ -19440,6 +19649,13 @@ export class DescribeDBInstancesOverviewRequest extends $dara.Model {
19440
19649
  resourceGroupId?: string;
19441
19650
  resourceOwnerAccount?: string;
19442
19651
  resourceOwnerId?: number;
19652
+ /**
19653
+ * @remarks
19654
+ * Specifies whether to display instance tags. Default value: False.
19655
+ *
19656
+ * @example
19657
+ * false
19658
+ */
19443
19659
  showTags?: boolean;
19444
19660
  /**
19445
19661
  * @remarks
@@ -20185,7 +20401,7 @@ export class DescribeHistoryTasksRequest extends $dara.Model {
20185
20401
  instanceType?: string;
20186
20402
  /**
20187
20403
  * @remarks
20188
- * The number of the page to return. The value must be a positive integer. Default value: 1
20404
+ * The number of the page to return. The value must be a positive integer. Default value: 1.
20189
20405
  *
20190
20406
  * @example
20191
20407
  * 1
@@ -20193,7 +20409,7 @@ export class DescribeHistoryTasksRequest extends $dara.Model {
20193
20409
  pageNumber?: number;
20194
20410
  /**
20195
20411
  * @remarks
20196
- * The number of entries per page. Valid values: 10 to 100. Default value: 10
20412
+ * The number of entries per page. Valid values: 10 to 100. Default value: 10.
20197
20413
  *
20198
20414
  * @example
20199
20415
  * 10
@@ -20207,6 +20423,14 @@ export class DescribeHistoryTasksRequest extends $dara.Model {
20207
20423
  * cn-beijing
20208
20424
  */
20209
20425
  regionId?: string;
20426
+ /**
20427
+ * @remarks
20428
+ * The ID of the resource group.
20429
+ *
20430
+ * @example
20431
+ * rg-aek2inrfrnw3xby
20432
+ */
20433
+ resourceGroupId?: string;
20210
20434
  resourceOwnerAccount?: string;
20211
20435
  resourceOwnerId?: number;
20212
20436
  /**
@@ -20294,6 +20518,7 @@ export class DescribeHistoryTasksRequest extends $dara.Model {
20294
20518
  pageNumber: 'PageNumber',
20295
20519
  pageSize: 'PageSize',
20296
20520
  regionId: 'RegionId',
20521
+ resourceGroupId: 'ResourceGroupId',
20297
20522
  resourceOwnerAccount: 'ResourceOwnerAccount',
20298
20523
  resourceOwnerId: 'ResourceOwnerId',
20299
20524
  status: 'Status',
@@ -20313,6 +20538,7 @@ export class DescribeHistoryTasksRequest extends $dara.Model {
20313
20538
  pageNumber: 'number',
20314
20539
  pageSize: 'number',
20315
20540
  regionId: 'string',
20541
+ resourceGroupId: 'string',
20316
20542
  resourceOwnerAccount: 'string',
20317
20543
  resourceOwnerId: 'number',
20318
20544
  status: 'string',
@@ -20474,6 +20700,14 @@ export class DescribeHistoryTasksStatRequest extends $dara.Model {
20474
20700
  * cn-beijing
20475
20701
  */
20476
20702
  regionId?: string;
20703
+ /**
20704
+ * @remarks
20705
+ * The ID of the resource group.
20706
+ *
20707
+ * @example
20708
+ * rg-acfmyiu4ekp****
20709
+ */
20710
+ resourceGroupId?: string;
20477
20711
  resourceOwnerAccount?: string;
20478
20712
  resourceOwnerId?: number;
20479
20713
  /**
@@ -20558,6 +20792,7 @@ export class DescribeHistoryTasksStatRequest extends $dara.Model {
20558
20792
  fromStartTime: 'FromStartTime',
20559
20793
  instanceId: 'InstanceId',
20560
20794
  regionId: 'RegionId',
20795
+ resourceGroupId: 'ResourceGroupId',
20561
20796
  resourceOwnerAccount: 'ResourceOwnerAccount',
20562
20797
  resourceOwnerId: 'ResourceOwnerId',
20563
20798
  status: 'Status',
@@ -20574,6 +20809,7 @@ export class DescribeHistoryTasksStatRequest extends $dara.Model {
20574
20809
  fromStartTime: 'string',
20575
20810
  instanceId: 'string',
20576
20811
  regionId: 'string',
20812
+ resourceGroupId: 'string',
20577
20813
  resourceOwnerAccount: 'string',
20578
20814
  resourceOwnerId: 'number',
20579
20815
  status: 'string',
@@ -25042,10 +25278,8 @@ export class MigrateToOtherZoneRequest extends $dara.Model {
25042
25278
  * @remarks
25043
25279
  * The time when the instance is migrated to the destination zone. Valid values:
25044
25280
  *
25045
- * * **Immediately**: The instance is immediately migrated to the destination zone.
25046
- * * **MaintainTime**: The instance is migrated during the maintenance period of the instance.
25047
- *
25048
- * Default value: **Immediately**.
25281
+ * * **Immediately** (default): The instance is migrated immediately.
25282
+ * * **MaintainTime**: The instance is migrated during its maintenance window.
25049
25283
  *
25050
25284
  * @example
25051
25285
  * Immediately
@@ -25214,6 +25448,19 @@ export class ModifyAccountDescriptionRequest extends $dara.Model {
25214
25448
  * root
25215
25449
  */
25216
25450
  accountName?: string;
25451
+ /**
25452
+ * @remarks
25453
+ * The type of the account whose description you can modify. Valid values:
25454
+ *
25455
+ * * **db**: shard account
25456
+ * * **cs**: ConfigServer account
25457
+ * * **normal** (default): replica set account (available)
25458
+ *
25459
+ * > You can set this parameter only to **normal**.
25460
+ *
25461
+ * @example
25462
+ * normal
25463
+ */
25217
25464
  characterType?: string;
25218
25465
  /**
25219
25466
  * @remarks
@@ -25358,6 +25605,14 @@ export class ModifyActiveOperationTasksRequest extends $dara.Model {
25358
25605
  immediateStart?: number;
25359
25606
  ownerAccount?: string;
25360
25607
  ownerId?: number;
25608
+ /**
25609
+ * @remarks
25610
+ * The ID of the resource group.
25611
+ *
25612
+ * @example
25613
+ * rg-acfmyiu4ekp****
25614
+ */
25615
+ resourceGroupId?: string;
25361
25616
  resourceOwnerAccount?: string;
25362
25617
  resourceOwnerId?: number;
25363
25618
  /**
@@ -25378,6 +25633,7 @@ export class ModifyActiveOperationTasksRequest extends $dara.Model {
25378
25633
  immediateStart: 'ImmediateStart',
25379
25634
  ownerAccount: 'OwnerAccount',
25380
25635
  ownerId: 'OwnerId',
25636
+ resourceGroupId: 'ResourceGroupId',
25381
25637
  resourceOwnerAccount: 'ResourceOwnerAccount',
25382
25638
  resourceOwnerId: 'ResourceOwnerId',
25383
25639
  switchTime: 'SwitchTime',
@@ -25390,6 +25646,7 @@ export class ModifyActiveOperationTasksRequest extends $dara.Model {
25390
25646
  immediateStart: 'number',
25391
25647
  ownerAccount: 'string',
25392
25648
  ownerId: 'number',
25649
+ resourceGroupId: 'string',
25393
25650
  resourceOwnerAccount: 'string',
25394
25651
  resourceOwnerId: 'number',
25395
25652
  switchTime: 'string',
@@ -32063,33 +32320,26 @@ export default class Client extends OpenApi {
32063
32320
  'cn-wulanchabu': "mongodb.aliyuncs.com",
32064
32321
  'cn-hangzhou': "mongodb.aliyuncs.com",
32065
32322
  'cn-shanghai': "mongodb.aliyuncs.com",
32066
- 'cn-nanjing': "mongodb.cn-nanjing.aliyuncs.com",
32067
- 'cn-fuzhou': "mongodb.cn-fuzhou.aliyuncs.com",
32068
32323
  'cn-shenzhen': "mongodb.aliyuncs.com",
32069
32324
  'cn-heyuan': "mongodb.aliyuncs.com",
32070
32325
  'cn-guangzhou': "mongodb.aliyuncs.com",
32071
32326
  'cn-chengdu': "mongodb.cn-chengdu.aliyuncs.com",
32072
32327
  'cn-hongkong': "mongodb.cn-hongkong.aliyuncs.com",
32073
32328
  'ap-northeast-1': "mongodb.ap-northeast-1.aliyuncs.com",
32074
- 'ap-northeast-2': "mongodb.ap-northeast-2.aliyuncs.com",
32075
32329
  'ap-southeast-1': "mongodb.ap-southeast-1.aliyuncs.com",
32076
32330
  'ap-southeast-2': "mongodb.ap-southeast-2.aliyuncs.com",
32077
32331
  'ap-southeast-3': "mongodb.ap-southeast-3.aliyuncs.com",
32078
32332
  'ap-southeast-5': "mongodb.ap-southeast-5.aliyuncs.com",
32079
- 'ap-southeast-6': "mongodb.ap-southeast-6.aliyuncs.com",
32080
- 'ap-southeast-7': "mongodb.ap-southeast-7.aliyuncs.com",
32081
- 'cn-zhengzhou-jva': "mongodb.cn-zhengzhou-jva.aliyuncs.com",
32082
32333
  'us-east-1': "mongodb.us-east-1.aliyuncs.com",
32083
32334
  'us-west-1': "mongodb.us-west-1.aliyuncs.com",
32084
32335
  'eu-west-1': "mongodb.eu-west-1.aliyuncs.com",
32085
32336
  'eu-central-1': "mongodb.eu-central-1.aliyuncs.com",
32086
32337
  'ap-south-1': "mongodb.ap-south-1.aliyuncs.com",
32087
32338
  'me-east-1': "mongodb.me-east-1.aliyuncs.com",
32088
- 'me-central-1': "mongodb.me-central-1.aliyuncs.com",
32089
32339
  'cn-hangzhou-finance': "mongodb.aliyuncs.com",
32090
32340
  'cn-shanghai-finance-1': "mongodb.aliyuncs.com",
32091
32341
  'cn-shenzhen-finance-1': "mongodb.aliyuncs.com",
32092
- 'cn-north-2-gov-1': "mongodb.aliyuncs.com",
32342
+ 'cn-north-2-gov-1': "mongodb.cn-north-2-gov-1.aliyuncs.com",
32093
32343
  'ap-northeast-2-pop': "mongodb.aliyuncs.com",
32094
32344
  'cn-beijing-finance-1': "mongodb.aliyuncs.com",
32095
32345
  'cn-beijing-finance-pop': "mongodb.aliyuncs.com",
@@ -34111,6 +34361,10 @@ export default class Client extends OpenApi {
34111
34361
  query["Region"] = request.region;
34112
34362
  }
34113
34363
 
34364
+ if (!$dara.isNull(request.resourceGroupId)) {
34365
+ query["ResourceGroupId"] = request.resourceGroupId;
34366
+ }
34367
+
34114
34368
  if (!$dara.isNull(request.resourceOwnerAccount)) {
34115
34369
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
34116
34370
  }
@@ -34468,6 +34722,10 @@ export default class Client extends OpenApi {
34468
34722
  query["InstanceChargeType"] = request.instanceChargeType;
34469
34723
  }
34470
34724
 
34725
+ if (!$dara.isNull(request.instanceType)) {
34726
+ query["InstanceType"] = request.instanceType;
34727
+ }
34728
+
34471
34729
  if (!$dara.isNull(request.mongoType)) {
34472
34730
  query["MongoType"] = request.mongoType;
34473
34731
  }
@@ -35602,6 +35860,73 @@ export default class Client extends OpenApi {
35602
35860
  return await this.describeDBInstanceSSLWithOptions(request, runtime);
35603
35861
  }
35604
35862
 
35863
+ /**
35864
+ * 查看规格信息详情
35865
+ *
35866
+ * @param request - DescribeDBInstanceSpecInfoRequest
35867
+ * @param runtime - runtime options for this request RuntimeOptions
35868
+ * @returns DescribeDBInstanceSpecInfoResponse
35869
+ */
35870
+ async describeDBInstanceSpecInfoWithOptions(request: DescribeDBInstanceSpecInfoRequest, runtime: $dara.RuntimeOptions): Promise<DescribeDBInstanceSpecInfoResponse> {
35871
+ request.validate();
35872
+ let query = { };
35873
+ if (!$dara.isNull(request.instanceClass)) {
35874
+ query["InstanceClass"] = request.instanceClass;
35875
+ }
35876
+
35877
+ if (!$dara.isNull(request.ownerAccount)) {
35878
+ query["OwnerAccount"] = request.ownerAccount;
35879
+ }
35880
+
35881
+ if (!$dara.isNull(request.ownerId)) {
35882
+ query["OwnerId"] = request.ownerId;
35883
+ }
35884
+
35885
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
35886
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
35887
+ }
35888
+
35889
+ if (!$dara.isNull(request.resourceOwnerId)) {
35890
+ query["ResourceOwnerId"] = request.resourceOwnerId;
35891
+ }
35892
+
35893
+ if (!$dara.isNull(request.securityToken)) {
35894
+ query["SecurityToken"] = request.securityToken;
35895
+ }
35896
+
35897
+ let req = new $OpenApiUtil.OpenApiRequest({
35898
+ query: OpenApiUtil.query(query),
35899
+ });
35900
+ let params = new $OpenApiUtil.Params({
35901
+ action: "DescribeDBInstanceSpecInfo",
35902
+ version: "2015-12-01",
35903
+ protocol: "HTTPS",
35904
+ pathname: "/",
35905
+ method: "POST",
35906
+ authType: "AK",
35907
+ style: "RPC",
35908
+ reqBodyType: "formData",
35909
+ bodyType: "json",
35910
+ });
35911
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
35912
+ return $dara.cast<DescribeDBInstanceSpecInfoResponse>(await this.callApi(params, req, runtime), new DescribeDBInstanceSpecInfoResponse({}));
35913
+ } else {
35914
+ return $dara.cast<DescribeDBInstanceSpecInfoResponse>(await this.execute(params, req, runtime), new DescribeDBInstanceSpecInfoResponse({}));
35915
+ }
35916
+
35917
+ }
35918
+
35919
+ /**
35920
+ * 查看规格信息详情
35921
+ *
35922
+ * @param request - DescribeDBInstanceSpecInfoRequest
35923
+ * @returns DescribeDBInstanceSpecInfoResponse
35924
+ */
35925
+ async describeDBInstanceSpecInfo(request: DescribeDBInstanceSpecInfoRequest): Promise<DescribeDBInstanceSpecInfoResponse> {
35926
+ let runtime = new $dara.RuntimeOptions({ });
35927
+ return await this.describeDBInstanceSpecInfoWithOptions(request, runtime);
35928
+ }
35929
+
35605
35930
  /**
35606
35931
  * Queries the primary/secondary switching logs of an ApsaraDB for MongoDB instance.
35607
35932
  *
@@ -36263,6 +36588,10 @@ export default class Client extends OpenApi {
36263
36588
  query["RegionId"] = request.regionId;
36264
36589
  }
36265
36590
 
36591
+ if (!$dara.isNull(request.resourceGroupId)) {
36592
+ query["ResourceGroupId"] = request.resourceGroupId;
36593
+ }
36594
+
36266
36595
  if (!$dara.isNull(request.resourceOwnerAccount)) {
36267
36596
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
36268
36597
  }
@@ -36350,6 +36679,10 @@ export default class Client extends OpenApi {
36350
36679
  query["RegionId"] = request.regionId;
36351
36680
  }
36352
36681
 
36682
+ if (!$dara.isNull(request.resourceGroupId)) {
36683
+ query["ResourceGroupId"] = request.resourceGroupId;
36684
+ }
36685
+
36353
36686
  if (!$dara.isNull(request.resourceOwnerAccount)) {
36354
36687
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
36355
36688
  }
@@ -36972,7 +37305,7 @@ export default class Client extends OpenApi {
36972
37305
  }
36973
37306
 
36974
37307
  /**
36975
- * Queries the fees incurred when you create, upgrade, or renew an ApsaraDB for MongoDB instance.
37308
+ * Queries the pricing information of an ApsaraDB for MongoDB instance.
36976
37309
  *
36977
37310
  * @param request - DescribePriceRequest
36978
37311
  * @param runtime - runtime options for this request RuntimeOptions
@@ -37056,7 +37389,7 @@ export default class Client extends OpenApi {
37056
37389
  }
37057
37390
 
37058
37391
  /**
37059
- * Queries the fees incurred when you create, upgrade, or renew an ApsaraDB for MongoDB instance.
37392
+ * Queries the pricing information of an ApsaraDB for MongoDB instance.
37060
37393
  *
37061
37394
  * @param request - DescribePriceRequest
37062
37395
  * @returns DescribePriceResponse
@@ -38570,6 +38903,10 @@ export default class Client extends OpenApi {
38570
38903
  query["OwnerId"] = request.ownerId;
38571
38904
  }
38572
38905
 
38906
+ if (!$dara.isNull(request.resourceGroupId)) {
38907
+ query["ResourceGroupId"] = request.resourceGroupId;
38908
+ }
38909
+
38573
38910
  if (!$dara.isNull(request.resourceOwnerAccount)) {
38574
38911
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
38575
38912
  }