@alicloud/dts20200101 1.2.1 → 1.3.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.3.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',
@@ -9719,6 +9809,81 @@ export class StartMigrationJobResponse extends $tea.Model {
9719
9809
  }
9720
9810
  }
9721
9811
 
9812
+ export class StartReverseWriterRequest extends $tea.Model {
9813
+ checkPoint?: string;
9814
+ dtsJobId?: string;
9815
+ static names(): { [key: string]: string } {
9816
+ return {
9817
+ checkPoint: 'CheckPoint',
9818
+ dtsJobId: 'DtsJobId',
9819
+ };
9820
+ }
9821
+
9822
+ static types(): { [key: string]: any } {
9823
+ return {
9824
+ checkPoint: 'string',
9825
+ dtsJobId: 'string',
9826
+ };
9827
+ }
9828
+
9829
+ constructor(map?: { [key: string]: any }) {
9830
+ super(map);
9831
+ }
9832
+ }
9833
+
9834
+ export class StartReverseWriterResponseBody extends $tea.Model {
9835
+ errCode?: string;
9836
+ errMessage?: string;
9837
+ requestId?: string;
9838
+ success?: string;
9839
+ static names(): { [key: string]: string } {
9840
+ return {
9841
+ errCode: 'ErrCode',
9842
+ errMessage: 'ErrMessage',
9843
+ requestId: 'RequestId',
9844
+ success: 'Success',
9845
+ };
9846
+ }
9847
+
9848
+ static types(): { [key: string]: any } {
9849
+ return {
9850
+ errCode: 'string',
9851
+ errMessage: 'string',
9852
+ requestId: 'string',
9853
+ success: 'string',
9854
+ };
9855
+ }
9856
+
9857
+ constructor(map?: { [key: string]: any }) {
9858
+ super(map);
9859
+ }
9860
+ }
9861
+
9862
+ export class StartReverseWriterResponse extends $tea.Model {
9863
+ headers: { [key: string]: string };
9864
+ statusCode: number;
9865
+ body: StartReverseWriterResponseBody;
9866
+ static names(): { [key: string]: string } {
9867
+ return {
9868
+ headers: 'headers',
9869
+ statusCode: 'statusCode',
9870
+ body: 'body',
9871
+ };
9872
+ }
9873
+
9874
+ static types(): { [key: string]: any } {
9875
+ return {
9876
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
9877
+ statusCode: 'number',
9878
+ body: StartReverseWriterResponseBody,
9879
+ };
9880
+ }
9881
+
9882
+ constructor(map?: { [key: string]: any }) {
9883
+ super(map);
9884
+ }
9885
+ }
9886
+
9722
9887
  export class StartSubscriptionInstanceRequest extends $tea.Model {
9723
9888
  accountId?: string;
9724
9889
  ownerId?: string;
@@ -15428,14 +15593,74 @@ export class DescribeDtsJobsResponseBodyDtsJobListReverseJobErrorDetails extends
15428
15593
  }
15429
15594
  }
15430
15595
 
