@alicloud/dds20151201 7.0.1 → 7.1.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.d.ts +719 -80
- package/dist/client.js +250 -17
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +882 -73
package/src/client.ts
CHANGED
|
@@ -422,6 +422,7 @@ export class CheckRecoveryConditionRequest extends $tea.Model {
|
|
|
422
422
|
* cn-hangzhou
|
|
423
423
|
*/
|
|
424
424
|
destRegion?: string;
|
|
425
|
+
engineVersion?: string;
|
|
425
426
|
/**
|
|
426
427
|
* @remarks
|
|
427
428
|
* The instance architecture. Valid values:
|
|
@@ -496,6 +497,7 @@ export class CheckRecoveryConditionRequest extends $tea.Model {
|
|
|
496
497
|
backupId: 'BackupId',
|
|
497
498
|
databaseNames: 'DatabaseNames',
|
|
498
499
|
destRegion: 'DestRegion',
|
|
500
|
+
engineVersion: 'EngineVersion',
|
|
499
501
|
instanceType: 'InstanceType',
|
|
500
502
|
ownerAccount: 'OwnerAccount',
|
|
501
503
|
ownerId: 'OwnerId',
|
|
@@ -514,6 +516,7 @@ export class CheckRecoveryConditionRequest extends $tea.Model {
|
|
|
514
516
|
backupId: 'string',
|
|
515
517
|
databaseNames: 'string',
|
|
516
518
|
destRegion: 'string',
|
|
519
|
+
engineVersion: 'string',
|
|
517
520
|
instanceType: 'string',
|
|
518
521
|
ownerAccount: 'string',
|
|
519
522
|
ownerId: 'number',
|
|
@@ -982,7 +985,7 @@ export class CreateDBInstanceRequest extends $tea.Model {
|
|
|
982
985
|
encryptionKey?: string;
|
|
983
986
|
/**
|
|
984
987
|
* @remarks
|
|
985
|
-
* The database engine of the instance.
|
|
988
|
+
* The database engine of the instance. Set the value to **MongoDB**.
|
|
986
989
|
*
|
|
987
990
|
* @example
|
|
988
991
|
* MongoDB
|
|
@@ -1126,6 +1129,17 @@ export class CreateDBInstanceRequest extends $tea.Model {
|
|
|
1126
1129
|
* 2022-03-13T12:11:14Z
|
|
1127
1130
|
*/
|
|
1128
1131
|
restoreTime?: string;
|
|
1132
|
+
/**
|
|
1133
|
+
* @remarks
|
|
1134
|
+
* The backup restore type of the instance.
|
|
1135
|
+
* - 0: restore an instance to the specified backup set.
|
|
1136
|
+
* - 1: restore an instance to the specified time.
|
|
1137
|
+
* - 2: restore an released instance to the specified backup set.
|
|
1138
|
+
* - 3:restore an instance to the specified cross-regional backup set.
|
|
1139
|
+
*
|
|
1140
|
+
* @example
|
|
1141
|
+
* 0
|
|
1142
|
+
*/
|
|
1129
1143
|
restoreType?: string;
|
|
1130
1144
|
/**
|
|
1131
1145
|
* @remarks
|
|
@@ -1182,17 +1196,22 @@ export class CreateDBInstanceRequest extends $tea.Model {
|
|
|
1182
1196
|
* dds-bp1ee12ad351****
|
|
1183
1197
|
*/
|
|
1184
1198
|
srcDBInstanceId?: string;
|
|
1185
|
-
srcRegion?: string;
|
|
1186
1199
|
/**
|
|
1187
1200
|
* @remarks
|
|
1188
|
-
* The
|
|
1201
|
+
* The region ID of the instance.
|
|
1189
1202
|
*
|
|
1190
|
-
*
|
|
1191
|
-
* * **RocksDB**
|
|
1192
|
-
* * **TerarkDB**
|
|
1203
|
+
* > - This parameter is required when restore type is set to 2 or 3.
|
|
1193
1204
|
*
|
|
1194
|
-
*
|
|
1195
|
-
*
|
|
1205
|
+
* @example
|
|
1206
|
+
* 2
|
|
1207
|
+
*/
|
|
1208
|
+
srcRegion?: string;
|
|
1209
|
+
/**
|
|
1210
|
+
* @remarks
|
|
1211
|
+
* The storage engine of the instance. Set the value to **WiredTiger**.
|
|
1212
|
+
*
|
|
1213
|
+
* > * If you call this operation to clone an instance or restore an instance from the recycle bin, set this parameter to the storage engine of the source instance.
|
|
1214
|
+
* > * For more information about the limits on database versions and storage engines of an instance, see [MongoDB versions and storage engines](https://help.aliyun.com/document_detail/61906.html).
|
|
1196
1215
|
*
|
|
1197
1216
|
* @example
|
|
1198
1217
|
* WiredTiger
|
|
@@ -2051,6 +2070,15 @@ export class CreateShardingDBInstanceRequest extends $tea.Model {
|
|
|
2051
2070
|
* true
|
|
2052
2071
|
*/
|
|
2053
2072
|
autoRenew?: string;
|
|
2073
|
+
/**
|
|
2074
|
+
* @remarks
|
|
2075
|
+
* The ID of the backup set.
|
|
2076
|
+
*
|
|
2077
|
+
* > When you call this operation to clone an instance based on the backup set, this parameter is required. The **SrcDBInstanceId** parameter is also required.
|
|
2078
|
+
*
|
|
2079
|
+
* @example
|
|
2080
|
+
* cb-xxx
|
|
2081
|
+
*/
|
|
2054
2082
|
backupId?: string;
|
|
2055
2083
|
/**
|
|
2056
2084
|
* @remarks
|
|
@@ -2059,7 +2087,7 @@ export class CreateShardingDBInstanceRequest extends $tea.Model {
|
|
|
2059
2087
|
* * **PostPaid** (default): pay-as-you-go
|
|
2060
2088
|
* * **PrePaid**: subscription
|
|
2061
2089
|
*
|
|
2062
|
-
* > If
|
|
2090
|
+
* > If this parameter is set to **PrePaid**, you must also configure the **Period** parameter.
|
|
2063
2091
|
*
|
|
2064
2092
|
* @example
|
|
2065
2093
|
* PrePaid
|
|
@@ -2092,10 +2120,19 @@ export class CreateShardingDBInstanceRequest extends $tea.Model {
|
|
|
2092
2120
|
* test
|
|
2093
2121
|
*/
|
|
2094
2122
|
DBInstanceDescription?: string;
|
|
2123
|
+
/**
|
|
2124
|
+
* @remarks
|
|
2125
|
+
* The region of the backup set used for the cross-region backup and restoration.
|
|
2126
|
+
*
|
|
2127
|
+
* > This parameter is required when you set the RestoreType parameter to 3.
|
|
2128
|
+
*
|
|
2129
|
+
* @example
|
|
2130
|
+
* cn-hangzhou
|
|
2131
|
+
*/
|
|
2095
2132
|
destRegion?: string;
|
|
2096
2133
|
/**
|
|
2097
2134
|
* @remarks
|
|
2098
|
-
*
|
|
2135
|
+
* Indicates whether disk encryption is enabled.
|
|
2099
2136
|
*
|
|
2100
2137
|
* @example
|
|
2101
2138
|
* true
|
|
@@ -2121,17 +2158,17 @@ export class CreateShardingDBInstanceRequest extends $tea.Model {
|
|
|
2121
2158
|
engine?: string;
|
|
2122
2159
|
/**
|
|
2123
2160
|
* @remarks
|
|
2124
|
-
* The version of the
|
|
2161
|
+
* The database engine version of the instance. Valid values:
|
|
2125
2162
|
*
|
|
2163
|
+
* * **7.0**
|
|
2126
2164
|
* * **6.0**
|
|
2127
2165
|
* * **5.0**
|
|
2128
2166
|
* * **4.4**
|
|
2129
2167
|
* * **4.2**
|
|
2130
2168
|
* * **4.0**
|
|
2131
|
-
* * **3.4**
|
|
2132
2169
|
*
|
|
2133
|
-
* > *
|
|
2134
|
-
* > *
|
|
2170
|
+
* > * 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).
|
|
2171
|
+
* > * If you call this operation to clone an instance, set the value of this parameter to the database engine version of the source instance.
|
|
2135
2172
|
*
|
|
2136
2173
|
* This parameter is required.
|
|
2137
2174
|
*
|
|
@@ -2187,7 +2224,9 @@ export class CreateShardingDBInstanceRequest extends $tea.Model {
|
|
|
2187
2224
|
mongos?: CreateShardingDBInstanceRequestMongos[];
|
|
2188
2225
|
/**
|
|
2189
2226
|
* @remarks
|
|
2190
|
-
* The network type of the instance.
|
|
2227
|
+
* The network type of the instance.
|
|
2228
|
+
*
|
|
2229
|
+
* Set the value to **VPC**.
|
|
2191
2230
|
*
|
|
2192
2231
|
* @example
|
|
2193
2232
|
* VPC
|
|
@@ -2211,8 +2250,8 @@ export class CreateShardingDBInstanceRequest extends $tea.Model {
|
|
|
2211
2250
|
* @remarks
|
|
2212
2251
|
* The access protocol type of the instance. Valid values:
|
|
2213
2252
|
*
|
|
2214
|
-
* * **mongodb
|
|
2215
|
-
* * **dynamodb
|
|
2253
|
+
* * **mongodb**
|
|
2254
|
+
* * **dynamodb**
|
|
2216
2255
|
*
|
|
2217
2256
|
* @example
|
|
2218
2257
|
* mongodb
|
|
@@ -2263,6 +2302,16 @@ export class CreateShardingDBInstanceRequest extends $tea.Model {
|
|
|
2263
2302
|
* 2022-03-08T02:30:25Z
|
|
2264
2303
|
*/
|
|
2265
2304
|
restoreTime?: string;
|
|
2305
|
+
/**
|
|
2306
|
+
* @remarks
|
|
2307
|
+
* The backup restore type of the instance.
|
|
2308
|
+
* - 1: restore an instance to the specified time.
|
|
2309
|
+
* - 2: restore an released instance to the specified backup set.
|
|
2310
|
+
* - 3:restore an instance to the specified cross-regional backup set.
|
|
2311
|
+
*
|
|
2312
|
+
* @example
|
|
2313
|
+
* 1
|
|
2314
|
+
*/
|
|
2266
2315
|
restoreType?: string;
|
|
2267
2316
|
/**
|
|
2268
2317
|
* @remarks
|
|
@@ -2320,13 +2369,22 @@ export class CreateShardingDBInstanceRequest extends $tea.Model {
|
|
|
2320
2369
|
* dds-bp11483712c1****
|
|
2321
2370
|
*/
|
|
2322
2371
|
srcDBInstanceId?: string;
|
|
2372
|
+
/**
|
|
2373
|
+
* @remarks
|
|
2374
|
+
* The region ID of the instance.
|
|
2375
|
+
*
|
|
2376
|
+
* > This parameter is required when restore type is set to 2 or 3.
|
|
2377
|
+
*
|
|
2378
|
+
* @example
|
|
2379
|
+
* cn-beijing
|
|
2380
|
+
*/
|
|
2323
2381
|
srcRegion?: string;
|
|
2324
2382
|
/**
|
|
2325
2383
|
* @remarks
|
|
2326
2384
|
* The storage engine of the instance. Set the value to **WiredTiger**.
|
|
2327
2385
|
*
|
|
2328
|
-
* > *
|
|
2329
|
-
* > *
|
|
2386
|
+
* > * If you call this operation to clone an instance, set the value of this parameter to the storage engine of the source instance.
|
|
2387
|
+
* > * 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).
|
|
2330
2388
|
*
|
|
2331
2389
|
* @example
|
|
2332
2390
|
* WiredTiger
|
|
@@ -4703,12 +4761,29 @@ export class DescribeBackupPolicyRequest extends $tea.Model {
|
|
|
4703
4761
|
* dds-bp16cb162771****
|
|
4704
4762
|
*/
|
|
4705
4763
|
DBInstanceId?: string;
|
|
4764
|
+
/**
|
|
4765
|
+
* @remarks
|
|
4766
|
+
* The architecture of the instance. Valid values:
|
|
4767
|
+
*
|
|
4768
|
+
* * **sharding**: sharded cluster instance
|
|
4769
|
+
* * **replicate**: replica set or standalone instance
|
|
4770
|
+
*
|
|
4771
|
+
* @example
|
|
4772
|
+
* sharding
|
|
4773
|
+
*/
|
|
4706
4774
|
instanceType?: string;
|
|
4707
4775
|
ownerAccount?: string;
|
|
4708
4776
|
ownerId?: number;
|
|
4709
4777
|
resourceOwnerAccount?: string;
|
|
4710
4778
|
resourceOwnerId?: number;
|
|
4711
4779
|
securityToken?: string;
|
|
4780
|
+
/**
|
|
4781
|
+
* @remarks
|
|
4782
|
+
* The region ID of the instance.
|
|
4783
|
+
*
|
|
4784
|
+
* @example
|
|
4785
|
+
* cn-beijing
|
|
4786
|
+
*/
|
|
4712
4787
|
srcRegion?: string;
|
|
4713
4788
|
static names(): { [key: string]: string } {
|
|
4714
4789
|
return {
|
|
@@ -4769,12 +4844,82 @@ export class DescribeBackupPolicyResponseBody extends $tea.Model {
|
|
|
4769
4844
|
* 30
|
|
4770
4845
|
*/
|
|
4771
4846
|
backupRetentionPeriod?: string;
|
|
4847
|
+
/**
|
|
4848
|
+
* @remarks
|
|
4849
|
+
* The backup retention policy configured for the instance. Valid values:
|
|
4850
|
+
*
|
|
4851
|
+
* 1. 0: All backup sets are immediately deleted when the instance is released.
|
|
4852
|
+
* 2. 1: Automatic backup is performed and the backup set is retained for a long period of time when the instance is released.
|
|
4853
|
+
* 3. 2: Automatic backup is performed and all backup sets are retained for a long period of time when the instance is released.
|
|
4854
|
+
*
|
|
4855
|
+
* For more information, see [Retain the backup files of an ApsaraDB for MongoDB instance for a long period of time](https://help.aliyun.com/document_detail/2779111.html).
|
|
4856
|
+
*
|
|
4857
|
+
* @example
|
|
4858
|
+
* 0
|
|
4859
|
+
*/
|
|
4772
4860
|
backupRetentionPolicyOnClusterDeletion?: number;
|
|
4861
|
+
/**
|
|
4862
|
+
* @remarks
|
|
4863
|
+
* The retention period of Cross-regional backup.
|
|
4864
|
+
* Valid values:
|
|
4865
|
+
*
|
|
4866
|
+
* * **Monday**
|
|
4867
|
+
* * **Tuesday**
|
|
4868
|
+
* * **Wednesday**
|
|
4869
|
+
* * **Thursday**
|
|
4870
|
+
* * **Friday**
|
|
4871
|
+
* * **Saturday**
|
|
4872
|
+
* * **Sunday**
|
|
4873
|
+
*
|
|
4874
|
+
* @example
|
|
4875
|
+
* Monday
|
|
4876
|
+
*/
|
|
4773
4877
|
crossBackupPeriod?: string;
|
|
4878
|
+
/**
|
|
4879
|
+
* @remarks
|
|
4880
|
+
* The retention type of Cross-regional log backup.
|
|
4881
|
+
*
|
|
4882
|
+
* - delay : retain the backup for a period of time.
|
|
4883
|
+
* - never : retain the backup permanently.
|
|
4884
|
+
*
|
|
4885
|
+
* @example
|
|
4886
|
+
* delay
|
|
4887
|
+
*/
|
|
4774
4888
|
crossLogRetentionType?: string;
|
|
4889
|
+
/**
|
|
4890
|
+
* @remarks
|
|
4891
|
+
* The retention time of Cross-regional log backup.
|
|
4892
|
+
*
|
|
4893
|
+
* @example
|
|
4894
|
+
* 7
|
|
4895
|
+
*/
|
|
4775
4896
|
crossLogRetentionValue?: number;
|
|
4897
|
+
/**
|
|
4898
|
+
* @remarks
|
|
4899
|
+
* The retention type of Cross-regional backup.
|
|
4900
|
+
*
|
|
4901
|
+
* - delay : retain the backup for a period of time.
|
|
4902
|
+
* - never : retain the backup permanently.
|
|
4903
|
+
*
|
|
4904
|
+
* @example
|
|
4905
|
+
* delay
|
|
4906
|
+
*/
|
|
4776
4907
|
crossRetentionType?: string;
|
|
4908
|
+
/**
|
|
4909
|
+
* @remarks
|
|
4910
|
+
* The retention time of Cross-regional backup.
|
|
4911
|
+
*
|
|
4912
|
+
* @example
|
|
4913
|
+
* 7
|
|
4914
|
+
*/
|
|
4777
4915
|
crossRetentionValue?: number;
|
|
4916
|
+
/**
|
|
4917
|
+
* @remarks
|
|
4918
|
+
* The region ID of the cross-regional backup..
|
|
4919
|
+
*
|
|
4920
|
+
* @example
|
|
4921
|
+
* cn-shenzhen
|
|
4922
|
+
*/
|
|
4778
4923
|
destRegion?: string;
|
|
4779
4924
|
/**
|
|
4780
4925
|
* @remarks
|
|
@@ -4787,6 +4932,15 @@ export class DescribeBackupPolicyResponseBody extends $tea.Model {
|
|
|
4787
4932
|
* 1
|
|
4788
4933
|
*/
|
|
4789
4934
|
enableBackupLog?: number;
|
|
4935
|
+
/**
|
|
4936
|
+
* @remarks
|
|
4937
|
+
* Whether to turn on cross-regional log backup.
|
|
4938
|
+
* - 1: turn on . Used for sharded cluster.
|
|
4939
|
+
* - 0: turn off. Used for replicate set.
|
|
4940
|
+
*
|
|
4941
|
+
* @example
|
|
4942
|
+
* 1
|
|
4943
|
+
*/
|
|
4790
4944
|
enableCrossLogBackup?: number;
|
|
4791
4945
|
/**
|
|
4792
4946
|
* @remarks
|
|
@@ -4828,6 +4982,13 @@ export class DescribeBackupPolicyResponseBody extends $tea.Model {
|
|
|
4828
4982
|
* 09:00Z-10:00Z
|
|
4829
4983
|
*/
|
|
4830
4984
|
preferredBackupTime?: string;
|
|
4985
|
+
/**
|
|
4986
|
+
* @remarks
|
|
4987
|
+
* The time of next standard backup.
|
|
4988
|
+
*
|
|
4989
|
+
* @example
|
|
4990
|
+
* 2024-06-19T19:11Z
|
|
4991
|
+
*/
|
|
4831
4992
|
preferredNextBackupTime?: string;
|
|
4832
4993
|
/**
|
|
4833
4994
|
* @remarks
|
|
@@ -4848,6 +5009,13 @@ export class DescribeBackupPolicyResponseBody extends $tea.Model {
|
|
|
4848
5009
|
* Standard
|
|
4849
5010
|
*/
|
|
4850
5011
|
snapshotBackupType?: string;
|
|
5012
|
+
/**
|
|
5013
|
+
* @remarks
|
|
5014
|
+
* The region ID of the instance.
|
|
5015
|
+
*
|
|
5016
|
+
* @example
|
|
5017
|
+
* cn-hangzhou
|
|
5018
|
+
*/
|
|
4851
5019
|
srcRegion?: string;
|
|
4852
5020
|
static names(): { [key: string]: string } {
|
|
4853
5021
|
return {
|
|
@@ -5208,6 +5376,15 @@ export class DescribeBackupsRequest extends $tea.Model {
|
|
|
5208
5376
|
* dds-bp1a7009eb24****
|
|
5209
5377
|
*/
|
|
5210
5378
|
DBInstanceId?: string;
|
|
5379
|
+
/**
|
|
5380
|
+
* @remarks
|
|
5381
|
+
* The region ID of the Cross-regional backup.
|
|
5382
|
+
*
|
|
5383
|
+
* > This parameter is required for the Cross-regional backup.
|
|
5384
|
+
*
|
|
5385
|
+
* @example
|
|
5386
|
+
* cn-hangzhou
|
|
5387
|
+
*/
|
|
5211
5388
|
destRegion?: string;
|
|
5212
5389
|
/**
|
|
5213
5390
|
* @remarks
|
|
@@ -5231,7 +5408,7 @@ export class DescribeBackupsRequest extends $tea.Model {
|
|
|
5231
5408
|
ownerId?: number;
|
|
5232
5409
|
/**
|
|
5233
5410
|
* @remarks
|
|
5234
|
-
* The
|
|
5411
|
+
* 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**.
|
|
5235
5412
|
*
|
|
5236
5413
|
* @example
|
|
5237
5414
|
* 1
|
|
@@ -5239,7 +5416,7 @@ export class DescribeBackupsRequest extends $tea.Model {
|
|
|
5239
5416
|
pageNumber?: number;
|
|
5240
5417
|
/**
|
|
5241
5418
|
* @remarks
|
|
5242
|
-
* The number of entries to return
|
|
5419
|
+
* The number of entries to return per page. Valid values:
|
|
5243
5420
|
*
|
|
5244
5421
|
* * **30** (default)
|
|
5245
5422
|
* * **50**
|
|
@@ -5251,6 +5428,16 @@ export class DescribeBackupsRequest extends $tea.Model {
|
|
|
5251
5428
|
pageSize?: number;
|
|
5252
5429
|
resourceOwnerAccount?: string;
|
|
5253
5430
|
resourceOwnerId?: number;
|
|
5431
|
+
/**
|
|
5432
|
+
* @remarks
|
|
5433
|
+
* The region ID of the instance.
|
|
5434
|
+
*
|
|
5435
|
+
* >- This parameter is required if you want to query the backup sets of a released instance.
|
|
5436
|
+
* >- This parameter is required if you want to query cross-region backups.
|
|
5437
|
+
*
|
|
5438
|
+
* @example
|
|
5439
|
+
* cn-beijing
|
|
5440
|
+
*/
|
|
5254
5441
|
srcRegion?: string;
|
|
5255
5442
|
/**
|
|
5256
5443
|
* @remarks
|
|
@@ -5727,7 +5914,7 @@ export class DescribeDBInstanceAttributeRequest extends $tea.Model {
|
|
|
5727
5914
|
DBInstanceId?: string;
|
|
5728
5915
|
/**
|
|
5729
5916
|
* @remarks
|
|
5730
|
-
* The database engine
|
|
5917
|
+
* The database engine. Set the value to **MongoDB**.
|
|
5731
5918
|
*
|
|
5732
5919
|
* @example
|
|
5733
5920
|
* MongoDB
|
|
@@ -5735,10 +5922,10 @@ export class DescribeDBInstanceAttributeRequest extends $tea.Model {
|
|
|
5735
5922
|
engine?: string;
|
|
5736
5923
|
/**
|
|
5737
5924
|
* @remarks
|
|
5738
|
-
* Specifies whether to
|
|
5925
|
+
* Specifies whether to query instances that are deleted. Valid values:
|
|
5739
5926
|
*
|
|
5740
|
-
*
|
|
5741
|
-
*
|
|
5927
|
+
* * **false**: queries instances that are running.
|
|
5928
|
+
* * **true**: queries instance that are deleted.
|
|
5742
5929
|
*
|
|
5743
5930
|
* @example
|
|
5744
5931
|
* false
|
|
@@ -5795,7 +5982,7 @@ export class DescribeDBInstanceAttributeRequest extends $tea.Model {
|
|
|
5795
5982
|
export class DescribeDBInstanceAttributeResponseBody extends $tea.Model {
|
|
5796
5983
|
/**
|
|
5797
5984
|
* @remarks
|
|
5798
|
-
* The
|
|
5985
|
+
* The instance details.
|
|
5799
5986
|
*/
|
|
5800
5987
|
DBInstances?: DescribeDBInstanceAttributeResponseBodyDBInstances;
|
|
5801
5988
|
/**
|
|
@@ -10109,6 +10296,140 @@ export class DescribeReplicaSetRoleResponse extends $tea.Model {
|
|
|
10109
10296
|
}
|
|
10110
10297
|
}
|
|
10111
10298
|
|
|
10299
|
+
export class DescribeRestoreDBInstanceListRequest extends $tea.Model {
|
|
10300
|
+
/**
|
|
10301
|
+
* @remarks
|
|
10302
|
+
* This parameter is required.
|
|
10303
|
+
*
|
|
10304
|
+
* @example
|
|
10305
|
+
* 2024-07-24T14:00:00Z
|
|
10306
|
+
*/
|
|
10307
|
+
creationTimeAfter?: string;
|
|
10308
|
+
/**
|
|
10309
|
+
* @remarks
|
|
10310
|
+
* This parameter is required.
|
|
10311
|
+
*
|
|
10312
|
+
* @example
|
|
10313
|
+
* dds-bp114f14849d****
|
|
10314
|
+
*/
|
|
10315
|
+
DBInstanceId?: string;
|
|
10316
|
+
ownerAccount?: string;
|
|
10317
|
+
ownerId?: number;
|
|
10318
|
+
/**
|
|
10319
|
+
* @example
|
|
10320
|
+
* 1
|
|
10321
|
+
*/
|
|
10322
|
+
pageNumber?: number;
|
|
10323
|
+
/**
|
|
10324
|
+
* @example
|
|
10325
|
+
* 30
|
|
10326
|
+
*/
|
|
10327
|
+
pageSize?: number;
|
|
10328
|
+
resourceOwnerAccount?: string;
|
|
10329
|
+
resourceOwnerId?: number;
|
|
10330
|
+
static names(): { [key: string]: string } {
|
|
10331
|
+
return {
|
|
10332
|
+
creationTimeAfter: 'CreationTimeAfter',
|
|
10333
|
+
DBInstanceId: 'DBInstanceId',
|
|
10334
|
+
ownerAccount: 'OwnerAccount',
|
|
10335
|
+
ownerId: 'OwnerId',
|
|
10336
|
+
pageNumber: 'PageNumber',
|
|
10337
|
+
pageSize: 'PageSize',
|
|
10338
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
10339
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
10340
|
+
};
|
|
10341
|
+
}
|
|
10342
|
+
|
|
10343
|
+
static types(): { [key: string]: any } {
|
|
10344
|
+
return {
|
|
10345
|
+
creationTimeAfter: 'string',
|
|
10346
|
+
DBInstanceId: 'string',
|
|
10347
|
+
ownerAccount: 'string',
|
|
10348
|
+
ownerId: 'number',
|
|
10349
|
+
pageNumber: 'number',
|
|
10350
|
+
pageSize: 'number',
|
|
10351
|
+
resourceOwnerAccount: 'string',
|
|
10352
|
+
resourceOwnerId: 'number',
|
|
10353
|
+
};
|
|
10354
|
+
}
|
|
10355
|
+
|
|
10356
|
+
constructor(map?: { [key: string]: any }) {
|
|
10357
|
+
super(map);
|
|
10358
|
+
}
|
|
10359
|
+
}
|
|
10360
|
+
|
|
10361
|
+
export class DescribeRestoreDBInstanceListResponseBody extends $tea.Model {
|
|
10362
|
+
DBInstances?: DescribeRestoreDBInstanceListResponseBodyDBInstances;
|
|
10363
|
+
/**
|
|
10364
|
+
* @example
|
|
10365
|
+
* 1
|
|
10366
|
+
*/
|
|
10367
|
+
pageNumber?: number;
|
|
10368
|
+
/**
|
|
10369
|
+
* @example
|
|
10370
|
+
* 30
|
|
10371
|
+
*/
|
|
10372
|
+
pageSize?: number;
|
|
10373
|
+
/**
|
|
10374
|
+
* @example
|
|
10375
|
+
* 1AF0AD89-ED4F-44AD-B65F-BFC1D5Cxxxxx
|
|
10376
|
+
*/
|
|
10377
|
+
requestId?: string;
|
|
10378
|
+
/**
|
|
10379
|
+
* @example
|
|
10380
|
+
* 5
|
|
10381
|
+
*/
|
|
10382
|
+
totalCount?: number;
|
|
10383
|
+
static names(): { [key: string]: string } {
|
|
10384
|
+
return {
|
|
10385
|
+
DBInstances: 'DBInstances',
|
|
10386
|
+
pageNumber: 'PageNumber',
|
|
10387
|
+
pageSize: 'PageSize',
|
|
10388
|
+
requestId: 'RequestId',
|
|
10389
|
+
totalCount: 'TotalCount',
|
|
10390
|
+
};
|
|
10391
|
+
}
|
|
10392
|
+
|
|
10393
|
+
static types(): { [key: string]: any } {
|
|
10394
|
+
return {
|
|
10395
|
+
DBInstances: DescribeRestoreDBInstanceListResponseBodyDBInstances,
|
|
10396
|
+
pageNumber: 'number',
|
|
10397
|
+
pageSize: 'number',
|
|
10398
|
+
requestId: 'string',
|
|
10399
|
+
totalCount: 'number',
|
|
10400
|
+
};
|
|
10401
|
+
}
|
|
10402
|
+
|
|
10403
|
+
constructor(map?: { [key: string]: any }) {
|
|
10404
|
+
super(map);
|
|
10405
|
+
}
|
|
10406
|
+
}
|
|
10407
|
+
|
|
10408
|
+
export class DescribeRestoreDBInstanceListResponse extends $tea.Model {
|
|
10409
|
+
headers?: { [key: string]: string };
|
|
10410
|
+
statusCode?: number;
|
|
10411
|
+
body?: DescribeRestoreDBInstanceListResponseBody;
|
|
10412
|
+
static names(): { [key: string]: string } {
|
|
10413
|
+
return {
|
|
10414
|
+
headers: 'headers',
|
|
10415
|
+
statusCode: 'statusCode',
|
|
10416
|
+
body: 'body',
|
|
10417
|
+
};
|
|
10418
|
+
}
|
|
10419
|
+
|
|
10420
|
+
static types(): { [key: string]: any } {
|
|
10421
|
+
return {
|
|
10422
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
10423
|
+
statusCode: 'number',
|
|
10424
|
+
body: DescribeRestoreDBInstanceListResponseBody,
|
|
10425
|
+
};
|
|
10426
|
+
}
|
|
10427
|
+
|
|
10428
|
+
constructor(map?: { [key: string]: any }) {
|
|
10429
|
+
super(map);
|
|
10430
|
+
}
|
|
10431
|
+
}
|
|
10432
|
+
|
|
10112
10433
|
export class DescribeRoleZoneInfoRequest extends $tea.Model {
|
|
10113
10434
|
/**
|
|
10114
10435
|
* @remarks
|
|
@@ -11886,11 +12207,25 @@ export class MigrateAvailableZoneRequest extends $tea.Model {
|
|
|
11886
12207
|
* Immediately
|
|
11887
12208
|
*/
|
|
11888
12209
|
effectiveTime?: string;
|
|
12210
|
+
/**
|
|
12211
|
+
* @remarks
|
|
12212
|
+
* The ID of the destination hidden zone.
|
|
12213
|
+
*
|
|
12214
|
+
* @example
|
|
12215
|
+
* cn-shanghai-n
|
|
12216
|
+
*/
|
|
11889
12217
|
hiddenZoneId?: string;
|
|
11890
12218
|
ownerAccount?: string;
|
|
11891
12219
|
ownerId?: number;
|
|
11892
12220
|
resourceOwnerAccount?: string;
|
|
11893
12221
|
resourceOwnerId?: number;
|
|
12222
|
+
/**
|
|
12223
|
+
* @remarks
|
|
12224
|
+
* The ID of the destination secondary zone.
|
|
12225
|
+
*
|
|
12226
|
+
* @example
|
|
12227
|
+
* cn-hangzhou-h
|
|
12228
|
+
*/
|
|
11894
12229
|
secondaryZoneId?: string;
|
|
11895
12230
|
/**
|
|
11896
12231
|
* @remarks
|
|
@@ -12658,7 +12993,7 @@ export class ModifyAuditPolicyResponse extends $tea.Model {
|
|
|
12658
12993
|
export class ModifyBackupPolicyRequest extends $tea.Model {
|
|
12659
12994
|
/**
|
|
12660
12995
|
* @remarks
|
|
12661
|
-
* The frequency at which high-frequency
|
|
12996
|
+
* The frequency at which high-frequency backups are generated. Valid values:
|
|
12662
12997
|
*
|
|
12663
12998
|
* * **-1**: High-frequency backup is disabled.
|
|
12664
12999
|
* * **30**: High-frequency backups are generated every 30 minutes.
|
|
@@ -12672,9 +13007,9 @@ export class ModifyBackupPolicyRequest extends $tea.Model {
|
|
|
12672
13007
|
*
|
|
12673
13008
|
* >
|
|
12674
13009
|
*
|
|
12675
|
-
* * If the **SnapshotBackupType** parameter
|
|
13010
|
+
* * If you set the **SnapshotBackupType** parameter to **Standard**, you must fix the value of this parameter to -1.
|
|
12676
13011
|
*
|
|
12677
|
-
* * High-frequency backup takes effect only when the **SnapshotBackupType** parameter
|
|
13012
|
+
* * High-frequency backup takes effect only when you set the **SnapshotBackupType** parameter to **Flash** and this parameter to a value greater than 0.
|
|
12678
13013
|
*
|
|
12679
13014
|
* @example
|
|
12680
13015
|
* -1
|
|
@@ -12694,12 +13029,95 @@ export class ModifyBackupPolicyRequest extends $tea.Model {
|
|
|
12694
13029
|
* 30
|
|
12695
13030
|
*/
|
|
12696
13031
|
backupRetentionPeriod?: number;
|
|
13032
|
+
/**
|
|
13033
|
+
* @remarks
|
|
13034
|
+
* The backup retention policy configured for the instance. Valid values:
|
|
13035
|
+
*
|
|
13036
|
+
* 1. 0: All backup sets are immediately deleted when the instance is released.
|
|
13037
|
+
* 2. 1: Automatic backup is performed and the backup set is retained for a long period of time when the instance is released.
|
|
13038
|
+
* 3. 2: Automatic backup is performed and all backup sets are retained for a long period of time when the instance is released.
|
|
13039
|
+
*
|
|
13040
|
+
* For more information, see [Retain the backup files of an ApsaraDB for MongoDB instance for a long period of time](https://help.aliyun.com/document_detail/4920562.html).
|
|
13041
|
+
*
|
|
13042
|
+
* @example
|
|
13043
|
+
* 2
|
|
13044
|
+
*/
|
|
12697
13045
|
backupRetentionPolicyOnClusterDeletion?: number;
|
|
13046
|
+
/**
|
|
13047
|
+
* @remarks
|
|
13048
|
+
* The retention period of Cross-regional backup.
|
|
13049
|
+
* Valid values:
|
|
13050
|
+
*
|
|
13051
|
+
* * **Monday**
|
|
13052
|
+
* * **Tuesday**
|
|
13053
|
+
* * **Wednesday**
|
|
13054
|
+
* * **Thursday**
|
|
13055
|
+
* * **Friday**
|
|
13056
|
+
* * **Saturday**
|
|
13057
|
+
* * **Sunday**
|
|
13058
|
+
*
|
|
13059
|
+
* **
|
|
13060
|
+
*
|
|
13061
|
+
*
|
|
13062
|
+
*
|
|
13063
|
+
*
|
|
13064
|
+
*
|
|
13065
|
+
* >- Separate multiple values with commas (,).
|
|
13066
|
+
* >- When SnapshotBackupType is set to standard, this value needs to be a subset of the PreferredBackupPeriod.
|
|
13067
|
+
*
|
|
13068
|
+
* @example
|
|
13069
|
+
* Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday
|
|
13070
|
+
*/
|
|
12698
13071
|
crossBackupPeriod?: string;
|
|
13072
|
+
/**
|
|
13073
|
+
* @remarks
|
|
13074
|
+
* The operation strategy of Cross-regional backup.
|
|
13075
|
+
* - update
|
|
13076
|
+
* - delete
|
|
13077
|
+
*
|
|
13078
|
+
* @example
|
|
13079
|
+
* update
|
|
13080
|
+
*/
|
|
12699
13081
|
crossBackupType?: string;
|
|
13082
|
+
/**
|
|
13083
|
+
* @remarks
|
|
13084
|
+
* The retention type of Cross-regional log backup.
|
|
13085
|
+
*
|
|
13086
|
+
* - delay : retain the backup for a period of time.
|
|
13087
|
+
* - never : retain the backup permanently.
|
|
13088
|
+
*
|
|
13089
|
+
* @example
|
|
13090
|
+
* delay
|
|
13091
|
+
*/
|
|
12700
13092
|
crossLogRetentionType?: string;
|
|
13093
|
+
/**
|
|
13094
|
+
* @remarks
|
|
13095
|
+
* The retention time of Cross-regional log backup, 3 - 1825 days.
|
|
13096
|
+
*
|
|
13097
|
+
* @example
|
|
13098
|
+
* 3
|
|
13099
|
+
*/
|
|
12701
13100
|
crossLogRetentionValue?: number;
|
|
13101
|
+
/**
|
|
13102
|
+
* @remarks
|
|
13103
|
+
* The retention type of Cross-regional backup.
|
|
13104
|
+
*
|
|
13105
|
+
* - delay : retain the backup for a period of time.
|
|
13106
|
+
* - never : retain the backup permanently.
|
|
13107
|
+
*
|
|
13108
|
+
* @example
|
|
13109
|
+
* delay
|
|
13110
|
+
*/
|
|
12702
13111
|
crossRetentionType?: string;
|
|
13112
|
+
/**
|
|
13113
|
+
* @remarks
|
|
13114
|
+
* The retention time of Cross-regional backup, 3 - 1825 days.
|
|
13115
|
+
* >
|
|
13116
|
+
* > - Used and must be used when CrossRetentionType is delay.
|
|
13117
|
+
*
|
|
13118
|
+
* @example
|
|
13119
|
+
* 7
|
|
13120
|
+
*/
|
|
12703
13121
|
crossRetentionValue?: number;
|
|
12704
13122
|
/**
|
|
12705
13123
|
* @remarks
|
|
@@ -12711,6 +13129,15 @@ export class ModifyBackupPolicyRequest extends $tea.Model {
|
|
|
12711
13129
|
* dds-bp16cb162771****
|
|
12712
13130
|
*/
|
|
12713
13131
|
DBInstanceId?: string;
|
|
13132
|
+
/**
|
|
13133
|
+
* @remarks
|
|
13134
|
+
* The region id of Cross-regional backup.
|
|
13135
|
+
* >
|
|
13136
|
+
* > - Required for Cross-regional backup.
|
|
13137
|
+
*
|
|
13138
|
+
* @example
|
|
13139
|
+
* cn-hangzhou
|
|
13140
|
+
*/
|
|
12714
13141
|
destRegion?: string;
|
|
12715
13142
|
/**
|
|
12716
13143
|
* @remarks
|
|
@@ -12723,12 +13150,37 @@ export class ModifyBackupPolicyRequest extends $tea.Model {
|
|
|
12723
13150
|
* 0
|
|
12724
13151
|
*/
|
|
12725
13152
|
enableBackupLog?: number;
|
|
13153
|
+
/**
|
|
13154
|
+
* @remarks
|
|
13155
|
+
* Whether to turn on cross-regional log backup.
|
|
13156
|
+
* - 1:turn on . Used for sharded cluster.
|
|
13157
|
+
* - 0: turn off. Used for replicate set.
|
|
13158
|
+
*
|
|
13159
|
+
* @example
|
|
13160
|
+
* 1
|
|
13161
|
+
*/
|
|
12726
13162
|
enableCrossLogBackup?: number;
|
|
12727
13163
|
/**
|
|
12728
13164
|
* @remarks
|
|
12729
13165
|
* The number of days for which high-frequency backups are retained. Before you use this parameter, make sure that you specify the BackupInterval parameter. By default, high-frequency backups are retained for one day.
|
|
13166
|
+
*
|
|
13167
|
+
* @example
|
|
13168
|
+
* 1
|
|
12730
13169
|
*/
|
|
12731
13170
|
highFrequencyBackupRetention?: number;
|
|
13171
|
+
/**
|
|
13172
|
+
* @remarks
|
|
13173
|
+
* The instance architecture. Valid values:
|
|
13174
|
+
*
|
|
13175
|
+
* * replicate
|
|
13176
|
+
* * sharding
|
|
13177
|
+
*
|
|
13178
|
+
* > * This parameter is required for Cross-regional backup.
|
|
13179
|
+
* > * This parameter is required for backup recovery of deleted instances.
|
|
13180
|
+
*
|
|
13181
|
+
* @example
|
|
13182
|
+
* replicate
|
|
13183
|
+
*/
|
|
12732
13184
|
instanceType?: string;
|
|
12733
13185
|
/**
|
|
12734
13186
|
* @remarks
|
|
@@ -12754,6 +13206,10 @@ export class ModifyBackupPolicyRequest extends $tea.Model {
|
|
|
12754
13206
|
* * **Saturday**
|
|
12755
13207
|
* * **Sunday**
|
|
12756
13208
|
*
|
|
13209
|
+
* **
|
|
13210
|
+
*
|
|
13211
|
+
* **Notice**: To ensure data security, make sure that the system backs up data at least twice a week.
|
|
13212
|
+
*
|
|
12757
13213
|
* > Separate multiple values with commas (,).
|
|
12758
13214
|
*
|
|
12759
13215
|
* @example
|
|
@@ -12783,6 +13239,17 @@ export class ModifyBackupPolicyRequest extends $tea.Model {
|
|
|
12783
13239
|
* Standard
|
|
12784
13240
|
*/
|
|
12785
13241
|
snapshotBackupType?: string;
|
|
13242
|
+
/**
|
|
13243
|
+
* @remarks
|
|
13244
|
+
* The region ID of the instance.
|
|
13245
|
+
*
|
|
13246
|
+
* >
|
|
13247
|
+
* > - Required for Cross-regional backup.
|
|
13248
|
+
* > - Required for backup recovery of deleted instances.
|
|
13249
|
+
*
|
|
13250
|
+
* @example
|
|
13251
|
+
* cn-beijing
|
|
13252
|
+
*/
|
|
12786
13253
|
srcRegion?: string;
|
|
12787
13254
|
static names(): { [key: string]: string } {
|
|
12788
13255
|
return {
|
|
@@ -16757,6 +17224,10 @@ export class RestartDBInstanceResponse extends $tea.Model {
|
|
|
16757
17224
|
export class RestartNodeRequest extends $tea.Model {
|
|
16758
17225
|
/**
|
|
16759
17226
|
* @remarks
|
|
17227
|
+
* The instance ID.
|
|
17228
|
+
*
|
|
17229
|
+
* > If you set this parameter to the ID of a sharded cluster instance, you must also specify the **NodeId** parameter.
|
|
17230
|
+
*
|
|
16760
17231
|
* This parameter is required.
|
|
16761
17232
|
*
|
|
16762
17233
|
* @example
|
|
@@ -16764,6 +17235,11 @@ export class RestartNodeRequest extends $tea.Model {
|
|
|
16764
17235
|
*/
|
|
16765
17236
|
DBInstanceId?: string;
|
|
16766
17237
|
/**
|
|
17238
|
+
* @remarks
|
|
17239
|
+
* The ID of the shard, mongos, or ConfigServer node in a child instance of the sharded cluster instance.
|
|
17240
|
+
*
|
|
17241
|
+
* > If you set the **DBInstanceId** parameter to the ID of a sharded cluster instance, you must specify this parameter.
|
|
17242
|
+
*
|
|
16767
17243
|
* @example
|
|
16768
17244
|
* d-bp128a003436****
|
|
16769
17245
|
*/
|
|
@@ -16774,6 +17250,11 @@ export class RestartNodeRequest extends $tea.Model {
|
|
|
16774
17250
|
resourceOwnerId?: number;
|
|
16775
17251
|
/**
|
|
16776
17252
|
* @remarks
|
|
17253
|
+
* The role ID of the node.
|
|
17254
|
+
*
|
|
17255
|
+
* 1. You can call the [DescribeReplicaSetRole](https://help.aliyun.com/document_detail/468469.html) operation to query the role ID of a node in a replica set instance.
|
|
17256
|
+
* 2. You can call the [DescribeRoleZoneInfo](https://help.aliyun.com/document_detail/468472.html) operation to query the role ID of a node in a sharded cluster instance.
|
|
17257
|
+
*
|
|
16777
17258
|
* This parameter is required.
|
|
16778
17259
|
*
|
|
16779
17260
|
* @example
|
|
@@ -16811,6 +17292,9 @@ export class RestartNodeRequest extends $tea.Model {
|
|
|
16811
17292
|
|
|
16812
17293
|
export class RestartNodeResponseBody extends $tea.Model {
|
|
16813
17294
|
/**
|
|
17295
|
+
* @remarks
|
|
17296
|
+
* The request ID.
|
|
17297
|
+
*
|
|
16814
17298
|
* @example
|
|
16815
17299
|
* ECBCA991-XXXX-XXXX-834C-B3E8007F33AA
|
|
16816
17300
|
*/
|
|
@@ -17232,7 +17716,7 @@ export class TransformInstanceChargeTypeRequest extends $tea.Model {
|
|
|
17232
17716
|
* * **true**
|
|
17233
17717
|
* * **false**
|
|
17234
17718
|
*
|
|
17235
|
-
* >
|
|
17719
|
+
* > Default value: **true**.
|
|
17236
17720
|
*
|
|
17237
17721
|
* @example
|
|
17238
17722
|
* true
|
|
@@ -17263,8 +17747,8 @@ export class TransformInstanceChargeTypeRequest extends $tea.Model {
|
|
|
17263
17747
|
* @remarks
|
|
17264
17748
|
* The billing method of the instance. Valid values:
|
|
17265
17749
|
*
|
|
17266
|
-
* * **PrePaid
|
|
17267
|
-
* * **PostPaid
|
|
17750
|
+
* * **PrePaid:** subscription.
|
|
17751
|
+
* * **PostPaid:** pay-as-you-go.
|
|
17268
17752
|
*
|
|
17269
17753
|
* This parameter is required.
|
|
17270
17754
|
*
|
|
@@ -17274,10 +17758,7 @@ export class TransformInstanceChargeTypeRequest extends $tea.Model {
|
|
|
17274
17758
|
chargeType?: string;
|
|
17275
17759
|
/**
|
|
17276
17760
|
* @remarks
|
|
17277
|
-
*
|
|
17278
|
-
*
|
|
17279
|
-
* * **default** or **null**: uses coupons.
|
|
17280
|
-
* * **youhuiquan_promotion_option_id_for_blank**: does not use coupons.
|
|
17761
|
+
* The coupon code. Default value: `youhuiquan_promotion_option_id_for_blank`.
|
|
17281
17762
|
*
|
|
17282
17763
|
* @example
|
|
17283
17764
|
* youhuiquan_promotion_option_id_for_blank
|
|
@@ -17285,7 +17766,7 @@ export class TransformInstanceChargeTypeRequest extends $tea.Model {
|
|
|
17285
17766
|
couponNo?: string;
|
|
17286
17767
|
/**
|
|
17287
17768
|
* @remarks
|
|
17288
|
-
* The ID of the instance
|
|
17769
|
+
* The ID of the instance.
|
|
17289
17770
|
*
|
|
17290
17771
|
* This parameter is required.
|
|
17291
17772
|
*
|
|
@@ -17297,10 +17778,7 @@ export class TransformInstanceChargeTypeRequest extends $tea.Model {
|
|
|
17297
17778
|
ownerId?: number;
|
|
17298
17779
|
/**
|
|
17299
17780
|
* @remarks
|
|
17300
|
-
* The subscription duration. Valid values:
|
|
17301
|
-
*
|
|
17302
|
-
* * If the PricingCycle parameter is set to Month, the valid values of this parameter range from **1** to **9**.
|
|
17303
|
-
* * If the PricingCycle parameter is set to Year, the valid values of this parameter are **1**, **2**, **3**, and **5**.
|
|
17781
|
+
* The subscription duration of the instance. Unit: months. Valid values: **1, 2, 3, 4, 5, 6, 7, 8, 9******, **12**, **24**, and **36**.
|
|
17304
17782
|
*
|
|
17305
17783
|
* @example
|
|
17306
17784
|
* 1
|
|
@@ -17308,12 +17786,12 @@ export class TransformInstanceChargeTypeRequest extends $tea.Model {
|
|
|
17308
17786
|
period?: number;
|
|
17309
17787
|
/**
|
|
17310
17788
|
* @remarks
|
|
17311
|
-
*
|
|
17312
|
-
*
|
|
17313
|
-
*
|
|
17314
|
-
*
|
|
17789
|
+
* 实例付费时长单位
|
|
17790
|
+
* 取值说明:
|
|
17791
|
+
* - **Month:** 月
|
|
17792
|
+
* - **Year:** 年
|
|
17315
17793
|
*
|
|
17316
|
-
*
|
|
17794
|
+
* 默认值:Month
|
|
17317
17795
|
*
|
|
17318
17796
|
* @example
|
|
17319
17797
|
* Month
|
|
@@ -17363,7 +17841,7 @@ export class TransformInstanceChargeTypeRequest extends $tea.Model {
|
|
|
17363
17841
|
export class TransformInstanceChargeTypeResponseBody extends $tea.Model {
|
|
17364
17842
|
/**
|
|
17365
17843
|
* @remarks
|
|
17366
|
-
* The ID
|
|
17844
|
+
* The order ID.
|
|
17367
17845
|
*
|
|
17368
17846
|
* @example
|
|
17369
17847
|
* 21084641369****
|
|
@@ -17371,7 +17849,7 @@ export class TransformInstanceChargeTypeResponseBody extends $tea.Model {
|
|
|
17371
17849
|
orderId?: string;
|
|
17372
17850
|
/**
|
|
17373
17851
|
* @remarks
|
|
17374
|
-
* The ID
|
|
17852
|
+
* The request ID.
|
|
17375
17853
|
*
|
|
17376
17854
|
* @example
|
|
17377
17855
|
* D8F1D721-6439-4257-A89C-F1E8E9C9****
|
|
@@ -17762,6 +18240,7 @@ export class UpgradeDBInstanceEngineVersionRequest extends $tea.Model {
|
|
|
17762
18240
|
ownerId?: number;
|
|
17763
18241
|
resourceOwnerAccount?: string;
|
|
17764
18242
|
resourceOwnerId?: number;
|
|
18243
|
+
switchMode?: number;
|
|
17765
18244
|
static names(): { [key: string]: string } {
|
|
17766
18245
|
return {
|
|
17767
18246
|
DBInstanceId: 'DBInstanceId',
|
|
@@ -17770,6 +18249,7 @@ export class UpgradeDBInstanceEngineVersionRequest extends $tea.Model {
|
|
|
17770
18249
|
ownerId: 'OwnerId',
|
|
17771
18250
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
17772
18251
|
resourceOwnerId: 'ResourceOwnerId',
|
|
18252
|
+
switchMode: 'SwitchMode',
|
|
17773
18253
|
};
|
|
17774
18254
|
}
|
|
17775
18255
|
|
|
@@ -17781,6 +18261,7 @@ export class UpgradeDBInstanceEngineVersionRequest extends $tea.Model {
|
|
|
17781
18261
|
ownerId: 'number',
|
|
17782
18262
|
resourceOwnerAccount: 'string',
|
|
17783
18263
|
resourceOwnerId: 'number',
|
|
18264
|
+
switchMode: 'number',
|
|
17784
18265
|
};
|
|
17785
18266
|
}
|
|
17786
18267
|
|
|
@@ -17855,6 +18336,7 @@ export class UpgradeDBInstanceKernelVersionRequest extends $tea.Model {
|
|
|
17855
18336
|
ownerId?: number;
|
|
17856
18337
|
resourceOwnerAccount?: string;
|
|
17857
18338
|
resourceOwnerId?: number;
|
|
18339
|
+
switchMode?: string;
|
|
17858
18340
|
static names(): { [key: string]: string } {
|
|
17859
18341
|
return {
|
|
17860
18342
|
DBInstanceId: 'DBInstanceId',
|
|
@@ -17862,6 +18344,7 @@ export class UpgradeDBInstanceKernelVersionRequest extends $tea.Model {
|
|
|
17862
18344
|
ownerId: 'OwnerId',
|
|
17863
18345
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
17864
18346
|
resourceOwnerId: 'ResourceOwnerId',
|
|
18347
|
+
switchMode: 'SwitchMode',
|
|
17865
18348
|
};
|
|
17866
18349
|
}
|
|
17867
18350
|
|
|
@@ -17872,6 +18355,7 @@ export class UpgradeDBInstanceKernelVersionRequest extends $tea.Model {
|
|
|
17872
18355
|
ownerId: 'number',
|
|
17873
18356
|
resourceOwnerAccount: 'string',
|
|
17874
18357
|
resourceOwnerId: 'number',
|
|
18358
|
+
switchMode: 'string',
|
|
17875
18359
|
};
|
|
17876
18360
|
}
|
|
17877
18361
|
|
|
@@ -18114,8 +18598,8 @@ export class CreateShardingDBInstanceRequestReplicaSet extends $tea.Model {
|
|
|
18114
18598
|
* @remarks
|
|
18115
18599
|
* The instance type of the shard node. For more information, see [Sharded cluster instance types](https://help.aliyun.com/document_detail/311414.html).
|
|
18116
18600
|
*
|
|
18117
|
-
* > *
|
|
18118
|
-
* > *
|
|
18601
|
+
* > * **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.
|
|
18602
|
+
* > * Valid values of **N**: **2** to **32**.
|
|
18119
18603
|
*
|
|
18120
18604
|
* This parameter is required.
|
|
18121
18605
|
*
|
|
@@ -18125,11 +18609,11 @@ export class CreateShardingDBInstanceRequestReplicaSet extends $tea.Model {
|
|
|
18125
18609
|
class?: string;
|
|
18126
18610
|
/**
|
|
18127
18611
|
* @remarks
|
|
18128
|
-
* The number of read-only nodes in shard node
|
|
18612
|
+
* The number of read-only nodes in the shard node.
|
|
18129
18613
|
*
|
|
18130
|
-
* Valid values: **0**, 1, 2, 3, 4, and
|
|
18614
|
+
* Valid values: **0**, **1, 2, 3, 4, and 5**. Default value: **0**.
|
|
18131
18615
|
*
|
|
18132
|
-
* > **N** specifies the serial number of the shard node for which you want to set the number of read-only nodes.
|
|
18616
|
+
* > **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.
|
|
18133
18617
|
*
|
|
18134
18618
|
* @example
|
|
18135
18619
|
* 0
|
|
@@ -18137,10 +18621,10 @@ export class CreateShardingDBInstanceRequestReplicaSet extends $tea.Model {
|
|
|
18137
18621
|
readonlyReplicas?: number;
|
|
18138
18622
|
/**
|
|
18139
18623
|
* @remarks
|
|
18140
|
-
* The storage
|
|
18624
|
+
* The storage capacity of the shard node. Unit: GB.
|
|
18141
18625
|
*
|
|
18142
|
-
* > *
|
|
18143
|
-
* > *
|
|
18626
|
+
* > * 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).
|
|
18627
|
+
* > * **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.
|
|
18144
18628
|
*
|
|
18145
18629
|
* This parameter is required.
|
|
18146
18630
|
*
|
|
@@ -19377,7 +19861,7 @@ export class DescribeBackupsResponseBodyBackupsBackup extends $tea.Model {
|
|
|
19377
19861
|
* @remarks
|
|
19378
19862
|
* The internal download URL of the backup set.
|
|
19379
19863
|
*
|
|
19380
|
-
* > You can use the URL to download the specified backup set on an Elastic Compute Service (ECS) instance that is in the same
|
|
19864
|
+
* > You can use the URL to download the specified backup set on an Elastic Compute Service (ECS) instance that is in the same virtual private cloud (VPC) as the ApsaraDB for MongoDB instance.
|
|
19381
19865
|
*/
|
|
19382
19866
|
backupIntranetDownloadURL?: string;
|
|
19383
19867
|
/**
|
|
@@ -19404,14 +19888,28 @@ export class DescribeBackupsResponseBodyBackupsBackup extends $tea.Model {
|
|
|
19404
19888
|
* @remarks
|
|
19405
19889
|
* The backup mode of the backup set. Valid values:
|
|
19406
19890
|
*
|
|
19407
|
-
* * **Automated
|
|
19891
|
+
* * **Automated**
|
|
19408
19892
|
* * **Manual**
|
|
19409
19893
|
*
|
|
19410
19894
|
* @example
|
|
19411
19895
|
* Automated
|
|
19412
19896
|
*/
|
|
19413
19897
|
backupMode?: string;
|
|
19898
|
+
/**
|
|
19899
|
+
* @remarks
|
|
19900
|
+
* The name of the backup set (invalid now).
|
|
19901
|
+
*
|
|
19902
|
+
* @example
|
|
19903
|
+
* 12345678.tar.gz
|
|
19904
|
+
*/
|
|
19414
19905
|
backupName?: string;
|
|
19906
|
+
/**
|
|
19907
|
+
* @remarks
|
|
19908
|
+
* The scale of the backup set (invalid now).
|
|
19909
|
+
*
|
|
19910
|
+
* @example
|
|
19911
|
+
* DBInstance
|
|
19912
|
+
*/
|
|
19415
19913
|
backupScale?: string;
|
|
19416
19914
|
/**
|
|
19417
19915
|
* @remarks
|
|
@@ -19451,6 +19949,16 @@ export class DescribeBackupsResponseBodyBackupsBackup extends $tea.Model {
|
|
|
19451
19949
|
* FullBackup
|
|
19452
19950
|
*/
|
|
19453
19951
|
backupType?: string;
|
|
19952
|
+
engineVersion?: string;
|
|
19953
|
+
/**
|
|
19954
|
+
* @remarks
|
|
19955
|
+
* Availability of the backup set.
|
|
19956
|
+
* - 0: unavailable
|
|
19957
|
+
* - 1: available
|
|
19958
|
+
*
|
|
19959
|
+
* @example
|
|
19960
|
+
* 1
|
|
19961
|
+
*/
|
|
19454
19962
|
isAvail?: boolean;
|
|
19455
19963
|
static names(): { [key: string]: string } {
|
|
19456
19964
|
return {
|
|
@@ -19468,6 +19976,7 @@ export class DescribeBackupsResponseBodyBackupsBackup extends $tea.Model {
|
|
|
19468
19976
|
backupStartTime: 'BackupStartTime',
|
|
19469
19977
|
backupStatus: 'BackupStatus',
|
|
19470
19978
|
backupType: 'BackupType',
|
|
19979
|
+
engineVersion: 'EngineVersion',
|
|
19471
19980
|
isAvail: 'IsAvail',
|
|
19472
19981
|
};
|
|
19473
19982
|
}
|
|
@@ -19488,6 +19997,7 @@ export class DescribeBackupsResponseBodyBackupsBackup extends $tea.Model {
|
|
|
19488
19997
|
backupStartTime: 'string',
|
|
19489
19998
|
backupStatus: 'string',
|
|
19490
19999
|
backupType: 'string',
|
|
20000
|
+
engineVersion: 'string',
|
|
19491
20001
|
isAvail: 'boolean',
|
|
19492
20002
|
};
|
|
19493
20003
|
}
|
|
@@ -19797,6 +20307,7 @@ export class DescribeClusterBackupsResponseBodyClusterBackups extends $tea.Model
|
|
|
19797
20307
|
* OK
|
|
19798
20308
|
*/
|
|
19799
20309
|
clusterBackupStatus?: string;
|
|
20310
|
+
engineVersion?: string;
|
|
19800
20311
|
/**
|
|
19801
20312
|
* @remarks
|
|
19802
20313
|
* The additional information in the JSON format.
|
|
@@ -19831,6 +20342,7 @@ export class DescribeClusterBackupsResponseBodyClusterBackups extends $tea.Model
|
|
|
19831
20342
|
clusterBackupSize: 'ClusterBackupSize',
|
|
19832
20343
|
clusterBackupStartTime: 'ClusterBackupStartTime',
|
|
19833
20344
|
clusterBackupStatus: 'ClusterBackupStatus',
|
|
20345
|
+
engineVersion: 'EngineVersion',
|
|
19834
20346
|
extraInfo: 'ExtraInfo',
|
|
19835
20347
|
isAvail: 'IsAvail',
|
|
19836
20348
|
progress: 'Progress',
|
|
@@ -19847,6 +20359,7 @@ export class DescribeClusterBackupsResponseBodyClusterBackups extends $tea.Model
|
|
|
19847
20359
|
clusterBackupSize: 'string',
|
|
19848
20360
|
clusterBackupStartTime: 'string',
|
|
19849
20361
|
clusterBackupStatus: 'string',
|
|
20362
|
+
engineVersion: 'string',
|
|
19850
20363
|
extraInfo: DescribeClusterBackupsResponseBodyClusterBackupsExtraInfo,
|
|
19851
20364
|
isAvail: 'number',
|
|
19852
20365
|
progress: 'string',
|
|
@@ -19915,6 +20428,27 @@ export class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceConfigs
|
|
|
19915
20428
|
* dds-bp18b0934e7053e4-cs****.mongodb.rds.aliyuncs.com
|
|
19916
20429
|
*/
|
|
19917
20430
|
connectString?: string;
|
|
20431
|
+
/**
|
|
20432
|
+
* @remarks
|
|
20433
|
+
* The minor version of the current MongoDB kernel.
|
|
20434
|
+
*
|
|
20435
|
+
* @example
|
|
20436
|
+
* mongodb_20230613_4.0.25
|
|
20437
|
+
*/
|
|
20438
|
+
currentKernelVersion?: string;
|
|
20439
|
+
/**
|
|
20440
|
+
* @remarks
|
|
20441
|
+
* The lock status of the Configserver node. Valid values:
|
|
20442
|
+
*
|
|
20443
|
+
* * **Unlock**: The instance is not locked.
|
|
20444
|
+
* * **ManualLock**: The instance is manually locked.
|
|
20445
|
+
* * **LockByExpiration**: The instance is automatically locked due to instance expiration.
|
|
20446
|
+
* * **LockByRestoration**: The instance is automatically locked before a rollback.
|
|
20447
|
+
* * **LockByDiskQuota**: The instance is automatically locked because its storage capacity is exhausted and the instance is inaccessible.
|
|
20448
|
+
*
|
|
20449
|
+
* @example
|
|
20450
|
+
* Unlock
|
|
20451
|
+
*/
|
|
19918
20452
|
lockMode?: string;
|
|
19919
20453
|
/**
|
|
19920
20454
|
* @remarks
|
|
@@ -19983,6 +20517,7 @@ export class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceConfigs
|
|
|
19983
20517
|
static names(): { [key: string]: string } {
|
|
19984
20518
|
return {
|
|
19985
20519
|
connectString: 'ConnectString',
|
|
20520
|
+
currentKernelVersion: 'CurrentKernelVersion',
|
|
19986
20521
|
lockMode: 'LockMode',
|
|
19987
20522
|
maxConnections: 'MaxConnections',
|
|
19988
20523
|
maxIOPS: 'MaxIOPS',
|
|
@@ -19998,6 +20533,7 @@ export class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceConfigs
|
|
|
19998
20533
|
static types(): { [key: string]: any } {
|
|
19999
20534
|
return {
|
|
20000
20535
|
connectString: 'string',
|
|
20536
|
+
currentKernelVersion: 'string',
|
|
20001
20537
|
lockMode: 'string',
|
|
20002
20538
|
maxConnections: 'number',
|
|
20003
20539
|
maxIOPS: 'number',
|
|
@@ -20043,6 +20579,27 @@ export class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceMongosL
|
|
|
20043
20579
|
* s-bp1d8c262a15****.mongodb.rds.aliyuncs.com
|
|
20044
20580
|
*/
|
|
20045
20581
|
connectSting?: string;
|
|
20582
|
+
/**
|
|
20583
|
+
* @remarks
|
|
20584
|
+
* The minor version of the current MongoDB kernel.
|
|
20585
|
+
*
|
|
20586
|
+
* @example
|
|
20587
|
+
* mongodb_20220518_4.0.21
|
|
20588
|
+
*/
|
|
20589
|
+
currentKernelVersion?: string;
|
|
20590
|
+
/**
|
|
20591
|
+
* @remarks
|
|
20592
|
+
* The lock status of the instance. Valid values:
|
|
20593
|
+
*
|
|
20594
|
+
* * **Unlock**: The instance is not locked.
|
|
20595
|
+
* * **ManualLock**: The instance is manually locked.
|
|
20596
|
+
* * **LockByExpiration**: The instance is automatically locked due to instance expiration.
|
|
20597
|
+
* * **LockByRestoration**: The instance is automatically locked before a rollback.
|
|
20598
|
+
* * **LockByDiskQuota**: The instance is automatically locked because its storage capacity is exhausted and the instance is inaccessible.
|
|
20599
|
+
*
|
|
20600
|
+
* @example
|
|
20601
|
+
* Unlock
|
|
20602
|
+
*/
|
|
20046
20603
|
lockMode?: string;
|
|
20047
20604
|
/**
|
|
20048
20605
|
* @remarks
|
|
@@ -20131,6 +20688,7 @@ export class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceMongosL
|
|
|
20131
20688
|
static names(): { [key: string]: string } {
|
|
20132
20689
|
return {
|
|
20133
20690
|
connectSting: 'ConnectSting',
|
|
20691
|
+
currentKernelVersion: 'CurrentKernelVersion',
|
|
20134
20692
|
lockMode: 'LockMode',
|
|
20135
20693
|
maxConnections: 'MaxConnections',
|
|
20136
20694
|
maxIOPS: 'MaxIOPS',
|
|
@@ -20148,6 +20706,7 @@ export class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceMongosL
|
|
|
20148
20706
|
static types(): { [key: string]: any } {
|
|
20149
20707
|
return {
|
|
20150
20708
|
connectSting: 'string',
|
|
20709
|
+
currentKernelVersion: 'string',
|
|
20151
20710
|
lockMode: 'string',
|
|
20152
20711
|
maxConnections: 'number',
|
|
20153
20712
|
maxIOPS: 'number',
|
|
@@ -20312,6 +20871,27 @@ export class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceShardLi
|
|
|
20312
20871
|
* d-bp1af0680a9c6d3****.mongodb.rds.aliyuncs.com:****
|
|
20313
20872
|
*/
|
|
20314
20873
|
connectString?: string;
|
|
20874
|
+
/**
|
|
20875
|
+
* @remarks
|
|
20876
|
+
* The minor version of the current MongoDB kernel.
|
|
20877
|
+
*
|
|
20878
|
+
* @example
|
|
20879
|
+
* mongodb_20230613_4.0.25
|
|
20880
|
+
*/
|
|
20881
|
+
currentKernelVersion?: string;
|
|
20882
|
+
/**
|
|
20883
|
+
* @remarks
|
|
20884
|
+
* The lock status of the shard node. Valid values:
|
|
20885
|
+
*
|
|
20886
|
+
* * **Unlock**: The instance is not locked.
|
|
20887
|
+
* * **ManualLock**: The instance is manually locked.
|
|
20888
|
+
* * **LockByExpiration**: The instance is automatically locked due to instance expiration.
|
|
20889
|
+
* * **LockByRestoration**: The instance is automatically locked before a rollback.
|
|
20890
|
+
* * **LockByDiskQuota**: The instance is automatically locked because its storage capacity is exhausted and the instance is inaccessible.
|
|
20891
|
+
*
|
|
20892
|
+
* @example
|
|
20893
|
+
* Unlock
|
|
20894
|
+
*/
|
|
20315
20895
|
lockMode?: string;
|
|
20316
20896
|
/**
|
|
20317
20897
|
* @remarks
|
|
@@ -20323,7 +20903,7 @@ export class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceShardLi
|
|
|
20323
20903
|
maxConnections?: number;
|
|
20324
20904
|
/**
|
|
20325
20905
|
* @remarks
|
|
20326
|
-
* shard
|
|
20906
|
+
* The maximum MBPS of the shard node.
|
|
20327
20907
|
*
|
|
20328
20908
|
* @example
|
|
20329
20909
|
* 350
|
|
@@ -20396,6 +20976,7 @@ export class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceShardLi
|
|
|
20396
20976
|
static names(): { [key: string]: string } {
|
|
20397
20977
|
return {
|
|
20398
20978
|
connectString: 'ConnectString',
|
|
20979
|
+
currentKernelVersion: 'CurrentKernelVersion',
|
|
20399
20980
|
lockMode: 'LockMode',
|
|
20400
20981
|
maxConnections: 'MaxConnections',
|
|
20401
20982
|
maxDiskMbps: 'MaxDiskMbps',
|
|
@@ -20413,6 +20994,7 @@ export class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceShardLi
|
|
|
20413
20994
|
static types(): { [key: string]: any } {
|
|
20414
20995
|
return {
|
|
20415
20996
|
connectString: 'string',
|
|
20997
|
+
currentKernelVersion: 'string',
|
|
20416
20998
|
lockMode: 'string',
|
|
20417
20999
|
maxConnections: 'number',
|
|
20418
21000
|
maxDiskMbps: 'string',
|
|
@@ -20536,7 +21118,7 @@ export class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstance extend
|
|
|
20536
21118
|
chargeType?: string;
|
|
20537
21119
|
/**
|
|
20538
21120
|
* @remarks
|
|
20539
|
-
* The
|
|
21121
|
+
* The details of the ConfigServer node.
|
|
20540
21122
|
*
|
|
20541
21123
|
* > This parameter is returned if the instance is a sharded cluster instance.
|
|
20542
21124
|
*/
|
|
@@ -20795,7 +21377,7 @@ export class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstance extend
|
|
|
20795
21377
|
maxIOPS?: number;
|
|
20796
21378
|
/**
|
|
20797
21379
|
* @remarks
|
|
20798
|
-
*
|
|
21380
|
+
* The maximum MBPS of the instance.
|
|
20799
21381
|
*
|
|
20800
21382
|
* @example
|
|
20801
21383
|
* 350
|
|
@@ -20803,7 +21385,7 @@ export class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstance extend
|
|
|
20803
21385
|
maxMBPS?: number;
|
|
20804
21386
|
/**
|
|
20805
21387
|
* @remarks
|
|
20806
|
-
* The
|
|
21388
|
+
* The details of the mongos node.
|
|
20807
21389
|
*
|
|
20808
21390
|
* > This parameter is returned if the instance is a sharded cluster instance.
|
|
20809
21391
|
*/
|
|
@@ -20938,7 +21520,7 @@ export class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstance extend
|
|
|
20938
21520
|
secondaryZoneId?: string;
|
|
20939
21521
|
/**
|
|
20940
21522
|
* @remarks
|
|
20941
|
-
* The
|
|
21523
|
+
* The details of the shard node.
|
|
20942
21524
|
*
|
|
20943
21525
|
* > This parameter is returned if the instance is a sharded cluster instance.
|
|
20944
21526
|
*/
|
|
@@ -25920,6 +26502,14 @@ export class DescribeReplicaSetRoleResponseBodyReplicaSetsReplicaSet extends $te
|
|
|
25920
26502
|
* 3717
|
|
25921
26503
|
*/
|
|
25922
26504
|
connectionPort?: string;
|
|
26505
|
+
/**
|
|
26506
|
+
* @remarks
|
|
26507
|
+
* The connection type of the node.
|
|
26508
|
+
*
|
|
26509
|
+
* @example
|
|
26510
|
+
* SRV
|
|
26511
|
+
*/
|
|
26512
|
+
connectionType?: string;
|
|
25923
26513
|
/**
|
|
25924
26514
|
* @remarks
|
|
25925
26515
|
* The remaining duration of the classic network endpoint. Unit: seconds.
|
|
@@ -25963,6 +26553,7 @@ export class DescribeReplicaSetRoleResponseBodyReplicaSetsReplicaSet extends $te
|
|
|
25963
26553
|
return {
|
|
25964
26554
|
connectionDomain: 'ConnectionDomain',
|
|
25965
26555
|
connectionPort: 'ConnectionPort',
|
|
26556
|
+
connectionType: 'ConnectionType',
|
|
25966
26557
|
expiredTime: 'ExpiredTime',
|
|
25967
26558
|
networkType: 'NetworkType',
|
|
25968
26559
|
replicaSetRole: 'ReplicaSetRole',
|
|
@@ -25974,6 +26565,7 @@ export class DescribeReplicaSetRoleResponseBodyReplicaSetsReplicaSet extends $te
|
|
|
25974
26565
|
return {
|
|
25975
26566
|
connectionDomain: 'string',
|
|
25976
26567
|
connectionPort: 'string',
|
|
26568
|
+
connectionType: 'string',
|
|
25977
26569
|
expiredTime: 'string',
|
|
25978
26570
|
networkType: 'string',
|
|
25979
26571
|
replicaSetRole: 'string',
|
|
@@ -26005,6 +26597,121 @@ export class DescribeReplicaSetRoleResponseBodyReplicaSets extends $tea.Model {
|
|
|
26005
26597
|
}
|
|
26006
26598
|
}
|
|
26007
26599
|
|
|
26600
|
+
export class DescribeRestoreDBInstanceListResponseBodyDBInstancesDBInstance extends $tea.Model {
|
|
26601
|
+
/**
|
|
26602
|
+
* @example
|
|
26603
|
+
* 2022-01-02T07:43:59Z
|
|
26604
|
+
*/
|
|
26605
|
+
creationTime?: string;
|
|
26606
|
+
DBInstanceDescription?: string;
|
|
26607
|
+
/**
|
|
26608
|
+
* @example
|
|
26609
|
+
* dds-bp12c5b040dc****
|
|
26610
|
+
*/
|
|
26611
|
+
DBInstanceId?: string;
|
|
26612
|
+
/**
|
|
26613
|
+
* @example
|
|
26614
|
+
* Running
|
|
26615
|
+
*/
|
|
26616
|
+
DBInstanceStatus?: string;
|
|
26617
|
+
/**
|
|
26618
|
+
* @example
|
|
26619
|
+
* replicate
|
|
26620
|
+
*/
|
|
26621
|
+
DBInstanceType?: string;
|
|
26622
|
+
/**
|
|
26623
|
+
* @example
|
|
26624
|
+
* 4.2
|
|
26625
|
+
*/
|
|
26626
|
+
engineVersion?: string;
|
|
26627
|
+
/**
|
|
26628
|
+
* @example
|
|
26629
|
+
* cn-hangzhou-h
|
|
26630
|
+
*/
|
|
26631
|
+
hiddenZoneId?: string;
|
|
26632
|
+
/**
|
|
26633
|
+
* @example
|
|
26634
|
+
* 0
|
|
26635
|
+
*/
|
|
26636
|
+
isDeleted?: number;
|
|
26637
|
+
/**
|
|
26638
|
+
* @example
|
|
26639
|
+
* Unlock
|
|
26640
|
+
*/
|
|
26641
|
+
lockMode?: string;
|
|
26642
|
+
/**
|
|
26643
|
+
* @example
|
|
26644
|
+
* cn-hangzhou
|
|
26645
|
+
*/
|
|
26646
|
+
regionId?: string;
|
|
26647
|
+
/**
|
|
26648
|
+
* @example
|
|
26649
|
+
* cn-hangzhou-i
|
|
26650
|
+
*/
|
|
26651
|
+
secondaryZoneId?: string;
|
|
26652
|
+
/**
|
|
26653
|
+
* @example
|
|
26654
|
+
* cn-hangzhou-g
|
|
26655
|
+
*/
|
|
26656
|
+
zoneId?: string;
|
|
26657
|
+
static names(): { [key: string]: string } {
|
|
26658
|
+
return {
|
|
26659
|
+
creationTime: 'CreationTime',
|
|
26660
|
+
DBInstanceDescription: 'DBInstanceDescription',
|
|
26661
|
+
DBInstanceId: 'DBInstanceId',
|
|
26662
|
+
DBInstanceStatus: 'DBInstanceStatus',
|
|
26663
|
+
DBInstanceType: 'DBInstanceType',
|
|
26664
|
+
engineVersion: 'EngineVersion',
|
|
26665
|
+
hiddenZoneId: 'HiddenZoneId',
|
|
26666
|
+
isDeleted: 'IsDeleted',
|
|
26667
|
+
lockMode: 'LockMode',
|
|
26668
|
+
regionId: 'RegionId',
|
|
26669
|
+
secondaryZoneId: 'SecondaryZoneId',
|
|
26670
|
+
zoneId: 'ZoneId',
|
|
26671
|
+
};
|
|
26672
|
+
}
|
|
26673
|
+
|
|
26674
|
+
static types(): { [key: string]: any } {
|
|
26675
|
+
return {
|
|
26676
|
+
creationTime: 'string',
|
|
26677
|
+
DBInstanceDescription: 'string',
|
|
26678
|
+
DBInstanceId: 'string',
|
|
26679
|
+
DBInstanceStatus: 'string',
|
|
26680
|
+
DBInstanceType: 'string',
|
|
26681
|
+
engineVersion: 'string',
|
|
26682
|
+
hiddenZoneId: 'string',
|
|
26683
|
+
isDeleted: 'number',
|
|
26684
|
+
lockMode: 'string',
|
|
26685
|
+
regionId: 'string',
|
|
26686
|
+
secondaryZoneId: 'string',
|
|
26687
|
+
zoneId: 'string',
|
|
26688
|
+
};
|
|
26689
|
+
}
|
|
26690
|
+
|
|
26691
|
+
constructor(map?: { [key: string]: any }) {
|
|
26692
|
+
super(map);
|
|
26693
|
+
}
|
|
26694
|
+
}
|
|
26695
|
+
|
|
26696
|
+
export class DescribeRestoreDBInstanceListResponseBodyDBInstances extends $tea.Model {
|
|
26697
|
+
DBInstance?: DescribeRestoreDBInstanceListResponseBodyDBInstancesDBInstance[];
|
|
26698
|
+
static names(): { [key: string]: string } {
|
|
26699
|
+
return {
|
|
26700
|
+
DBInstance: 'DBInstance',
|
|
26701
|
+
};
|
|
26702
|
+
}
|
|
26703
|
+
|
|
26704
|
+
static types(): { [key: string]: any } {
|
|
26705
|
+
return {
|
|
26706
|
+
DBInstance: { 'type': 'array', 'itemType': DescribeRestoreDBInstanceListResponseBodyDBInstancesDBInstance },
|
|
26707
|
+
};
|
|
26708
|
+
}
|
|
26709
|
+
|
|
26710
|
+
constructor(map?: { [key: string]: any }) {
|
|
26711
|
+
super(map);
|
|
26712
|
+
}
|
|
26713
|
+
}
|
|
26714
|
+
|
|
26008
26715
|
export class DescribeRoleZoneInfoResponseBodyZoneInfosZoneInfo extends $tea.Model {
|
|
26009
26716
|
/**
|
|
26010
26717
|
* @remarks
|
|
@@ -26423,6 +27130,7 @@ export class DescribeShardingNetworkAddressResponseBodyCompatibleConnections ext
|
|
|
26423
27130
|
}
|
|
26424
27131
|
|
|
26425
27132
|
export class DescribeShardingNetworkAddressResponseBodyNetworkAddressesNetworkAddress extends $tea.Model {
|
|
27133
|
+
connectionType?: string;
|
|
26426
27134
|
/**
|
|
26427
27135
|
* @remarks
|
|
26428
27136
|
* The remaining duration of the classic network endpoint. Unit: seconds.
|
|
@@ -26498,6 +27206,7 @@ export class DescribeShardingNetworkAddressResponseBodyNetworkAddressesNetworkAd
|
|
|
26498
27206
|
* Primary
|
|
26499
27207
|
*/
|
|
26500
27208
|
role?: string;
|
|
27209
|
+
txtRecord?: string;
|
|
26501
27210
|
/**
|
|
26502
27211
|
* @remarks
|
|
26503
27212
|
* The VPC ID of the instance.
|
|
@@ -26520,6 +27229,7 @@ export class DescribeShardingNetworkAddressResponseBodyNetworkAddressesNetworkAd
|
|
|
26520
27229
|
vswitchId?: string;
|
|
26521
27230
|
static names(): { [key: string]: string } {
|
|
26522
27231
|
return {
|
|
27232
|
+
connectionType: 'ConnectionType',
|
|
26523
27233
|
expiredTime: 'ExpiredTime',
|
|
26524
27234
|
IPAddress: 'IPAddress',
|
|
26525
27235
|
networkAddress: 'NetworkAddress',
|
|
@@ -26528,6 +27238,7 @@ export class DescribeShardingNetworkAddressResponseBodyNetworkAddressesNetworkAd
|
|
|
26528
27238
|
nodeType: 'NodeType',
|
|
26529
27239
|
port: 'Port',
|
|
26530
27240
|
role: 'Role',
|
|
27241
|
+
txtRecord: 'TxtRecord',
|
|
26531
27242
|
VPCId: 'VPCId',
|
|
26532
27243
|
vswitchId: 'VswitchId',
|
|
26533
27244
|
};
|
|
@@ -26535,6 +27246,7 @@ export class DescribeShardingNetworkAddressResponseBodyNetworkAddressesNetworkAd
|
|
|
26535
27246
|
|
|
26536
27247
|
static types(): { [key: string]: any } {
|
|
26537
27248
|
return {
|
|
27249
|
+
connectionType: 'string',
|
|
26538
27250
|
expiredTime: 'string',
|
|
26539
27251
|
IPAddress: 'string',
|
|
26540
27252
|
networkAddress: 'string',
|
|
@@ -26543,6 +27255,7 @@ export class DescribeShardingNetworkAddressResponseBodyNetworkAddressesNetworkAd
|
|
|
26543
27255
|
nodeType: 'string',
|
|
26544
27256
|
port: 'string',
|
|
26545
27257
|
role: 'string',
|
|
27258
|
+
txtRecord: 'string',
|
|
26546
27259
|
VPCId: 'string',
|
|
26547
27260
|
vswitchId: 'string',
|
|
26548
27261
|
};
|
|
@@ -27300,6 +28013,10 @@ export default class Client extends OpenApi {
|
|
|
27300
28013
|
query["DestRegion"] = request.destRegion;
|
|
27301
28014
|
}
|
|
27302
28015
|
|
|
28016
|
+
if (!Util.isUnset(request.engineVersion)) {
|
|
28017
|
+
query["EngineVersion"] = request.engineVersion;
|
|
28018
|
+
}
|
|
28019
|
+
|
|
27303
28020
|
if (!Util.isUnset(request.instanceType)) {
|
|
27304
28021
|
query["InstanceType"] = request.instanceType;
|
|
27305
28022
|
}
|
|
@@ -27522,7 +28239,7 @@ export default class Client extends OpenApi {
|
|
|
27522
28239
|
* Creates or clones an ApsaraDB for MongoDB replica set instance.
|
|
27523
28240
|
*
|
|
27524
28241
|
* @remarks
|
|
27525
|
-
* Make sure that you fully understand the billing methods and [pricing](https://www.
|
|
28242
|
+
* Make sure that you fully understand the billing methods and [pricing](https://www.alibabacloud.com/product/apsaradb-for-mongodb/pricing) of ApsaraDB for MongoDB before you call this operation.
|
|
27526
28243
|
* For more information about the instance types of ApsaraDB for MongoDB instances, see [Instance types](https://www.alibabacloud.com/help/en/mongodb/product-overview/instance-types-1).
|
|
27527
28244
|
* To create sharded cluster instances, you can call the [CreateShardingDBInstance](~~CreateShardingDBInstance~~) operation.
|
|
27528
28245
|
*
|
|
@@ -27718,7 +28435,7 @@ export default class Client extends OpenApi {
|
|
|
27718
28435
|
* Creates or clones an ApsaraDB for MongoDB replica set instance.
|
|
27719
28436
|
*
|
|
27720
28437
|
* @remarks
|
|
27721
|
-
* Make sure that you fully understand the billing methods and [pricing](https://www.
|
|
28438
|
+
* Make sure that you fully understand the billing methods and [pricing](https://www.alibabacloud.com/product/apsaradb-for-mongodb/pricing) of ApsaraDB for MongoDB before you call this operation.
|
|
27722
28439
|
* For more information about the instance types of ApsaraDB for MongoDB instances, see [Instance types](https://www.alibabacloud.com/help/en/mongodb/product-overview/instance-types-1).
|
|
27723
28440
|
* To create sharded cluster instances, you can call the [CreateShardingDBInstance](~~CreateShardingDBInstance~~) operation.
|
|
27724
28441
|
*
|
|
@@ -28016,7 +28733,7 @@ export default class Client extends OpenApi {
|
|
|
28016
28733
|
* Creates or clones an ApsaraDB for MongoDB sharded cluster instance.
|
|
28017
28734
|
*
|
|
28018
28735
|
* @remarks
|
|
28019
|
-
* Make sure that you fully understand the billing methods and [pricing](https://www.
|
|
28736
|
+
* Make sure that you fully understand the billing methods and [pricing](https://www.alibabacloud.com/product/apsaradb-for-mongodb/pricing) of ApsaraDB for MongoDB before you call this operation.
|
|
28020
28737
|
* * For more information about the instance types of ApsaraDB for MongoDB, see [Instance types](https://help.aliyun.com/document_detail/57141.html).
|
|
28021
28738
|
* * To create standalone instances and replica set instances, you can call the [CreateDBInstance](https://help.aliyun.com/document_detail/61763.html) operation.
|
|
28022
28739
|
*
|
|
@@ -28200,7 +28917,7 @@ export default class Client extends OpenApi {
|
|
|
28200
28917
|
* Creates or clones an ApsaraDB for MongoDB sharded cluster instance.
|
|
28201
28918
|
*
|
|
28202
28919
|
* @remarks
|
|
28203
|
-
* Make sure that you fully understand the billing methods and [pricing](https://www.
|
|
28920
|
+
* Make sure that you fully understand the billing methods and [pricing](https://www.alibabacloud.com/product/apsaradb-for-mongodb/pricing) of ApsaraDB for MongoDB before you call this operation.
|
|
28204
28921
|
* * For more information about the instance types of ApsaraDB for MongoDB, see [Instance types](https://help.aliyun.com/document_detail/57141.html).
|
|
28205
28922
|
* * To create standalone instances and replica set instances, you can call the [CreateDBInstance](https://help.aliyun.com/document_detail/61763.html) operation.
|
|
28206
28923
|
*
|
|
@@ -31654,6 +32371,72 @@ export default class Client extends OpenApi {
|
|
|
31654
32371
|
return await this.describeReplicaSetRoleWithOptions(request, runtime);
|
|
31655
32372
|
}
|
|
31656
32373
|
|
|
32374
|
+
/**
|
|
32375
|
+
* @param request - DescribeRestoreDBInstanceListRequest
|
|
32376
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
32377
|
+
* @returns DescribeRestoreDBInstanceListResponse
|
|
32378
|
+
*/
|
|
32379
|
+
async describeRestoreDBInstanceListWithOptions(request: DescribeRestoreDBInstanceListRequest, runtime: $Util.RuntimeOptions): Promise<DescribeRestoreDBInstanceListResponse> {
|
|
32380
|
+
Util.validateModel(request);
|
|
32381
|
+
let query = { };
|
|
32382
|
+
if (!Util.isUnset(request.creationTimeAfter)) {
|
|
32383
|
+
query["CreationTimeAfter"] = request.creationTimeAfter;
|
|
32384
|
+
}
|
|
32385
|
+
|
|
32386
|
+
if (!Util.isUnset(request.DBInstanceId)) {
|
|
32387
|
+
query["DBInstanceId"] = request.DBInstanceId;
|
|
32388
|
+
}
|
|
32389
|
+
|
|
32390
|
+
if (!Util.isUnset(request.ownerAccount)) {
|
|
32391
|
+
query["OwnerAccount"] = request.ownerAccount;
|
|
32392
|
+
}
|
|
32393
|
+
|
|
32394
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
32395
|
+
query["OwnerId"] = request.ownerId;
|
|
32396
|
+
}
|
|
32397
|
+
|
|
32398
|
+
if (!Util.isUnset(request.pageNumber)) {
|
|
32399
|
+
query["PageNumber"] = request.pageNumber;
|
|
32400
|
+
}
|
|
32401
|
+
|
|
32402
|
+
if (!Util.isUnset(request.pageSize)) {
|
|
32403
|
+
query["PageSize"] = request.pageSize;
|
|
32404
|
+
}
|
|
32405
|
+
|
|
32406
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
32407
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
32408
|
+
}
|
|
32409
|
+
|
|
32410
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
32411
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
32412
|
+
}
|
|
32413
|
+
|
|
32414
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
32415
|
+
query: OpenApiUtil.query(query),
|
|
32416
|
+
});
|
|
32417
|
+
let params = new $OpenApi.Params({
|
|
32418
|
+
action: "DescribeRestoreDBInstanceList",
|
|
32419
|
+
version: "2015-12-01",
|
|
32420
|
+
protocol: "HTTPS",
|
|
32421
|
+
pathname: "/",
|
|
32422
|
+
method: "POST",
|
|
32423
|
+
authType: "AK",
|
|
32424
|
+
style: "RPC",
|
|
32425
|
+
reqBodyType: "formData",
|
|
32426
|
+
bodyType: "json",
|
|
32427
|
+
});
|
|
32428
|
+
return $tea.cast<DescribeRestoreDBInstanceListResponse>(await this.callApi(params, req, runtime), new DescribeRestoreDBInstanceListResponse({}));
|
|
32429
|
+
}
|
|
32430
|
+
|
|
32431
|
+
/**
|
|
32432
|
+
* @param request - DescribeRestoreDBInstanceListRequest
|
|
32433
|
+
* @returns DescribeRestoreDBInstanceListResponse
|
|
32434
|
+
*/
|
|
32435
|
+
async describeRestoreDBInstanceList(request: DescribeRestoreDBInstanceListRequest): Promise<DescribeRestoreDBInstanceListResponse> {
|
|
32436
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
32437
|
+
return await this.describeRestoreDBInstanceListWithOptions(request, runtime);
|
|
32438
|
+
}
|
|
32439
|
+
|
|
31657
32440
|
/**
|
|
31658
32441
|
* Queries the role and zone of each node in an ApsaraDB for MongoDB instance.
|
|
31659
32442
|
*
|
|
@@ -32991,6 +33774,9 @@ export default class Client extends OpenApi {
|
|
|
32991
33774
|
/**
|
|
32992
33775
|
* Modifies a backup policy for an ApsaraDB for MongoDB instance.
|
|
32993
33776
|
*
|
|
33777
|
+
* @remarks
|
|
33778
|
+
* Cross-regional backup only supports MongoDB sharded cluster instance and MongoDB replica set.
|
|
33779
|
+
*
|
|
32994
33780
|
* @param request - ModifyBackupPolicyRequest
|
|
32995
33781
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
32996
33782
|
* @returns ModifyBackupPolicyResponse
|
|
@@ -33114,6 +33900,9 @@ export default class Client extends OpenApi {
|
|
|
33114
33900
|
/**
|
|
33115
33901
|
* Modifies a backup policy for an ApsaraDB for MongoDB instance.
|
|
33116
33902
|
*
|
|
33903
|
+
* @remarks
|
|
33904
|
+
* Cross-regional backup only supports MongoDB sharded cluster instance and MongoDB replica set.
|
|
33905
|
+
*
|
|
33117
33906
|
* @param request - ModifyBackupPolicyRequest
|
|
33118
33907
|
* @returns ModifyBackupPolicyResponse
|
|
33119
33908
|
*/
|
|
@@ -35255,7 +36044,13 @@ export default class Client extends OpenApi {
|
|
|
35255
36044
|
}
|
|
35256
36045
|
|
|
35257
36046
|
/**
|
|
35258
|
-
*
|
|
36047
|
+
* Restarts a node in an ApsaraDB for MongoDB instance.
|
|
36048
|
+
*
|
|
36049
|
+
* @remarks
|
|
36050
|
+
* You can call this operation to restart a node in a replica set instance or a child instance in a sharded cluster instance.
|
|
36051
|
+
* > When you call this operation, the instance must meet the following requirements:
|
|
36052
|
+
* * The instance is in the Running state.
|
|
36053
|
+
* * The instance is a replica set or sharded cluster instance of the standard edition.
|
|
35259
36054
|
*
|
|
35260
36055
|
* @param request - RestartNodeRequest
|
|
35261
36056
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -35310,7 +36105,13 @@ export default class Client extends OpenApi {
|
|
|
35310
36105
|
}
|
|
35311
36106
|
|
|
35312
36107
|
/**
|
|
35313
|
-
*
|
|
36108
|
+
* Restarts a node in an ApsaraDB for MongoDB instance.
|
|
36109
|
+
*
|
|
36110
|
+
* @remarks
|
|
36111
|
+
* You can call this operation to restart a node in a replica set instance or a child instance in a sharded cluster instance.
|
|
36112
|
+
* > When you call this operation, the instance must meet the following requirements:
|
|
36113
|
+
* * The instance is in the Running state.
|
|
36114
|
+
* * The instance is a replica set or sharded cluster instance of the standard edition.
|
|
35314
36115
|
*
|
|
35315
36116
|
* @param request - RestartNodeRequest
|
|
35316
36117
|
* @returns RestartNodeResponse
|
|
@@ -35562,12 +36363,12 @@ export default class Client extends OpenApi {
|
|
|
35562
36363
|
* Changes the billing method of an instance from pay-as-you-go to subscription or from subscription to pay-as-you-go.
|
|
35563
36364
|
*
|
|
35564
36365
|
* @remarks
|
|
35565
|
-
* Before you call this operation, make sure that you understand the billing methods and [pricing](https://www.
|
|
36366
|
+
* Before you call this operation, make sure that you understand the billing methods and [pricing](https://www.alibabacloud.com/product/apsaradb-for-mongodb/pricing) of ApsaraDB for MongoDB
|
|
35566
36367
|
* Before you call this API operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
|
|
35567
36368
|
* * The instance is in the Running state.
|
|
35568
36369
|
* * Your instance has no unpaid billing method change orders.
|
|
35569
36370
|
* * The instance type is available for purchase. For more information about unavailable instance types, see [Instance types](https://help.aliyun.com/document_detail/57141.html).
|
|
35570
|
-
* > To change the billing method of an instance whose instance type is no longer available to purchase, call the [ModifyDBInstanceSpec](https://help.aliyun.com/document_detail/61816.html) or [ModifyNodeSpec](https://help.aliyun.com/document_detail/61923.html) operation to
|
|
36371
|
+
* > To change the billing method of an instance whose instance type is no longer available to purchase, call the [ModifyDBInstanceSpec](https://help.aliyun.com/document_detail/61816.html) or [ModifyNodeSpec](https://help.aliyun.com/document_detail/61923.html) operation to change the instance type first.
|
|
35571
36372
|
*
|
|
35572
36373
|
* @param request - TransformInstanceChargeTypeRequest
|
|
35573
36374
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -35645,12 +36446,12 @@ export default class Client extends OpenApi {
|
|
|
35645
36446
|
* Changes the billing method of an instance from pay-as-you-go to subscription or from subscription to pay-as-you-go.
|
|
35646
36447
|
*
|
|
35647
36448
|
* @remarks
|
|
35648
|
-
* Before you call this operation, make sure that you understand the billing methods and [pricing](https://www.
|
|
36449
|
+
* Before you call this operation, make sure that you understand the billing methods and [pricing](https://www.alibabacloud.com/product/apsaradb-for-mongodb/pricing) of ApsaraDB for MongoDB
|
|
35649
36450
|
* Before you call this API operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
|
|
35650
36451
|
* * The instance is in the Running state.
|
|
35651
36452
|
* * Your instance has no unpaid billing method change orders.
|
|
35652
36453
|
* * The instance type is available for purchase. For more information about unavailable instance types, see [Instance types](https://help.aliyun.com/document_detail/57141.html).
|
|
35653
|
-
* > To change the billing method of an instance whose instance type is no longer available to purchase, call the [ModifyDBInstanceSpec](https://help.aliyun.com/document_detail/61816.html) or [ModifyNodeSpec](https://help.aliyun.com/document_detail/61923.html) operation to
|
|
36454
|
+
* > To change the billing method of an instance whose instance type is no longer available to purchase, call the [ModifyDBInstanceSpec](https://help.aliyun.com/document_detail/61816.html) or [ModifyNodeSpec](https://help.aliyun.com/document_detail/61923.html) operation to change the instance type first.
|
|
35654
36455
|
*
|
|
35655
36456
|
* @param request - TransformInstanceChargeTypeRequest
|
|
35656
36457
|
* @returns TransformInstanceChargeTypeResponse
|
|
@@ -35886,6 +36687,10 @@ export default class Client extends OpenApi {
|
|
|
35886
36687
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
35887
36688
|
}
|
|
35888
36689
|
|
|
36690
|
+
if (!Util.isUnset(request.switchMode)) {
|
|
36691
|
+
query["SwitchMode"] = request.switchMode;
|
|
36692
|
+
}
|
|
36693
|
+
|
|
35889
36694
|
let req = new $OpenApi.OpenApiRequest({
|
|
35890
36695
|
query: OpenApiUtil.query(query),
|
|
35891
36696
|
});
|
|
@@ -35955,6 +36760,10 @@ export default class Client extends OpenApi {
|
|
|
35955
36760
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
35956
36761
|
}
|
|
35957
36762
|
|
|
36763
|
+
if (!Util.isUnset(request.switchMode)) {
|
|
36764
|
+
query["SwitchMode"] = request.switchMode;
|
|
36765
|
+
}
|
|
36766
|
+
|
|
35958
36767
|
let req = new $OpenApi.OpenApiRequest({
|
|
35959
36768
|
query: OpenApiUtil.query(query),
|
|
35960
36769
|
});
|