@alicloud/polardb20170801 5.0.6 → 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 +49 -0
- package/dist/client.js +111 -4
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +133 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -12401,6 +12401,90 @@ export class ResetGlobalDatabaseNetworkResponse extends $tea.Model {
|
|
|
12401
12401
|
}
|
|
12402
12402
|
}
|
|
12403
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
|
+
|
|
12404
12488
|
export class RestartDBNodeRequest extends $tea.Model {
|
|
12405
12489
|
DBNodeId?: string;
|
|
12406
12490
|
ownerAccount?: string;
|
|
@@ -25027,6 +25111,55 @@ export default class Client extends OpenApi {
|
|
|
25027
25111
|
return await this.resetGlobalDatabaseNetworkWithOptions(request, runtime);
|
|
25028
25112
|
}
|
|
25029
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
|
+
|
|
25030
25163
|
async restartDBNodeWithOptions(request: RestartDBNodeRequest, runtime: $Util.RuntimeOptions): Promise<RestartDBNodeResponse> {
|
|
25031
25164
|
Util.validateModel(request);
|
|
25032
25165
|
let query = { };
|