@alicloud/polardb20170801 5.0.5 → 5.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 +50 -0
- package/dist/client.js +113 -4
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +136 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -4012,6 +4012,7 @@ export class DescribeDBClusterAttributeResponseBody extends $tea.Model {
|
|
|
4012
4012
|
storageUsed?: number;
|
|
4013
4013
|
strictConsistency?: string;
|
|
4014
4014
|
subCategory?: string;
|
|
4015
|
+
supportInstantSwitchWithImci?: string;
|
|
4015
4016
|
tags?: DescribeDBClusterAttributeResponseBodyTags[];
|
|
4016
4017
|
VPCId?: string;
|
|
4017
4018
|
vSwitchId?: string;
|
|
@@ -4069,6 +4070,7 @@ export class DescribeDBClusterAttributeResponseBody extends $tea.Model {
|
|
|
4069
4070
|
storageUsed: 'StorageUsed',
|
|
4070
4071
|
strictConsistency: 'StrictConsistency',
|
|
4071
4072
|
subCategory: 'SubCategory',
|
|
4073
|
+
supportInstantSwitchWithImci: 'SupportInstantSwitchWithImci',
|
|
4072
4074
|
tags: 'Tags',
|
|
4073
4075
|
VPCId: 'VPCId',
|
|
4074
4076
|
vSwitchId: 'VSwitchId',
|
|
@@ -4129,6 +4131,7 @@ export class DescribeDBClusterAttributeResponseBody extends $tea.Model {
|
|
|
4129
4131
|
storageUsed: 'number',
|
|
4130
4132
|
strictConsistency: 'string',
|
|
4131
4133
|
subCategory: 'string',
|
|
4134
|
+
supportInstantSwitchWithImci: 'string',
|
|
4132
4135
|
tags: { 'type': 'array', 'itemType': DescribeDBClusterAttributeResponseBodyTags },
|
|
4133
4136
|
VPCId: 'string',
|
|
4134
4137
|
vSwitchId: 'string',
|
|
@@ -12398,6 +12401,90 @@ export class ResetGlobalDatabaseNetworkResponse extends $tea.Model {
|
|
|
12398
12401
|
}
|
|
12399
12402
|
}
|
|
12400
12403
|
|
|
12404
|
+
export class RestartDBLinkRequest extends $tea.Model {
|
|
12405
|
+
DBClusterId?: string;
|
|
12406
|
+
ownerAccount?: string;
|
|
12407
|
+
ownerId?: number;
|
|
12408
|
+
resourceOwnerAccount?: string;
|
|
12409
|
+
resourceOwnerId?: number;
|
|
12410
|
+
securityToken?: string;
|
|
12411
|
+
static names(): { [key: string]: string } {
|
|
12412
|
+
return {
|
|
12413
|
+
DBClusterId: 'DBClusterId',
|
|
12414
|
+
ownerAccount: 'OwnerAccount',
|
|
12415
|
+
ownerId: 'OwnerId',
|
|
12416
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
12417
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
12418
|
+
securityToken: 'SecurityToken',
|
|
12419
|
+
};
|
|
12420
|
+
}
|
|
12421
|
+
|
|
12422
|
+
static types(): { [key: string]: any } {
|
|
12423
|
+
return {
|
|
12424
|
+
DBClusterId: 'string',
|
|
12425
|
+
ownerAccount: 'string',
|
|
12426
|
+
ownerId: 'number',
|
|
12427
|
+
resourceOwnerAccount: 'string',
|
|
12428
|
+
resourceOwnerId: 'number',
|
|
12429
|
+
securityToken: 'string',
|
|
12430
|
+
};
|
|
12431
|
+
}
|
|
12432
|
+
|
|
12433
|
+
constructor(map?: { [key: string]: any }) {
|
|
12434
|
+
super(map);
|
|
12435
|
+
}
|
|
12436
|
+
}
|
|
12437
|
+
|
|
12438
|
+
export class RestartDBLinkResponseBody extends $tea.Model {
|
|
12439
|
+
DBClusterId?: string;
|
|
12440
|
+
requestId?: string;
|
|
12441
|
+
taskId?: string;
|
|
12442
|
+
static names(): { [key: string]: string } {
|
|
12443
|
+
return {
|
|
12444
|
+
DBClusterId: 'DBClusterId',
|
|
12445
|
+
requestId: 'RequestId',
|
|
12446
|
+
taskId: 'TaskId',
|
|
12447
|
+
};
|
|
12448
|
+
}
|
|
12449
|
+
|
|
12450
|
+
static types(): { [key: string]: any } {
|
|
12451
|
+
return {
|
|
12452
|
+
DBClusterId: 'string',
|
|
12453
|
+
requestId: 'string',
|
|
12454
|
+
taskId: 'string',
|
|
12455
|
+
};
|
|
12456
|
+
}
|
|
12457
|
+
|
|
12458
|
+
constructor(map?: { [key: string]: any }) {
|
|
12459
|
+
super(map);
|
|
12460
|
+
}
|
|
12461
|
+
}
|
|
12462
|
+
|
|
12463
|
+
export class RestartDBLinkResponse extends $tea.Model {
|
|
12464
|
+
headers?: { [key: string]: string };
|
|
12465
|
+
statusCode?: number;
|
|
12466
|
+
body?: RestartDBLinkResponseBody;
|
|
12467
|
+
static names(): { [key: string]: string } {
|
|
12468
|
+
return {
|
|
12469
|
+
headers: 'headers',
|
|
12470
|
+
statusCode: 'statusCode',
|
|
12471
|
+
body: 'body',
|
|
12472
|
+
};
|
|
12473
|
+
}
|
|
12474
|
+
|
|
12475
|
+
static types(): { [key: string]: any } {
|
|
12476
|
+
return {
|
|
12477
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
12478
|
+
statusCode: 'number',
|
|
12479
|
+
body: RestartDBLinkResponseBody,
|
|
12480
|
+
};
|
|
12481
|
+
}
|
|
12482
|
+
|
|
12483
|
+
constructor(map?: { [key: string]: any }) {
|
|
12484
|
+
super(map);
|
|
12485
|
+
}
|
|
12486
|
+
}
|
|
12487
|
+
|
|
12401
12488
|
export class RestartDBNodeRequest extends $tea.Model {
|
|
12402
12489
|
DBNodeId?: string;
|
|
12403
12490
|
ownerAccount?: string;
|
|
@@ -25024,6 +25111,55 @@ export default class Client extends OpenApi {
|
|
|
25024
25111
|
return await this.resetGlobalDatabaseNetworkWithOptions(request, runtime);
|
|
25025
25112
|
}
|
|
25026
25113
|
|
|
25114
|
+
async restartDBLinkWithOptions(request: RestartDBLinkRequest, runtime: $Util.RuntimeOptions): Promise<RestartDBLinkResponse> {
|
|
25115
|
+
Util.validateModel(request);
|
|
25116
|
+
let query = { };
|
|
25117
|
+
if (!Util.isUnset(request.DBClusterId)) {
|
|
25118
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
25119
|
+
}
|
|
25120
|
+
|
|
25121
|
+
if (!Util.isUnset(request.ownerAccount)) {
|
|
25122
|
+
query["OwnerAccount"] = request.ownerAccount;
|
|
25123
|
+
}
|
|
25124
|
+
|
|
25125
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
25126
|
+
query["OwnerId"] = request.ownerId;
|
|
25127
|
+
}
|
|
25128
|
+
|
|
25129
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
25130
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
25131
|
+
}
|
|
25132
|
+
|
|
25133
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
25134
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
25135
|
+
}
|
|
25136
|
+
|
|
25137
|
+
if (!Util.isUnset(request.securityToken)) {
|
|
25138
|
+
query["SecurityToken"] = request.securityToken;
|
|
25139
|
+
}
|
|
25140
|
+
|
|
25141
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
25142
|
+
query: OpenApiUtil.query(query),
|
|
25143
|
+
});
|
|
25144
|
+
let params = new $OpenApi.Params({
|
|
25145
|
+
action: "RestartDBLink",
|
|
25146
|
+
version: "2017-08-01",
|
|
25147
|
+
protocol: "HTTPS",
|
|
25148
|
+
pathname: "/",
|
|
25149
|
+
method: "POST",
|
|
25150
|
+
authType: "AK",
|
|
25151
|
+
style: "RPC",
|
|
25152
|
+
reqBodyType: "formData",
|
|
25153
|
+
bodyType: "json",
|
|
25154
|
+
});
|
|
25155
|
+
return $tea.cast<RestartDBLinkResponse>(await this.callApi(params, req, runtime), new RestartDBLinkResponse({}));
|
|
25156
|
+
}
|
|
25157
|
+
|
|
25158
|
+
async restartDBLink(request: RestartDBLinkRequest): Promise<RestartDBLinkResponse> {
|
|
25159
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
25160
|
+
return await this.restartDBLinkWithOptions(request, runtime);
|
|
25161
|
+
}
|
|
25162
|
+
|
|
25027
25163
|
async restartDBNodeWithOptions(request: RestartDBNodeRequest, runtime: $Util.RuntimeOptions): Promise<RestartDBNodeResponse> {
|
|
25028
25164
|
Util.validateModel(request);
|
|
25029
25165
|
let query = { };
|