@alicloud/polardb20170801 5.4.1 → 5.5.1
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 +176 -5
- package/dist/client.js +161 -4
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +300 -5
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -1772,6 +1772,10 @@ export class DescribeDBClusterAttributeResponseBodyDBNodes extends $dara.Model {
|
|
|
1772
1772
|
* polar.mysql.x4.large
|
|
1773
1773
|
*/
|
|
1774
1774
|
DBNodeClass?: string;
|
|
1775
|
+
/**
|
|
1776
|
+
* @example
|
|
1777
|
+
* test
|
|
1778
|
+
*/
|
|
1775
1779
|
DBNodeDescription?: string;
|
|
1776
1780
|
/**
|
|
1777
1781
|
* @remarks
|
|
@@ -2216,6 +2220,7 @@ export class DescribeDBClusterEndpointsResponseBodyItemsAddressItems extends $da
|
|
|
2216
2220
|
* ********.rwlb.polardb-pg-public.rds.aliyuncs.com
|
|
2217
2221
|
*/
|
|
2218
2222
|
connectionString?: string;
|
|
2223
|
+
dashboardUsed?: boolean;
|
|
2219
2224
|
/**
|
|
2220
2225
|
* @remarks
|
|
2221
2226
|
* The IP address.
|
|
@@ -2280,6 +2285,7 @@ export class DescribeDBClusterEndpointsResponseBodyItemsAddressItems extends $da
|
|
|
2280
2285
|
static names(): { [key: string]: string } {
|
|
2281
2286
|
return {
|
|
2282
2287
|
connectionString: 'ConnectionString',
|
|
2288
|
+
dashboardUsed: 'DashboardUsed',
|
|
2283
2289
|
IPAddress: 'IPAddress',
|
|
2284
2290
|
netType: 'NetType',
|
|
2285
2291
|
port: 'Port',
|
|
@@ -2293,6 +2299,7 @@ export class DescribeDBClusterEndpointsResponseBodyItemsAddressItems extends $da
|
|
|
2293
2299
|
static types(): { [key: string]: any } {
|
|
2294
2300
|
return {
|
|
2295
2301
|
connectionString: 'string',
|
|
2302
|
+
dashboardUsed: 'boolean',
|
|
2296
2303
|
IPAddress: 'string',
|
|
2297
2304
|
netType: 'string',
|
|
2298
2305
|
port: 'string',
|
|
@@ -2409,7 +2416,24 @@ export class DescribeDBClusterEndpointsResponseBodyItems extends $dara.Model {
|
|
|
2409
2416
|
* pi-***************,pi-***************
|
|
2410
2417
|
*/
|
|
2411
2418
|
nodes?: string;
|
|
2419
|
+
/**
|
|
2420
|
+
* @remarks
|
|
2421
|
+
* The global consistency timeout policy. Valid values:
|
|
2422
|
+
*
|
|
2423
|
+
* * **0**: sends the request to the primary node.
|
|
2424
|
+
* * **2**: downgrades the consistency level of a query to inconsistent read when a global consistent read in the query times out. No error message is returned to the client.
|
|
2425
|
+
*
|
|
2426
|
+
* @example
|
|
2427
|
+
* 0
|
|
2428
|
+
*/
|
|
2412
2429
|
polarSccTimeoutAction?: string;
|
|
2430
|
+
/**
|
|
2431
|
+
* @remarks
|
|
2432
|
+
* Global consistency timeout.
|
|
2433
|
+
*
|
|
2434
|
+
* @example
|
|
2435
|
+
* 100
|
|
2436
|
+
*/
|
|
2413
2437
|
polarSccWaitTimeout?: string;
|
|
2414
2438
|
/**
|
|
2415
2439
|
* @remarks
|
|
@@ -2422,6 +2446,16 @@ export class DescribeDBClusterEndpointsResponseBodyItems extends $dara.Model {
|
|
|
2422
2446
|
* ReadOnly
|
|
2423
2447
|
*/
|
|
2424
2448
|
readWriteMode?: string;
|
|
2449
|
+
/**
|
|
2450
|
+
* @remarks
|
|
2451
|
+
* Indicates whether the global consistency (high-performance mode) feature is enabled for the node. Valid values:
|
|
2452
|
+
*
|
|
2453
|
+
* * **on**: enabled.
|
|
2454
|
+
* * **off**: disabled
|
|
2455
|
+
*
|
|
2456
|
+
* @example
|
|
2457
|
+
* on
|
|
2458
|
+
*/
|
|
2425
2459
|
sccMode?: string;
|
|
2426
2460
|
static names(): { [key: string]: string } {
|
|
2427
2461
|
return {
|
|
@@ -9779,6 +9813,7 @@ export class CreateAccountRequest extends $dara.Model {
|
|
|
9779
9813
|
* testdb
|
|
9780
9814
|
*/
|
|
9781
9815
|
DBName?: string;
|
|
9816
|
+
nodeType?: string;
|
|
9782
9817
|
ownerAccount?: string;
|
|
9783
9818
|
ownerId?: number;
|
|
9784
9819
|
privForAllDB?: string;
|
|
@@ -9794,6 +9829,7 @@ export class CreateAccountRequest extends $dara.Model {
|
|
|
9794
9829
|
clientToken: 'ClientToken',
|
|
9795
9830
|
DBClusterId: 'DBClusterId',
|
|
9796
9831
|
DBName: 'DBName',
|
|
9832
|
+
nodeType: 'NodeType',
|
|
9797
9833
|
ownerAccount: 'OwnerAccount',
|
|
9798
9834
|
ownerId: 'OwnerId',
|
|
9799
9835
|
privForAllDB: 'PrivForAllDB',
|
|
@@ -9812,6 +9848,7 @@ export class CreateAccountRequest extends $dara.Model {
|
|
|
9812
9848
|
clientToken: 'string',
|
|
9813
9849
|
DBClusterId: 'string',
|
|
9814
9850
|
DBName: 'string',
|
|
9851
|
+
nodeType: 'string',
|
|
9815
9852
|
ownerAccount: 'string',
|
|
9816
9853
|
ownerId: 'number',
|
|
9817
9854
|
privForAllDB: 'string',
|
|
@@ -10480,6 +10517,10 @@ export class CreateDBClusterRequest extends $dara.Model {
|
|
|
10480
10517
|
* NONE
|
|
10481
10518
|
*/
|
|
10482
10519
|
backupRetentionPolicyOnClusterDeletion?: string;
|
|
10520
|
+
/**
|
|
10521
|
+
* @example
|
|
10522
|
+
* false
|
|
10523
|
+
*/
|
|
10483
10524
|
burstingEnabled?: string;
|
|
10484
10525
|
/**
|
|
10485
10526
|
* @remarks
|
|
@@ -10601,8 +10642,6 @@ export class CreateDBClusterRequest extends $dara.Model {
|
|
|
10601
10642
|
* > - For a Serverless cluster in PolarDB MySQL, enter **polar.mysql.sl.small**.
|
|
10602
10643
|
* <props="china">> - For a Serverless cluster in both PolarDB PostgreSQL (Oracle Compatible) and PolarDB PostgreSQL, enter **polar.pg.sl.small.c**.
|
|
10603
10644
|
*
|
|
10604
|
-
* This parameter is required.
|
|
10605
|
-
*
|
|
10606
10645
|
* @example
|
|
10607
10646
|
* polar.mysql.x4.medium
|
|
10608
10647
|
*/
|
|
@@ -10928,7 +10967,28 @@ export class CreateDBClusterRequest extends $dara.Model {
|
|
|
10928
10967
|
* Enable
|
|
10929
10968
|
*/
|
|
10930
10969
|
storageAutoScale?: string;
|
|
10970
|
+
/**
|
|
10971
|
+
* @remarks
|
|
10972
|
+
* Specifies whether to enable disk encryption. Valid values:
|
|
10973
|
+
*
|
|
10974
|
+
* * **true**
|
|
10975
|
+
* * **false** (default)
|
|
10976
|
+
*
|
|
10977
|
+
* > This parameter takes effect only when **DBType** is set to **MySQL**.
|
|
10978
|
+
*
|
|
10979
|
+
* > This parameter takes effect only when **StorageType** is set to one of the Standard Edition storage types.
|
|
10980
|
+
*/
|
|
10931
10981
|
storageEncryption?: boolean;
|
|
10982
|
+
/**
|
|
10983
|
+
* @remarks
|
|
10984
|
+
* The ID of the custom key that is used for disk encryption in the region in which the instance resides. If this parameter is specified, disk encryption is automatically enabled and cannot be disabled afterwards. If you want to use the default service key for disk encryption, leave this parameter empty.
|
|
10985
|
+
*
|
|
10986
|
+
* You can obtain the ID of the key in the KMS console or create a key.
|
|
10987
|
+
*
|
|
10988
|
+
* > This parameter takes effect only when **DBType** is set to **MySQL**.
|
|
10989
|
+
*
|
|
10990
|
+
* > This parameter takes effect only when **StorageType** is set to one of the Standard Edition storage types.
|
|
10991
|
+
*/
|
|
10932
10992
|
storageEncryptionKey?: string;
|
|
10933
10993
|
/**
|
|
10934
10994
|
* @remarks
|
|
@@ -10943,9 +11003,13 @@ export class CreateDBClusterRequest extends $dara.Model {
|
|
|
10943
11003
|
storagePayType?: string;
|
|
10944
11004
|
/**
|
|
10945
11005
|
* @remarks
|
|
10946
|
-
*
|
|
10947
|
-
*
|
|
10948
|
-
* >
|
|
11006
|
+
* The storage that is billed based on the subscription billing method. Unit: GB.
|
|
11007
|
+
*
|
|
11008
|
+
* >
|
|
11009
|
+
*
|
|
11010
|
+
* * Valid values for the subscription storage capacity of a PolarDB for MySQL Standard Edition cluster: 20 to 32000.
|
|
11011
|
+
*
|
|
11012
|
+
* * Valid values for the subscription storage capacity of a Standard Edition cluster that uses the ESSD AUTOPL storage type: 40 to 64000, in increments of 10.
|
|
10949
11013
|
*
|
|
10950
11014
|
* @example
|
|
10951
11015
|
* 50
|
|
@@ -11423,6 +11487,11 @@ export class CreateDBClusterEndpointRequest extends $dara.Model {
|
|
|
11423
11487
|
* * **ON**
|
|
11424
11488
|
* * **OFF**
|
|
11425
11489
|
*
|
|
11490
|
+
* Enumerated values:
|
|
11491
|
+
*
|
|
11492
|
+
* * on
|
|
11493
|
+
* * off
|
|
11494
|
+
*
|
|
11426
11495
|
* @example
|
|
11427
11496
|
* on
|
|
11428
11497
|
*/
|
|
@@ -14809,6 +14878,7 @@ export class DeleteMaskingRulesRequest extends $dara.Model {
|
|
|
14809
14878
|
* pc-*****************
|
|
14810
14879
|
*/
|
|
14811
14880
|
DBClusterId?: string;
|
|
14881
|
+
interfaceVersion?: string;
|
|
14812
14882
|
/**
|
|
14813
14883
|
* @remarks
|
|
14814
14884
|
* The name of the masking rule. You can specify multiple masking rules at a time. Separate the masking rules with commas (,).
|
|
@@ -14824,6 +14894,7 @@ export class DeleteMaskingRulesRequest extends $dara.Model {
|
|
|
14824
14894
|
static names(): { [key: string]: string } {
|
|
14825
14895
|
return {
|
|
14826
14896
|
DBClusterId: 'DBClusterId',
|
|
14897
|
+
interfaceVersion: 'InterfaceVersion',
|
|
14827
14898
|
ruleNameList: 'RuleNameList',
|
|
14828
14899
|
};
|
|
14829
14900
|
}
|
|
@@ -14831,6 +14902,7 @@ export class DeleteMaskingRulesRequest extends $dara.Model {
|
|
|
14831
14902
|
static types(): { [key: string]: any } {
|
|
14832
14903
|
return {
|
|
14833
14904
|
DBClusterId: 'string',
|
|
14905
|
+
interfaceVersion: 'string',
|
|
14834
14906
|
ruleNameList: 'string',
|
|
14835
14907
|
};
|
|
14836
14908
|
}
|
|
@@ -15251,6 +15323,7 @@ export class DescribeAccountsRequest extends $dara.Model {
|
|
|
15251
15323
|
* pc-***************
|
|
15252
15324
|
*/
|
|
15253
15325
|
DBClusterId?: string;
|
|
15326
|
+
nodeType?: string;
|
|
15254
15327
|
ownerAccount?: string;
|
|
15255
15328
|
ownerId?: number;
|
|
15256
15329
|
/**
|
|
@@ -15281,6 +15354,7 @@ export class DescribeAccountsRequest extends $dara.Model {
|
|
|
15281
15354
|
return {
|
|
15282
15355
|
accountName: 'AccountName',
|
|
15283
15356
|
DBClusterId: 'DBClusterId',
|
|
15357
|
+
nodeType: 'NodeType',
|
|
15284
15358
|
ownerAccount: 'OwnerAccount',
|
|
15285
15359
|
ownerId: 'OwnerId',
|
|
15286
15360
|
pageNumber: 'PageNumber',
|
|
@@ -15294,6 +15368,7 @@ export class DescribeAccountsRequest extends $dara.Model {
|
|
|
15294
15368
|
return {
|
|
15295
15369
|
accountName: 'string',
|
|
15296
15370
|
DBClusterId: 'string',
|
|
15371
|
+
nodeType: 'string',
|
|
15297
15372
|
ownerAccount: 'string',
|
|
15298
15373
|
ownerId: 'number',
|
|
15299
15374
|
pageNumber: 'number',
|
|
@@ -17685,6 +17760,10 @@ export class DescribeDBClusterAttributeResponseBody extends $dara.Model {
|
|
|
17685
17760
|
* 5,242,880
|
|
17686
17761
|
*/
|
|
17687
17762
|
blktagUsed?: number;
|
|
17763
|
+
/**
|
|
17764
|
+
* @example
|
|
17765
|
+
* false
|
|
17766
|
+
*/
|
|
17688
17767
|
burstingEnabled?: string;
|
|
17689
17768
|
/**
|
|
17690
17769
|
* @remarks
|
|
@@ -17884,6 +17963,13 @@ export class DescribeDBClusterAttributeResponseBody extends $dara.Model {
|
|
|
17884
17963
|
* OFF
|
|
17885
17964
|
*/
|
|
17886
17965
|
imciAutoIndex?: string;
|
|
17966
|
+
/**
|
|
17967
|
+
* @remarks
|
|
17968
|
+
* Indicates whether failover with hot replica is enabled. Valid values:
|
|
17969
|
+
*
|
|
17970
|
+
* * `true`
|
|
17971
|
+
* * `false` (default)
|
|
17972
|
+
*/
|
|
17887
17973
|
imperceptibleSwitch?: string;
|
|
17888
17974
|
/**
|
|
17889
17975
|
* @remarks
|
|
@@ -24174,6 +24260,7 @@ export class DescribeMaskingRulesRequest extends $dara.Model {
|
|
|
24174
24260
|
* pc-*****************
|
|
24175
24261
|
*/
|
|
24176
24262
|
DBClusterId?: string;
|
|
24263
|
+
interfaceVersion?: string;
|
|
24177
24264
|
/**
|
|
24178
24265
|
* @remarks
|
|
24179
24266
|
* The name of the masking rule.
|
|
@@ -24185,6 +24272,7 @@ export class DescribeMaskingRulesRequest extends $dara.Model {
|
|
|
24185
24272
|
static names(): { [key: string]: string } {
|
|
24186
24273
|
return {
|
|
24187
24274
|
DBClusterId: 'DBClusterId',
|
|
24275
|
+
interfaceVersion: 'InterfaceVersion',
|
|
24188
24276
|
ruleNameList: 'RuleNameList',
|
|
24189
24277
|
};
|
|
24190
24278
|
}
|
|
@@ -24192,6 +24280,7 @@ export class DescribeMaskingRulesRequest extends $dara.Model {
|
|
|
24192
24280
|
static types(): { [key: string]: any } {
|
|
24193
24281
|
return {
|
|
24194
24282
|
DBClusterId: 'string',
|
|
24283
|
+
interfaceVersion: 'string',
|
|
24195
24284
|
ruleNameList: 'string',
|
|
24196
24285
|
};
|
|
24197
24286
|
}
|
|
@@ -30065,6 +30154,130 @@ export class ModifyDBClusterAndNodesParametersResponse extends $dara.Model {
|
|
|
30065
30154
|
}
|
|
30066
30155
|
}
|
|
30067
30156
|
|
|
30157
|
+
export class ModifyDBClusterArchRequest extends $dara.Model {
|
|
30158
|
+
/**
|
|
30159
|
+
* @example
|
|
30160
|
+
* pc-****************
|
|
30161
|
+
*/
|
|
30162
|
+
DBClusterId?: string;
|
|
30163
|
+
/**
|
|
30164
|
+
* @example
|
|
30165
|
+
* on
|
|
30166
|
+
*/
|
|
30167
|
+
hotStandbyCluster?: string;
|
|
30168
|
+
/**
|
|
30169
|
+
* @example
|
|
30170
|
+
* cn-beijing
|
|
30171
|
+
*/
|
|
30172
|
+
regionId?: string;
|
|
30173
|
+
/**
|
|
30174
|
+
* @example
|
|
30175
|
+
* cn-beijing-i
|
|
30176
|
+
*/
|
|
30177
|
+
standbyAZ?: string;
|
|
30178
|
+
static names(): { [key: string]: string } {
|
|
30179
|
+
return {
|
|
30180
|
+
DBClusterId: 'DBClusterId',
|
|
30181
|
+
hotStandbyCluster: 'HotStandbyCluster',
|
|
30182
|
+
regionId: 'RegionId',
|
|
30183
|
+
standbyAZ: 'StandbyAZ',
|
|
30184
|
+
};
|
|
30185
|
+
}
|
|
30186
|
+
|
|
30187
|
+
static types(): { [key: string]: any } {
|
|
30188
|
+
return {
|
|
30189
|
+
DBClusterId: 'string',
|
|
30190
|
+
hotStandbyCluster: 'string',
|
|
30191
|
+
regionId: 'string',
|
|
30192
|
+
standbyAZ: 'string',
|
|
30193
|
+
};
|
|
30194
|
+
}
|
|
30195
|
+
|
|
30196
|
+
validate() {
|
|
30197
|
+
super.validate();
|
|
30198
|
+
}
|
|
30199
|
+
|
|
30200
|
+
constructor(map?: { [key: string]: any }) {
|
|
30201
|
+
super(map);
|
|
30202
|
+
}
|
|
30203
|
+
}
|
|
30204
|
+
|
|
30205
|
+
export class ModifyDBClusterArchResponseBody extends $dara.Model {
|
|
30206
|
+
/**
|
|
30207
|
+
* @example
|
|
30208
|
+
* pc-**************
|
|
30209
|
+
*/
|
|
30210
|
+
DBClusterId?: string;
|
|
30211
|
+
/**
|
|
30212
|
+
* @example
|
|
30213
|
+
* 2148126708*****
|
|
30214
|
+
*/
|
|
30215
|
+
orderId?: string;
|
|
30216
|
+
/**
|
|
30217
|
+
* @example
|
|
30218
|
+
* 6A2EE5B4-CC9F-46E1-A747-E43BC9******
|
|
30219
|
+
*/
|
|
30220
|
+
requestId?: string;
|
|
30221
|
+
static names(): { [key: string]: string } {
|
|
30222
|
+
return {
|
|
30223
|
+
DBClusterId: 'DBClusterId',
|
|
30224
|
+
orderId: 'OrderId',
|
|
30225
|
+
requestId: 'RequestId',
|
|
30226
|
+
};
|
|
30227
|
+
}
|
|
30228
|
+
|
|
30229
|
+
static types(): { [key: string]: any } {
|
|
30230
|
+
return {
|
|
30231
|
+
DBClusterId: 'string',
|
|
30232
|
+
orderId: 'string',
|
|
30233
|
+
requestId: 'string',
|
|
30234
|
+
};
|
|
30235
|
+
}
|
|
30236
|
+
|
|
30237
|
+
validate() {
|
|
30238
|
+
super.validate();
|
|
30239
|
+
}
|
|
30240
|
+
|
|
30241
|
+
constructor(map?: { [key: string]: any }) {
|
|
30242
|
+
super(map);
|
|
30243
|
+
}
|
|
30244
|
+
}
|
|
30245
|
+
|
|
30246
|
+
export class ModifyDBClusterArchResponse extends $dara.Model {
|
|
30247
|
+
headers?: { [key: string]: string };
|
|
30248
|
+
statusCode?: number;
|
|
30249
|
+
body?: ModifyDBClusterArchResponseBody;
|
|
30250
|
+
static names(): { [key: string]: string } {
|
|
30251
|
+
return {
|
|
30252
|
+
headers: 'headers',
|
|
30253
|
+
statusCode: 'statusCode',
|
|
30254
|
+
body: 'body',
|
|
30255
|
+
};
|
|
30256
|
+
}
|
|
30257
|
+
|
|
30258
|
+
static types(): { [key: string]: any } {
|
|
30259
|
+
return {
|
|
30260
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
30261
|
+
statusCode: 'number',
|
|
30262
|
+
body: ModifyDBClusterArchResponseBody,
|
|
30263
|
+
};
|
|
30264
|
+
}
|
|
30265
|
+
|
|
30266
|
+
validate() {
|
|
30267
|
+
if(this.headers) {
|
|
30268
|
+
$dara.Model.validateMap(this.headers);
|
|
30269
|
+
}
|
|
30270
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
30271
|
+
(this.body as any).validate();
|
|
30272
|
+
}
|
|
30273
|
+
super.validate();
|
|
30274
|
+
}
|
|
30275
|
+
|
|
30276
|
+
constructor(map?: { [key: string]: any }) {
|
|
30277
|
+
super(map);
|
|
30278
|
+
}
|
|
30279
|
+
}
|
|
30280
|
+
|
|
30068
30281
|
export class ModifyDBClusterAuditLogCollectorRequest extends $dara.Model {
|
|
30069
30282
|
/**
|
|
30070
30283
|
* @remarks
|
|
@@ -34571,6 +34784,7 @@ export class ModifyMaskingRulesRequest extends $dara.Model {
|
|
|
34571
34784
|
* true
|
|
34572
34785
|
*/
|
|
34573
34786
|
enable?: string;
|
|
34787
|
+
interfaceVersion?: string;
|
|
34574
34788
|
/**
|
|
34575
34789
|
* @remarks
|
|
34576
34790
|
* The parameter that is used to specify the masking rule that you want to modify and the value in the JSON format. All parameter values are of the string type. Example: `{"auto": {"databases": ["db1"], "tables": ["tb1"], "columns": ["c1,c2"] }, "description": "This rule will be applied to the columns c1 and c2 in table t1", "enabled": true, "applies_to": ["user"]}`. Parameters in the function:
|
|
@@ -34627,6 +34841,7 @@ export class ModifyMaskingRulesRequest extends $dara.Model {
|
|
|
34627
34841
|
return {
|
|
34628
34842
|
DBClusterId: 'DBClusterId',
|
|
34629
34843
|
enable: 'Enable',
|
|
34844
|
+
interfaceVersion: 'InterfaceVersion',
|
|
34630
34845
|
ruleConfig: 'RuleConfig',
|
|
34631
34846
|
ruleName: 'RuleName',
|
|
34632
34847
|
ruleNameList: 'RuleNameList',
|
|
@@ -34638,6 +34853,7 @@ export class ModifyMaskingRulesRequest extends $dara.Model {
|
|
|
34638
34853
|
return {
|
|
34639
34854
|
DBClusterId: 'string',
|
|
34640
34855
|
enable: 'string',
|
|
34856
|
+
interfaceVersion: 'string',
|
|
34641
34857
|
ruleConfig: 'string',
|
|
34642
34858
|
ruleName: 'string',
|
|
34643
34859
|
ruleNameList: 'string',
|
|
@@ -37895,6 +38111,10 @@ export default class Client extends OpenApi {
|
|
|
37895
38111
|
query["DBName"] = request.DBName;
|
|
37896
38112
|
}
|
|
37897
38113
|
|
|
38114
|
+
if (!$dara.isNull(request.nodeType)) {
|
|
38115
|
+
query["NodeType"] = request.nodeType;
|
|
38116
|
+
}
|
|
38117
|
+
|
|
37898
38118
|
if (!$dara.isNull(request.ownerAccount)) {
|
|
37899
38119
|
query["OwnerAccount"] = request.ownerAccount;
|
|
37900
38120
|
}
|
|
@@ -40185,6 +40405,10 @@ export default class Client extends OpenApi {
|
|
|
40185
40405
|
query["DBClusterId"] = request.DBClusterId;
|
|
40186
40406
|
}
|
|
40187
40407
|
|
|
40408
|
+
if (!$dara.isNull(request.interfaceVersion)) {
|
|
40409
|
+
query["InterfaceVersion"] = request.interfaceVersion;
|
|
40410
|
+
}
|
|
40411
|
+
|
|
40188
40412
|
if (!$dara.isNull(request.ruleNameList)) {
|
|
40189
40413
|
query["RuleNameList"] = request.ruleNameList;
|
|
40190
40414
|
}
|
|
@@ -40362,6 +40586,10 @@ export default class Client extends OpenApi {
|
|
|
40362
40586
|
query["DBClusterId"] = request.DBClusterId;
|
|
40363
40587
|
}
|
|
40364
40588
|
|
|
40589
|
+
if (!$dara.isNull(request.nodeType)) {
|
|
40590
|
+
query["NodeType"] = request.nodeType;
|
|
40591
|
+
}
|
|
40592
|
+
|
|
40365
40593
|
if (!$dara.isNull(request.ownerAccount)) {
|
|
40366
40594
|
query["OwnerAccount"] = request.ownerAccount;
|
|
40367
40595
|
}
|
|
@@ -43558,6 +43786,10 @@ export default class Client extends OpenApi {
|
|
|
43558
43786
|
query["DBClusterId"] = request.DBClusterId;
|
|
43559
43787
|
}
|
|
43560
43788
|
|
|
43789
|
+
if (!$dara.isNull(request.interfaceVersion)) {
|
|
43790
|
+
query["InterfaceVersion"] = request.interfaceVersion;
|
|
43791
|
+
}
|
|
43792
|
+
|
|
43561
43793
|
if (!$dara.isNull(request.ruleNameList)) {
|
|
43562
43794
|
query["RuleNameList"] = request.ruleNameList;
|
|
43563
43795
|
}
|
|
@@ -46087,6 +46319,65 @@ export default class Client extends OpenApi {
|
|
|
46087
46319
|
return await this.modifyDBClusterAndNodesParametersWithOptions(request, runtime);
|
|
46088
46320
|
}
|
|
46089
46321
|
|
|
46322
|
+
/**
|
|
46323
|
+
* 变更standby模式
|
|
46324
|
+
*
|
|
46325
|
+
* @param request - ModifyDBClusterArchRequest
|
|
46326
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
46327
|
+
* @returns ModifyDBClusterArchResponse
|
|
46328
|
+
*/
|
|
46329
|
+
async modifyDBClusterArchWithOptions(request: ModifyDBClusterArchRequest, runtime: $dara.RuntimeOptions): Promise<ModifyDBClusterArchResponse> {
|
|
46330
|
+
request.validate();
|
|
46331
|
+
let query = { };
|
|
46332
|
+
if (!$dara.isNull(request.DBClusterId)) {
|
|
46333
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
46334
|
+
}
|
|
46335
|
+
|
|
46336
|
+
if (!$dara.isNull(request.hotStandbyCluster)) {
|
|
46337
|
+
query["HotStandbyCluster"] = request.hotStandbyCluster;
|
|
46338
|
+
}
|
|
46339
|
+
|
|
46340
|
+
if (!$dara.isNull(request.regionId)) {
|
|
46341
|
+
query["RegionId"] = request.regionId;
|
|
46342
|
+
}
|
|
46343
|
+
|
|
46344
|
+
if (!$dara.isNull(request.standbyAZ)) {
|
|
46345
|
+
query["StandbyAZ"] = request.standbyAZ;
|
|
46346
|
+
}
|
|
46347
|
+
|
|
46348
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
46349
|
+
query: OpenApiUtil.query(query),
|
|
46350
|
+
});
|
|
46351
|
+
let params = new $OpenApiUtil.Params({
|
|
46352
|
+
action: "ModifyDBClusterArch",
|
|
46353
|
+
version: "2017-08-01",
|
|
46354
|
+
protocol: "HTTPS",
|
|
46355
|
+
pathname: "/",
|
|
46356
|
+
method: "POST",
|
|
46357
|
+
authType: "AK",
|
|
46358
|
+
style: "RPC",
|
|
46359
|
+
reqBodyType: "formData",
|
|
46360
|
+
bodyType: "json",
|
|
46361
|
+
});
|
|
46362
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
46363
|
+
return $dara.cast<ModifyDBClusterArchResponse>(await this.callApi(params, req, runtime), new ModifyDBClusterArchResponse({}));
|
|
46364
|
+
} else {
|
|
46365
|
+
return $dara.cast<ModifyDBClusterArchResponse>(await this.execute(params, req, runtime), new ModifyDBClusterArchResponse({}));
|
|
46366
|
+
}
|
|
46367
|
+
|
|
46368
|
+
}
|
|
46369
|
+
|
|
46370
|
+
/**
|
|
46371
|
+
* 变更standby模式
|
|
46372
|
+
*
|
|
46373
|
+
* @param request - ModifyDBClusterArchRequest
|
|
46374
|
+
* @returns ModifyDBClusterArchResponse
|
|
46375
|
+
*/
|
|
46376
|
+
async modifyDBClusterArch(request: ModifyDBClusterArchRequest): Promise<ModifyDBClusterArchResponse> {
|
|
46377
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
46378
|
+
return await this.modifyDBClusterArchWithOptions(request, runtime);
|
|
46379
|
+
}
|
|
46380
|
+
|
|
46090
46381
|
/**
|
|
46091
46382
|
* Enables or disables SQL collector for a PolarDB cluster. The features related to SQL collector include Audit Logs and SQL Explorer.
|
|
46092
46383
|
*
|
|
@@ -48271,6 +48562,10 @@ export default class Client extends OpenApi {
|
|
|
48271
48562
|
query["Enable"] = request.enable;
|
|
48272
48563
|
}
|
|
48273
48564
|
|
|
48565
|
+
if (!$dara.isNull(request.interfaceVersion)) {
|
|
48566
|
+
query["InterfaceVersion"] = request.interfaceVersion;
|
|
48567
|
+
}
|
|
48568
|
+
|
|
48274
48569
|
if (!$dara.isNull(request.ruleConfig)) {
|
|
48275
48570
|
query["RuleConfig"] = request.ruleConfig;
|
|
48276
48571
|
}
|