15596
+ export class DescribeDtsJobsResponseBodyDtsJobListReverseJobFullDataCheckStatus extends $tea.Model {
15597
+ errorMessage?: string;
15598
+ percent?: string;
15599
+ progress?: string;
15600
+ status?: string;
15601
+ static names(): { [key: string]: string } {
15602
+ return {
15603
+ errorMessage: 'ErrorMessage',
15604
+ percent: 'Percent',
15605
+ progress: 'Progress',
15606
+ status: 'Status',
15607
+ };
15608
+ }
15609
+
15610
+ static types(): { [key: string]: any } {
15611
+ return {
15612
+ errorMessage: 'string',
15613
+ percent: 'string',
15614
+ progress: 'string',
15615
+ status: 'string',
15616
+ };
15617
+ }
15618
+
15619
+ constructor(map?: { [key: string]: any }) {
15620
+ super(map);
15621
+ }
15622
+ }
15623
+
15624
+ export class DescribeDtsJobsResponseBodyDtsJobListReverseJobIncDataCheckStatus extends $tea.Model {
15625
+ errorMessage?: string;
15626
+ percent?: string;
15627
+ progress?: string;
15628
+ status?: string;
15629
+ static names(): { [key: string]: string } {
15630
+ return {
15631
+ errorMessage: 'ErrorMessage',
15632
+ percent: 'Percent',
15633
+ progress: 'Progress',
15634
+ status: 'Status',
15635
+ };
15636
+ }
15637
+
15638
+ static types(): { [key: string]: any } {
15639
+ return {
15640
+ errorMessage: 'string',
15641
+ percent: 'string',
15642
+ progress: 'string',
15643
+ status: 'string',
15644
+ };
15645
+ }
15646
+
15647
+ constructor(map?: { [key: string]: any }) {
15648
+ super(map);
15649
+ }
15650
+ }
15651
+
15431
15652
  export class DescribeDtsJobsResponseBodyDtsJobListReverseJobMigrationMode extends $tea.Model {
15432
15653
  dataInitialization?: boolean;
15433
15654
  dataSynchronization?: boolean;
15655
+ fullDataCheck?: boolean;
15656
+ incDataCheck?: boolean;
15434
15657
  structureInitialization?: boolean;
15435
15658
  static names(): { [key: string]: string } {
15436
15659
  return {
15437
15660
  dataInitialization: 'DataInitialization',
15438
15661
  dataSynchronization: 'DataSynchronization',
15662
+ fullDataCheck: 'FullDataCheck',
15663
+ incDataCheck: 'IncDataCheck',
15439
15664
  structureInitialization: 'StructureInitialization',
15440
15665
  };
15441
15666
  }
@@ -15444,6 +15669,8 @@ export class DescribeDtsJobsResponseBodyDtsJobListReverseJobMigrationMode extend
15444
15669
  return {
15445
15670
  dataInitialization: 'boolean',
15446
15671
  dataSynchronization: 'boolean',
15672
+ fullDataCheck: 'boolean',
15673
+ incDataCheck: 'boolean',
15447
15674
  structureInitialization: 'boolean',
15448
15675
  };
15449
15676
  }
@@ -15628,6 +15855,8 @@ export class DescribeDtsJobsResponseBodyDtsJobListReverseJob extends $tea.Model
15628
15855
  errorMessage?: string;
15629
15856
  etlSafeCheckpoint?: string;
15630
15857
  expireTime?: string;
15858
+ fullDataCheckStatus?: DescribeDtsJobsResponseBodyDtsJobListReverseJobFullDataCheckStatus;
15859
+ incDataCheckStatus?: DescribeDtsJobsResponseBodyDtsJobListReverseJobIncDataCheckStatus;
15631
15860
  memUsage?: string;
15632
15861
  migrationMode?: DescribeDtsJobsResponseBodyDtsJobListReverseJobMigrationMode;
15633
15862
  payType?: string;
@@ -15658,6 +15887,8 @@ export class DescribeDtsJobsResponseBodyDtsJobListReverseJob extends $tea.Model
15658
15887
  errorMessage: 'ErrorMessage',
15659
15888
  etlSafeCheckpoint: 'EtlSafeCheckpoint',
15660
15889
  expireTime: 'ExpireTime',
15890
+ fullDataCheckStatus: 'FullDataCheckStatus',
15891
+ incDataCheckStatus: 'IncDataCheckStatus',
15661
15892
  memUsage: 'MemUsage',
15662
15893
  migrationMode: 'MigrationMode',
15663
15894
  payType: 'PayType',
@@ -15691,6 +15922,8 @@ export class DescribeDtsJobsResponseBodyDtsJobListReverseJob extends $tea.Model
15691
15922
  errorMessage: 'string',
15692
15923
  etlSafeCheckpoint: 'string',
15693
15924
  expireTime: 'string',
15925
+ fullDataCheckStatus: DescribeDtsJobsResponseBodyDtsJobListReverseJobFullDataCheckStatus,
15926
+ incDataCheckStatus: DescribeDtsJobsResponseBodyDtsJobListReverseJobIncDataCheckStatus,
15694
15927
  memUsage: 'string',
15695
15928
  migrationMode: DescribeDtsJobsResponseBodyDtsJobListReverseJobMigrationMode,
15696
15929
  payType: 'string',
