@alicloud/dts20200101 1.2.1 → 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.2.1",
3
+ "version": "1.4.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -25,7 +25,7 @@
25
25
  "@alicloud/openplatform20191219": "2.0.0",
26
26
  "@alicloud/oss-util": "0.0.1",
27
27
  "@alicloud/tea-fileform": "^1.0.0",
28
- "@alicloud/openapi-client": "^0.4.4",
28
+ "@alicloud/openapi-client": "^0.4.7",
29
29
  "@alicloud/openapi-util": "^0.3.2",
30
30
  "@alicloud/endpoint-util": "^0.0.1"
31
31
  },
package/src/client.ts CHANGED
@@ -2012,6 +2012,87 @@ export class CreateMigrationJobResponse extends $tea.Model {
2012
2012
  }
2013
2013
  }
2014
2014
 
2015
+ export class CreateReverseDtsJobRequest extends $tea.Model {
2016
+ dtsJobId?: string;
2017
+ static names(): { [key: string]: string } {
2018
+ return {
2019
+ dtsJobId: 'DtsJobId',
2020
+ };
2021
+ }
2022
+
2023
+ static types(): { [key: string]: any } {
2024
+ return {
2025
+ dtsJobId: 'string',
2026
+ };
2027
+ }
2028
+
2029
+ constructor(map?: { [key: string]: any }) {
2030
+ super(map);
2031
+ }
2032
+ }
2033
+
2034
+ export class CreateReverseDtsJobResponseBody extends $tea.Model {
2035
+ dtsInstanceId?: string;
2036
+ dtsJobId?: string;
2037
+ errCode?: string;
2038
+ errMessage?: string;
2039
+ httpStatusCode?: string;
2040
+ requestId?: string;
2041
+ success?: string;
2042
+ static names(): { [key: string]: string } {
2043
+ return {
2044
+ dtsInstanceId: 'DtsInstanceId',
2045
+ dtsJobId: 'DtsJobId',
2046
+ errCode: 'ErrCode',
2047
+ errMessage: 'ErrMessage',
2048
+ httpStatusCode: 'HttpStatusCode',
2049
+ requestId: 'RequestId',
2050
+ success: 'Success',
2051
+ };
2052
+ }
2053
+
2054
+ static types(): { [key: string]: any } {
2055
+ return {
2056
+ dtsInstanceId: 'string',
2057
+ dtsJobId: 'string',
2058
+ errCode: 'string',
2059
+ errMessage: 'string',
2060
+ httpStatusCode: 'string',
2061
+ requestId: 'string',
2062
+ success: 'string',
2063
+ };
2064
+ }
2065
+
2066
+ constructor(map?: { [key: string]: any }) {
2067
+ super(map);
2068
+ }
2069
+ }
2070
+
2071
+ export class CreateReverseDtsJobResponse extends $tea.Model {
2072
+ headers: { [key: string]: string };
2073
+ statusCode: number;
2074
+ body: CreateReverseDtsJobResponseBody;
2075
+ static names(): { [key: string]: string } {
2076
+ return {
2077
+ headers: 'headers',
2078
+ statusCode: 'statusCode',
2079
+ body: 'body',
2080
+ };
2081
+ }
2082
+
2083
+ static types(): { [key: string]: any } {
2084
+ return {
2085
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2086
+ statusCode: 'number',
2087
+ body: CreateReverseDtsJobResponseBody,
2088
+ };
2089
+ }
2090
+
2091
+ constructor(map?: { [key: string]: any }) {
2092
+ super(map);
2093
+ }
2094
+ }
2095
+
2015
2096
  export class CreateSubscriptionInstanceRequest extends $tea.Model {
2016
2097
  sourceEndpoint?: CreateSubscriptionInstanceRequestSourceEndpoint;
2017
2098
  accountId?: string;
@@ -7905,6 +7986,7 @@ export class ModifyDtsJobRequest extends $tea.Model {
7905
7986
  dataSynchronization?: boolean;
7906
7987
  dbList?: { [key: string]: any };
7907
7988
  dtsInstanceId?: string;
7989
+ dtsJobId?: string;
7908
7990
  etlOperatorColumnReference?: string;
7909
7991
  fileOssUrl?: string;
7910
7992
  filterTableName?: string;
@@ -7920,6 +8002,7 @@ export class ModifyDtsJobRequest extends $tea.Model {
7920
8002
  dataSynchronization: 'DataSynchronization',
7921
8003
  dbList: 'DbList',
7922
8004
  dtsInstanceId: 'DtsInstanceId',
8005
+ dtsJobId: 'DtsJobId',
7923
8006
  etlOperatorColumnReference: 'EtlOperatorColumnReference',
7924
8007
  fileOssUrl: 'FileOssUrl',
7925
8008
  filterTableName: 'FilterTableName',
@@ -7938,6 +8021,7 @@ export class ModifyDtsJobRequest extends $tea.Model {
7938
8021
  dataSynchronization: 'boolean',
7939
8022
  dbList: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
7940
8023
  dtsInstanceId: 'string',
8024
+ dtsJobId: 'string',
7941
8025
  etlOperatorColumnReference: 'string',
7942
8026
  fileOssUrl: 'string',
7943
8027
  filterTableName: 'string',
@@ -7960,6 +8044,7 @@ export class ModifyDtsJobAdvanceRequest extends $tea.Model {
7960
8044
  dataSynchronization?: boolean;
7961
8045
  dbList?: { [key: string]: any };
7962
8046
  dtsInstanceId?: string;
8047
+ dtsJobId?: string;
7963
8048
  etlOperatorColumnReference?: string;
7964
8049
  fileOssUrlObject?: Readable;
7965
8050
  filterTableName?: string;
@@ -7975,6 +8060,7 @@ export class ModifyDtsJobAdvanceRequest extends $tea.Model {
7975
8060
  dataSynchronization: 'DataSynchronization',
7976
8061
  dbList: 'DbList',
7977
8062
  dtsInstanceId: 'DtsInstanceId',
8063
+ dtsJobId: 'DtsJobId',
7978
8064
  etlOperatorColumnReference: 'EtlOperatorColumnReference',
7979
8065
  fileOssUrlObject: 'FileOssUrl',
7980
8066
  filterTableName: 'FilterTableName',
@@ -7993,6 +8079,7 @@ export class ModifyDtsJobAdvanceRequest extends $tea.Model {
7993
8079
  dataSynchronization: 'boolean',
7994
8080
  dbList: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
7995
8081
  dtsInstanceId: 'string',
8082
+ dtsJobId: 'string',
7996
8083
  etlOperatorColumnReference: 'string',
7997
8084
  fileOssUrlObject: 'Readable',
7998
8085
  filterTableName: 'string',
@@ -8015,6 +8102,7 @@ export class ModifyDtsJobShrinkRequest extends $tea.Model {
8015
8102
  dataSynchronization?: boolean;
8016
8103
  dbListShrink?: string;
8017
8104
  dtsInstanceId?: string;
8105
+ dtsJobId?: string;
8018
8106
  etlOperatorColumnReference?: string;
8019
8107
  fileOssUrl?: string;
8020
8108
  filterTableName?: string;
@@ -8030,6 +8118,7 @@ export class ModifyDtsJobShrinkRequest extends $tea.Model {
8030
8118
  dataSynchronization: 'DataSynchronization',
8031
8119
  dbListShrink: 'DbList',
8032
8120
  dtsInstanceId: 'DtsInstanceId',
8121
+ dtsJobId: 'DtsJobId',
8033
8122
  etlOperatorColumnReference: 'EtlOperatorColumnReference',
8034
8123
  fileOssUrl: 'FileOssUrl',
8035
8124
  filterTableName: 'FilterTableName',
@@ -8048,6 +8137,7 @@ export class ModifyDtsJobShrinkRequest extends $tea.Model {
8048
8137
  dataSynchronization: 'boolean',
8049
8138
  dbListShrink: 'string',
8050
8139
  dtsInstanceId: 'string',
8140
+ dtsJobId: 'string',
8051
8141
  etlOperatorColumnReference: 'string',
8052
8142
  fileOssUrl: 'string',
8053
8143
  filterTableName: 'string',
@@ -8375,6 +8465,129 @@ export class ModifyDtsJobDuLimitResponse extends $tea.Model {
8375
8465
  }
8376
8466
  }
8377
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
+
8378
8591
  export class ModifyDtsJobNameRequest extends $tea.Model {
8379
8592
  dtsJobId?: string;
8380
8593
  dtsJobName?: string;
@@ -9719,6 +9932,81 @@ export class StartMigrationJobResponse extends $tea.Model {
9719
9932
  }
9720
9933
  }
9721
9934
 
9935
+ export class StartReverseWriterRequest extends $tea.Model {
9936
+ checkPoint?: string;
9937
+ dtsJobId?: string;
9938
+ static names(): { [key: string]: string } {
9939
+ return {
9940
+ checkPoint: 'CheckPoint',
9941
+ dtsJobId: 'DtsJobId',
9942
+ };
9943
+ }
9944
+
9945
+ static types(): { [key: string]: any } {
9946
+ return {
9947
+ checkPoint: 'string',
9948
+ dtsJobId: 'string',
9949
+ };
9950
+ }
9951
+
9952
+ constructor(map?: { [key: string]: any }) {
9953
+ super(map);
9954
+ }
9955
+ }
9956
+
9957
+ export class StartReverseWriterResponseBody extends $tea.Model {
9958
+ errCode?: string;
9959
+ errMessage?: string;
9960
+ requestId?: string;
9961
+ success?: string;
9962
+ static names(): { [key: string]: string } {
9963
+ return {
9964
+ errCode: 'ErrCode',
9965
+ errMessage: 'ErrMessage',
9966
+ requestId: 'RequestId',
9967
+ success: 'Success',
9968
+ };
9969
+ }
9970
+
9971
+ static types(): { [key: string]: any } {
9972
+ return {
9973
+ errCode: 'string',
9974
+ errMessage: 'string',
9975
+ requestId: 'string',
9976
+ success: 'string',
9977
+ };
9978
+ }
9979
+
9980
+ constructor(map?: { [key: string]: any }) {
9981
+ super(map);
9982
+ }
9983
+ }
9984
+
9985
+ export class StartReverseWriterResponse extends $tea.Model {
9986
+ headers: { [key: string]: string };
9987
+ statusCode: number;
9988
+ body: StartReverseWriterResponseBody;
9989
+ static names(): { [key: string]: string } {
9990
+ return {
9991
+ headers: 'headers',
9992
+ statusCode: 'statusCode',
9993
+ body: 'body',
9994
+ };
9995
+ }
9996
+
9997
+ static types(): { [key: string]: any } {
9998
+ return {
9999
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
10000
+ statusCode: 'number',
10001
+ body: StartReverseWriterResponseBody,
10002
+ };
10003
+ }
10004
+
10005
+ constructor(map?: { [key: string]: any }) {
10006
+ super(map);
10007
+ }
10008
+ }
10009
+
9722
10010
  export class StartSubscriptionInstanceRequest extends $tea.Model {
9723
10011
  accountId?: string;
9724
10012
  ownerId?: string;
@@ -15428,14 +15716,74 @@ export class DescribeDtsJobsResponseBodyDtsJobListReverseJobErrorDetails extends
15428
15716
  }
15429
15717
  }
15430
15718
 
15719
+ export class DescribeDtsJobsResponseBodyDtsJobListReverseJobFullDataCheckStatus extends $tea.Model {
15720
+ errorMessage?: string;
15721
+ percent?: string;
15722
+ progress?: string;
15723
+ status?: string;
15724
+ static names(): { [key: string]: string } {
15725
+ return {
15726
+ errorMessage: 'ErrorMessage',
15727
+ percent: 'Percent',
15728
+ progress: 'Progress',
15729
+ status: 'Status',
15730
+ };
15731
+ }
15732
+
15733
+ static types(): { [key: string]: any } {
15734
+ return {
15735
+ errorMessage: 'string',
15736
+ percent: 'string',
15737
+ progress: 'string',
15738
+ status: 'string',
15739
+ };
15740
+ }
15741
+
15742
+ constructor(map?: { [key: string]: any }) {
15743
+ super(map);
15744
+ }
15745
+ }
15746
+
15747
+ export class DescribeDtsJobsResponseBodyDtsJobListReverseJobIncDataCheckStatus extends $tea.Model {
15748
+ errorMessage?: string;
15749
+ percent?: string;
15750
+ progress?: string;
15751
+ status?: string;
15752
+ static names(): { [key: string]: string } {
15753
+ return {
15754
+ errorMessage: 'ErrorMessage',
15755
+ percent: 'Percent',
15756
+ progress: 'Progress',
15757
+ status: 'Status',
15758
+ };
15759
+ }
15760
+
15761
+ static types(): { [key: string]: any } {
15762
+ return {
15763
+ errorMessage: 'string',
15764
+ percent: 'string',
15765
+ progress: 'string',
15766
+ status: 'string',
15767
+ };
15768
+ }
15769
+
15770
+ constructor(map?: { [key: string]: any }) {
15771
+ super(map);
15772
+ }
15773
+ }
15774
+
15431
15775
  export class DescribeDtsJobsResponseBodyDtsJobListReverseJobMigrationMode extends $tea.Model {
15432
15776
  dataInitialization?: boolean;
15433
15777
  dataSynchronization?: boolean;
15778
+ fullDataCheck?: boolean;
15779
+ incDataCheck?: boolean;
15434
15780
  structureInitialization?: boolean;
15435
15781
  static names(): { [key: string]: string } {
15436
15782
  return {
15437
15783
  dataInitialization: 'DataInitialization',
15438
15784
  dataSynchronization: 'DataSynchronization',
15785
+ fullDataCheck: 'FullDataCheck',
15786
+ incDataCheck: 'IncDataCheck',
15439
15787
  structureInitialization: 'StructureInitialization',
15440
15788
  };
15441
15789
  }
@@ -15444,6 +15792,8 @@ export class DescribeDtsJobsResponseBodyDtsJobListReverseJobMigrationMode extend
15444
15792
  return {
15445
15793
  dataInitialization: 'boolean',
15446
15794
  dataSynchronization: 'boolean',
15795
+ fullDataCheck: 'boolean',
15796
+ incDataCheck: 'boolean',
15447
15797
  structureInitialization: 'boolean',
15448
15798
  };
15449
15799
  }
@@ -15628,6 +15978,8 @@ export class DescribeDtsJobsResponseBodyDtsJobListReverseJob extends $tea.Model
15628
15978
  errorMessage?: string;
15629
15979
  etlSafeCheckpoint?: string;
15630
15980
  expireTime?: string;
15981
+ fullDataCheckStatus?: DescribeDtsJobsResponseBodyDtsJobListReverseJobFullDataCheckStatus;
15982
+ incDataCheckStatus?: DescribeDtsJobsResponseBodyDtsJobListReverseJobIncDataCheckStatus;
15631
15983
  memUsage?: string;
15632
15984
  migrationMode?: DescribeDtsJobsResponseBodyDtsJobListReverseJobMigrationMode;
15633
15985
  payType?: string;
@@ -15658,6 +16010,8 @@ export class DescribeDtsJobsResponseBodyDtsJobListReverseJob extends $tea.Model
15658
16010
  errorMessage: 'ErrorMessage',
15659
16011
  etlSafeCheckpoint: 'EtlSafeCheckpoint',
15660
16012
  expireTime: 'ExpireTime',
16013
+ fullDataCheckStatus: 'FullDataCheckStatus',
16014
+ incDataCheckStatus: 'IncDataCheckStatus',
15661
16015
  memUsage: 'MemUsage',
15662
16016
  migrationMode: 'MigrationMode',
15663
16017
  payType: 'PayType',
@@ -15691,6 +16045,8 @@ export class DescribeDtsJobsResponseBodyDtsJobListReverseJob extends $tea.Model
15691
16045
  errorMessage: 'string',
15692
16046
  etlSafeCheckpoint: 'string',
15693
16047
  expireTime: 'string',
16048
+ fullDataCheckStatus: DescribeDtsJobsResponseBodyDtsJobListReverseJobFullDataCheckStatus,
16049
+ incDataCheckStatus: DescribeDtsJobsResponseBodyDtsJobListReverseJobIncDataCheckStatus,
15694
16050
  memUsage: 'string',
15695
16051
  migrationMode: DescribeDtsJobsResponseBodyDtsJobListReverseJobMigrationMode,
15696
16052
  payType: 'string',
@@ -21852,6 +22208,35 @@ export default class Client extends OpenApi {
21852
22208
  return await this.createMigrationJobWithOptions(request, runtime);
21853
22209
  }
21854
22210
 
22211
+ async createReverseDtsJobWithOptions(request: CreateReverseDtsJobRequest, runtime: $Util.RuntimeOptions): Promise<CreateReverseDtsJobResponse> {
22212
+ Util.validateModel(request);
22213
+ let query = { };
22214
+ if (!Util.isUnset(request.dtsJobId)) {
22215
+ query["DtsJobId"] = request.dtsJobId;
22216
+ }
22217
+
22218
+ let req = new $OpenApi.OpenApiRequest({
22219
+ query: OpenApiUtil.query(query),
22220
+ });
22221
+ let params = new $OpenApi.Params({
22222
+ action: "CreateReverseDtsJob",
22223
+ version: "2020-01-01",
22224
+ protocol: "HTTPS",
22225
+ pathname: "/",
22226
+ method: "POST",
22227
+ authType: "AK",
22228
+ style: "RPC",
22229
+ reqBodyType: "formData",
22230
+ bodyType: "json",
22231
+ });
22232
+ return $tea.cast<CreateReverseDtsJobResponse>(await this.callApi(params, req, runtime), new CreateReverseDtsJobResponse({}));
22233
+ }
22234
+
22235
+ async createReverseDtsJob(request: CreateReverseDtsJobRequest): Promise<CreateReverseDtsJobResponse> {
22236
+ let runtime = new $Util.RuntimeOptions({ });
22237
+ return await this.createReverseDtsJobWithOptions(request, runtime);
22238
+ }
22239
+
21855
22240
  /**
21856
22241
  * Before you call this operation, make sure that you fully understand the billing methods and [pricing](https://www.alibabacloud.com/zh/product/data-transmission-service/pricing) of Data Transmission Service (DTS).
21857
22242
  *
@@ -24922,6 +25307,10 @@ export default class Client extends OpenApi {
24922
25307
  query["DtsInstanceId"] = request.dtsInstanceId;
24923
25308
  }
24924
25309
 
25310
+ if (!Util.isUnset(request.dtsJobId)) {
25311
+ query["DtsJobId"] = request.dtsJobId;
25312
+ }
25313
+
24925
25314
  if (!Util.isUnset(request.fileOssUrl)) {
24926
25315
  query["FileOssUrl"] = request.fileOssUrl;
24927
25316
  }
@@ -25194,6 +25583,99 @@ export default class Client extends OpenApi {
25194
25583
  return await this.modifyDtsJobDuLimitWithOptions(request, runtime);
25195
25584
  }
25196
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
+
25197
25679
  async modifyDtsJobNameWithOptions(request: ModifyDtsJobNameRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDtsJobNameResponse> {
25198
25680
  Util.validateModel(request);
25199
25681
  let query = { };
@@ -25919,6 +26401,39 @@ export default class Client extends OpenApi {
25919
26401
  return await this.startMigrationJobWithOptions(request, runtime);
25920
26402
  }
25921
26403
 
26404
+ async startReverseWriterWithOptions(request: StartReverseWriterRequest, runtime: $Util.RuntimeOptions): Promise<StartReverseWriterResponse> {
26405
+ Util.validateModel(request);
26406
+ let query = { };
26407
+ if (!Util.isUnset(request.checkPoint)) {
26408
+ query["CheckPoint"] = request.checkPoint;
26409
+ }
26410
+
26411
+ if (!Util.isUnset(request.dtsJobId)) {
26412
+ query["DtsJobId"] = request.dtsJobId;
26413
+ }
26414
+
26415
+ let req = new $OpenApi.OpenApiRequest({
26416
+ query: OpenApiUtil.query(query),
26417
+ });
26418
+ let params = new $OpenApi.Params({
26419
+ action: "StartReverseWriter",
26420
+ version: "2020-01-01",
26421
+ protocol: "HTTPS",
26422
+ pathname: "/",
26423
+ method: "POST",
26424
+ authType: "AK",
26425
+ style: "RPC",
26426
+ reqBodyType: "formData",
26427
+ bodyType: "json",
26428
+ });
26429
+ return $tea.cast<StartReverseWriterResponse>(await this.callApi(params, req, runtime), new StartReverseWriterResponse({}));
26430
+ }
26431
+
26432
+ async startReverseWriter(request: StartReverseWriterRequest): Promise<StartReverseWriterResponse> {
26433
+ let runtime = new $Util.RuntimeOptions({ });
26434
+ return await this.startReverseWriterWithOptions(request, runtime);
26435
+ }
26436
+
25922
26437
  /**
25923
26438
  * When you call this operation, the change tracking task must be in the NotStarted or Failed state.
25924
26439
  *