@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/dts20200101",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -8465,6 +8465,129 @@ export class ModifyDtsJobDuLimitResponse extends $tea.Model {
8465
8465
  }
8466
8466
  }
8467
8467
 
8468
+ export class ModifyDtsJobEndpointRequest extends $tea.Model {
8469
+ aliyunUid?: string;
8470
+ database?: string;
8471
+ dryRun?: boolean;
8472
+ dtsInstanceId?: string;
8473
+ dtsJobId?: string;
8474
+ endpoint?: string;
8475
+ endpointInstanceId?: string;
8476
+ endpointInstanceType?: string;
8477
+ endpointIp?: string;
8478
+ endpointPort?: string;
8479
+ password?: string;
8480
+ regionId?: string;
8481
+ roleName?: string;
8482
+ shardPassword?: string;
8483
+ shardUsername?: string;
8484
+ synchronizationDirection?: string;
8485
+ username?: string;
8486
+ static names(): { [key: string]: string } {
8487
+ return {
8488
+ aliyunUid: 'AliyunUid',
8489
+ database: 'Database',
8490
+ dryRun: 'DryRun',
8491
+ dtsInstanceId: 'DtsInstanceId',
8492
+ dtsJobId: 'DtsJobId',
8493
+ endpoint: 'Endpoint',
8494
+ endpointInstanceId: 'EndpointInstanceId',
8495
+ endpointInstanceType: 'EndpointInstanceType',
8496
+ endpointIp: 'EndpointIp',
8497
+ endpointPort: 'EndpointPort',
8498
+ password: 'Password',
8499
+ regionId: 'RegionId',
8500
+ roleName: 'RoleName',
8501
+ shardPassword: 'ShardPassword',
8502
+ shardUsername: 'ShardUsername',
8503
+ synchronizationDirection: 'SynchronizationDirection',
8504
+ username: 'Username',
8505
+ };
8506
+ }
8507
+
8508
+ static types(): { [key: string]: any } {
8509
+ return {
8510
+ aliyunUid: 'string',
8511
+ database: 'string',
8512
+ dryRun: 'boolean',
8513
+ dtsInstanceId: 'string',
8514
+ dtsJobId: 'string',
8515
+ endpoint: 'string',
8516
+ endpointInstanceId: 'string',
8517
+ endpointInstanceType: 'string',
8518
+ endpointIp: 'string',
8519
+ endpointPort: 'string',
8520
+ password: 'string',
8521
+ regionId: 'string',
8522
+ roleName: 'string',
8523
+ shardPassword: 'string',
8524
+ shardUsername: 'string',
8525
+ synchronizationDirection: 'string',
8526
+ username: 'string',
8527
+ };
8528
+ }
8529
+
8530
+ constructor(map?: { [key: string]: any }) {
8531
+ super(map);
8532
+ }
8533
+ }
8534
+
8535
+ export class ModifyDtsJobEndpointResponseBody extends $tea.Model {
8536
+ errCode?: string;
8537
+ errMessage?: string;
8538
+ httpStatusCode?: string;
8539
+ requestId?: string;
8540
+ success?: boolean;
8541
+ static names(): { [key: string]: string } {
8542
+ return {
8543
+ errCode: 'ErrCode',
8544
+ errMessage: 'ErrMessage',
8545
+ httpStatusCode: 'HttpStatusCode',
8546
+ requestId: 'RequestId',
8547
+ success: 'Success',
8548
+ };
8549
+ }
8550
+
8551
+ static types(): { [key: string]: any } {
8552
+ return {
8553
+ errCode: 'string',
8554
+ errMessage: 'string',
8555
+ httpStatusCode: 'string',
8556
+ requestId: 'string',
8557
+ success: 'boolean',
8558
+ };
8559
+ }
8560
+
8561
+ constructor(map?: { [key: string]: any }) {
8562
+ super(map);
8563
+ }
8564
+ }
8565
+
8566
+ export class ModifyDtsJobEndpointResponse extends $tea.Model {
8567
+ headers: { [key: string]: string };
8568
+ statusCode: number;
8569
+ body: ModifyDtsJobEndpointResponseBody;
8570
+ static names(): { [key: string]: string } {
8571
+ return {
8572
+ headers: 'headers',
8573
+ statusCode: 'statusCode',
8574
+ body: 'body',
8575
+ };
8576
+ }
8577
+
8578
+ static types(): { [key: string]: any } {
8579
+ return {
8580
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
8581
+ statusCode: 'number',
8582
+ body: ModifyDtsJobEndpointResponseBody,
8583
+ };
8584
+ }
8585
+
8586
+ constructor(map?: { [key: string]: any }) {
8587
+ super(map);
8588
+ }
8589
+ }
8590
+
8468
8591
  export class ModifyDtsJobNameRequest extends $tea.Model {
8469
8592
  dtsJobId?: string;
8470
8593
  dtsJobName?: string;
@@ -25460,6 +25583,99 @@ export default class Client extends OpenApi {
25460
25583
  return await this.modifyDtsJobDuLimitWithOptions(request, runtime);
25461
25584
  }
25462
25585
 
25586
+ async modifyDtsJobEndpointWithOptions(request: ModifyDtsJobEndpointRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDtsJobEndpointResponse> {
25587
+ Util.validateModel(request);
25588
+ let query = { };
25589
+ if (!Util.isUnset(request.aliyunUid)) {
25590
+ query["AliyunUid"] = request.aliyunUid;
25591
+ }
25592
+
25593
+ if (!Util.isUnset(request.database)) {
25594
+ query["Database"] = request.database;
25595
+ }
25596
+
25597
+ if (!Util.isUnset(request.dryRun)) {
25598
+ query["DryRun"] = request.dryRun;
25599
+ }
25600
+
25601
+ if (!Util.isUnset(request.dtsInstanceId)) {
25602
+ query["DtsInstanceId"] = request.dtsInstanceId;
25603
+ }
25604
+
25605
+ if (!Util.isUnset(request.dtsJobId)) {
25606
+ query["DtsJobId"] = request.dtsJobId;
25607
+ }
25608
+
25609
+ if (!Util.isUnset(request.endpoint)) {
25610
+ query["Endpoint"] = request.endpoint;
25611
+ }
25612
+
25613
+ if (!Util.isUnset(request.endpointInstanceId)) {
25614
+ query["EndpointInstanceId"] = request.endpointInstanceId;
25615
+ }
25616
+
25617
+ if (!Util.isUnset(request.endpointInstanceType)) {
25618
+ query["EndpointInstanceType"] = request.endpointInstanceType;
25619
+ }
25620
+
25621
+ if (!Util.isUnset(request.endpointIp)) {
25622
+ query["EndpointIp"] = request.endpointIp;
25623
+ }
25624
+
25625
+ if (!Util.isUnset(request.endpointPort)) {
25626
+ query["EndpointPort"] = request.endpointPort;
25627
+ }
25628
+
25629
+ if (!Util.isUnset(request.password)) {
25630
+ query["Password"] = request.password;
25631
+ }
25632
+
25633
+ if (!Util.isUnset(request.regionId)) {
25634
+ query["RegionId"] = request.regionId;
25635
+ }
25636
+
25637
+ if (!Util.isUnset(request.roleName)) {
25638
+ query["RoleName"] = request.roleName;
25639
+ }
25640
+
25641
+ if (!Util.isUnset(request.shardPassword)) {
25642
+ query["ShardPassword"] = request.shardPassword;
25643
+ }
25644
+
25645
+ if (!Util.isUnset(request.shardUsername)) {
25646
+ query["ShardUsername"] = request.shardUsername;
25647
+ }
25648
+
25649
+ if (!Util.isUnset(request.synchronizationDirection)) {
25650
+ query["SynchronizationDirection"] = request.synchronizationDirection;
25651
+ }
25652
+
25653
+ if (!Util.isUnset(request.username)) {
25654
+ query["Username"] = request.username;
25655
+ }
25656
+
25657
+ let req = new $OpenApi.OpenApiRequest({
25658
+ query: OpenApiUtil.query(query),
25659
+ });
25660
+ let params = new $OpenApi.Params({
25661
+ action: "ModifyDtsJobEndpoint",
25662
+ version: "2020-01-01",
25663
+ protocol: "HTTPS",
25664
+ pathname: "/",
25665
+ method: "POST",
25666
+ authType: "AK",
25667
+ style: "RPC",
25668
+ reqBodyType: "formData",
25669
+ bodyType: "json",
25670
+ });
25671
+ return $tea.cast<ModifyDtsJobEndpointResponse>(await this.callApi(params, req, runtime), new ModifyDtsJobEndpointResponse({}));
25672
+ }
25673
+
25674
+ async modifyDtsJobEndpoint(request: ModifyDtsJobEndpointRequest): Promise<ModifyDtsJobEndpointResponse> {
25675
+ let runtime = new $Util.RuntimeOptions({ });
25676
+ return await this.modifyDtsJobEndpointWithOptions(request, runtime);
25677
+ }
25678
+
25463
25679
  async modifyDtsJobNameWithOptions(request: ModifyDtsJobNameRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDtsJobNameResponse> {
25464
25680
  Util.validateModel(request);
25465
25681
  let query = { };