@@ -21852,6 +22085,35 @@ export default class Client extends OpenApi {
21852
22085
  return await this.createMigrationJobWithOptions(request, runtime);
21853
22086
  }
21854
22087
 
22088
+ async createReverseDtsJobWithOptions(request: CreateReverseDtsJobRequest, runtime: $Util.RuntimeOptions): Promise<CreateReverseDtsJobResponse> {
22089
+ Util.validateModel(request);
22090
+ let query = { };
22091
+ if (!Util.isUnset(request.dtsJobId)) {
22092
+ query["DtsJobId"] = request.dtsJobId;
22093
+ }
22094
+
22095
+ let req = new $OpenApi.OpenApiRequest({
22096
+ query: OpenApiUtil.query(query),
22097
+ });
22098
+ let params = new $OpenApi.Params({
22099
+ action: "CreateReverseDtsJob",
22100
+ version: "2020-01-01",
22101
+ protocol: "HTTPS",
22102
+ pathname: "/",
22103
+ method: "POST",
22104
+ authType: "AK",
22105
+ style: "RPC",
22106
+ reqBodyType: "formData",
22107
+ bodyType: "json",
22108
+ });
22109
+ return $tea.cast<CreateReverseDtsJobResponse>(await this.callApi(params, req, runtime), new CreateReverseDtsJobResponse({}));
22110
+ }
22111
+
22112
+ async createReverseDtsJob(request: CreateReverseDtsJobRequest): Promise<CreateReverseDtsJobResponse> {
22113
+ let runtime = new $Util.RuntimeOptions({ });
22114
+ return await this.createReverseDtsJobWithOptions(request, runtime);
22115
+ }
22116
+
21855
22117
  /**
21856
22118
  * 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
22119
  *
@@ -24922,6 +25184,10 @@ export default class Client extends OpenApi {
24922
25184
  query["DtsInstanceId"] = request.dtsInstanceId;
24923
25185
  }
24924
25186
 
25187
+ if (!Util.isUnset(request.dtsJobId)) {
25188
+ query["DtsJobId"] = request.dtsJobId;
25189
+ }
25190
+
24925
25191
  if (!Util.isUnset(request.fileOssUrl)) {
24926
25192
  query["FileOssUrl"] = request.fileOssUrl;
24927
25193
  }
@@ -25919,6 +26185,39 @@ export default class Client extends OpenApi {
25919
26185
  return await this.startMigrationJobWithOptions(request, runtime);
25920
26186
  }
25921
26187
 
26188
+ async startReverseWriterWithOptions(request: StartReverseWriterRequest, runtime: $Util.RuntimeOptions): Promise<StartReverseWriterResponse> {
26189
+ Util.validateModel(request);
26190
+ let query = { };
26191
+ if (!Util.isUnset(request.checkPoint)) {
26192
+ query["CheckPoint"] = request.checkPoint;
26193
+ }
26194
+
26195
+ if (!Util.isUnset(request.dtsJobId)) {
26196
+ query["DtsJobId"] = request.dtsJobId;
26197
+ }
26198
+
26199
+ let req = new $OpenApi.OpenApiRequest({
26200
+ query: OpenApiUtil.query(query),
26201
+ });
26202
+ let params = new $OpenApi.Params({
26203
+ action: "StartReverseWriter",
26204
+ version: "2020-01-01",
26205
+ protocol: "HTTPS",
26206
+ pathname: "/",
26207
+ method: "POST",
26208
+ authType: "AK",
26209
+ style: "RPC",
26210
+ reqBodyType: "formData",
26211
+ bodyType: "json",
26212
+ });
26213
+ return $tea.cast<StartReverseWriterResponse>(await this.callApi(params, req, runtime), new StartReverseWriterResponse({}));
26214
+ }
26215
+
26216
+ async startReverseWriter(request: StartReverseWriterRequest): Promise<StartReverseWriterResponse> {
26217
+ let runtime = new $Util.RuntimeOptions({ });
26218
+ return await this.startReverseWriterWithOptions(request, runtime);
26219
+ }
26220
+
25922
26221
  /**
25923
26222
  * When you call this operation, the change tracking task must be in the NotStarted or Failed state.
25924
26223
  *