@alicloud/dts20200101 1.3.0 → 1.4.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 +62 -0
- package/dist/client.js +166 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +216 -0
package/dist/client.d.ts
CHANGED
|
@@ -4302,6 +4302,66 @@ export declare class ModifyDtsJobDuLimitResponse extends $tea.Model {
|
|
|
4302
4302
|
[key: string]: any;
|
|
4303
4303
|
});
|
|
4304
4304
|
}
|
|
4305
|
+
export declare class ModifyDtsJobEndpointRequest extends $tea.Model {
|
|
4306
|
+
aliyunUid?: string;
|
|
4307
|
+
database?: string;
|
|
4308
|
+
dryRun?: boolean;
|
|
4309
|
+
dtsInstanceId?: string;
|
|
4310
|
+
dtsJobId?: string;
|
|
4311
|
+
endpoint?: string;
|
|
4312
|
+
endpointInstanceId?: string;
|
|
4313
|
+
endpointInstanceType?: string;
|
|
4314
|
+
endpointIp?: string;
|
|
4315
|
+
endpointPort?: string;
|
|
4316
|
+
password?: string;
|
|
4317
|
+
regionId?: string;
|
|
4318
|
+
roleName?: string;
|
|
4319
|
+
shardPassword?: string;
|
|
4320
|
+
shardUsername?: string;
|
|
4321
|
+
synchronizationDirection?: string;
|
|
4322
|
+
username?: string;
|
|
4323
|
+
static names(): {
|
|
4324
|
+
[key: string]: string;
|
|
4325
|
+
};
|
|
4326
|
+
static types(): {
|
|
4327
|
+
[key: string]: any;
|
|
4328
|
+
};
|
|
4329
|
+
constructor(map?: {
|
|
4330
|
+
[key: string]: any;
|
|
4331
|
+
});
|
|
4332
|
+
}
|
|
4333
|
+
export declare class ModifyDtsJobEndpointResponseBody extends $tea.Model {
|
|
4334
|
+
errCode?: string;
|
|
4335
|
+
errMessage?: string;
|
|
4336
|
+
httpStatusCode?: string;
|
|
4337
|
+
requestId?: string;
|
|
4338
|
+
success?: boolean;
|
|
4339
|
+
static names(): {
|
|
4340
|
+
[key: string]: string;
|
|
4341
|
+
};
|
|
4342
|
+
static types(): {
|
|
4343
|
+
[key: string]: any;
|
|
4344
|
+
};
|
|
4345
|
+
constructor(map?: {
|
|
4346
|
+
[key: string]: any;
|
|
4347
|
+
});
|
|
4348
|
+
}
|
|
4349
|
+
export declare class ModifyDtsJobEndpointResponse extends $tea.Model {
|
|
4350
|
+
headers: {
|
|
4351
|
+
[key: string]: string;
|
|
4352
|
+
};
|
|
4353
|
+
statusCode: number;
|
|
4354
|
+
body: ModifyDtsJobEndpointResponseBody;
|
|
4355
|
+
static names(): {
|
|
4356
|
+
[key: string]: string;
|
|
4357
|
+
};
|
|
4358
|
+
static types(): {
|
|
4359
|
+
[key: string]: any;
|
|
4360
|
+
};
|
|
4361
|
+
constructor(map?: {
|
|
4362
|
+
[key: string]: any;
|
|
4363
|
+
});
|
|
4364
|
+
}
|
|
4305
4365
|
export declare class ModifyDtsJobNameRequest extends $tea.Model {
|
|
4306
4366
|
dtsJobId?: string;
|
|
4307
4367
|
dtsJobName?: string;
|
|
@@ -10946,6 +11006,8 @@ export default class Client extends OpenApi {
|
|
|
10946
11006
|
* @return ModifyDtsJobDuLimitResponse
|
|
10947
11007
|
*/
|
|
10948
11008
|
modifyDtsJobDuLimit(request: ModifyDtsJobDuLimitRequest): Promise<ModifyDtsJobDuLimitResponse>;
|
|
11009
|
+
modifyDtsJobEndpointWithOptions(request: ModifyDtsJobEndpointRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDtsJobEndpointResponse>;
|
|
11010
|
+
modifyDtsJobEndpoint(request: ModifyDtsJobEndpointRequest): Promise<ModifyDtsJobEndpointResponse>;
|
|
10949
11011
|
modifyDtsJobNameWithOptions(request: ModifyDtsJobNameRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDtsJobNameResponse>;
|
|
10950
11012
|
modifyDtsJobName(request: ModifyDtsJobNameRequest): Promise<ModifyDtsJobNameResponse>;
|
|
10951
11013
|
modifyDtsJobPasswordWithOptions(request: ModifyDtsJobPasswordRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDtsJobPasswordResponse>;
|
package/dist/client.js
CHANGED
|
@@ -6431,6 +6431,98 @@ class ModifyDtsJobDuLimitResponse extends $tea.Model {
|
|
|
6431
6431
|
}
|
|
6432
6432
|
}
|
|
6433
6433
|
exports.ModifyDtsJobDuLimitResponse = ModifyDtsJobDuLimitResponse;
|
|
6434
|
+
class ModifyDtsJobEndpointRequest extends $tea.Model {
|
|
6435
|
+
constructor(map) {
|
|
6436
|
+
super(map);
|
|
6437
|
+
}
|
|
6438
|
+
static names() {
|
|
6439
|
+
return {
|
|
6440
|
+
aliyunUid: 'AliyunUid',
|
|
6441
|
+
database: 'Database',
|
|
6442
|
+
dryRun: 'DryRun',
|
|
6443
|
+
dtsInstanceId: 'DtsInstanceId',
|
|
6444
|
+
dtsJobId: 'DtsJobId',
|
|
6445
|
+
endpoint: 'Endpoint',
|
|
6446
|
+
endpointInstanceId: 'EndpointInstanceId',
|
|
6447
|
+
endpointInstanceType: 'EndpointInstanceType',
|
|
6448
|
+
endpointIp: 'EndpointIp',
|
|
6449
|
+
endpointPort: 'EndpointPort',
|
|
6450
|
+
password: 'Password',
|
|
6451
|
+
regionId: 'RegionId',
|
|
6452
|
+
roleName: 'RoleName',
|
|
6453
|
+
shardPassword: 'ShardPassword',
|
|
6454
|
+
shardUsername: 'ShardUsername',
|
|
6455
|
+
synchronizationDirection: 'SynchronizationDirection',
|
|
6456
|
+
username: 'Username',
|
|
6457
|
+
};
|
|
6458
|
+
}
|
|
6459
|
+
static types() {
|
|
6460
|
+
return {
|
|
6461
|
+
aliyunUid: 'string',
|
|
6462
|
+
database: 'string',
|
|
6463
|
+
dryRun: 'boolean',
|
|
6464
|
+
dtsInstanceId: 'string',
|
|
6465
|
+
dtsJobId: 'string',
|
|
6466
|
+
endpoint: 'string',
|
|
6467
|
+
endpointInstanceId: 'string',
|
|
6468
|
+
endpointInstanceType: 'string',
|
|
6469
|
+
endpointIp: 'string',
|
|
6470
|
+
endpointPort: 'string',
|
|
6471
|
+
password: 'string',
|
|
6472
|
+
regionId: 'string',
|
|
6473
|
+
roleName: 'string',
|
|
6474
|
+
shardPassword: 'string',
|
|
6475
|
+
shardUsername: 'string',
|
|
6476
|
+
synchronizationDirection: 'string',
|
|
6477
|
+
username: 'string',
|
|
6478
|
+
};
|
|
6479
|
+
}
|
|
6480
|
+
}
|
|
6481
|
+
exports.ModifyDtsJobEndpointRequest = ModifyDtsJobEndpointRequest;
|
|
6482
|
+
class ModifyDtsJobEndpointResponseBody extends $tea.Model {
|
|
6483
|
+
constructor(map) {
|
|
6484
|
+
super(map);
|
|
6485
|
+
}
|
|
6486
|
+
static names() {
|
|
6487
|
+
return {
|
|
6488
|
+
errCode: 'ErrCode',
|
|
6489
|
+
errMessage: 'ErrMessage',
|
|
6490
|
+
httpStatusCode: 'HttpStatusCode',
|
|
6491
|
+
requestId: 'RequestId',
|
|
6492
|
+
success: 'Success',
|
|
6493
|
+
};
|
|
6494
|
+
}
|
|
6495
|
+
static types() {
|
|
6496
|
+
return {
|
|
6497
|
+
errCode: 'string',
|
|
6498
|
+
errMessage: 'string',
|
|
6499
|
+
httpStatusCode: 'string',
|
|
6500
|
+
requestId: 'string',
|
|
6501
|
+
success: 'boolean',
|
|
6502
|
+
};
|
|
6503
|
+
}
|
|
6504
|
+
}
|
|
6505
|
+
exports.ModifyDtsJobEndpointResponseBody = ModifyDtsJobEndpointResponseBody;
|
|
6506
|
+
class ModifyDtsJobEndpointResponse extends $tea.Model {
|
|
6507
|
+
constructor(map) {
|
|
6508
|
+
super(map);
|
|
6509
|
+
}
|
|
6510
|
+
static names() {
|
|
6511
|
+
return {
|
|
6512
|
+
headers: 'headers',
|
|
6513
|
+
statusCode: 'statusCode',
|
|
6514
|
+
body: 'body',
|
|
6515
|
+
};
|
|
6516
|
+
}
|
|
6517
|
+
static types() {
|
|
6518
|
+
return {
|
|
6519
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6520
|
+
statusCode: 'number',
|
|
6521
|
+
body: ModifyDtsJobEndpointResponseBody,
|
|
6522
|
+
};
|
|
6523
|
+
}
|
|
6524
|
+
}
|
|
6525
|
+
exports.ModifyDtsJobEndpointResponse = ModifyDtsJobEndpointResponse;
|
|
6434
6526
|
class ModifyDtsJobNameRequest extends $tea.Model {
|
|
6435
6527
|
constructor(map) {
|
|
6436
6528
|
super(map);
|
|
@@ -19827,6 +19919,80 @@ class Client extends openapi_client_1.default {
|
|
|
19827
19919
|
let runtime = new $Util.RuntimeOptions({});
|
|
19828
19920
|
return await this.modifyDtsJobDuLimitWithOptions(request, runtime);
|
|
19829
19921
|
}
|
|
19922
|
+
async modifyDtsJobEndpointWithOptions(request, runtime) {
|
|
19923
|
+
tea_util_1.default.validateModel(request);
|
|
19924
|
+
let query = {};
|
|
19925
|
+
if (!tea_util_1.default.isUnset(request.aliyunUid)) {
|
|
19926
|
+
query["AliyunUid"] = request.aliyunUid;
|
|
19927
|
+
}
|
|
19928
|
+
if (!tea_util_1.default.isUnset(request.database)) {
|
|
19929
|
+
query["Database"] = request.database;
|
|
19930
|
+
}
|
|
19931
|
+
if (!tea_util_1.default.isUnset(request.dryRun)) {
|
|
19932
|
+
query["DryRun"] = request.dryRun;
|
|
19933
|
+
}
|
|
19934
|
+
if (!tea_util_1.default.isUnset(request.dtsInstanceId)) {
|
|
19935
|
+
query["DtsInstanceId"] = request.dtsInstanceId;
|
|
19936
|
+
}
|
|
19937
|
+
if (!tea_util_1.default.isUnset(request.dtsJobId)) {
|
|
19938
|
+
query["DtsJobId"] = request.dtsJobId;
|
|
19939
|
+
}
|
|
19940
|
+
if (!tea_util_1.default.isUnset(request.endpoint)) {
|
|
19941
|
+
query["Endpoint"] = request.endpoint;
|
|
19942
|
+
}
|
|
19943
|
+
if (!tea_util_1.default.isUnset(request.endpointInstanceId)) {
|
|
19944
|
+
query["EndpointInstanceId"] = request.endpointInstanceId;
|
|
19945
|
+
}
|
|
19946
|
+
if (!tea_util_1.default.isUnset(request.endpointInstanceType)) {
|
|
19947
|
+
query["EndpointInstanceType"] = request.endpointInstanceType;
|
|
19948
|
+
}
|
|
19949
|
+
if (!tea_util_1.default.isUnset(request.endpointIp)) {
|
|
19950
|
+
query["EndpointIp"] = request.endpointIp;
|
|
19951
|
+
}
|
|
19952
|
+
if (!tea_util_1.default.isUnset(request.endpointPort)) {
|
|
19953
|
+
query["EndpointPort"] = request.endpointPort;
|
|
19954
|
+
}
|
|
19955
|
+
if (!tea_util_1.default.isUnset(request.password)) {
|
|
19956
|
+
query["Password"] = request.password;
|
|
19957
|
+
}
|
|
19958
|
+
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
19959
|
+
query["RegionId"] = request.regionId;
|
|
19960
|
+
}
|
|
19961
|
+
if (!tea_util_1.default.isUnset(request.roleName)) {
|
|
19962
|
+
query["RoleName"] = request.roleName;
|
|
19963
|
+
}
|
|
19964
|
+
if (!tea_util_1.default.isUnset(request.shardPassword)) {
|
|
19965
|
+
query["ShardPassword"] = request.shardPassword;
|
|
19966
|
+
}
|
|
19967
|
+
if (!tea_util_1.default.isUnset(request.shardUsername)) {
|
|
19968
|
+
query["ShardUsername"] = request.shardUsername;
|
|
19969
|
+
}
|
|
19970
|
+
if (!tea_util_1.default.isUnset(request.synchronizationDirection)) {
|
|
19971
|
+
query["SynchronizationDirection"] = request.synchronizationDirection;
|
|
19972
|
+
}
|
|
19973
|
+
if (!tea_util_1.default.isUnset(request.username)) {
|
|
19974
|
+
query["Username"] = request.username;
|
|
19975
|
+
}
|
|
19976
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
19977
|
+
query: openapi_util_1.default.query(query),
|
|
19978
|
+
});
|
|
19979
|
+
let params = new $OpenApi.Params({
|
|
19980
|
+
action: "ModifyDtsJobEndpoint",
|
|
19981
|
+
version: "2020-01-01",
|
|
19982
|
+
protocol: "HTTPS",
|
|
19983
|
+
pathname: "/",
|
|
19984
|
+
method: "POST",
|
|
19985
|
+
authType: "AK",
|
|
19986
|
+
style: "RPC",
|
|
19987
|
+
reqBodyType: "formData",
|
|
19988
|
+
bodyType: "json",
|
|
19989
|
+
});
|
|
19990
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyDtsJobEndpointResponse({}));
|
|
19991
|
+
}
|
|
19992
|
+
async modifyDtsJobEndpoint(request) {
|
|
19993
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
19994
|
+
return await this.modifyDtsJobEndpointWithOptions(request, runtime);
|
|
19995
|
+
}
|
|
19830
19996
|
async modifyDtsJobNameWithOptions(request, runtime) {
|
|
19831
19997
|
tea_util_1.default.validateModel(request);
|
|
19832
19998
|
let query = {};
|