@alicloud/polardb20170801 4.0.1 → 4.1.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 +55 -0
- package/dist/client.js +125 -0
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +159 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/polardb20170801",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alicloud/tea-typescript": "^1.7.1",
|
|
23
23
|
"@alicloud/tea-util": "^1.4.7",
|
|
24
|
-
"@alicloud/openapi-client": "^0.4.
|
|
24
|
+
"@alicloud/openapi-client": "^0.4.7",
|
|
25
25
|
"@alicloud/openapi-util": "^0.3.2",
|
|
26
26
|
"@alicloud/endpoint-util": "^0.0.1"
|
|
27
27
|
},
|
package/src/client.ts
CHANGED
|
@@ -3967,6 +3967,7 @@ export class DescribeDBClusterAttributeResponseBody extends $tea.Model {
|
|
|
3967
3967
|
blktagUsed?: number;
|
|
3968
3968
|
category?: string;
|
|
3969
3969
|
compressStorageMode?: string;
|
|
3970
|
+
compressStorageUsed?: number;
|
|
3970
3971
|
creationTime?: string;
|
|
3971
3972
|
DBClusterDescription?: string;
|
|
3972
3973
|
DBClusterId?: string;
|
|
@@ -4022,6 +4023,7 @@ export class DescribeDBClusterAttributeResponseBody extends $tea.Model {
|
|
|
4022
4023
|
blktagUsed: 'BlktagUsed',
|
|
4023
4024
|
category: 'Category',
|
|
4024
4025
|
compressStorageMode: 'CompressStorageMode',
|
|
4026
|
+
compressStorageUsed: 'CompressStorageUsed',
|
|
4025
4027
|
creationTime: 'CreationTime',
|
|
4026
4028
|
DBClusterDescription: 'DBClusterDescription',
|
|
4027
4029
|
DBClusterId: 'DBClusterId',
|
|
@@ -4080,6 +4082,7 @@ export class DescribeDBClusterAttributeResponseBody extends $tea.Model {
|
|
|
4080
4082
|
blktagUsed: 'number',
|
|
4081
4083
|
category: 'string',
|
|
4082
4084
|
compressStorageMode: 'string',
|
|
4085
|
+
compressStorageUsed: 'number',
|
|
4083
4086
|
creationTime: 'string',
|
|
4084
4087
|
DBClusterDescription: 'string',
|
|
4085
4088
|
DBClusterId: 'string',
|
|
@@ -5290,6 +5293,7 @@ export class DescribeDBClustersRequest extends $tea.Model {
|
|
|
5290
5293
|
DBNodeIds?: string;
|
|
5291
5294
|
DBType?: string;
|
|
5292
5295
|
DBVersion?: string;
|
|
5296
|
+
describeType?: string;
|
|
5293
5297
|
expired?: boolean;
|
|
5294
5298
|
ownerAccount?: string;
|
|
5295
5299
|
ownerId?: number;
|
|
@@ -5312,6 +5316,7 @@ export class DescribeDBClustersRequest extends $tea.Model {
|
|
|
5312
5316
|
DBNodeIds: 'DBNodeIds',
|
|
5313
5317
|
DBType: 'DBType',
|
|
5314
5318
|
DBVersion: 'DBVersion',
|
|
5319
|
+
describeType: 'DescribeType',
|
|
5315
5320
|
expired: 'Expired',
|
|
5316
5321
|
ownerAccount: 'OwnerAccount',
|
|
5317
5322
|
ownerId: 'OwnerId',
|
|
@@ -5337,6 +5342,7 @@ export class DescribeDBClustersRequest extends $tea.Model {
|
|
|
5337
5342
|
DBNodeIds: 'string',
|
|
5338
5343
|
DBType: 'string',
|
|
5339
5344
|
DBVersion: 'string',
|
|
5345
|
+
describeType: 'string',
|
|
5340
5346
|
expired: 'boolean',
|
|
5341
5347
|
ownerAccount: 'string',
|
|
5342
5348
|
ownerId: 'number',
|
|
@@ -5966,6 +5972,87 @@ export class DescribeDBProxyPerformanceResponse extends $tea.Model {
|
|
|
5966
5972
|
}
|
|
5967
5973
|
}
|
|
5968
5974
|
|
|
5975
|
+
export class DescribeDasConfigRequest extends $tea.Model {
|
|
5976
|
+
DBClusterId?: string;
|
|
5977
|
+
ownerAccount?: string;
|
|
5978
|
+
ownerId?: number;
|
|
5979
|
+
resourceOwnerAccount?: string;
|
|
5980
|
+
resourceOwnerId?: number;
|
|
5981
|
+
static names(): { [key: string]: string } {
|
|
5982
|
+
return {
|
|
5983
|
+
DBClusterId: 'DBClusterId',
|
|
5984
|
+
ownerAccount: 'OwnerAccount',
|
|
5985
|
+
ownerId: 'OwnerId',
|
|
5986
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
5987
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
5988
|
+
};
|
|
5989
|
+
}
|
|
5990
|
+
|
|
5991
|
+
static types(): { [key: string]: any } {
|
|
5992
|
+
return {
|
|
5993
|
+
DBClusterId: 'string',
|
|
5994
|
+
ownerAccount: 'string',
|
|
5995
|
+
ownerId: 'number',
|
|
5996
|
+
resourceOwnerAccount: 'string',
|
|
5997
|
+
resourceOwnerId: 'number',
|
|
5998
|
+
};
|
|
5999
|
+
}
|
|
6000
|
+
|
|
6001
|
+
constructor(map?: { [key: string]: any }) {
|
|
6002
|
+
super(map);
|
|
6003
|
+
}
|
|
6004
|
+
}
|
|
6005
|
+
|
|
6006
|
+
export class DescribeDasConfigResponseBody extends $tea.Model {
|
|
6007
|
+
requestId?: string;
|
|
6008
|
+
storageAutoScale?: string;
|
|
6009
|
+
storageUpperBound?: number;
|
|
6010
|
+
static names(): { [key: string]: string } {
|
|
6011
|
+
return {
|
|
6012
|
+
requestId: 'RequestId',
|
|
6013
|
+
storageAutoScale: 'StorageAutoScale',
|
|
6014
|
+
storageUpperBound: 'StorageUpperBound',
|
|
6015
|
+
};
|
|
6016
|
+
}
|
|
6017
|
+
|
|
6018
|
+
static types(): { [key: string]: any } {
|
|
6019
|
+
return {
|
|
6020
|
+
requestId: 'string',
|
|
6021
|
+
storageAutoScale: 'string',
|
|
6022
|
+
storageUpperBound: 'number',
|
|
6023
|
+
};
|
|
6024
|
+
}
|
|
6025
|
+
|
|
6026
|
+
constructor(map?: { [key: string]: any }) {
|
|
6027
|
+
super(map);
|
|
6028
|
+
}
|
|
6029
|
+
}
|
|
6030
|
+
|
|
6031
|
+
export class DescribeDasConfigResponse extends $tea.Model {
|
|
6032
|
+
headers: { [key: string]: string };
|
|
6033
|
+
statusCode: number;
|
|
6034
|
+
body: DescribeDasConfigResponseBody;
|
|
6035
|
+
static names(): { [key: string]: string } {
|
|
6036
|
+
return {
|
|
6037
|
+
headers: 'headers',
|
|
6038
|
+
statusCode: 'statusCode',
|
|
6039
|
+
body: 'body',
|
|
6040
|
+
};
|
|
6041
|
+
}
|
|
6042
|
+
|
|
6043
|
+
static types(): { [key: string]: any } {
|
|
6044
|
+
return {
|
|
6045
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6046
|
+
statusCode: 'number',
|
|
6047
|
+
body: DescribeDasConfigResponseBody,
|
|
6048
|
+
};
|
|
6049
|
+
}
|
|
6050
|
+
|
|
6051
|
+
constructor(map?: { [key: string]: any }) {
|
|
6052
|
+
super(map);
|
|
6053
|
+
}
|
|
6054
|
+
}
|
|
6055
|
+
|
|
5969
6056
|
export class DescribeDatabasesRequest extends $tea.Model {
|
|
5970
6057
|
DBClusterId?: string;
|
|
5971
6058
|
DBName?: string;
|
|
@@ -8496,6 +8583,7 @@ export class FailoverDBClusterRequest extends $tea.Model {
|
|
|
8496
8583
|
ownerId?: number;
|
|
8497
8584
|
resourceOwnerAccount?: string;
|
|
8498
8585
|
resourceOwnerId?: number;
|
|
8586
|
+
rollBackForDisaster?: boolean;
|
|
8499
8587
|
targetDBNodeId?: string;
|
|
8500
8588
|
static names(): { [key: string]: string } {
|
|
8501
8589
|
return {
|
|
@@ -8505,6 +8593,7 @@ export class FailoverDBClusterRequest extends $tea.Model {
|
|
|
8505
8593
|
ownerId: 'OwnerId',
|
|
8506
8594
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
8507
8595
|
resourceOwnerId: 'ResourceOwnerId',
|
|
8596
|
+
rollBackForDisaster: 'RollBackForDisaster',
|
|
8508
8597
|
targetDBNodeId: 'TargetDBNodeId',
|
|
8509
8598
|
};
|
|
8510
8599
|
}
|
|
@@ -8517,6 +8606,7 @@ export class FailoverDBClusterRequest extends $tea.Model {
|
|
|
8517
8606
|
ownerId: 'number',
|
|
8518
8607
|
resourceOwnerAccount: 'string',
|
|
8519
8608
|
resourceOwnerId: 'number',
|
|
8609
|
+
rollBackForDisaster: 'boolean',
|
|
8520
8610
|
targetDBNodeId: 'string',
|
|
8521
8611
|
};
|
|
8522
8612
|
}
|
|
@@ -9189,6 +9279,7 @@ export class ModifyBackupPolicyResponse extends $tea.Model {
|
|
|
9189
9279
|
}
|
|
9190
9280
|
|
|
9191
9281
|
export class ModifyDBClusterRequest extends $tea.Model {
|
|
9282
|
+
compressStorage?: string;
|
|
9192
9283
|
DBClusterId?: string;
|
|
9193
9284
|
dataSyncMode?: string;
|
|
9194
9285
|
faultSimulateMode?: string;
|
|
@@ -9201,6 +9292,7 @@ export class ModifyDBClusterRequest extends $tea.Model {
|
|
|
9201
9292
|
storageUpperBound?: number;
|
|
9202
9293
|
static names(): { [key: string]: string } {
|
|
9203
9294
|
return {
|
|
9295
|
+
compressStorage: 'CompressStorage',
|
|
9204
9296
|
DBClusterId: 'DBClusterId',
|
|
9205
9297
|
dataSyncMode: 'DataSyncMode',
|
|
9206
9298
|
faultSimulateMode: 'FaultSimulateMode',
|
|
@@ -9216,6 +9308,7 @@ export class ModifyDBClusterRequest extends $tea.Model {
|
|
|
9216
9308
|
|
|
9217
9309
|
static types(): { [key: string]: any } {
|
|
9218
9310
|
return {
|
|
9311
|
+
compressStorage: 'string',
|
|
9219
9312
|
DBClusterId: 'string',
|
|
9220
9313
|
dataSyncMode: 'string',
|
|
9221
9314
|
faultSimulateMode: 'string',
|
|
@@ -13791,6 +13884,7 @@ export class DescribeDBClusterAttributeResponseBodyDBNodes extends $tea.Model {
|
|
|
13791
13884
|
sccMode?: string;
|
|
13792
13885
|
serverWeight?: string;
|
|
13793
13886
|
serverlessType?: string;
|
|
13887
|
+
subCluster?: string;
|
|
13794
13888
|
zoneId?: string;
|
|
13795
13889
|
static names(): { [key: string]: string } {
|
|
13796
13890
|
return {
|
|
@@ -13811,6 +13905,7 @@ export class DescribeDBClusterAttributeResponseBodyDBNodes extends $tea.Model {
|
|
|
13811
13905
|
sccMode: 'SccMode',
|
|
13812
13906
|
serverWeight: 'ServerWeight',
|
|
13813
13907
|
serverlessType: 'ServerlessType',
|
|
13908
|
+
subCluster: 'SubCluster',
|
|
13814
13909
|
zoneId: 'ZoneId',
|
|
13815
13910
|
};
|
|
13816
13911
|
}
|
|
@@ -13834,6 +13929,7 @@ export class DescribeDBClusterAttributeResponseBodyDBNodes extends $tea.Model {
|
|
|
13834
13929
|
sccMode: 'string',
|
|
13835
13930
|
serverWeight: 'string',
|
|
13836
13931
|
serverlessType: 'string',
|
|
13932
|
+
subCluster: 'string',
|
|
13837
13933
|
zoneId: 'string',
|
|
13838
13934
|
};
|
|
13839
13935
|
}
|
|
@@ -14061,11 +14157,13 @@ export class DescribeDBClusterMigrationResponseBodyDBClusterEndpointList extends
|
|
|
14061
14157
|
addressItems?: DescribeDBClusterMigrationResponseBodyDBClusterEndpointListAddressItems[];
|
|
14062
14158
|
DBEndpointId?: string;
|
|
14063
14159
|
endpointType?: string;
|
|
14160
|
+
readWriteMode?: string;
|
|
14064
14161
|
static names(): { [key: string]: string } {
|
|
14065
14162
|
return {
|
|
14066
14163
|
addressItems: 'AddressItems',
|
|
14067
14164
|
DBEndpointId: 'DBEndpointId',
|
|
14068
14165
|
endpointType: 'EndpointType',
|
|
14166
|
+
readWriteMode: 'ReadWriteMode',
|
|
14069
14167
|
};
|
|
14070
14168
|
}
|
|
14071
14169
|
|
|
@@ -14074,6 +14172,7 @@ export class DescribeDBClusterMigrationResponseBodyDBClusterEndpointList extends
|
|
|
14074
14172
|
addressItems: { 'type': 'array', 'itemType': DescribeDBClusterMigrationResponseBodyDBClusterEndpointListAddressItems },
|
|
14075
14173
|
DBEndpointId: 'string',
|
|
14076
14174
|
endpointType: 'string',
|
|
14175
|
+
readWriteMode: 'string',
|
|
14077
14176
|
};
|
|
14078
14177
|
}
|
|
14079
14178
|
|
|
@@ -14121,11 +14220,13 @@ export class DescribeDBClusterMigrationResponseBodyRdsEndpointListAddressItems e
|
|
|
14121
14220
|
|
|
14122
14221
|
export class DescribeDBClusterMigrationResponseBodyRdsEndpointList extends $tea.Model {
|
|
14123
14222
|
addressItems?: DescribeDBClusterMigrationResponseBodyRdsEndpointListAddressItems[];
|
|
14223
|
+
custinsType?: string;
|
|
14124
14224
|
DBEndpointId?: string;
|
|
14125
14225
|
endpointType?: string;
|
|
14126
14226
|
static names(): { [key: string]: string } {
|
|
14127
14227
|
return {
|
|
14128
14228
|
addressItems: 'AddressItems',
|
|
14229
|
+
custinsType: 'CustinsType',
|
|
14129
14230
|
DBEndpointId: 'DBEndpointId',
|
|
14130
14231
|
endpointType: 'EndpointType',
|
|
14131
14232
|
};
|
|
@@ -14134,6 +14235,7 @@ export class DescribeDBClusterMigrationResponseBodyRdsEndpointList extends $tea.
|
|
|
14134
14235
|
static types(): { [key: string]: any } {
|
|
14135
14236
|
return {
|
|
14136
14237
|
addressItems: { 'type': 'array', 'itemType': DescribeDBClusterMigrationResponseBodyRdsEndpointListAddressItems },
|
|
14238
|
+
custinsType: 'string',
|
|
14137
14239
|
DBEndpointId: 'string',
|
|
14138
14240
|
endpointType: 'string',
|
|
14139
14241
|
};
|
|
@@ -20026,6 +20128,10 @@ export default class Client extends OpenApi {
|
|
|
20026
20128
|
query["DBVersion"] = request.DBVersion;
|
|
20027
20129
|
}
|
|
20028
20130
|
|
|
20131
|
+
if (!Util.isUnset(request.describeType)) {
|
|
20132
|
+
query["DescribeType"] = request.describeType;
|
|
20133
|
+
}
|
|
20134
|
+
|
|
20029
20135
|
if (!Util.isUnset(request.expired)) {
|
|
20030
20136
|
query["Expired"] = request.expired;
|
|
20031
20137
|
}
|
|
@@ -20467,6 +20573,51 @@ export default class Client extends OpenApi {
|
|
|
20467
20573
|
return await this.describeDBProxyPerformanceWithOptions(request, runtime);
|
|
20468
20574
|
}
|
|
20469
20575
|
|
|
20576
|
+
async describeDasConfigWithOptions(request: DescribeDasConfigRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDasConfigResponse> {
|
|
20577
|
+
Util.validateModel(request);
|
|
20578
|
+
let query = { };
|
|
20579
|
+
if (!Util.isUnset(request.DBClusterId)) {
|
|
20580
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
20581
|
+
}
|
|
20582
|
+
|
|
20583
|
+
if (!Util.isUnset(request.ownerAccount)) {
|
|
20584
|
+
query["OwnerAccount"] = request.ownerAccount;
|
|
20585
|
+
}
|
|
20586
|
+
|
|
20587
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
20588
|
+
query["OwnerId"] = request.ownerId;
|
|
20589
|
+
}
|
|
20590
|
+
|
|
20591
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
20592
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
20593
|
+
}
|
|
20594
|
+
|
|
20595
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
20596
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
20597
|
+
}
|
|
20598
|
+
|
|
20599
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
20600
|
+
query: OpenApiUtil.query(query),
|
|
20601
|
+
});
|
|
20602
|
+
let params = new $OpenApi.Params({
|
|
20603
|
+
action: "DescribeDasConfig",
|
|
20604
|
+
version: "2017-08-01",
|
|
20605
|
+
protocol: "HTTPS",
|
|
20606
|
+
pathname: "/",
|
|
20607
|
+
method: "POST",
|
|
20608
|
+
authType: "AK",
|
|
20609
|
+
style: "RPC",
|
|
20610
|
+
reqBodyType: "formData",
|
|
20611
|
+
bodyType: "json",
|
|
20612
|
+
});
|
|
20613
|
+
return $tea.cast<DescribeDasConfigResponse>(await this.callApi(params, req, runtime), new DescribeDasConfigResponse({}));
|
|
20614
|
+
}
|
|
20615
|
+
|
|
20616
|
+
async describeDasConfig(request: DescribeDasConfigRequest): Promise<DescribeDasConfigResponse> {
|
|
20617
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
20618
|
+
return await this.describeDasConfigWithOptions(request, runtime);
|
|
20619
|
+
}
|
|
20620
|
+
|
|
20470
20621
|
async describeDatabasesWithOptions(request: DescribeDatabasesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDatabasesResponse> {
|
|
20471
20622
|
Util.validateModel(request);
|
|
20472
20623
|
let query = { };
|
|
@@ -22134,6 +22285,10 @@ export default class Client extends OpenApi {
|
|
|
22134
22285
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
22135
22286
|
}
|
|
22136
22287
|
|
|
22288
|
+
if (!Util.isUnset(request.rollBackForDisaster)) {
|
|
22289
|
+
query["RollBackForDisaster"] = request.rollBackForDisaster;
|
|
22290
|
+
}
|
|
22291
|
+
|
|
22137
22292
|
if (!Util.isUnset(request.targetDBNodeId)) {
|
|
22138
22293
|
query["TargetDBNodeId"] = request.targetDBNodeId;
|
|
22139
22294
|
}
|
|
@@ -22628,6 +22783,10 @@ export default class Client extends OpenApi {
|
|
|
22628
22783
|
async modifyDBClusterWithOptions(request: ModifyDBClusterRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDBClusterResponse> {
|
|
22629
22784
|
Util.validateModel(request);
|
|
22630
22785
|
let query = { };
|
|
22786
|
+
if (!Util.isUnset(request.compressStorage)) {
|
|
22787
|
+
query["CompressStorage"] = request.compressStorage;
|
|
22788
|
+
}
|
|
22789
|
+
|
|
22631
22790
|
if (!Util.isUnset(request.DBClusterId)) {
|
|
22632
22791
|
query["DBClusterId"] = request.DBClusterId;
|
|
22633
22792
|
}
|