tencentcloud-sdk-nodejs-intl-en 3.0.358 → 3.0.362

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.
@@ -16,56 +16,6 @@
16
16
  */
17
17
  const AbstractModel = require("../../common/abstract_model");
18
18
 
19
- /**
20
- * DescribeSyncJobs response structure.
21
- * @class
22
- */
23
- class DescribeSyncJobsResponse extends AbstractModel {
24
- constructor(){
25
- super();
26
-
27
- /**
28
- * Number of tasks
29
- * @type {number || null}
30
- */
31
- this.TotalCount = null;
32
-
33
- /**
34
- * Array of task details
35
- * @type {Array.<SyncJobInfo> || null}
36
- */
37
- this.JobList = null;
38
-
39
- /**
40
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
41
- * @type {string || null}
42
- */
43
- this.RequestId = null;
44
-
45
- }
46
-
47
- /**
48
- * @private
49
- */
50
- deserialize(params) {
51
- if (!params) {
52
- return;
53
- }
54
- this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
55
-
56
- if (params.JobList) {
57
- this.JobList = new Array();
58
- for (let z in params.JobList) {
59
- let obj = new SyncJobInfo();
60
- obj.deserialize(params.JobList[z]);
61
- this.JobList.push(obj);
62
- }
63
- }
64
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
65
-
66
- }
67
- }
68
-
69
19
  /**
70
20
  * DescribeMigrateJobs response structure.
71
21
  * @class
@@ -117,54 +67,43 @@ class DescribeMigrateJobsResponse extends AbstractModel {
117
67
  }
118
68
 
119
69
  /**
120
- * Describes the specific migration process
70
+ * Information of steps in migration
121
71
  * @class
122
72
  */
123
- class MigrateDetailInfo extends AbstractModel {
73
+ class MigrateStepDetailInfo extends AbstractModel {
124
74
  constructor(){
125
75
  super();
126
76
 
127
77
  /**
128
- * Total number of steps
129
- * @type {number || null}
130
- */
131
- this.StepAll = null;
132
-
133
- /**
134
- * Current step
78
+ * Step number
135
79
  * @type {number || null}
136
80
  */
137
- this.StepNow = null;
81
+ this.StepNo = null;
138
82
 
139
83
  /**
140
- * Overall progress, such as "10"
84
+ * Step name
141
85
  * @type {string || null}
142
86
  */
143
- this.Progress = null;
87
+ this.StepName = null;
144
88
 
145
89
  /**
146
- * Progress of current step, such as "1"
90
+ * Step ID
147
91
  * @type {string || null}
148
92
  */
149
- this.CurrentStepProgress = null;
150
-
151
- /**
152
- * Master/slave lag in MB, which is valid during incremental sync and currently supported by TencentDB for Redis and MySQL
153
- * @type {number || null}
154
- */
155
- this.MasterSlaveDistance = null;
93
+ this.StepId = null;
156
94
 
157
95
  /**
158
- * Master/slave lag in seconds, which is valid during incremental sync and currently supported by TencentDB for MySQL
96
+ * Step status. Value range: 0 (default), 1 (succeeded), 2 (failed), 3 (in progress), 4 (not started)
159
97
  * @type {number || null}
160
98
  */
161
- this.SecondsBehindMaster = null;
99
+ this.Status = null;
162
100
 
163
101
  /**
164
- * Step information
165
- * @type {Array.<MigrateStepDetailInfo> || null}
102
+ * Start time of current step in the format of `yyyy-mm-dd hh:mm:ss`. This field is meaningless if it does not exist or is empty
103
+ Note: this field may return null, indicating that no valid values can be obtained.
104
+ * @type {string || null}
166
105
  */
167
- this.StepInfo = null;
106
+ this.StartTime = null;
168
107
 
169
108
  }
170
109
 
@@ -175,21 +114,11 @@ class MigrateDetailInfo extends AbstractModel {
175
114
  if (!params) {
176
115
  return;
177
116
  }
178
- this.StepAll = 'StepAll' in params ? params.StepAll : null;
179
- this.StepNow = 'StepNow' in params ? params.StepNow : null;
180
- this.Progress = 'Progress' in params ? params.Progress : null;
181
- this.CurrentStepProgress = 'CurrentStepProgress' in params ? params.CurrentStepProgress : null;
182
- this.MasterSlaveDistance = 'MasterSlaveDistance' in params ? params.MasterSlaveDistance : null;
183
- this.SecondsBehindMaster = 'SecondsBehindMaster' in params ? params.SecondsBehindMaster : null;
184
-
185
- if (params.StepInfo) {
186
- this.StepInfo = new Array();
187
- for (let z in params.StepInfo) {
188
- let obj = new MigrateStepDetailInfo();
189
- obj.deserialize(params.StepInfo[z]);
190
- this.StepInfo.push(obj);
191
- }
192
- }
117
+ this.StepNo = 'StepNo' in params ? params.StepNo : null;
118
+ this.StepName = 'StepName' in params ? params.StepName : null;
119
+ this.StepId = 'StepId' in params ? params.StepId : null;
120
+ this.Status = 'Status' in params ? params.Status : null;
121
+ this.StartTime = 'StartTime' in params ? params.StartTime : null;
193
122
 
194
123
  }
195
124
  }
@@ -299,41 +228,6 @@ class ModifySubscribeVipVportRequest extends AbstractModel {
299
228
  }
300
229
  }
301
230
 
302
- /**
303
- * Instance information of disaster recovery sync, which records the information of the master instance or disaster recovery instance
304
- * @class
305
- */
306
- class SyncInstanceInfo extends AbstractModel {
307
- constructor(){
308
- super();
309
-
310
- /**
311
- * Region name, such as ap-guangzhou
312
- * @type {string || null}
313
- */
314
- this.Region = null;
315
-
316
- /**
317
- * Short instance ID
318
- * @type {string || null}
319
- */
320
- this.InstanceId = null;
321
-
322
- }
323
-
324
- /**
325
- * @private
326
- */
327
- deserialize(params) {
328
- if (!params) {
329
- return;
330
- }
331
- this.Region = 'Region' in params ? params.Region : null;
332
- this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
333
-
334
- }
335
- }
336
-
337
231
  /**
338
232
  * ModifySubscribeName response structure.
339
233
  * @class
@@ -362,41 +256,6 @@ class ModifySubscribeNameResponse extends AbstractModel {
362
256
  }
363
257
  }
364
258
 
365
- /**
366
- * CreateSyncJob response structure.
367
- * @class
368
- */
369
- class CreateSyncJobResponse extends AbstractModel {
370
- constructor(){
371
- super();
372
-
373
- /**
374
- * Disaster recovery sync task ID
375
- * @type {string || null}
376
- */
377
- this.JobId = null;
378
-
379
- /**
380
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
381
- * @type {string || null}
382
- */
383
- this.RequestId = null;
384
-
385
- }
386
-
387
- /**
388
- * @private
389
- */
390
- deserialize(params) {
391
- if (!params) {
392
- return;
393
- }
394
- this.JobId = 'JobId' in params ? params.JobId : null;
395
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
396
-
397
- }
398
- }
399
-
400
259
  /**
401
260
  * DescribeMigrateCheckJob request structure.
402
261
  * @class
@@ -488,74 +347,6 @@ class ModifySubscribeObjectsResponse extends AbstractModel {
488
347
  }
489
348
  }
490
349
 
491
- /**
492
- * SwitchDrToMaster request structure.
493
- * @class
494
- */
495
- class SwitchDrToMasterRequest extends AbstractModel {
496
- constructor(){
497
- super();
498
-
499
- /**
500
- * Disaster recovery instance information
501
- * @type {SyncInstanceInfo || null}
502
- */
503
- this.DstInfo = null;
504
-
505
- /**
506
- * Database type (such as MySQL)
507
- * @type {string || null}
508
- */
509
- this.DatabaseType = null;
510
-
511
- }
512
-
513
- /**
514
- * @private
515
- */
516
- deserialize(params) {
517
- if (!params) {
518
- return;
519
- }
520
-
521
- if (params.DstInfo) {
522
- let obj = new SyncInstanceInfo();
523
- obj.deserialize(params.DstInfo)
524
- this.DstInfo = obj;
525
- }
526
- this.DatabaseType = 'DatabaseType' in params ? params.DatabaseType : null;
527
-
528
- }
529
- }
530
-
531
- /**
532
- * StartSyncJob request structure.
533
- * @class
534
- */
535
- class StartSyncJobRequest extends AbstractModel {
536
- constructor(){
537
- super();
538
-
539
- /**
540
- * Disaster recovery sync task ID
541
- * @type {string || null}
542
- */
543
- this.JobId = null;
544
-
545
- }
546
-
547
- /**
548
- * @private
549
- */
550
- deserialize(params) {
551
- if (!params) {
552
- return;
553
- }
554
- this.JobId = 'JobId' in params ? params.JobId : null;
555
-
556
- }
557
- }
558
-
559
350
  /**
560
351
  * CreateMigrateJob request structure.
561
352
  * @class
@@ -577,7 +368,7 @@ class CreateMigrateJobRequest extends AbstractModel {
577
368
  this.MigrateOption = null;
578
369
 
579
370
  /**
580
- * Source instance database type, which currently supports MySQL, Redis, MongoDB, PostgreSQL, MariaDB, and Percona. For more information on the supported types in a specific region, see the migration task creation page in the console.
371
+ * Source instance database type, which currently supports MySQL, Redis, MongoDB, PostgreSQL, MariaDB, Percona, and SQL Server. For more information on the supported types in a specific region, see the migration task creation page in the console.
581
372
  * @type {string || null}
582
373
  */
583
374
  this.SrcDatabaseType = null;
@@ -595,7 +386,7 @@ class CreateMigrateJobRequest extends AbstractModel {
595
386
  this.SrcInfo = null;
596
387
 
597
388
  /**
598
- * Target instance access type, which currently supports MySQL, Redis, MongoDB, PostgreSQL, MariaDB, and Percona. For more information on the supported types in a specific region, see the migration task creation page in the console.
389
+ * Target instance access type, which currently supports MySQL, Redis, MongoDB, PostgreSQL, MariaDB, and Percona, SQL Server, and TDSQL-C for MySQL. For more information on the supported types in a specific region, see the migration task creation page in the console.
599
390
  * @type {string || null}
600
391
  */
601
392
  this.DstDatabaseType = null;
@@ -615,17 +406,19 @@ class CreateMigrateJobRequest extends AbstractModel {
615
406
  /**
616
407
  * Information of the source table to be migrated, which is described in JSON string format. It is required if MigrateOption.MigrateObject is 2 (migrating the specified table).
617
408
  For databases with a database-table structure:
618
- [{Database:db1,Table:[table1,table2]},{Database:db2}]
409
+ [{"Database":"db1","Table":["table1","table2"]},{"Database":"db2"}]
619
410
  For databases with a database-schema-table structure:
620
- [{Database:db1,Schema:s1
621
- Table:[table1,table2]},{Database:db1,Schema:s2
622
- Table:[table1,table2]},{Database:db2,Schema:s1
623
- Table:[table1,table2]},{Database:db3},{Database:db4
624
- Schema:s1}]
411
+ [{"Database":"db1","Schema":"s1","Table":["table1","table2"]},{"Database":"db1","Schema":"s2","Table":["table1","table2"]},{"Database":"db2","Schema":"s1","Table":["table1","table2"]},{"Database":"db3"},{"Database":"db4","Schema":"s1"}]
625
412
  * @type {string || null}
626
413
  */
627
414
  this.DatabaseInfo = null;
628
415
 
416
+ /**
417
+ * Tag of the instance to be migrated.
418
+ * @type {Array.<TagItem> || null}
419
+ */
420
+ this.Tags = null;
421
+
629
422
  }
630
423
 
631
424
  /**
@@ -660,903 +453,60 @@ Schema:s1}]
660
453
  }
661
454
  this.DatabaseInfo = 'DatabaseInfo' in params ? params.DatabaseInfo : null;
662
455
 
456
+ if (params.Tags) {
457
+ this.Tags = new Array();
458
+ for (let z in params.Tags) {
459
+ let obj = new TagItem();
460
+ obj.deserialize(params.Tags[z]);
461
+ this.Tags.push(obj);
462
+ }
463
+ }
464
+
663
465
  }
664
466
  }
665
467
 
666
468
  /**
667
- * Subscription instance information
469
+ * Sale information of data subscription region
668
470
  * @class
669
471
  */
670
- class SubscribeInfo extends AbstractModel {
472
+ class SubscribeRegionConf extends AbstractModel {
671
473
  constructor(){
672
474
  super();
673
475
 
674
476
  /**
675
- * Data subscription instance ID
477
+ * Region name, such as Guangzhou
478
+ Note: this field may return null, indicating that no valid values can be obtained.
676
479
  * @type {string || null}
677
480
  */
678
- this.SubscribeId = null;
481
+ this.RegionName = null;
679
482
 
680
483
  /**
681
- * Data subscription instance name
484
+ * Region ID, such as ap-guangzhou
485
+ Note: this field may return null, indicating that no valid values can be obtained.
682
486
  * @type {string || null}
683
487
  */
684
- this.SubscribeName = null;
488
+ this.Region = null;
685
489
 
686
490
  /**
687
- * ID of channel bound to data subscription instance
688
- * @type {string || null}
689
- */
690
- this.ChannelId = null;
691
-
692
- /**
693
- * Name of product bound to data subscription instance
694
- * @type {string || null}
695
- */
696
- this.Product = null;
697
-
698
- /**
699
- * ID of database instance bound to data subscription instance
700
- * @type {string || null}
701
- */
702
- this.InstanceId = null;
703
-
704
- /**
705
- * Status of database instance bound to data subscription instance
706
- * @type {string || null}
707
- */
708
- this.InstanceStatus = null;
709
-
710
- /**
711
- * Data subscription instance configuration status. Valid values: unconfigure, configuring, configured
712
- * @type {string || null}
713
- */
714
- this.SubsStatus = null;
715
-
716
- /**
717
- * Last modified time
718
- * @type {string || null}
719
- */
720
- this.ModifyTime = null;
721
-
722
- /**
723
- * Creation time
724
- * @type {string || null}
725
- */
726
- this.CreateTime = null;
727
-
728
- /**
729
- * Isolation time
730
- * @type {string || null}
731
- */
732
- this.IsolateTime = null;
733
-
734
- /**
735
- * Expiration time
736
- * @type {string || null}
737
- */
738
- this.ExpireTime = null;
739
-
740
- /**
741
- * Deactivation time
742
- * @type {string || null}
743
- */
744
- this.OfflineTime = null;
745
-
746
- /**
747
- * Last modified consumption starting time point. If it has never been modified, this field is 0
748
- * @type {string || null}
749
- */
750
- this.ConsumeStartTime = null;
751
-
752
- /**
753
- * Data subscription instance region
754
- * @type {string || null}
755
- */
756
- this.Region = null;
757
-
758
- /**
759
- * Billing mode. 1: pay-as-you-go
760
- * @type {number || null}
761
- */
762
- this.PayType = null;
763
-
764
- /**
765
- * Data subscription instance VIP
766
- * @type {string || null}
767
- */
768
- this.Vip = null;
769
-
770
- /**
771
- * Data subscription instance Vport
772
- * @type {number || null}
773
- */
774
- this.Vport = null;
775
-
776
- /**
777
- * Unique ID of the VPC where the data subscription instance VIP resides
778
- * @type {string || null}
779
- */
780
- this.UniqVpcId = null;
781
-
782
- /**
783
- * Unique ID of the subnet where the data subscription instance VIP resides
784
- * @type {string || null}
785
- */
786
- this.UniqSubnetId = null;
787
-
788
- /**
789
- * Data subscription instance status. Valid values: creating, normal, isolating, isolated, offlining, offline
790
- * @type {string || null}
791
- */
792
- this.Status = null;
793
-
794
- /**
795
- * Timestamp of the last message confirmed by the SDK. If the SDK keeps consuming, this field can also be used as the current consumption time point of the SDK
796
- * @type {string || null}
797
- */
798
- this.SdkConsumedTime = null;
799
-
800
- /**
801
- * Tag
802
- Note: this field may return `null`, indicating that no valid values can be obtained.
803
- * @type {Array.<TagItem> || null}
804
- */
805
- this.Tags = null;
806
-
807
- /**
808
- * Whether auto-renewal is enabled. 0: do not enable; 1: enable
809
- Note: this field may return `null`, indicating that no valid values can be obtained.
810
- * @type {number || null}
811
- */
812
- this.AutoRenewFlag = null;
813
-
814
- /**
815
- * Subscription instance edition. ·`txdts`: legacy data subscription; `kafka`: data subscription in Kafka edition
816
- Note: this field may return `null`, indicating that no valid values can be obtained.
817
- * @type {string || null}
818
- */
819
- this.SubscribeVersion = null;
820
-
821
- }
822
-
823
- /**
824
- * @private
825
- */
826
- deserialize(params) {
827
- if (!params) {
828
- return;
829
- }
830
- this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null;
831
- this.SubscribeName = 'SubscribeName' in params ? params.SubscribeName : null;
832
- this.ChannelId = 'ChannelId' in params ? params.ChannelId : null;
833
- this.Product = 'Product' in params ? params.Product : null;
834
- this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
835
- this.InstanceStatus = 'InstanceStatus' in params ? params.InstanceStatus : null;
836
- this.SubsStatus = 'SubsStatus' in params ? params.SubsStatus : null;
837
- this.ModifyTime = 'ModifyTime' in params ? params.ModifyTime : null;
838
- this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
839
- this.IsolateTime = 'IsolateTime' in params ? params.IsolateTime : null;
840
- this.ExpireTime = 'ExpireTime' in params ? params.ExpireTime : null;
841
- this.OfflineTime = 'OfflineTime' in params ? params.OfflineTime : null;
842
- this.ConsumeStartTime = 'ConsumeStartTime' in params ? params.ConsumeStartTime : null;
843
- this.Region = 'Region' in params ? params.Region : null;
844
- this.PayType = 'PayType' in params ? params.PayType : null;
845
- this.Vip = 'Vip' in params ? params.Vip : null;
846
- this.Vport = 'Vport' in params ? params.Vport : null;
847
- this.UniqVpcId = 'UniqVpcId' in params ? params.UniqVpcId : null;
848
- this.UniqSubnetId = 'UniqSubnetId' in params ? params.UniqSubnetId : null;
849
- this.Status = 'Status' in params ? params.Status : null;
850
- this.SdkConsumedTime = 'SdkConsumedTime' in params ? params.SdkConsumedTime : null;
851
-
852
- if (params.Tags) {
853
- this.Tags = new Array();
854
- for (let z in params.Tags) {
855
- let obj = new TagItem();
856
- obj.deserialize(params.Tags[z]);
857
- this.Tags.push(obj);
858
- }
859
- }
860
- this.AutoRenewFlag = 'AutoRenewFlag' in params ? params.AutoRenewFlag : null;
861
- this.SubscribeVersion = 'SubscribeVersion' in params ? params.SubscribeVersion : null;
862
-
863
- }
864
- }
865
-
866
- /**
867
- * ModifySubscribeName request structure.
868
- * @class
869
- */
870
- class ModifySubscribeNameRequest extends AbstractModel {
871
- constructor(){
872
- super();
873
-
874
- /**
875
- * Data subscription instance ID
876
- * @type {string || null}
877
- */
878
- this.SubscribeId = null;
879
-
880
- /**
881
- * Data subscription instance name. Length limit: [1,60]
882
- * @type {string || null}
883
- */
884
- this.SubscribeName = null;
885
-
886
- }
887
-
888
- /**
889
- * @private
890
- */
891
- deserialize(params) {
892
- if (!params) {
893
- return;
894
- }
895
- this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null;
896
- this.SubscribeName = 'SubscribeName' in params ? params.SubscribeName : null;
897
-
898
- }
899
- }
900
-
901
- /**
902
- * Disaster recovery sync task information
903
- * @class
904
- */
905
- class SyncJobInfo extends AbstractModel {
906
- constructor(){
907
- super();
908
-
909
- /**
910
- * Disaster recovery task ID
911
- * @type {string || null}
912
- */
913
- this.JobId = null;
914
-
915
- /**
916
- * Disaster recovery task name
917
- * @type {string || null}
918
- */
919
- this.JobName = null;
920
-
921
- /**
922
- * Task sync
923
- * @type {SyncOption || null}
924
- */
925
- this.SyncOption = null;
926
-
927
- /**
928
- * Source access type
929
- * @type {string || null}
930
- */
931
- this.SrcAccessType = null;
932
-
933
- /**
934
- * Source data type
935
- * @type {string || null}
936
- */
937
- this.SrcDatabaseType = null;
938
-
939
- /**
940
- * Source instance information
941
- * @type {SyncInstanceInfo || null}
942
- */
943
- this.SrcInfo = null;
944
-
945
- /**
946
- * Disaster recovery access type
947
- * @type {string || null}
948
- */
949
- this.DstAccessType = null;
950
-
951
- /**
952
- * Disaster recovery data type
953
- * @type {string || null}
954
- */
955
- this.DstDatabaseType = null;
956
-
957
- /**
958
- * Disaster recovery instance information
959
- * @type {SyncInstanceInfo || null}
960
- */
961
- this.DstInfo = null;
962
-
963
- /**
964
- * Task information
965
- * @type {SyncDetailInfo || null}
966
- */
967
- this.Detail = null;
968
-
969
- /**
970
- * Task status
971
- * @type {number || null}
972
- */
973
- this.Status = null;
974
-
975
- /**
976
- * Table to be migrated
977
- * @type {string || null}
978
- */
979
- this.DatabaseInfo = null;
980
-
981
- /**
982
- * Creation time
983
- * @type {string || null}
984
- */
985
- this.CreateTime = null;
986
-
987
- /**
988
- * Start time
989
- * @type {string || null}
990
- */
991
- this.StartTime = null;
992
-
993
- /**
994
- * End time
995
- * @type {string || null}
996
- */
997
- this.EndTime = null;
998
-
999
- }
1000
-
1001
- /**
1002
- * @private
1003
- */
1004
- deserialize(params) {
1005
- if (!params) {
1006
- return;
1007
- }
1008
- this.JobId = 'JobId' in params ? params.JobId : null;
1009
- this.JobName = 'JobName' in params ? params.JobName : null;
1010
-
1011
- if (params.SyncOption) {
1012
- let obj = new SyncOption();
1013
- obj.deserialize(params.SyncOption)
1014
- this.SyncOption = obj;
1015
- }
1016
- this.SrcAccessType = 'SrcAccessType' in params ? params.SrcAccessType : null;
1017
- this.SrcDatabaseType = 'SrcDatabaseType' in params ? params.SrcDatabaseType : null;
1018
-
1019
- if (params.SrcInfo) {
1020
- let obj = new SyncInstanceInfo();
1021
- obj.deserialize(params.SrcInfo)
1022
- this.SrcInfo = obj;
1023
- }
1024
- this.DstAccessType = 'DstAccessType' in params ? params.DstAccessType : null;
1025
- this.DstDatabaseType = 'DstDatabaseType' in params ? params.DstDatabaseType : null;
1026
-
1027
- if (params.DstInfo) {
1028
- let obj = new SyncInstanceInfo();
1029
- obj.deserialize(params.DstInfo)
1030
- this.DstInfo = obj;
1031
- }
1032
-
1033
- if (params.Detail) {
1034
- let obj = new SyncDetailInfo();
1035
- obj.deserialize(params.Detail)
1036
- this.Detail = obj;
1037
- }
1038
- this.Status = 'Status' in params ? params.Status : null;
1039
- this.DatabaseInfo = 'DatabaseInfo' in params ? params.DatabaseInfo : null;
1040
- this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
1041
- this.StartTime = 'StartTime' in params ? params.StartTime : null;
1042
- this.EndTime = 'EndTime' in params ? params.EndTime : null;
1043
-
1044
- }
1045
- }
1046
-
1047
- /**
1048
- * ModifySubscribeConsumeTime response structure.
1049
- * @class
1050
- */
1051
- class ModifySubscribeConsumeTimeResponse extends AbstractModel {
1052
- constructor(){
1053
- super();
1054
-
1055
- /**
1056
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1057
- * @type {string || null}
1058
- */
1059
- this.RequestId = null;
1060
-
1061
- }
1062
-
1063
- /**
1064
- * @private
1065
- */
1066
- deserialize(params) {
1067
- if (!params) {
1068
- return;
1069
- }
1070
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
1071
-
1072
- }
1073
- }
1074
-
1075
- /**
1076
- * Target instance information, which is correlated with the migration task type
1077
- * @class
1078
- */
1079
- class DstInfo extends AbstractModel {
1080
- constructor(){
1081
- super();
1082
-
1083
- /**
1084
- * Target instance ID, such as cdb-jd92ijd8
1085
- * @type {string || null}
1086
- */
1087
- this.InstanceId = null;
1088
-
1089
- /**
1090
- * Target instance region, such as ap-guangzhou
1091
- * @type {string || null}
1092
- */
1093
- this.Region = null;
1094
-
1095
- /**
1096
- * Target instance VIP, which has been disused and does not need to be entered
1097
- * @type {string || null}
1098
- */
1099
- this.Ip = null;
1100
-
1101
- /**
1102
- * Target instance Vport, which has been disused and does not need to be entered
1103
- * @type {number || null}
1104
- */
1105
- this.Port = null;
1106
-
1107
- /**
1108
- * Only valid for MySQL currently. For instance-level migration, the value range is: 1 (read-only), 0 (read/write)
1109
- * @type {number || null}
1110
- */
1111
- this.ReadOnly = null;
1112
-
1113
- /**
1114
- * Target database account
1115
- * @type {string || null}
1116
- */
1117
- this.User = null;
1118
-
1119
- /**
1120
- * Target database password
1121
- * @type {string || null}
1122
- */
1123
- this.Password = null;
1124
-
1125
- }
1126
-
1127
- /**
1128
- * @private
1129
- */
1130
- deserialize(params) {
1131
- if (!params) {
1132
- return;
1133
- }
1134
- this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
1135
- this.Region = 'Region' in params ? params.Region : null;
1136
- this.Ip = 'Ip' in params ? params.Ip : null;
1137
- this.Port = 'Port' in params ? params.Port : null;
1138
- this.ReadOnly = 'ReadOnly' in params ? params.ReadOnly : null;
1139
- this.User = 'User' in params ? params.User : null;
1140
- this.Password = 'Password' in params ? params.Password : null;
1141
-
1142
- }
1143
- }
1144
-
1145
- /**
1146
- * DescribeSubscribeConf response structure.
1147
- * @class
1148
- */
1149
- class DescribeSubscribeConfResponse extends AbstractModel {
1150
- constructor(){
1151
- super();
1152
-
1153
- /**
1154
- * Subscription instance ID
1155
- * @type {string || null}
1156
- */
1157
- this.SubscribeId = null;
1158
-
1159
- /**
1160
- * Subscription instance name
1161
- * @type {string || null}
1162
- */
1163
- this.SubscribeName = null;
1164
-
1165
- /**
1166
- * Subscription channel
1167
- * @type {string || null}
1168
- */
1169
- this.ChannelId = null;
1170
-
1171
- /**
1172
- * Subscribed database type
1173
- * @type {string || null}
1174
- */
1175
- this.Product = null;
1176
-
1177
- /**
1178
- * Subscribed instance
1179
- * @type {string || null}
1180
- */
1181
- this.InstanceId = null;
1182
-
1183
- /**
1184
- * Subscribed instance status. Valid values: running, offline, isolate
1185
- * @type {string || null}
1186
- */
1187
- this.InstanceStatus = null;
1188
-
1189
- /**
1190
- * Subscription instance status. Valid values: unconfigure, configuring, configured
1191
- * @type {string || null}
1192
- */
1193
- this.SubsStatus = null;
1194
-
1195
- /**
1196
- * Subscription instance lifecycle status. Valid values: normal, isolating, isolated, offlining
1197
- * @type {string || null}
1198
- */
1199
- this.Status = null;
1200
-
1201
- /**
1202
- * Subscription instance creation time
1203
- * @type {string || null}
1204
- */
1205
- this.CreateTime = null;
1206
-
1207
- /**
1208
- * Subscription instance isolation time
1209
- * @type {string || null}
1210
- */
1211
- this.IsolateTime = null;
1212
-
1213
- /**
1214
- * Subscription instance expiration time
1215
- * @type {string || null}
1216
- */
1217
- this.ExpireTime = null;
1218
-
1219
- /**
1220
- * Subscription instance deactivation time
1221
- * @type {string || null}
1222
- */
1223
- this.OfflineTime = null;
1224
-
1225
- /**
1226
- * Consumption starting time point of subscription instance
1227
- * @type {string || null}
1228
- */
1229
- this.ConsumeStartTime = null;
1230
-
1231
- /**
1232
- * Subscription instance billing mode. 1: hourly billing
1233
- * @type {number || null}
1234
- */
1235
- this.PayType = null;
1236
-
1237
- /**
1238
- * Subscription channel VIP
1239
- * @type {string || null}
1240
- */
1241
- this.Vip = null;
1242
-
1243
- /**
1244
- * Subscription channel port
1245
- * @type {number || null}
1246
- */
1247
- this.Vport = null;
1248
-
1249
- /**
1250
- * Subscription channel `VpcId`
1251
- * @type {string || null}
1252
- */
1253
- this.UniqVpcId = null;
1254
-
1255
- /**
1256
- * Subscription channel `SubnetId`
1257
- * @type {string || null}
1258
- */
1259
- this.UniqSubnetId = null;
1260
-
1261
- /**
1262
- * Current SDK consumption time point
1263
- * @type {string || null}
1264
- */
1265
- this.SdkConsumedTime = null;
1266
-
1267
- /**
1268
- * Subscription SDK IP address
1269
- * @type {string || null}
1270
- */
1271
- this.SdkHost = null;
1272
-
1273
- /**
1274
- * Subscription object type. 0: full instance subscription, 1: DDL data subscription, 2: DML structure subscription, 3: DDL data subscription + DML structure subscription
1275
- * @type {number || null}
1276
- */
1277
- this.SubscribeObjectType = null;
1278
-
1279
- /**
1280
- * Subscription object, which is an empty array if `SubscribeObjectType` is 0
1281
- * @type {Array.<SubscribeObject> || null}
1282
- */
1283
- this.SubscribeObjects = null;
1284
-
1285
- /**
1286
- * Modification time
1287
- * @type {string || null}
1288
- */
1289
- this.ModifyTime = null;
1290
-
1291
- /**
1292
- * Region
1293
- * @type {string || null}
1294
- */
1295
- this.Region = null;
1296
-
1297
- /**
1298
- * Tags of the subscription
1299
- Note: this field may return `null`, indicating that no valid values can be obtained.
1300
- * @type {Array.<TagItem> || null}
1301
- */
1302
- this.Tags = null;
1303
-
1304
- /**
1305
- * Whether auto-renewal is enabled. 0: do not enable, 1: enable
1306
- Note: this field may return `null`, indicating that no valid values can be obtained.
1307
- * @type {number || null}
1308
- */
1309
- this.AutoRenewFlag = null;
1310
-
1311
- /**
1312
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1313
- * @type {string || null}
1314
- */
1315
- this.RequestId = null;
1316
-
1317
- }
1318
-
1319
- /**
1320
- * @private
1321
- */
1322
- deserialize(params) {
1323
- if (!params) {
1324
- return;
1325
- }
1326
- this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null;
1327
- this.SubscribeName = 'SubscribeName' in params ? params.SubscribeName : null;
1328
- this.ChannelId = 'ChannelId' in params ? params.ChannelId : null;
1329
- this.Product = 'Product' in params ? params.Product : null;
1330
- this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
1331
- this.InstanceStatus = 'InstanceStatus' in params ? params.InstanceStatus : null;
1332
- this.SubsStatus = 'SubsStatus' in params ? params.SubsStatus : null;
1333
- this.Status = 'Status' in params ? params.Status : null;
1334
- this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
1335
- this.IsolateTime = 'IsolateTime' in params ? params.IsolateTime : null;
1336
- this.ExpireTime = 'ExpireTime' in params ? params.ExpireTime : null;
1337
- this.OfflineTime = 'OfflineTime' in params ? params.OfflineTime : null;
1338
- this.ConsumeStartTime = 'ConsumeStartTime' in params ? params.ConsumeStartTime : null;
1339
- this.PayType = 'PayType' in params ? params.PayType : null;
1340
- this.Vip = 'Vip' in params ? params.Vip : null;
1341
- this.Vport = 'Vport' in params ? params.Vport : null;
1342
- this.UniqVpcId = 'UniqVpcId' in params ? params.UniqVpcId : null;
1343
- this.UniqSubnetId = 'UniqSubnetId' in params ? params.UniqSubnetId : null;
1344
- this.SdkConsumedTime = 'SdkConsumedTime' in params ? params.SdkConsumedTime : null;
1345
- this.SdkHost = 'SdkHost' in params ? params.SdkHost : null;
1346
- this.SubscribeObjectType = 'SubscribeObjectType' in params ? params.SubscribeObjectType : null;
1347
-
1348
- if (params.SubscribeObjects) {
1349
- this.SubscribeObjects = new Array();
1350
- for (let z in params.SubscribeObjects) {
1351
- let obj = new SubscribeObject();
1352
- obj.deserialize(params.SubscribeObjects[z]);
1353
- this.SubscribeObjects.push(obj);
1354
- }
1355
- }
1356
- this.ModifyTime = 'ModifyTime' in params ? params.ModifyTime : null;
1357
- this.Region = 'Region' in params ? params.Region : null;
1358
-
1359
- if (params.Tags) {
1360
- this.Tags = new Array();
1361
- for (let z in params.Tags) {
1362
- let obj = new TagItem();
1363
- obj.deserialize(params.Tags[z]);
1364
- this.Tags.push(obj);
1365
- }
1366
- }
1367
- this.AutoRenewFlag = 'AutoRenewFlag' in params ? params.AutoRenewFlag : null;
1368
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
1369
-
1370
- }
1371
- }
1372
-
1373
- /**
1374
- * DescribeAsyncRequestInfo request structure.
1375
- * @class
1376
- */
1377
- class DescribeAsyncRequestInfoRequest extends AbstractModel {
1378
- constructor(){
1379
- super();
1380
-
1381
- /**
1382
- * Task ID
1383
- * @type {string || null}
1384
- */
1385
- this.AsyncRequestId = null;
1386
-
1387
- }
1388
-
1389
- /**
1390
- * @private
1391
- */
1392
- deserialize(params) {
1393
- if (!params) {
1394
- return;
1395
- }
1396
- this.AsyncRequestId = 'AsyncRequestId' in params ? params.AsyncRequestId : null;
1397
-
1398
- }
1399
- }
1400
-
1401
- /**
1402
- * Source instance information
1403
- * @class
1404
- */
1405
- class SrcInfo extends AbstractModel {
1406
- constructor(){
1407
- super();
1408
-
1409
- /**
1410
- * Alibaba Cloud AccessKey, which is applicable if the source database is an Alibaba Cloud ApsaraDB for RDS 5.6 instance
1411
- * @type {string || null}
1412
- */
1413
- this.AccessKey = null;
1414
-
1415
- /**
1416
- * Instance IP address
1417
- * @type {string || null}
1418
- */
1419
- this.Ip = null;
1420
-
1421
- /**
1422
- * Instance port
1423
- * @type {number || null}
1424
- */
1425
- this.Port = null;
1426
-
1427
- /**
1428
- * Instance username
1429
- * @type {string || null}
1430
- */
1431
- this.User = null;
1432
-
1433
- /**
1434
- * Instance password
1435
- * @type {string || null}
1436
- */
1437
- this.Password = null;
1438
-
1439
- /**
1440
- * Alibaba Cloud ApsaraDB for RDS instance ID, which is applicable if the source database is an Alibaba Cloud ApsaraDB for RDS 5.6/5.7 instance
1441
- * @type {string || null}
1442
- */
1443
- this.RdsInstanceId = null;
1444
-
1445
- /**
1446
- * Short CVM instance ID in the format of `ins-olgl39y8`. It is the same as the instance ID displayed on the CVM Console page. For CVM-based self-created instances, this field needs to be passed in
1447
- * @type {string || null}
1448
- */
1449
- this.CvmInstanceId = null;
1450
-
1451
- /**
1452
- * Direct Connect gateway ID in the format of dcg-0rxtqqxb
1453
- * @type {string || null}
1454
- */
1455
- this.UniqDcgId = null;
1456
-
1457
- /**
1458
- * VPC ID in the format of vpc-92jblxto
1459
- * @type {string || null}
1460
- */
1461
- this.VpcId = null;
1462
-
1463
- /**
1464
- * VPC Subnet ID in the format of subnet-3paxmkdz
1465
- * @type {string || null}
1466
- */
1467
- this.SubnetId = null;
1468
-
1469
- /**
1470
- * VPN gateway ID in the format of vpngw-9ghexg7q
1471
- * @type {string || null}
1472
- */
1473
- this.UniqVpnGwId = null;
1474
-
1475
- /**
1476
- * Database instance ID in the format of cdb-powiqx8q
1477
- * @type {string || null}
1478
- */
1479
- this.InstanceId = null;
1480
-
1481
- /**
1482
- * Region name, such as ap-guangzhou
1483
- * @type {string || null}
1484
- */
1485
- this.Region = null;
1486
-
1487
- /**
1488
- * For Alibaba Cloud ApsaraDB for RDS instances, enter "aliyun"; otherwise, enter "others"
1489
- * @type {string || null}
1490
- */
1491
- this.Supplier = null;
1492
-
1493
- /**
1494
- * CCN instance ID, such as ccn-afp6kltc
1495
- Note: This field may return null, indicating that no valid values can be obtained.
1496
- * @type {string || null}
1497
- */
1498
- this.CcnId = null;
1499
-
1500
- /**
1501
- * Database version. This parameter is valid only when the instance is an RDS instance. Value: 5.6 or 5.7. Default value: 5.6
1502
- * @type {string || null}
1503
- */
1504
- this.EngineVersion = null;
1505
-
1506
- }
1507
-
1508
- /**
1509
- * @private
1510
- */
1511
- deserialize(params) {
1512
- if (!params) {
1513
- return;
1514
- }
1515
- this.AccessKey = 'AccessKey' in params ? params.AccessKey : null;
1516
- this.Ip = 'Ip' in params ? params.Ip : null;
1517
- this.Port = 'Port' in params ? params.Port : null;
1518
- this.User = 'User' in params ? params.User : null;
1519
- this.Password = 'Password' in params ? params.Password : null;
1520
- this.RdsInstanceId = 'RdsInstanceId' in params ? params.RdsInstanceId : null;
1521
- this.CvmInstanceId = 'CvmInstanceId' in params ? params.CvmInstanceId : null;
1522
- this.UniqDcgId = 'UniqDcgId' in params ? params.UniqDcgId : null;
1523
- this.VpcId = 'VpcId' in params ? params.VpcId : null;
1524
- this.SubnetId = 'SubnetId' in params ? params.SubnetId : null;
1525
- this.UniqVpnGwId = 'UniqVpnGwId' in params ? params.UniqVpnGwId : null;
1526
- this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
1527
- this.Region = 'Region' in params ? params.Region : null;
1528
- this.Supplier = 'Supplier' in params ? params.Supplier : null;
1529
- this.CcnId = 'CcnId' in params ? params.CcnId : null;
1530
- this.EngineVersion = 'EngineVersion' in params ? params.EngineVersion : null;
1531
-
1532
- }
1533
- }
1534
-
1535
- /**
1536
- * Sampling parameter for spot check
1537
- * @class
1538
- */
1539
- class ConsistencyParams extends AbstractModel {
1540
- constructor(){
1541
- super();
1542
-
1543
- /**
1544
- * Data content check parameter, which refers to the proportion of the rows selected for data comparison in all the rows of the table. Value: an integer between 1 and 100.
1545
- * @type {number || null}
491
+ * Region name, such as South China
492
+ Note: this field may return null, indicating that no valid values can be obtained.
493
+ * @type {string || null}
1546
494
  */
1547
- this.SelectRowsPerTable = null;
495
+ this.Area = null;
1548
496
 
1549
497
  /**
1550
- * Data content check parameter, which refers to the proportion of the tables selected for data detection in all the tables. Value: an integer between 1 and 100.
498
+ * Whether it is the default region. 0: no, 1: yes
499
+ Note: this field may return null, indicating that no valid values can be obtained.
1551
500
  * @type {number || null}
1552
501
  */
1553
- this.TablesSelectAll = null;
502
+ this.IsDefaultRegion = null;
1554
503
 
1555
504
  /**
1556
- * Data quantity check parameter, which checks whether the numbers of rows are identical. It refers to the proportion of the tables selected for quantity check in all the tables. Value: an integer between 1 and 100.
505
+ * Purchasable status of current region. 1: normal, 2: beta test, 3: not purchasable
506
+ Note: this field may return null, indicating that no valid values can be obtained.
1557
507
  * @type {number || null}
1558
508
  */
1559
- this.TablesSelectCount = null;
509
+ this.Status = null;
1560
510
 
1561
511
  }
1562
512
 
@@ -1567,155 +517,34 @@ class ConsistencyParams extends AbstractModel {
1567
517
  if (!params) {
1568
518
  return;
1569
519
  }
1570
- this.SelectRowsPerTable = 'SelectRowsPerTable' in params ? params.SelectRowsPerTable : null;
1571
- this.TablesSelectAll = 'TablesSelectAll' in params ? params.TablesSelectAll : null;
1572
- this.TablesSelectCount = 'TablesSelectCount' in params ? params.TablesSelectCount : null;
520
+ this.RegionName = 'RegionName' in params ? params.RegionName : null;
521
+ this.Region = 'Region' in params ? params.Region : null;
522
+ this.Area = 'Area' in params ? params.Area : null;
523
+ this.IsDefaultRegion = 'IsDefaultRegion' in params ? params.IsDefaultRegion : null;
524
+ this.Status = 'Status' in params ? params.Status : null;
1573
525
 
1574
526
  }
1575
527
  }
1576
528
 
1577
529
  /**
1578
- * ModifyMigrateJob request structure.
530
+ * ModifySubscribeName request structure.
1579
531
  * @class
1580
532
  */
1581
- class ModifyMigrateJobRequest extends AbstractModel {
533
+ class ModifySubscribeNameRequest extends AbstractModel {
1582
534
  constructor(){
1583
535
  super();
1584
536
 
1585
537
  /**
1586
- * ID of the data migration task to be modified
1587
- * @type {string || null}
1588
- */
1589
- this.JobId = null;
1590
-
1591
- /**
1592
- * Data migration task name
1593
- * @type {string || null}
1594
- */
1595
- this.JobName = null;
1596
-
1597
- /**
1598
- * Migration task configuration options
1599
- * @type {MigrateOption || null}
1600
- */
1601
- this.MigrateOption = null;
1602
-
1603
- /**
1604
- * Source instance access type. Valid values: extranet (public network), cvm (CVM-based self-created instance), dcg (Direct Connect-enabled instance), vpncloud (Tencent Cloud VPN-enabled instance), cdb (TencentDB instance)
1605
- * @type {string || null}
1606
- */
1607
- this.SrcAccessType = null;
1608
-
1609
- /**
1610
- * Source instance information, which is correlated with the migration task type
1611
- * @type {SrcInfo || null}
1612
- */
1613
- this.SrcInfo = null;
1614
-
1615
- /**
1616
- * Target instance access type. Valid values: extranet (public network), cvm (CVM-based self-created instance), dcg (Direct Connect-enabled instance), vpncloud (Tencent Cloud VPN-enabled instance), cdb (TencentDB instance). Currently, only `cdb` is supported
1617
- * @type {string || null}
1618
- */
1619
- this.DstAccessType = null;
1620
-
1621
- /**
1622
- * Target instance information. The region where the target instance is located cannot be modified.
1623
- * @type {DstInfo || null}
1624
- */
1625
- this.DstInfo = null;
1626
-
1627
- /**
1628
- * When migrating the specified table, you need to set the information of the source database table to be migrated, which should be described in JSON string format. Below are examples.
1629
-
1630
- For databases with a database-table structure:
1631
- [{"Database":"db1","Table":["table1","table2"]},{"Database":"db2"}]
1632
- For databases with a database-schema-table structure:
1633
- [{"Database":"db1","Schema":"s1","Table":["table1","table2"]},{"Database":"db1","Schema":"s2","Table":["table1","table2"]},{"Database":"db2","Schema":"s1","Table":["table1","table2"]},{"Database":"db3"},{"Database":"db4","Schema":"s1"}]
1634
-
1635
- This field does not need to be set when the entire instance is to be migrated
538
+ * Data subscription instance ID
1636
539
  * @type {string || null}
1637
540
  */
1638
- this.DatabaseInfo = null;
1639
-
1640
- }
1641
-
1642
- /**
1643
- * @private
1644
- */
1645
- deserialize(params) {
1646
- if (!params) {
1647
- return;
1648
- }
1649
- this.JobId = 'JobId' in params ? params.JobId : null;
1650
- this.JobName = 'JobName' in params ? params.JobName : null;
1651
-
1652
- if (params.MigrateOption) {
1653
- let obj = new MigrateOption();
1654
- obj.deserialize(params.MigrateOption)
1655
- this.MigrateOption = obj;
1656
- }
1657
- this.SrcAccessType = 'SrcAccessType' in params ? params.SrcAccessType : null;
1658
-
1659
- if (params.SrcInfo) {
1660
- let obj = new SrcInfo();
1661
- obj.deserialize(params.SrcInfo)
1662
- this.SrcInfo = obj;
1663
- }
1664
- this.DstAccessType = 'DstAccessType' in params ? params.DstAccessType : null;
1665
-
1666
- if (params.DstInfo) {
1667
- let obj = new DstInfo();
1668
- obj.deserialize(params.DstInfo)
1669
- this.DstInfo = obj;
1670
- }
1671
- this.DatabaseInfo = 'DatabaseInfo' in params ? params.DatabaseInfo : null;
1672
-
1673
- }
1674
- }
1675
-
1676
- /**
1677
- * CreateSubscribe request structure.
1678
- * @class
1679
- */
1680
- class CreateSubscribeRequest extends AbstractModel {
1681
- constructor(){
1682
- super();
541
+ this.SubscribeId = null;
1683
542
 
1684
543
  /**
1685
- * Subscribed database type. Currently, MySQL is supported
544
+ * Data subscription instance name. Length limit: [1,60]
1686
545
  * @type {string || null}
1687
546
  */
1688
- this.Product = null;
1689
-
1690
- /**
1691
- * Instance billing mode, which is always 1 (hourly billing),
1692
- * @type {number || null}
1693
- */
1694
- this.PayType = null;
1695
-
1696
- /**
1697
- * Purchase duration in months, which is required if `PayType` is 0. Maximum value: 120 (this field is not required of global site users and is better to be hidden)
1698
- * @type {number || null}
1699
- */
1700
- this.Duration = null;
1701
-
1702
- /**
1703
- * Quantity. Default value: 1. Maximum value: 10
1704
- * @type {number || null}
1705
- */
1706
- this.Count = null;
1707
-
1708
- /**
1709
- * Whether to auto-renew. Default value: 0. This flag does not take effect for hourly billed instances (this field should be hidden from global site users)
1710
- * @type {number || null}
1711
- */
1712
- this.AutoRenew = null;
1713
-
1714
- /**
1715
- * Instance resource tags
1716
- * @type {Array.<TagItem> || null}
1717
- */
1718
- this.Tags = null;
547
+ this.SubscribeName = null;
1719
548
 
1720
549
  }
1721
550
 
@@ -1726,29 +555,17 @@ class CreateSubscribeRequest extends AbstractModel {
1726
555
  if (!params) {
1727
556
  return;
1728
557
  }
1729
- this.Product = 'Product' in params ? params.Product : null;
1730
- this.PayType = 'PayType' in params ? params.PayType : null;
1731
- this.Duration = 'Duration' in params ? params.Duration : null;
1732
- this.Count = 'Count' in params ? params.Count : null;
1733
- this.AutoRenew = 'AutoRenew' in params ? params.AutoRenew : null;
1734
-
1735
- if (params.Tags) {
1736
- this.Tags = new Array();
1737
- for (let z in params.Tags) {
1738
- let obj = new TagItem();
1739
- obj.deserialize(params.Tags[z]);
1740
- this.Tags.push(obj);
1741
- }
1742
- }
558
+ this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null;
559
+ this.SubscribeName = 'SubscribeName' in params ? params.SubscribeName : null;
1743
560
 
1744
561
  }
1745
562
  }
1746
563
 
1747
564
  /**
1748
- * CreateMigrateCheckJob response structure.
565
+ * ModifySubscribeConsumeTime response structure.
1749
566
  * @class
1750
567
  */
1751
- class CreateMigrateCheckJobResponse extends AbstractModel {
568
+ class ModifySubscribeConsumeTimeResponse extends AbstractModel {
1752
569
  constructor(){
1753
570
  super();
1754
571
 
@@ -1773,87 +590,54 @@ class CreateMigrateCheckJobResponse extends AbstractModel {
1773
590
  }
1774
591
 
1775
592
  /**
1776
- * Information of steps in migration
593
+ * Target instance information, which is correlated with the migration task type
1777
594
  * @class
1778
595
  */
1779
- class MigrateStepDetailInfo extends AbstractModel {
596
+ class DstInfo extends AbstractModel {
1780
597
  constructor(){
1781
598
  super();
1782
599
 
1783
600
  /**
1784
- * Step number
1785
- * @type {number || null}
601
+ * Target instance ID, such as cdb-jd92ijd8
602
+ * @type {string || null}
1786
603
  */
1787
- this.StepNo = null;
604
+ this.InstanceId = null;
1788
605
 
1789
606
  /**
1790
- * Step name
607
+ * Target instance region, such as ap-guangzhou
1791
608
  * @type {string || null}
1792
609
  */
1793
- this.StepName = null;
610
+ this.Region = null;
1794
611
 
1795
612
  /**
1796
- * Step ID
613
+ * Target instance VIP, which has been disused and does not need to be entered
1797
614
  * @type {string || null}
1798
615
  */
1799
- this.StepId = null;
616
+ this.Ip = null;
1800
617
 
1801
618
  /**
1802
- * Step status. Value range: 0 (default), 1 (succeeded), 2 (failed), 3 (in progress), 4 (not started)
619
+ * Target instance Vport, which has been disused and does not need to be entered
1803
620
  * @type {number || null}
1804
- */
1805
- this.Status = null;
1806
-
1807
- /**
1808
- * Start time of current step in the format of `yyyy-mm-dd hh:mm:ss`. This field is meaningless if it does not exist or is empty
1809
- Note: this field may return null, indicating that no valid values can be obtained.
1810
- * @type {string || null}
1811
- */
1812
- this.StartTime = null;
1813
-
1814
- }
1815
-
1816
- /**
1817
- * @private
1818
- */
1819
- deserialize(params) {
1820
- if (!params) {
1821
- return;
1822
- }
1823
- this.StepNo = 'StepNo' in params ? params.StepNo : null;
1824
- this.StepName = 'StepName' in params ? params.StepName : null;
1825
- this.StepId = 'StepId' in params ? params.StepId : null;
1826
- this.Status = 'Status' in params ? params.Status : null;
1827
- this.StartTime = 'StartTime' in params ? params.StartTime : null;
1828
-
1829
- }
1830
- }
1831
-
1832
- /**
1833
- * ModifySubscribeObjects request structure.
1834
- * @class
1835
- */
1836
- class ModifySubscribeObjectsRequest extends AbstractModel {
1837
- constructor(){
1838
- super();
621
+ */
622
+ this.Port = null;
1839
623
 
1840
624
  /**
1841
- * Data subscription instance ID
1842
- * @type {string || null}
625
+ * Only valid for MySQL currently. For instance-level migration, the value range is: 1 (read-only), 0 (read/write)
626
+ * @type {number || null}
1843
627
  */
1844
- this.SubscribeId = null;
628
+ this.ReadOnly = null;
1845
629
 
1846
630
  /**
1847
- * Data subscription type. Valid values: 0 (full instance subscription), 1 (data subscription), 2 (structure subscription), 3 (data subscription + structure subscription)
1848
- * @type {number || null}
631
+ * Target database account
632
+ * @type {string || null}
1849
633
  */
1850
- this.SubscribeObjectType = null;
634
+ this.User = null;
1851
635
 
1852
636
  /**
1853
- * Information of subscribed table
1854
- * @type {Array.<SubscribeObject> || null}
637
+ * Target database password
638
+ * @type {string || null}
1855
639
  */
1856
- this.Objects = null;
640
+ this.Password = null;
1857
641
 
1858
642
  }
1859
643
 
@@ -1864,188 +648,188 @@ class ModifySubscribeObjectsRequest extends AbstractModel {
1864
648
  if (!params) {
1865
649
  return;
1866
650
  }
1867
- this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null;
1868
- this.SubscribeObjectType = 'SubscribeObjectType' in params ? params.SubscribeObjectType : null;
1869
-
1870
- if (params.Objects) {
1871
- this.Objects = new Array();
1872
- for (let z in params.Objects) {
1873
- let obj = new SubscribeObject();
1874
- obj.deserialize(params.Objects[z]);
1875
- this.Objects.push(obj);
1876
- }
1877
- }
651
+ this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
652
+ this.Region = 'Region' in params ? params.Region : null;
653
+ this.Ip = 'Ip' in params ? params.Ip : null;
654
+ this.Port = 'Port' in params ? params.Port : null;
655
+ this.ReadOnly = 'ReadOnly' in params ? params.ReadOnly : null;
656
+ this.User = 'User' in params ? params.User : null;
657
+ this.Password = 'Password' in params ? params.Password : null;
1878
658
 
1879
659
  }
1880
660
  }
1881
661
 
1882
662
  /**
1883
- * DescribeMigrateCheckJob response structure.
663
+ * DescribeSubscribeConf response structure.
1884
664
  * @class
1885
665
  */
1886
- class DescribeMigrateCheckJobResponse extends AbstractModel {
666
+ class DescribeSubscribeConfResponse extends AbstractModel {
1887
667
  constructor(){
1888
668
  super();
1889
669
 
1890
670
  /**
1891
- * Check task status: unavailable, starting, running, finished
671
+ * Subscription instance ID
1892
672
  * @type {string || null}
1893
673
  */
1894
- this.Status = null;
674
+ this.SubscribeId = null;
1895
675
 
1896
676
  /**
1897
- * Task error code
1898
- * @type {number || null}
677
+ * Subscription instance name
678
+ * @type {string || null}
1899
679
  */
1900
- this.ErrorCode = null;
680
+ this.SubscribeName = null;
1901
681
 
1902
682
  /**
1903
- * Task error message
683
+ * Subscription channel
1904
684
  * @type {string || null}
1905
685
  */
1906
- this.ErrorMessage = null;
686
+ this.ChannelId = null;
1907
687
 
1908
688
  /**
1909
- * Check task progress. For example, "30" means 30% completed
689
+ * Subscribed database type
1910
690
  * @type {string || null}
1911
691
  */
1912
- this.Progress = null;
692
+ this.Product = null;
1913
693
 
1914
694
  /**
1915
- * Whether the check succeeds. 0: no; 1: yes; 3: not checked
1916
- * @type {number || null}
695
+ * Subscribed instance
696
+ * @type {string || null}
1917
697
  */
1918
- this.CheckFlag = null;
698
+ this.InstanceId = null;
1919
699
 
1920
700
  /**
1921
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
701
+ * Subscribed instance status. Valid values: running, offline, isolate
1922
702
  * @type {string || null}
1923
703
  */
1924
- this.RequestId = null;
1925
-
1926
- }
704
+ this.InstanceStatus = null;
1927
705
 
1928
- /**
1929
- * @private
1930
- */
1931
- deserialize(params) {
1932
- if (!params) {
1933
- return;
1934
- }
1935
- this.Status = 'Status' in params ? params.Status : null;
1936
- this.ErrorCode = 'ErrorCode' in params ? params.ErrorCode : null;
1937
- this.ErrorMessage = 'ErrorMessage' in params ? params.ErrorMessage : null;
1938
- this.Progress = 'Progress' in params ? params.Progress : null;
1939
- this.CheckFlag = 'CheckFlag' in params ? params.CheckFlag : null;
1940
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
706
+ /**
707
+ * Subscription instance status. Valid values: unconfigure, configuring, configured
708
+ * @type {string || null}
709
+ */
710
+ this.SubsStatus = null;
1941
711
 
1942
- }
1943
- }
712
+ /**
713
+ * Subscription instance lifecycle status. Valid values: normal, isolating, isolated, offlining
714
+ * @type {string || null}
715
+ */
716
+ this.Status = null;
1944
717
 
1945
- /**
1946
- * Sale information of data subscription region
1947
- * @class
1948
- */
1949
- class SubscribeRegionConf extends AbstractModel {
1950
- constructor(){
1951
- super();
718
+ /**
719
+ * Subscription instance creation time
720
+ * @type {string || null}
721
+ */
722
+ this.CreateTime = null;
1952
723
 
1953
724
  /**
1954
- * Region name, such as Guangzhou
1955
- Note: this field may return null, indicating that no valid values can be obtained.
725
+ * Subscription instance isolation time
1956
726
  * @type {string || null}
1957
727
  */
1958
- this.RegionName = null;
728
+ this.IsolateTime = null;
1959
729
 
1960
730
  /**
1961
- * Region ID, such as ap-guangzhou
1962
- Note: this field may return null, indicating that no valid values can be obtained.
731
+ * Subscription instance expiration time
1963
732
  * @type {string || null}
1964
733
  */
1965
- this.Region = null;
734
+ this.ExpireTime = null;
1966
735
 
1967
736
  /**
1968
- * Region name, such as South China
1969
- Note: this field may return null, indicating that no valid values can be obtained.
737
+ * Subscription instance deactivation time
1970
738
  * @type {string || null}
1971
739
  */
1972
- this.Area = null;
740
+ this.OfflineTime = null;
1973
741
 
1974
742
  /**
1975
- * Whether it is the default region. 0: no, 1: yes
1976
- Note: this field may return null, indicating that no valid values can be obtained.
1977
- * @type {number || null}
743
+ * Consumption starting time point of subscription instance
744
+ * @type {string || null}
1978
745
  */
1979
- this.IsDefaultRegion = null;
746
+ this.ConsumeStartTime = null;
1980
747
 
1981
748
  /**
1982
- * Purchasable status of current region. 1: normal, 2: beta test, 3: not purchasable
1983
- Note: this field may return null, indicating that no valid values can be obtained.
749
+ * Subscription instance billing mode. 1: hourly billing
1984
750
  * @type {number || null}
1985
751
  */
1986
- this.Status = null;
752
+ this.PayType = null;
1987
753
 
1988
- }
754
+ /**
755
+ * Subscription channel VIP
756
+ * @type {string || null}
757
+ */
758
+ this.Vip = null;
1989
759
 
1990
- /**
1991
- * @private
1992
- */
1993
- deserialize(params) {
1994
- if (!params) {
1995
- return;
1996
- }
1997
- this.RegionName = 'RegionName' in params ? params.RegionName : null;
1998
- this.Region = 'Region' in params ? params.Region : null;
1999
- this.Area = 'Area' in params ? params.Area : null;
2000
- this.IsDefaultRegion = 'IsDefaultRegion' in params ? params.IsDefaultRegion : null;
2001
- this.Status = 'Status' in params ? params.Status : null;
760
+ /**
761
+ * Subscription channel port
762
+ * @type {number || null}
763
+ */
764
+ this.Vport = null;
2002
765
 
2003
- }
2004
- }
766
+ /**
767
+ * Subscription channel `VpcId`
768
+ * @type {string || null}
769
+ */
770
+ this.UniqVpcId = null;
2005
771
 
2006
- /**
2007
- * ActivateSubscribe request structure.
2008
- * @class
2009
- */
2010
- class ActivateSubscribeRequest extends AbstractModel {
2011
- constructor(){
2012
- super();
772
+ /**
773
+ * Subscription channel `SubnetId`
774
+ * @type {string || null}
775
+ */
776
+ this.UniqSubnetId = null;
2013
777
 
2014
778
  /**
2015
- * Subscription instance ID.
779
+ * Current SDK consumption time point
2016
780
  * @type {string || null}
2017
781
  */
2018
- this.SubscribeId = null;
782
+ this.SdkConsumedTime = null;
2019
783
 
2020
784
  /**
2021
- * Database Instance ID
785
+ * Subscription SDK IP address
2022
786
  * @type {string || null}
2023
787
  */
2024
- this.InstanceId = null;
788
+ this.SdkHost = null;
2025
789
 
2026
790
  /**
2027
- * Data subscription type. 0: full instance subscription, 1: data subscription, 2: structure subscription, 3: data subscription and structure subscription
791
+ * Subscription object type. 0: full instance subscription, 1: DDL data subscription, 2: DML structure subscription, 3: DDL data subscription + DML structure subscription
2028
792
  * @type {number || null}
2029
793
  */
2030
794
  this.SubscribeObjectType = null;
2031
795
 
2032
796
  /**
2033
- * Subscription object
2034
- * @type {SubscribeObject || null}
797
+ * Subscription object, which is an empty array if `SubscribeObjectType` is 0
798
+ * @type {Array.<SubscribeObject> || null}
2035
799
  */
2036
- this.Objects = null;
800
+ this.SubscribeObjects = null;
2037
801
 
2038
802
  /**
2039
- * Subnet of data subscription service, which is the subnet of the database instance by default.
803
+ * Modification time
2040
804
  * @type {string || null}
2041
805
  */
2042
- this.UniqSubnetId = null;
806
+ this.ModifyTime = null;
2043
807
 
2044
808
  /**
2045
- * Subscription service port. Default value: 7507
809
+ * Region
810
+ * @type {string || null}
811
+ */
812
+ this.Region = null;
813
+
814
+ /**
815
+ * Tags of the subscription
816
+ Note: this field may return `null`, indicating that no valid values can be obtained.
817
+ * @type {Array.<TagItem> || null}
818
+ */
819
+ this.Tags = null;
820
+
821
+ /**
822
+ * Whether auto-renewal is enabled. 0: do not enable, 1: enable
823
+ Note: this field may return `null`, indicating that no valid values can be obtained.
2046
824
  * @type {number || null}
2047
825
  */
2048
- this.Vport = null;
826
+ this.AutoRenewFlag = null;
827
+
828
+ /**
829
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
830
+ * @type {string || null}
831
+ */
832
+ this.RequestId = null;
2049
833
 
2050
834
  }
2051
835
 
@@ -2057,33 +841,65 @@ class ActivateSubscribeRequest extends AbstractModel {
2057
841
  return;
2058
842
  }
2059
843
  this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null;
844
+ this.SubscribeName = 'SubscribeName' in params ? params.SubscribeName : null;
845
+ this.ChannelId = 'ChannelId' in params ? params.ChannelId : null;
846
+ this.Product = 'Product' in params ? params.Product : null;
2060
847
  this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
848
+ this.InstanceStatus = 'InstanceStatus' in params ? params.InstanceStatus : null;
849
+ this.SubsStatus = 'SubsStatus' in params ? params.SubsStatus : null;
850
+ this.Status = 'Status' in params ? params.Status : null;
851
+ this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
852
+ this.IsolateTime = 'IsolateTime' in params ? params.IsolateTime : null;
853
+ this.ExpireTime = 'ExpireTime' in params ? params.ExpireTime : null;
854
+ this.OfflineTime = 'OfflineTime' in params ? params.OfflineTime : null;
855
+ this.ConsumeStartTime = 'ConsumeStartTime' in params ? params.ConsumeStartTime : null;
856
+ this.PayType = 'PayType' in params ? params.PayType : null;
857
+ this.Vip = 'Vip' in params ? params.Vip : null;
858
+ this.Vport = 'Vport' in params ? params.Vport : null;
859
+ this.UniqVpcId = 'UniqVpcId' in params ? params.UniqVpcId : null;
860
+ this.UniqSubnetId = 'UniqSubnetId' in params ? params.UniqSubnetId : null;
861
+ this.SdkConsumedTime = 'SdkConsumedTime' in params ? params.SdkConsumedTime : null;
862
+ this.SdkHost = 'SdkHost' in params ? params.SdkHost : null;
2061
863
  this.SubscribeObjectType = 'SubscribeObjectType' in params ? params.SubscribeObjectType : null;
2062
864
 
2063
- if (params.Objects) {
2064
- let obj = new SubscribeObject();
2065
- obj.deserialize(params.Objects)
2066
- this.Objects = obj;
865
+ if (params.SubscribeObjects) {
866
+ this.SubscribeObjects = new Array();
867
+ for (let z in params.SubscribeObjects) {
868
+ let obj = new SubscribeObject();
869
+ obj.deserialize(params.SubscribeObjects[z]);
870
+ this.SubscribeObjects.push(obj);
871
+ }
872
+ }
873
+ this.ModifyTime = 'ModifyTime' in params ? params.ModifyTime : null;
874
+ this.Region = 'Region' in params ? params.Region : null;
875
+
876
+ if (params.Tags) {
877
+ this.Tags = new Array();
878
+ for (let z in params.Tags) {
879
+ let obj = new TagItem();
880
+ obj.deserialize(params.Tags[z]);
881
+ this.Tags.push(obj);
882
+ }
2067
883
  }
2068
- this.UniqSubnetId = 'UniqSubnetId' in params ? params.UniqSubnetId : null;
2069
- this.Vport = 'Vport' in params ? params.Vport : null;
884
+ this.AutoRenewFlag = 'AutoRenewFlag' in params ? params.AutoRenewFlag : null;
885
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2070
886
 
2071
887
  }
2072
888
  }
2073
889
 
2074
890
  /**
2075
- * OfflineIsolatedSubscribe request structure.
891
+ * DescribeAsyncRequestInfo request structure.
2076
892
  * @class
2077
893
  */
2078
- class OfflineIsolatedSubscribeRequest extends AbstractModel {
894
+ class DescribeAsyncRequestInfoRequest extends AbstractModel {
2079
895
  constructor(){
2080
896
  super();
2081
897
 
2082
898
  /**
2083
- * Data subscription instance ID
899
+ * Task ID
2084
900
  * @type {string || null}
2085
901
  */
2086
- this.SubscribeId = null;
902
+ this.AsyncRequestId = null;
2087
903
 
2088
904
  }
2089
905
 
@@ -2094,172 +910,115 @@ class OfflineIsolatedSubscribeRequest extends AbstractModel {
2094
910
  if (!params) {
2095
911
  return;
2096
912
  }
2097
- this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null;
913
+ this.AsyncRequestId = 'AsyncRequestId' in params ? params.AsyncRequestId : null;
2098
914
 
2099
915
  }
2100
916
  }
2101
917
 
2102
918
  /**
2103
- * DescribeSubscribes request structure.
919
+ * Source instance information
2104
920
  * @class
2105
921
  */
2106
- class DescribeSubscribesRequest extends AbstractModel {
922
+ class SrcInfo extends AbstractModel {
2107
923
  constructor(){
2108
924
  super();
2109
925
 
2110
926
  /**
2111
- * Data subscription instance ID
927
+ * Alibaba Cloud AccessKey, which is applicable if the source database is an Alibaba Cloud ApsaraDB for RDS 5.6 instance
2112
928
  * @type {string || null}
2113
929
  */
2114
- this.SubscribeId = null;
930
+ this.AccessKey = null;
2115
931
 
2116
932
  /**
2117
- * Data subscription instance name
933
+ * Instance IP address
2118
934
  * @type {string || null}
2119
935
  */
2120
- this.SubscribeName = null;
936
+ this.Ip = null;
2121
937
 
2122
938
  /**
2123
- * ID of bound database instance
2124
- * @type {string || null}
939
+ * Instance port
940
+ * @type {number || null}
2125
941
  */
2126
- this.InstanceId = null;
942
+ this.Port = null;
2127
943
 
2128
944
  /**
2129
- * Data subscription instance channel ID
945
+ * Instance username
2130
946
  * @type {string || null}
2131
947
  */
2132
- this.ChannelId = null;
948
+ this.User = null;
2133
949
 
2134
950
  /**
2135
- * Billing mode filter. Default value: 1 (pay-as-you-go)
951
+ * Instance password
2136
952
  * @type {string || null}
2137
953
  */
2138
- this.PayType = null;
954
+ this.Password = null;
2139
955
 
2140
956
  /**
2141
- * Subscribed database product, such as MySQL
957
+ * Alibaba Cloud ApsaraDB for RDS instance ID, which is applicable if the source database is an Alibaba Cloud ApsaraDB for RDS 5.6/5.7 instance
2142
958
  * @type {string || null}
2143
959
  */
2144
- this.Product = null;
960
+ this.RdsInstanceId = null;
2145
961
 
2146
962
  /**
2147
- * Data subscription instance status. Valid values: creating, normal, isolating, isolated, offlining
2148
- * @type {Array.<string> || null}
963
+ * Short CVM instance ID in the format of `ins-olgl39y8`. It is the same as the instance ID displayed on the CVM Console page. For CVM-based self-created instances, this field needs to be passed in
964
+ * @type {string || null}
2149
965
  */
2150
- this.Status = null;
966
+ this.CvmInstanceId = null;
2151
967
 
2152
968
  /**
2153
- * Data subscription instance configuration status. Valid values: unconfigure, configuring, configured
2154
- * @type {Array.<string> || null}
969
+ * Direct Connect gateway ID in the format of dcg-0rxtqqxb
970
+ * @type {string || null}
2155
971
  */
2156
- this.SubsStatus = null;
972
+ this.UniqDcgId = null;
2157
973
 
2158
974
  /**
2159
- * Starting offset of returned results
2160
- * @type {number || null}
975
+ * VPC ID in the format of vpc-92jblxto
976
+ * @type {string || null}
2161
977
  */
2162
- this.Offset = null;
978
+ this.VpcId = null;
2163
979
 
2164
980
  /**
2165
- * Number of results to be returned at a time
2166
- * @type {number || null}
981
+ * VPC Subnet ID in the format of subnet-3paxmkdz
982
+ * @type {string || null}
2167
983
  */
2168
- this.Limit = null;
984
+ this.SubnetId = null;
2169
985
 
2170
986
  /**
2171
- * Sorting order. Valid values: DESC, ASC. Default value: DESC, indicating descending by creation time
987
+ * VPN gateway ID in the format of vpngw-9ghexg7q
2172
988
  * @type {string || null}
2173
989
  */
2174
- this.OrderDirection = null;
990
+ this.UniqVpnGwId = null;
2175
991
 
2176
992
  /**
2177
- * Tag filtering condition
2178
- * @type {Array.<TagFilter> || null}
993
+ * Database instance ID in the format of cdb-powiqx8q
994
+ * @type {string || null}
2179
995
  */
2180
- this.TagFilters = null;
996
+ this.InstanceId = null;
2181
997
 
2182
998
  /**
2183
- * Subscription instance edition. `txdts`: legacy data subscription; `kafka`: data subscription in Kafka edition
999
+ * Region name, such as ap-guangzhou
2184
1000
  * @type {string || null}
2185
1001
  */
2186
- this.SubscribeVersion = null;
2187
-
2188
- }
2189
-
2190
- /**
2191
- * @private
2192
- */
2193
- deserialize(params) {
2194
- if (!params) {
2195
- return;
2196
- }
2197
- this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null;
2198
- this.SubscribeName = 'SubscribeName' in params ? params.SubscribeName : null;
2199
- this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
2200
- this.ChannelId = 'ChannelId' in params ? params.ChannelId : null;
2201
- this.PayType = 'PayType' in params ? params.PayType : null;
2202
- this.Product = 'Product' in params ? params.Product : null;
2203
- this.Status = 'Status' in params ? params.Status : null;
2204
- this.SubsStatus = 'SubsStatus' in params ? params.SubsStatus : null;
2205
- this.Offset = 'Offset' in params ? params.Offset : null;
2206
- this.Limit = 'Limit' in params ? params.Limit : null;
2207
- this.OrderDirection = 'OrderDirection' in params ? params.OrderDirection : null;
2208
-
2209
- if (params.TagFilters) {
2210
- this.TagFilters = new Array();
2211
- for (let z in params.TagFilters) {
2212
- let obj = new TagFilter();
2213
- obj.deserialize(params.TagFilters[z]);
2214
- this.TagFilters.push(obj);
2215
- }
2216
- }
2217
- this.SubscribeVersion = 'SubscribeVersion' in params ? params.SubscribeVersion : null;
2218
-
2219
- }
2220
- }
2221
-
2222
- /**
2223
- * ResetSubscribe response structure.
2224
- * @class
2225
- */
2226
- class ResetSubscribeResponse extends AbstractModel {
2227
- constructor(){
2228
- super();
1002
+ this.Region = null;
2229
1003
 
2230
1004
  /**
2231
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1005
+ * For Alibaba Cloud ApsaraDB for RDS instances, enter "aliyun"; otherwise, enter "others"
2232
1006
  * @type {string || null}
2233
1007
  */
2234
- this.RequestId = null;
2235
-
2236
- }
2237
-
2238
- /**
2239
- * @private
2240
- */
2241
- deserialize(params) {
2242
- if (!params) {
2243
- return;
2244
- }
2245
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
2246
-
2247
- }
2248
- }
1008
+ this.Supplier = null;
2249
1009
 
2250
- /**
2251
- * StartSyncJob response structure.
2252
- * @class
2253
- */
2254
- class StartSyncJobResponse extends AbstractModel {
2255
- constructor(){
2256
- super();
1010
+ /**
1011
+ * CCN instance ID, such as ccn-afp6kltc
1012
+ Note: This field may return null, indicating that no valid values can be obtained.
1013
+ * @type {string || null}
1014
+ */
1015
+ this.CcnId = null;
2257
1016
 
2258
1017
  /**
2259
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1018
+ * Database version. This parameter is valid only when the instance is an RDS instance. Value: 5.6 or 5.7. Default value: 5.6
2260
1019
  * @type {string || null}
2261
1020
  */
2262
- this.RequestId = null;
1021
+ this.EngineVersion = null;
2263
1022
 
2264
1023
  }
2265
1024
 
@@ -2270,36 +1029,51 @@ class StartSyncJobResponse extends AbstractModel {
2270
1029
  if (!params) {
2271
1030
  return;
2272
1031
  }
2273
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
1032
+ this.AccessKey = 'AccessKey' in params ? params.AccessKey : null;
1033
+ this.Ip = 'Ip' in params ? params.Ip : null;
1034
+ this.Port = 'Port' in params ? params.Port : null;
1035
+ this.User = 'User' in params ? params.User : null;
1036
+ this.Password = 'Password' in params ? params.Password : null;
1037
+ this.RdsInstanceId = 'RdsInstanceId' in params ? params.RdsInstanceId : null;
1038
+ this.CvmInstanceId = 'CvmInstanceId' in params ? params.CvmInstanceId : null;
1039
+ this.UniqDcgId = 'UniqDcgId' in params ? params.UniqDcgId : null;
1040
+ this.VpcId = 'VpcId' in params ? params.VpcId : null;
1041
+ this.SubnetId = 'SubnetId' in params ? params.SubnetId : null;
1042
+ this.UniqVpnGwId = 'UniqVpnGwId' in params ? params.UniqVpnGwId : null;
1043
+ this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
1044
+ this.Region = 'Region' in params ? params.Region : null;
1045
+ this.Supplier = 'Supplier' in params ? params.Supplier : null;
1046
+ this.CcnId = 'CcnId' in params ? params.CcnId : null;
1047
+ this.EngineVersion = 'EngineVersion' in params ? params.EngineVersion : null;
2274
1048
 
2275
1049
  }
2276
1050
  }
2277
1051
 
2278
1052
  /**
2279
- * DescribeSubscribes response structure.
1053
+ * Sampling parameter for spot check
2280
1054
  * @class
2281
1055
  */
2282
- class DescribeSubscribesResponse extends AbstractModel {
1056
+ class ConsistencyParams extends AbstractModel {
2283
1057
  constructor(){
2284
1058
  super();
2285
1059
 
2286
1060
  /**
2287
- * Number of eligible instances.
1061
+ * Data content check parameter, which refers to the proportion of the rows selected for data comparison in all the rows of the table. Value: an integer between 1 and 100.
2288
1062
  * @type {number || null}
2289
1063
  */
2290
- this.TotalCount = null;
1064
+ this.SelectRowsPerTable = null;
2291
1065
 
2292
1066
  /**
2293
- * Information list of data subscription instances
2294
- * @type {Array.<SubscribeInfo> || null}
1067
+ * Data content check parameter, which refers to the proportion of the tables selected for data detection in all the tables. Value: an integer between 1 and 100.
1068
+ * @type {number || null}
2295
1069
  */
2296
- this.Items = null;
1070
+ this.TablesSelectAll = null;
2297
1071
 
2298
1072
  /**
2299
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2300
- * @type {string || null}
1073
+ * Data quantity check parameter, which checks whether the numbers of rows are identical. It refers to the proportion of the tables selected for quantity check in all the tables. Value: an integer between 1 and 100.
1074
+ * @type {number || null}
2301
1075
  */
2302
- this.RequestId = null;
1076
+ this.TablesSelectCount = null;
2303
1077
 
2304
1078
  }
2305
1079
 
@@ -2310,111 +1084,75 @@ class DescribeSubscribesResponse extends AbstractModel {
2310
1084
  if (!params) {
2311
1085
  return;
2312
1086
  }
2313
- this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
2314
-
2315
- if (params.Items) {
2316
- this.Items = new Array();
2317
- for (let z in params.Items) {
2318
- let obj = new SubscribeInfo();
2319
- obj.deserialize(params.Items[z]);
2320
- this.Items.push(obj);
2321
- }
2322
- }
2323
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
1087
+ this.SelectRowsPerTable = 'SelectRowsPerTable' in params ? params.SelectRowsPerTable : null;
1088
+ this.TablesSelectAll = 'TablesSelectAll' in params ? params.TablesSelectAll : null;
1089
+ this.TablesSelectCount = 'TablesSelectCount' in params ? params.TablesSelectCount : null;
2324
1090
 
2325
1091
  }
2326
1092
  }
2327
1093
 
2328
1094
  /**
2329
- * Check steps for a disaster recovery task
1095
+ * ModifyMigrateJob request structure.
2330
1096
  * @class
2331
1097
  */
2332
- class SyncCheckStepInfo extends AbstractModel {
1098
+ class ModifyMigrateJobRequest extends AbstractModel {
2333
1099
  constructor(){
2334
1100
  super();
2335
1101
 
2336
1102
  /**
2337
- * Step number
2338
- * @type {number || null}
1103
+ * ID of the data migration task to be modified
1104
+ * @type {string || null}
2339
1105
  */
2340
- this.StepNo = null;
1106
+ this.JobId = null;
2341
1107
 
2342
1108
  /**
2343
- * Step name
1109
+ * Data migration task name
2344
1110
  * @type {string || null}
2345
1111
  */
2346
- this.StepName = null;
1112
+ this.JobName = null;
2347
1113
 
2348
1114
  /**
2349
- * Code of the step execution result
2350
- * @type {number || null}
1115
+ * Migration task configuration options
1116
+ * @type {MigrateOption || null}
2351
1117
  */
2352
- this.StepCode = null;
1118
+ this.MigrateOption = null;
2353
1119
 
2354
1120
  /**
2355
- * Message about the step execution result
1121
+ * Source instance access type. Valid values: extranet (public network), cvm (CVM-based self-created instance), dcg (Direct Connect-enabled instance), vpncloud (Tencent Cloud VPN-enabled instance), cdb (TencentDB instance)
2356
1122
  * @type {string || null}
2357
1123
  */
2358
- this.StepMessage = null;
2359
-
2360
- }
2361
-
2362
- /**
2363
- * @private
2364
- */
2365
- deserialize(params) {
2366
- if (!params) {
2367
- return;
2368
- }
2369
- this.StepNo = 'StepNo' in params ? params.StepNo : null;
2370
- this.StepName = 'StepName' in params ? params.StepName : null;
2371
- this.StepCode = 'StepCode' in params ? params.StepCode : null;
2372
- this.StepMessage = 'StepMessage' in params ? params.StepMessage : null;
2373
-
2374
- }
2375
- }
1124
+ this.SrcAccessType = null;
2376
1125
 
2377
- /**
2378
- * CreateSyncCheckJob response structure.
2379
- * @class
2380
- */
2381
- class CreateSyncCheckJobResponse extends AbstractModel {
2382
- constructor(){
2383
- super();
1126
+ /**
1127
+ * Source instance information, which is correlated with the migration task type
1128
+ * @type {SrcInfo || null}
1129
+ */
1130
+ this.SrcInfo = null;
2384
1131
 
2385
1132
  /**
2386
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1133
+ * Target instance access type. Valid values: extranet (public network), cvm (CVM-based self-created instance), dcg (Direct Connect-enabled instance), vpncloud (Tencent Cloud VPN-enabled instance), cdb (TencentDB instance). Currently, only `cdb` is supported
2387
1134
  * @type {string || null}
2388
1135
  */
2389
- this.RequestId = null;
2390
-
2391
- }
1136
+ this.DstAccessType = null;
2392
1137
 
2393
- /**
2394
- * @private
2395
- */
2396
- deserialize(params) {
2397
- if (!params) {
2398
- return;
2399
- }
2400
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
1138
+ /**
1139
+ * Target instance information. The region where the target instance is located cannot be modified.
1140
+ * @type {DstInfo || null}
1141
+ */
1142
+ this.DstInfo = null;
2401
1143
 
2402
- }
2403
- }
1144
+ /**
1145
+ * When migrating the specified table, you need to set the information of the source database table to be migrated, which should be described in JSON string format. Below are examples.
2404
1146
 
2405
- /**
2406
- * StopMigrateJob request structure.
2407
- * @class
2408
- */
2409
- class StopMigrateJobRequest extends AbstractModel {
2410
- constructor(){
2411
- super();
1147
+ For databases with a database-table structure:
1148
+ [{"Database":"db1","Table":["table1","table2"]},{"Database":"db2"}]
1149
+ For databases with a database-schema-table structure:
1150
+ [{"Database":"db1","Schema":"s1","Table":["table1","table2"]},{"Database":"db1","Schema":"s2","Table":["table1","table2"]},{"Database":"db2","Schema":"s1","Table":["table1","table2"]},{"Database":"db3"},{"Database":"db4","Schema":"s1"}]
2412
1151
 
2413
- /**
2414
- * Data migration task ID
1152
+ This field does not need to be set when the entire instance is to be migrated
2415
1153
  * @type {string || null}
2416
1154
  */
2417
- this.JobId = null;
1155
+ this.DatabaseInfo = null;
2418
1156
 
2419
1157
  }
2420
1158
 
@@ -2426,63 +1164,75 @@ class StopMigrateJobRequest extends AbstractModel {
2426
1164
  return;
2427
1165
  }
2428
1166
  this.JobId = 'JobId' in params ? params.JobId : null;
1167
+ this.JobName = 'JobName' in params ? params.JobName : null;
1168
+
1169
+ if (params.MigrateOption) {
1170
+ let obj = new MigrateOption();
1171
+ obj.deserialize(params.MigrateOption)
1172
+ this.MigrateOption = obj;
1173
+ }
1174
+ this.SrcAccessType = 'SrcAccessType' in params ? params.SrcAccessType : null;
1175
+
1176
+ if (params.SrcInfo) {
1177
+ let obj = new SrcInfo();
1178
+ obj.deserialize(params.SrcInfo)
1179
+ this.SrcInfo = obj;
1180
+ }
1181
+ this.DstAccessType = 'DstAccessType' in params ? params.DstAccessType : null;
1182
+
1183
+ if (params.DstInfo) {
1184
+ let obj = new DstInfo();
1185
+ obj.deserialize(params.DstInfo)
1186
+ this.DstInfo = obj;
1187
+ }
1188
+ this.DatabaseInfo = 'DatabaseInfo' in params ? params.DatabaseInfo : null;
2429
1189
 
2430
1190
  }
2431
1191
  }
2432
1192
 
2433
1193
  /**
2434
- * DescribeSyncCheckJob request structure.
1194
+ * CreateSubscribe request structure.
2435
1195
  * @class
2436
1196
  */
2437
- class DescribeSyncCheckJobRequest extends AbstractModel {
1197
+ class CreateSubscribeRequest extends AbstractModel {
2438
1198
  constructor(){
2439
1199
  super();
2440
1200
 
2441
1201
  /**
2442
- * ID of the disaster recovery sync task to be queried
1202
+ * Subscribed database type. Currently, MySQL is supported
2443
1203
  * @type {string || null}
2444
1204
  */
2445
- this.JobId = null;
2446
-
2447
- }
2448
-
2449
- /**
2450
- * @private
2451
- */
2452
- deserialize(params) {
2453
- if (!params) {
2454
- return;
2455
- }
2456
- this.JobId = 'JobId' in params ? params.JobId : null;
1205
+ this.Product = null;
2457
1206
 
2458
- }
2459
- }
1207
+ /**
1208
+ * Instance billing mode, which is always 1 (hourly billing),
1209
+ * @type {number || null}
1210
+ */
1211
+ this.PayType = null;
2460
1212
 
2461
- /**
2462
- * DescribeRegionConf response structure.
2463
- * @class
2464
- */
2465
- class DescribeRegionConfResponse extends AbstractModel {
2466
- constructor(){
2467
- super();
1213
+ /**
1214
+ * Purchase duration in months, which is required if `PayType` is 0. Maximum value: 120 (this field is not required of global site users and is better to be hidden)
1215
+ * @type {number || null}
1216
+ */
1217
+ this.Duration = null;
2468
1218
 
2469
1219
  /**
2470
- * Number of purchasable regions
1220
+ * Quantity. Default value: 1. Maximum value: 10
2471
1221
  * @type {number || null}
2472
1222
  */
2473
- this.TotalCount = null;
1223
+ this.Count = null;
2474
1224
 
2475
1225
  /**
2476
- * Purchasable region details
2477
- * @type {Array.<SubscribeRegionConf> || null}
1226
+ * Whether to auto-renew. Default value: 0. This flag does not take effect for hourly billed instances (this field should be hidden from global site users)
1227
+ * @type {number || null}
2478
1228
  */
2479
- this.Items = null;
1229
+ this.AutoRenew = null;
2480
1230
 
2481
1231
  /**
2482
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2483
- * @type {string || null}
1232
+ * Instance resource tags
1233
+ * @type {Array.<TagItem> || null}
2484
1234
  */
2485
- this.RequestId = null;
1235
+ this.Tags = null;
2486
1236
 
2487
1237
  }
2488
1238
 
@@ -2493,26 +1243,29 @@ class DescribeRegionConfResponse extends AbstractModel {
2493
1243
  if (!params) {
2494
1244
  return;
2495
1245
  }
2496
- this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
1246
+ this.Product = 'Product' in params ? params.Product : null;
1247
+ this.PayType = 'PayType' in params ? params.PayType : null;
1248
+ this.Duration = 'Duration' in params ? params.Duration : null;
1249
+ this.Count = 'Count' in params ? params.Count : null;
1250
+ this.AutoRenew = 'AutoRenew' in params ? params.AutoRenew : null;
2497
1251
 
2498
- if (params.Items) {
2499
- this.Items = new Array();
2500
- for (let z in params.Items) {
2501
- let obj = new SubscribeRegionConf();
2502
- obj.deserialize(params.Items[z]);
2503
- this.Items.push(obj);
1252
+ if (params.Tags) {
1253
+ this.Tags = new Array();
1254
+ for (let z in params.Tags) {
1255
+ let obj = new TagItem();
1256
+ obj.deserialize(params.Tags[z]);
1257
+ this.Tags.push(obj);
2504
1258
  }
2505
1259
  }
2506
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
2507
1260
 
2508
1261
  }
2509
1262
  }
2510
1263
 
2511
1264
  /**
2512
- * ModifySyncJob response structure.
1265
+ * CreateMigrateCheckJob response structure.
2513
1266
  * @class
2514
1267
  */
2515
- class ModifySyncJobResponse extends AbstractModel {
1268
+ class CreateMigrateCheckJobResponse extends AbstractModel {
2516
1269
  constructor(){
2517
1270
  super();
2518
1271
 
@@ -2537,30 +1290,30 @@ class ModifySyncJobResponse extends AbstractModel {
2537
1290
  }
2538
1291
 
2539
1292
  /**
2540
- * DescribeAsyncRequestInfo response structure.
1293
+ * ModifySubscribeObjects request structure.
2541
1294
  * @class
2542
1295
  */
2543
- class DescribeAsyncRequestInfoResponse extends AbstractModel {
1296
+ class ModifySubscribeObjectsRequest extends AbstractModel {
2544
1297
  constructor(){
2545
1298
  super();
2546
1299
 
2547
1300
  /**
2548
- * Task execution result information
1301
+ * Data subscription instance ID
2549
1302
  * @type {string || null}
2550
1303
  */
2551
- this.Info = null;
1304
+ this.SubscribeId = null;
2552
1305
 
2553
1306
  /**
2554
- * Task execution status. Valid values: success, failed, running
2555
- * @type {string || null}
1307
+ * Data subscription type. Valid values: 0 (full instance subscription), 1 (data subscription), 2 (structure subscription), 3 (data subscription + structure subscription)
1308
+ * @type {number || null}
2556
1309
  */
2557
- this.Status = null;
1310
+ this.SubscribeObjectType = null;
2558
1311
 
2559
1312
  /**
2560
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2561
- * @type {string || null}
1313
+ * Information of subscribed table
1314
+ * @type {Array.<SubscribeObject> || null}
2562
1315
  */
2563
- this.RequestId = null;
1316
+ this.Objects = null;
2564
1317
 
2565
1318
  }
2566
1319
 
@@ -2571,32 +1324,64 @@ class DescribeAsyncRequestInfoResponse extends AbstractModel {
2571
1324
  if (!params) {
2572
1325
  return;
2573
1326
  }
2574
- this.Info = 'Info' in params ? params.Info : null;
2575
- this.Status = 'Status' in params ? params.Status : null;
2576
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
1327
+ this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null;
1328
+ this.SubscribeObjectType = 'SubscribeObjectType' in params ? params.SubscribeObjectType : null;
1329
+
1330
+ if (params.Objects) {
1331
+ this.Objects = new Array();
1332
+ for (let z in params.Objects) {
1333
+ let obj = new SubscribeObject();
1334
+ obj.deserialize(params.Objects[z]);
1335
+ this.Objects.push(obj);
1336
+ }
1337
+ }
2577
1338
 
2578
1339
  }
2579
1340
  }
2580
1341
 
2581
1342
  /**
2582
- * CompleteMigrateJob request structure.
1343
+ * DescribeMigrateCheckJob response structure.
2583
1344
  * @class
2584
1345
  */
2585
- class CompleteMigrateJobRequest extends AbstractModel {
1346
+ class DescribeMigrateCheckJobResponse extends AbstractModel {
2586
1347
  constructor(){
2587
1348
  super();
2588
1349
 
2589
1350
  /**
2590
- * Data migration task ID
1351
+ * Check task status: unavailable, starting, running, finished
2591
1352
  * @type {string || null}
2592
1353
  */
2593
- this.JobId = null;
1354
+ this.Status = null;
2594
1355
 
2595
1356
  /**
2596
- * The way to complete the task, which is supported only for legacy MySQL migration task. waitForSync: wait for the source-replica lag to become 0 before stopping; immediately: complete immediately without waiting for source-replica sync. Default value: waitForSync
1357
+ * Task error code
1358
+ * @type {number || null}
1359
+ */
1360
+ this.ErrorCode = null;
1361
+
1362
+ /**
1363
+ * Task error message
2597
1364
  * @type {string || null}
2598
1365
  */
2599
- this.CompleteMode = null;
1366
+ this.ErrorMessage = null;
1367
+
1368
+ /**
1369
+ * Check task progress. For example, "30" means 30% completed
1370
+ * @type {string || null}
1371
+ */
1372
+ this.Progress = null;
1373
+
1374
+ /**
1375
+ * Whether the check succeeds. 0: no; 1: yes; 3: not checked
1376
+ * @type {number || null}
1377
+ */
1378
+ this.CheckFlag = null;
1379
+
1380
+ /**
1381
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1382
+ * @type {string || null}
1383
+ */
1384
+ this.RequestId = null;
2600
1385
 
2601
1386
  }
2602
1387
 
@@ -2607,60 +1392,59 @@ class CompleteMigrateJobRequest extends AbstractModel {
2607
1392
  if (!params) {
2608
1393
  return;
2609
1394
  }
2610
- this.JobId = 'JobId' in params ? params.JobId : null;
2611
- this.CompleteMode = 'CompleteMode' in params ? params.CompleteMode : null;
1395
+ this.Status = 'Status' in params ? params.Status : null;
1396
+ this.ErrorCode = 'ErrorCode' in params ? params.ErrorCode : null;
1397
+ this.ErrorMessage = 'ErrorMessage' in params ? params.ErrorMessage : null;
1398
+ this.Progress = 'Progress' in params ? params.Progress : null;
1399
+ this.CheckFlag = 'CheckFlag' in params ? params.CheckFlag : null;
1400
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2612
1401
 
2613
1402
  }
2614
1403
  }
2615
1404
 
2616
1405
  /**
2617
- * ResetSubscribe request structure.
1406
+ * ActivateSubscribe request structure.
2618
1407
  * @class
2619
1408
  */
2620
- class ResetSubscribeRequest extends AbstractModel {
1409
+ class ActivateSubscribeRequest extends AbstractModel {
2621
1410
  constructor(){
2622
1411
  super();
2623
1412
 
2624
1413
  /**
2625
- * Data subscription instance ID
1414
+ * Subscription instance ID.
2626
1415
  * @type {string || null}
2627
1416
  */
2628
1417
  this.SubscribeId = null;
2629
1418
 
2630
- }
2631
-
2632
- /**
2633
- * @private
2634
- */
2635
- deserialize(params) {
2636
- if (!params) {
2637
- return;
2638
- }
2639
- this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null;
1419
+ /**
1420
+ * Database Instance ID
1421
+ * @type {string || null}
1422
+ */
1423
+ this.InstanceId = null;
2640
1424
 
2641
- }
2642
- }
1425
+ /**
1426
+ * Data subscription type. 0: full instance subscription, 1: data subscription, 2: structure subscription, 3: data subscription and structure subscription
1427
+ * @type {number || null}
1428
+ */
1429
+ this.SubscribeObjectType = null;
2643
1430
 
2644
- /**
2645
- * Tag
2646
- * @class
2647
- */
2648
- class TagItem extends AbstractModel {
2649
- constructor(){
2650
- super();
1431
+ /**
1432
+ * Subscription object
1433
+ * @type {SubscribeObject || null}
1434
+ */
1435
+ this.Objects = null;
2651
1436
 
2652
1437
  /**
2653
- * Tag key value
1438
+ * Subnet of data subscription service, which is the subnet of the database instance by default.
2654
1439
  * @type {string || null}
2655
1440
  */
2656
- this.TagKey = null;
1441
+ this.UniqSubnetId = null;
2657
1442
 
2658
1443
  /**
2659
- * Tag value
2660
- Note: this field may return `null`, indicating that no valid values can be obtained.
2661
- * @type {string || null}
1444
+ * Subscription service port. Default value: 7507
1445
+ * @type {number || null}
2662
1446
  */
2663
- this.TagValue = null;
1447
+ this.Vport = null;
2664
1448
 
2665
1449
  }
2666
1450
 
@@ -2671,31 +1455,34 @@ Note: this field may return `null`, indicating that no valid values can be obtai
2671
1455
  if (!params) {
2672
1456
  return;
2673
1457
  }
2674
- this.TagKey = 'TagKey' in params ? params.TagKey : null;
2675
- this.TagValue = 'TagValue' in params ? params.TagValue : null;
1458
+ this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null;
1459
+ this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
1460
+ this.SubscribeObjectType = 'SubscribeObjectType' in params ? params.SubscribeObjectType : null;
1461
+
1462
+ if (params.Objects) {
1463
+ let obj = new SubscribeObject();
1464
+ obj.deserialize(params.Objects)
1465
+ this.Objects = obj;
1466
+ }
1467
+ this.UniqSubnetId = 'UniqSubnetId' in params ? params.UniqSubnetId : null;
1468
+ this.Vport = 'Vport' in params ? params.Vport : null;
2676
1469
 
2677
1470
  }
2678
1471
  }
2679
1472
 
2680
1473
  /**
2681
- * Tag filtering
1474
+ * OfflineIsolatedSubscribe request structure.
2682
1475
  * @class
2683
1476
  */
2684
- class TagFilter extends AbstractModel {
1477
+ class OfflineIsolatedSubscribeRequest extends AbstractModel {
2685
1478
  constructor(){
2686
1479
  super();
2687
1480
 
2688
1481
  /**
2689
- * Tag key value
1482
+ * Data subscription instance ID
2690
1483
  * @type {string || null}
2691
1484
  */
2692
- this.TagKey = null;
2693
-
2694
- /**
2695
- * Tag value
2696
- * @type {Array.<string> || null}
2697
- */
2698
- this.TagValue = null;
1485
+ this.SubscribeId = null;
2699
1486
 
2700
1487
  }
2701
1488
 
@@ -2706,17 +1493,16 @@ class TagFilter extends AbstractModel {
2706
1493
  if (!params) {
2707
1494
  return;
2708
1495
  }
2709
- this.TagKey = 'TagKey' in params ? params.TagKey : null;
2710
- this.TagValue = 'TagValue' in params ? params.TagValue : null;
1496
+ this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null;
2711
1497
 
2712
1498
  }
2713
1499
  }
2714
1500
 
2715
1501
  /**
2716
- * ModifySubscribeConsumeTime request structure.
1502
+ * DescribeSubscribes request structure.
2717
1503
  * @class
2718
1504
  */
2719
- class ModifySubscribeConsumeTimeRequest extends AbstractModel {
1505
+ class DescribeSubscribesRequest extends AbstractModel {
2720
1506
  constructor(){
2721
1507
  super();
2722
1508
 
@@ -2727,45 +1513,76 @@ class ModifySubscribeConsumeTimeRequest extends AbstractModel {
2727
1513
  this.SubscribeId = null;
2728
1514
 
2729
1515
  /**
2730
- * Consumption starting time point in the format of `Y-m-d h:m:s`, i.e., the starting time point for data subscription. Value range: within the last 24 hours
1516
+ * Data subscription instance name
2731
1517
  * @type {string || null}
2732
1518
  */
2733
- this.ConsumeStartTime = null;
1519
+ this.SubscribeName = null;
2734
1520
 
2735
- }
1521
+ /**
1522
+ * ID of bound database instance
1523
+ * @type {string || null}
1524
+ */
1525
+ this.InstanceId = null;
2736
1526
 
2737
- /**
2738
- * @private
2739
- */
2740
- deserialize(params) {
2741
- if (!params) {
2742
- return;
2743
- }
2744
- this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null;
2745
- this.ConsumeStartTime = 'ConsumeStartTime' in params ? params.ConsumeStartTime : null;
1527
+ /**
1528
+ * Data subscription instance channel ID
1529
+ * @type {string || null}
1530
+ */
1531
+ this.ChannelId = null;
2746
1532
 
2747
- }
2748
- }
1533
+ /**
1534
+ * Billing mode filter. Default value: 1 (pay-as-you-go)
1535
+ * @type {string || null}
1536
+ */
1537
+ this.PayType = null;
2749
1538
 
2750
- /**
2751
- * SwitchDrToMaster response structure.
2752
- * @class
2753
- */
2754
- class SwitchDrToMasterResponse extends AbstractModel {
2755
- constructor(){
2756
- super();
1539
+ /**
1540
+ * Subscribed database product, such as MySQL
1541
+ * @type {string || null}
1542
+ */
1543
+ this.Product = null;
1544
+
1545
+ /**
1546
+ * Data subscription instance status. Valid values: creating, normal, isolating, isolated, offlining
1547
+ * @type {Array.<string> || null}
1548
+ */
1549
+ this.Status = null;
1550
+
1551
+ /**
1552
+ * Data subscription instance configuration status. Valid values: unconfigure, configuring, configured
1553
+ * @type {Array.<string> || null}
1554
+ */
1555
+ this.SubsStatus = null;
1556
+
1557
+ /**
1558
+ * Starting offset of returned results
1559
+ * @type {number || null}
1560
+ */
1561
+ this.Offset = null;
1562
+
1563
+ /**
1564
+ * Number of results to be returned at a time
1565
+ * @type {number || null}
1566
+ */
1567
+ this.Limit = null;
2757
1568
 
2758
1569
  /**
2759
- * Backend async task request ID
1570
+ * Sorting order. Valid values: DESC, ASC. Default value: DESC, indicating descending by creation time
2760
1571
  * @type {string || null}
2761
1572
  */
2762
- this.AsyncRequestId = null;
1573
+ this.OrderDirection = null;
2763
1574
 
2764
1575
  /**
2765
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1576
+ * Tag filtering condition
1577
+ * @type {Array.<TagFilter> || null}
1578
+ */
1579
+ this.TagFilters = null;
1580
+
1581
+ /**
1582
+ * Subscription instance edition. `txdts`: legacy data subscription; `kafka`: data subscription in Kafka edition
2766
1583
  * @type {string || null}
2767
1584
  */
2768
- this.RequestId = null;
1585
+ this.SubscribeVersion = null;
2769
1586
 
2770
1587
  }
2771
1588
 
@@ -2776,17 +1593,36 @@ class SwitchDrToMasterResponse extends AbstractModel {
2776
1593
  if (!params) {
2777
1594
  return;
2778
1595
  }
2779
- this.AsyncRequestId = 'AsyncRequestId' in params ? params.AsyncRequestId : null;
2780
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
1596
+ this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null;
1597
+ this.SubscribeName = 'SubscribeName' in params ? params.SubscribeName : null;
1598
+ this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
1599
+ this.ChannelId = 'ChannelId' in params ? params.ChannelId : null;
1600
+ this.PayType = 'PayType' in params ? params.PayType : null;
1601
+ this.Product = 'Product' in params ? params.Product : null;
1602
+ this.Status = 'Status' in params ? params.Status : null;
1603
+ this.SubsStatus = 'SubsStatus' in params ? params.SubsStatus : null;
1604
+ this.Offset = 'Offset' in params ? params.Offset : null;
1605
+ this.Limit = 'Limit' in params ? params.Limit : null;
1606
+ this.OrderDirection = 'OrderDirection' in params ? params.OrderDirection : null;
1607
+
1608
+ if (params.TagFilters) {
1609
+ this.TagFilters = new Array();
1610
+ for (let z in params.TagFilters) {
1611
+ let obj = new TagFilter();
1612
+ obj.deserialize(params.TagFilters[z]);
1613
+ this.TagFilters.push(obj);
1614
+ }
1615
+ }
1616
+ this.SubscribeVersion = 'SubscribeVersion' in params ? params.SubscribeVersion : null;
2781
1617
 
2782
1618
  }
2783
1619
  }
2784
1620
 
2785
1621
  /**
2786
- * ModifyMigrateJob response structure.
1622
+ * ResetSubscribe response structure.
2787
1623
  * @class
2788
1624
  */
2789
- class ModifyMigrateJobResponse extends AbstractModel {
1625
+ class ResetSubscribeResponse extends AbstractModel {
2790
1626
  constructor(){
2791
1627
  super();
2792
1628
 
@@ -2811,68 +1647,30 @@ class ModifyMigrateJobResponse extends AbstractModel {
2811
1647
  }
2812
1648
 
2813
1649
  /**
2814
- * CreateSyncJob request structure.
1650
+ * DescribeSubscribes response structure.
2815
1651
  * @class
2816
1652
  */
2817
- class CreateSyncJobRequest extends AbstractModel {
1653
+ class DescribeSubscribesResponse extends AbstractModel {
2818
1654
  constructor(){
2819
1655
  super();
2820
1656
 
2821
1657
  /**
2822
- * Disaster recovery sync task name
2823
- * @type {string || null}
2824
- */
2825
- this.JobName = null;
2826
-
2827
- /**
2828
- * Configuration options of a disaster recovery sync task
2829
- * @type {SyncOption || null}
2830
- */
2831
- this.SyncOption = null;
2832
-
2833
- /**
2834
- * Source instance database type, which currently only supports mysql
2835
- * @type {string || null}
2836
- */
2837
- this.SrcDatabaseType = null;
2838
-
2839
- /**
2840
- * Source instance access type, which currently only supports cdb (TencentDB instances)
2841
- * @type {string || null}
2842
- */
2843
- this.SrcAccessType = null;
2844
-
2845
- /**
2846
- * Source instance information
2847
- * @type {SyncInstanceInfo || null}
2848
- */
2849
- this.SrcInfo = null;
2850
-
2851
- /**
2852
- * Target instance access type, which currently only supports mysql
2853
- * @type {string || null}
2854
- */
2855
- this.DstDatabaseType = null;
2856
-
2857
- /**
2858
- * Target instance access type, which currently only supports cdb (TencentDB instances)
2859
- * @type {string || null}
1658
+ * Number of eligible instances.
1659
+ * @type {number || null}
2860
1660
  */
2861
- this.DstAccessType = null;
1661
+ this.TotalCount = null;
2862
1662
 
2863
1663
  /**
2864
- * Target instance information
2865
- * @type {SyncInstanceInfo || null}
1664
+ * Information list of data subscription instances
1665
+ * @type {Array.<SubscribeInfo> || null}
2866
1666
  */
2867
- this.DstInfo = null;
1667
+ this.Items = null;
2868
1668
 
2869
1669
  /**
2870
- * Information of the source table to be synced, which is described in JSON string format.
2871
- For databases with a database-table structure:
2872
- [{Database:db1,Table:[table1,table2]},{Database:db2}]
1670
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2873
1671
  * @type {string || null}
2874
1672
  */
2875
- this.DatabaseInfo = null;
1673
+ this.RequestId = null;
2876
1674
 
2877
1675
  }
2878
1676
 
@@ -2883,77 +1681,40 @@ For databases with a database-table structure:
2883
1681
  if (!params) {
2884
1682
  return;
2885
1683
  }
2886
- this.JobName = 'JobName' in params ? params.JobName : null;
2887
-
2888
- if (params.SyncOption) {
2889
- let obj = new SyncOption();
2890
- obj.deserialize(params.SyncOption)
2891
- this.SyncOption = obj;
2892
- }
2893
- this.SrcDatabaseType = 'SrcDatabaseType' in params ? params.SrcDatabaseType : null;
2894
- this.SrcAccessType = 'SrcAccessType' in params ? params.SrcAccessType : null;
2895
-
2896
- if (params.SrcInfo) {
2897
- let obj = new SyncInstanceInfo();
2898
- obj.deserialize(params.SrcInfo)
2899
- this.SrcInfo = obj;
2900
- }
2901
- this.DstDatabaseType = 'DstDatabaseType' in params ? params.DstDatabaseType : null;
2902
- this.DstAccessType = 'DstAccessType' in params ? params.DstAccessType : null;
1684
+ this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
2903
1685
 
2904
- if (params.DstInfo) {
2905
- let obj = new SyncInstanceInfo();
2906
- obj.deserialize(params.DstInfo)
2907
- this.DstInfo = obj;
1686
+ if (params.Items) {
1687
+ this.Items = new Array();
1688
+ for (let z in params.Items) {
1689
+ let obj = new SubscribeInfo();
1690
+ obj.deserialize(params.Items[z]);
1691
+ this.Items.push(obj);
1692
+ }
2908
1693
  }
2909
- this.DatabaseInfo = 'DatabaseInfo' in params ? params.DatabaseInfo : null;
1694
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2910
1695
 
2911
1696
  }
2912
1697
  }
2913
1698
 
2914
1699
  /**
2915
- * DescribeSyncJobs request structure.
1700
+ * ModifySubscribeConsumeTime request structure.
2916
1701
  * @class
2917
1702
  */
2918
- class DescribeSyncJobsRequest extends AbstractModel {
1703
+ class ModifySubscribeConsumeTimeRequest extends AbstractModel {
2919
1704
  constructor(){
2920
1705
  super();
2921
1706
 
2922
1707
  /**
2923
- * Disaster recovery sync task ID
2924
- * @type {string || null}
2925
- */
2926
- this.JobId = null;
2927
-
2928
- /**
2929
- * Disaster recovery sync task name
2930
- * @type {string || null}
2931
- */
2932
- this.JobName = null;
2933
-
2934
- /**
2935
- * Sort by field. Value range: JobId, Status, JobName, CreateTime
1708
+ * Data subscription instance ID
2936
1709
  * @type {string || null}
2937
1710
  */
2938
- this.Order = null;
1711
+ this.SubscribeId = null;
2939
1712
 
2940
1713
  /**
2941
- * Sorting order. Value range: ASC (ascending), DESC (descending)
1714
+ * Consumption starting time point in the format of `Y-m-d h:m:s`, i.e., the starting time point for data subscription. Value range: within the last 24 hours
2942
1715
  * @type {string || null}
2943
1716
  */
2944
- this.OrderSeq = null;
2945
-
2946
- /**
2947
- * Offset. Default value: 0
2948
- * @type {number || null}
2949
- */
2950
- this.Offset = null;
2951
-
2952
- /**
2953
- * Number of the returned instances. Value range: [1, 100]. Default value: 20
2954
- * @type {number || null}
2955
- */
2956
- this.Limit = null;
1717
+ this.ConsumeStartTime = null;
2957
1718
 
2958
1719
  }
2959
1720
 
@@ -2964,21 +1725,17 @@ class DescribeSyncJobsRequest extends AbstractModel {
2964
1725
  if (!params) {
2965
1726
  return;
2966
1727
  }
2967
- this.JobId = 'JobId' in params ? params.JobId : null;
2968
- this.JobName = 'JobName' in params ? params.JobName : null;
2969
- this.Order = 'Order' in params ? params.Order : null;
2970
- this.OrderSeq = 'OrderSeq' in params ? params.OrderSeq : null;
2971
- this.Offset = 'Offset' in params ? params.Offset : null;
2972
- this.Limit = 'Limit' in params ? params.Limit : null;
1728
+ this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null;
1729
+ this.ConsumeStartTime = 'ConsumeStartTime' in params ? params.ConsumeStartTime : null;
2973
1730
 
2974
1731
  }
2975
1732
  }
2976
1733
 
2977
1734
  /**
2978
- * DescribeMigrateJobs request structure.
1735
+ * StopMigrateJob request structure.
2979
1736
  * @class
2980
1737
  */
2981
- class DescribeMigrateJobsRequest extends AbstractModel {
1738
+ class StopMigrateJobRequest extends AbstractModel {
2982
1739
  constructor(){
2983
1740
  super();
2984
1741
 
@@ -2988,42 +1745,6 @@ class DescribeMigrateJobsRequest extends AbstractModel {
2988
1745
  */
2989
1746
  this.JobId = null;
2990
1747
 
2991
- /**
2992
- * Data migration task name
2993
- * @type {string || null}
2994
- */
2995
- this.JobName = null;
2996
-
2997
- /**
2998
- * Sort by field. Value range: JobId, Status, JobName, MigrateType, RunMode, CreateTime
2999
- * @type {string || null}
3000
- */
3001
- this.Order = null;
3002
-
3003
- /**
3004
- * Sorting order. Value range: ASC (ascending), DESC (descending)
3005
- * @type {string || null}
3006
- */
3007
- this.OrderSeq = null;
3008
-
3009
- /**
3010
- * Offset. Default value: 0
3011
- * @type {number || null}
3012
- */
3013
- this.Offset = null;
3014
-
3015
- /**
3016
- * Number of the returned instances. Value range: [1, 100]. Default value: 20
3017
- * @type {number || null}
3018
- */
3019
- this.Limit = null;
3020
-
3021
- /**
3022
- * Tag filter.
3023
- * @type {Array.<TagFilter> || null}
3024
- */
3025
- this.TagFilters = null;
3026
-
3027
1748
  }
3028
1749
 
3029
1750
  /**
@@ -3034,29 +1755,15 @@ class DescribeMigrateJobsRequest extends AbstractModel {
3034
1755
  return;
3035
1756
  }
3036
1757
  this.JobId = 'JobId' in params ? params.JobId : null;
3037
- this.JobName = 'JobName' in params ? params.JobName : null;
3038
- this.Order = 'Order' in params ? params.Order : null;
3039
- this.OrderSeq = 'OrderSeq' in params ? params.OrderSeq : null;
3040
- this.Offset = 'Offset' in params ? params.Offset : null;
3041
- this.Limit = 'Limit' in params ? params.Limit : null;
3042
-
3043
- if (params.TagFilters) {
3044
- this.TagFilters = new Array();
3045
- for (let z in params.TagFilters) {
3046
- let obj = new TagFilter();
3047
- obj.deserialize(params.TagFilters[z]);
3048
- this.TagFilters.push(obj);
3049
- }
3050
- }
3051
1758
 
3052
1759
  }
3053
1760
  }
3054
1761
 
3055
1762
  /**
3056
- * Describes the specific process of the sync task.
1763
+ * Describes the specific migration process
3057
1764
  * @class
3058
1765
  */
3059
- class SyncDetailInfo extends AbstractModel {
1766
+ class MigrateDetailInfo extends AbstractModel {
3060
1767
  constructor(){
3061
1768
  super();
3062
1769
 
@@ -3073,32 +1780,32 @@ class SyncDetailInfo extends AbstractModel {
3073
1780
  this.StepNow = null;
3074
1781
 
3075
1782
  /**
3076
- * Overall progress
1783
+ * Overall progress, such as "10"
3077
1784
  * @type {string || null}
3078
1785
  */
3079
1786
  this.Progress = null;
3080
1787
 
3081
1788
  /**
3082
- * Progress of the current step
1789
+ * Progress of current step, such as "1"
3083
1790
  * @type {string || null}
3084
1791
  */
3085
1792
  this.CurrentStepProgress = null;
3086
1793
 
3087
1794
  /**
3088
- * Master/slave delay in MB
1795
+ * Master/slave lag in MB, which is valid during incremental sync and currently supported by TencentDB for Redis and MySQL
3089
1796
  * @type {number || null}
3090
1797
  */
3091
1798
  this.MasterSlaveDistance = null;
3092
1799
 
3093
1800
  /**
3094
- * Master/slave delay in seconds
1801
+ * Master/slave lag in seconds, which is valid during incremental sync and currently supported by TencentDB for MySQL
3095
1802
  * @type {number || null}
3096
1803
  */
3097
1804
  this.SecondsBehindMaster = null;
3098
1805
 
3099
1806
  /**
3100
1807
  * Step information
3101
- * @type {Array.<SyncStepDetailInfo> || null}
1808
+ * @type {Array.<MigrateStepDetailInfo> || null}
3102
1809
  */
3103
1810
  this.StepInfo = null;
3104
1811
 
@@ -3121,7 +1828,7 @@ class SyncDetailInfo extends AbstractModel {
3121
1828
  if (params.StepInfo) {
3122
1829
  this.StepInfo = new Array();
3123
1830
  for (let z in params.StepInfo) {
3124
- let obj = new SyncStepDetailInfo();
1831
+ let obj = new MigrateStepDetailInfo();
3125
1832
  obj.deserialize(params.StepInfo[z]);
3126
1833
  this.StepInfo.push(obj);
3127
1834
  }
@@ -3131,13 +1838,75 @@ class SyncDetailInfo extends AbstractModel {
3131
1838
  }
3132
1839
 
3133
1840
  /**
3134
- * StopMigrateJob response structure.
1841
+ * DescribeRegionConf response structure.
3135
1842
  * @class
3136
1843
  */
3137
- class StopMigrateJobResponse extends AbstractModel {
1844
+ class DescribeRegionConfResponse extends AbstractModel {
1845
+ constructor(){
1846
+ super();
1847
+
1848
+ /**
1849
+ * Number of purchasable regions
1850
+ * @type {number || null}
1851
+ */
1852
+ this.TotalCount = null;
1853
+
1854
+ /**
1855
+ * Purchasable region details
1856
+ * @type {Array.<SubscribeRegionConf> || null}
1857
+ */
1858
+ this.Items = null;
1859
+
1860
+ /**
1861
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1862
+ * @type {string || null}
1863
+ */
1864
+ this.RequestId = null;
1865
+
1866
+ }
1867
+
1868
+ /**
1869
+ * @private
1870
+ */
1871
+ deserialize(params) {
1872
+ if (!params) {
1873
+ return;
1874
+ }
1875
+ this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
1876
+
1877
+ if (params.Items) {
1878
+ this.Items = new Array();
1879
+ for (let z in params.Items) {
1880
+ let obj = new SubscribeRegionConf();
1881
+ obj.deserialize(params.Items[z]);
1882
+ this.Items.push(obj);
1883
+ }
1884
+ }
1885
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1886
+
1887
+ }
1888
+ }
1889
+
1890
+ /**
1891
+ * DescribeAsyncRequestInfo response structure.
1892
+ * @class
1893
+ */
1894
+ class DescribeAsyncRequestInfoResponse extends AbstractModel {
3138
1895
  constructor(){
3139
1896
  super();
3140
1897
 
1898
+ /**
1899
+ * Task execution result information
1900
+ * @type {string || null}
1901
+ */
1902
+ this.Info = null;
1903
+
1904
+ /**
1905
+ * Task execution status. Valid values: success, failed, running
1906
+ * @type {string || null}
1907
+ */
1908
+ this.Status = null;
1909
+
3141
1910
  /**
3142
1911
  * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
3143
1912
  * @type {string || null}
@@ -3153,42 +1922,167 @@ class StopMigrateJobResponse extends AbstractModel {
3153
1922
  if (!params) {
3154
1923
  return;
3155
1924
  }
1925
+ this.Info = 'Info' in params ? params.Info : null;
1926
+ this.Status = 'Status' in params ? params.Status : null;
3156
1927
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
3157
1928
 
3158
1929
  }
3159
1930
  }
3160
1931
 
3161
1932
  /**
3162
- * Configuration options of a disaster recovery sync task
1933
+ * Subscription instance information
3163
1934
  * @class
3164
1935
  */
3165
- class SyncOption extends AbstractModel {
1936
+ class SubscribeInfo extends AbstractModel {
3166
1937
  constructor(){
3167
1938
  super();
3168
1939
 
3169
1940
  /**
3170
- * Sync object. 1: entire instance; 2: specified table
1941
+ * Data subscription instance ID
1942
+ * @type {string || null}
1943
+ */
1944
+ this.SubscribeId = null;
1945
+
1946
+ /**
1947
+ * Data subscription instance name
1948
+ * @type {string || null}
1949
+ */
1950
+ this.SubscribeName = null;
1951
+
1952
+ /**
1953
+ * ID of channel bound to data subscription instance
1954
+ * @type {string || null}
1955
+ */
1956
+ this.ChannelId = null;
1957
+
1958
+ /**
1959
+ * Name of product bound to data subscription instance
1960
+ * @type {string || null}
1961
+ */
1962
+ this.Product = null;
1963
+
1964
+ /**
1965
+ * ID of database instance bound to data subscription instance
1966
+ * @type {string || null}
1967
+ */
1968
+ this.InstanceId = null;
1969
+
1970
+ /**
1971
+ * Status of database instance bound to data subscription instance
1972
+ * @type {string || null}
1973
+ */
1974
+ this.InstanceStatus = null;
1975
+
1976
+ /**
1977
+ * Data subscription instance configuration status. Valid values: unconfigure, configuring, configured
1978
+ * @type {string || null}
1979
+ */
1980
+ this.SubsStatus = null;
1981
+
1982
+ /**
1983
+ * Last modified time
1984
+ * @type {string || null}
1985
+ */
1986
+ this.ModifyTime = null;
1987
+
1988
+ /**
1989
+ * Creation time
1990
+ * @type {string || null}
1991
+ */
1992
+ this.CreateTime = null;
1993
+
1994
+ /**
1995
+ * Isolation time
1996
+ * @type {string || null}
1997
+ */
1998
+ this.IsolateTime = null;
1999
+
2000
+ /**
2001
+ * Expiration time
2002
+ * @type {string || null}
2003
+ */
2004
+ this.ExpireTime = null;
2005
+
2006
+ /**
2007
+ * Deactivation time
2008
+ * @type {string || null}
2009
+ */
2010
+ this.OfflineTime = null;
2011
+
2012
+ /**
2013
+ * Last modified consumption starting time point. If it has never been modified, this field is 0
2014
+ * @type {string || null}
2015
+ */
2016
+ this.ConsumeStartTime = null;
2017
+
2018
+ /**
2019
+ * Data subscription instance region
2020
+ * @type {string || null}
2021
+ */
2022
+ this.Region = null;
2023
+
2024
+ /**
2025
+ * Billing mode. 1: pay-as-you-go
3171
2026
  * @type {number || null}
3172
2027
  */
3173
- this.SyncObject = null;
2028
+ this.PayType = null;
2029
+
2030
+ /**
2031
+ * Data subscription instance VIP
2032
+ * @type {string || null}
2033
+ */
2034
+ this.Vip = null;
3174
2035
 
3175
2036
  /**
3176
- * Sync start configuration. 1: start immediately
2037
+ * Data subscription instance Vport
3177
2038
  * @type {number || null}
3178
2039
  */
3179
- this.RunMode = null;
2040
+ this.Vport = null;
3180
2041
 
3181
2042
  /**
3182
- * Sync mode. 3: full + incremental sync
2043
+ * Unique ID of the VPC where the data subscription instance VIP resides
2044
+ * @type {string || null}
2045
+ */
2046
+ this.UniqVpcId = null;
2047
+
2048
+ /**
2049
+ * Unique ID of the subnet where the data subscription instance VIP resides
2050
+ * @type {string || null}
2051
+ */
2052
+ this.UniqSubnetId = null;
2053
+
2054
+ /**
2055
+ * Data subscription instance status. Valid values: creating, normal, isolating, isolated, offlining, offline
2056
+ * @type {string || null}
2057
+ */
2058
+ this.Status = null;
2059
+
2060
+ /**
2061
+ * Timestamp of the last message confirmed by the SDK. If the SDK keeps consuming, this field can also be used as the current consumption time point of the SDK
2062
+ * @type {string || null}
2063
+ */
2064
+ this.SdkConsumedTime = null;
2065
+
2066
+ /**
2067
+ * Tag
2068
+ Note: this field may return `null`, indicating that no valid values can be obtained.
2069
+ * @type {Array.<TagItem> || null}
2070
+ */
2071
+ this.Tags = null;
2072
+
2073
+ /**
2074
+ * Whether auto-renewal is enabled. 0: do not enable; 1: enable
2075
+ Note: this field may return `null`, indicating that no valid values can be obtained.
3183
2076
  * @type {number || null}
3184
2077
  */
3185
- this.SyncType = null;
2078
+ this.AutoRenewFlag = null;
3186
2079
 
3187
2080
  /**
3188
- * Data consistency check. 1: no configuration required
3189
- * @type {number || null}
2081
+ * Subscription instance edition. ·`txdts`: legacy data subscription; `kafka`: data subscription in Kafka edition
2082
+ Note: this field may return `null`, indicating that no valid values can be obtained.
2083
+ * @type {string || null}
3190
2084
  */
3191
- this.ConsistencyType = null;
2085
+ this.SubscribeVersion = null;
3192
2086
 
3193
2087
  }
3194
2088
 
@@ -3199,27 +2093,55 @@ class SyncOption extends AbstractModel {
3199
2093
  if (!params) {
3200
2094
  return;
3201
2095
  }
3202
- this.SyncObject = 'SyncObject' in params ? params.SyncObject : null;
3203
- this.RunMode = 'RunMode' in params ? params.RunMode : null;
3204
- this.SyncType = 'SyncType' in params ? params.SyncType : null;
3205
- this.ConsistencyType = 'ConsistencyType' in params ? params.ConsistencyType : null;
2096
+ this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null;
2097
+ this.SubscribeName = 'SubscribeName' in params ? params.SubscribeName : null;
2098
+ this.ChannelId = 'ChannelId' in params ? params.ChannelId : null;
2099
+ this.Product = 'Product' in params ? params.Product : null;
2100
+ this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
2101
+ this.InstanceStatus = 'InstanceStatus' in params ? params.InstanceStatus : null;
2102
+ this.SubsStatus = 'SubsStatus' in params ? params.SubsStatus : null;
2103
+ this.ModifyTime = 'ModifyTime' in params ? params.ModifyTime : null;
2104
+ this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
2105
+ this.IsolateTime = 'IsolateTime' in params ? params.IsolateTime : null;
2106
+ this.ExpireTime = 'ExpireTime' in params ? params.ExpireTime : null;
2107
+ this.OfflineTime = 'OfflineTime' in params ? params.OfflineTime : null;
2108
+ this.ConsumeStartTime = 'ConsumeStartTime' in params ? params.ConsumeStartTime : null;
2109
+ this.Region = 'Region' in params ? params.Region : null;
2110
+ this.PayType = 'PayType' in params ? params.PayType : null;
2111
+ this.Vip = 'Vip' in params ? params.Vip : null;
2112
+ this.Vport = 'Vport' in params ? params.Vport : null;
2113
+ this.UniqVpcId = 'UniqVpcId' in params ? params.UniqVpcId : null;
2114
+ this.UniqSubnetId = 'UniqSubnetId' in params ? params.UniqSubnetId : null;
2115
+ this.Status = 'Status' in params ? params.Status : null;
2116
+ this.SdkConsumedTime = 'SdkConsumedTime' in params ? params.SdkConsumedTime : null;
2117
+
2118
+ if (params.Tags) {
2119
+ this.Tags = new Array();
2120
+ for (let z in params.Tags) {
2121
+ let obj = new TagItem();
2122
+ obj.deserialize(params.Tags[z]);
2123
+ this.Tags.push(obj);
2124
+ }
2125
+ }
2126
+ this.AutoRenewFlag = 'AutoRenewFlag' in params ? params.AutoRenewFlag : null;
2127
+ this.SubscribeVersion = 'SubscribeVersion' in params ? params.SubscribeVersion : null;
3206
2128
 
3207
2129
  }
3208
2130
  }
3209
2131
 
3210
2132
  /**
3211
- * OfflineIsolatedSubscribe response structure.
2133
+ * ResetSubscribe request structure.
3212
2134
  * @class
3213
2135
  */
3214
- class OfflineIsolatedSubscribeResponse extends AbstractModel {
2136
+ class ResetSubscribeRequest extends AbstractModel {
3215
2137
  constructor(){
3216
2138
  super();
3217
2139
 
3218
2140
  /**
3219
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2141
+ * Data subscription instance ID
3220
2142
  * @type {string || null}
3221
2143
  */
3222
- this.RequestId = null;
2144
+ this.SubscribeId = null;
3223
2145
 
3224
2146
  }
3225
2147
 
@@ -3230,42 +2152,31 @@ class OfflineIsolatedSubscribeResponse extends AbstractModel {
3230
2152
  if (!params) {
3231
2153
  return;
3232
2154
  }
3233
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
2155
+ this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null;
3234
2156
 
3235
2157
  }
3236
2158
  }
3237
2159
 
3238
2160
  /**
3239
- * Sync task progress
2161
+ * Tag
3240
2162
  * @class
3241
2163
  */
3242
- class SyncStepDetailInfo extends AbstractModel {
2164
+ class TagItem extends AbstractModel {
3243
2165
  constructor(){
3244
2166
  super();
3245
2167
 
3246
2168
  /**
3247
- * Step number
3248
- * @type {number || null}
3249
- */
3250
- this.StepNo = null;
3251
-
3252
- /**
3253
- * Step name
2169
+ * Tag key value
3254
2170
  * @type {string || null}
3255
2171
  */
3256
- this.StepName = null;
3257
-
3258
- /**
3259
- * Whether it can be stopped
3260
- * @type {number || null}
3261
- */
3262
- this.CanStop = null;
2172
+ this.TagKey = null;
3263
2173
 
3264
2174
  /**
3265
- * Step ID
3266
- * @type {number || null}
2175
+ * Tag value
2176
+ Note: this field may return `null`, indicating that no valid values can be obtained.
2177
+ * @type {string || null}
3267
2178
  */
3268
- this.StepId = null;
2179
+ this.TagValue = null;
3269
2180
 
3270
2181
  }
3271
2182
 
@@ -3276,27 +2187,31 @@ class SyncStepDetailInfo extends AbstractModel {
3276
2187
  if (!params) {
3277
2188
  return;
3278
2189
  }
3279
- this.StepNo = 'StepNo' in params ? params.StepNo : null;
3280
- this.StepName = 'StepName' in params ? params.StepName : null;
3281
- this.CanStop = 'CanStop' in params ? params.CanStop : null;
3282
- this.StepId = 'StepId' in params ? params.StepId : null;
2190
+ this.TagKey = 'TagKey' in params ? params.TagKey : null;
2191
+ this.TagValue = 'TagValue' in params ? params.TagValue : null;
3283
2192
 
3284
2193
  }
3285
2194
  }
3286
2195
 
3287
2196
  /**
3288
- * IsolateSubscribe request structure.
2197
+ * Tag filtering
3289
2198
  * @class
3290
2199
  */
3291
- class IsolateSubscribeRequest extends AbstractModel {
2200
+ class TagFilter extends AbstractModel {
3292
2201
  constructor(){
3293
2202
  super();
3294
2203
 
3295
2204
  /**
3296
- * Subscription instance ID
2205
+ * Tag key value
3297
2206
  * @type {string || null}
3298
2207
  */
3299
- this.SubscribeId = null;
2208
+ this.TagKey = null;
2209
+
2210
+ /**
2211
+ * Tag value
2212
+ * @type {Array.<string> || null}
2213
+ */
2214
+ this.TagValue = null;
3300
2215
 
3301
2216
  }
3302
2217
 
@@ -3307,16 +2222,17 @@ class IsolateSubscribeRequest extends AbstractModel {
3307
2222
  if (!params) {
3308
2223
  return;
3309
2224
  }
3310
- this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null;
2225
+ this.TagKey = 'TagKey' in params ? params.TagKey : null;
2226
+ this.TagValue = 'TagValue' in params ? params.TagValue : null;
3311
2227
 
3312
2228
  }
3313
2229
  }
3314
2230
 
3315
2231
  /**
3316
- * DeleteSyncJob response structure.
2232
+ * ModifyMigrateJob response structure.
3317
2233
  * @class
3318
2234
  */
3319
- class DeleteSyncJobResponse extends AbstractModel {
2235
+ class ModifyMigrateJobResponse extends AbstractModel {
3320
2236
  constructor(){
3321
2237
  super();
3322
2238
 
@@ -3341,151 +2257,54 @@ class DeleteSyncJobResponse extends AbstractModel {
3341
2257
  }
3342
2258
 
3343
2259
  /**
3344
- * CreateSyncCheckJob request structure.
2260
+ * DescribeMigrateJobs request structure.
3345
2261
  * @class
3346
2262
  */
3347
- class CreateSyncCheckJobRequest extends AbstractModel {
2263
+ class DescribeMigrateJobsRequest extends AbstractModel {
3348
2264
  constructor(){
3349
2265
  super();
3350
2266
 
3351
2267
  /**
3352
- * Disaster recovery sync task ID
2268
+ * Data migration task ID
3353
2269
  * @type {string || null}
3354
2270
  */
3355
2271
  this.JobId = null;
3356
2272
 
3357
- }
3358
-
3359
- /**
3360
- * @private
3361
- */
3362
- deserialize(params) {
3363
- if (!params) {
3364
- return;
3365
- }
3366
- this.JobId = 'JobId' in params ? params.JobId : null;
3367
-
3368
- }
3369
- }
3370
-
3371
- /**
3372
- * ModifySyncJob request structure.
3373
- * @class
3374
- */
3375
- class ModifySyncJobRequest extends AbstractModel {
3376
- constructor(){
3377
- super();
3378
-
3379
2273
  /**
3380
- * ID of the disaster recovery sync task to be modified
2274
+ * Data migration task name
3381
2275
  * @type {string || null}
3382
2276
  */
3383
- this.JobId = null;
2277
+ this.JobName = null;
3384
2278
 
3385
2279
  /**
3386
- * Name of the disaster recovery sync task
2280
+ * Sort by field. Value range: JobId, Status, JobName, MigrateType, RunMode, CreateTime
3387
2281
  * @type {string || null}
3388
2282
  */
3389
- this.JobName = null;
2283
+ this.Order = null;
3390
2284
 
3391
2285
  /**
3392
- * Configuration options of a disaster recovery sync task
3393
- * @type {SyncOption || null}
2286
+ * Sorting order. Value range: ASC (ascending), DESC (descending)
2287
+ * @type {string || null}
3394
2288
  */
3395
- this.SyncOption = null;
2289
+ this.OrderSeq = null;
3396
2290
 
3397
2291
  /**
3398
- * When syncing the specified table, you need to set the information of the source table to be synced, which should be described in JSON string format. Below are examples.
3399
- For databases with a database-table structure:
3400
- [{"Database":"db1","Table":["table1","table2"]},{"Database":"db2"}]
3401
- * @type {string || null}
2292
+ * Offset. Default value: 0
2293
+ * @type {number || null}
3402
2294
  */
3403
- this.DatabaseInfo = null;
3404
-
3405
- }
3406
-
3407
- /**
3408
- * @private
3409
- */
3410
- deserialize(params) {
3411
- if (!params) {
3412
- return;
3413
- }
3414
- this.JobId = 'JobId' in params ? params.JobId : null;
3415
- this.JobName = 'JobName' in params ? params.JobName : null;
3416
-
3417
- if (params.SyncOption) {
3418
- let obj = new SyncOption();
3419
- obj.deserialize(params.SyncOption)
3420
- this.SyncOption = obj;
3421
- }
3422
- this.DatabaseInfo = 'DatabaseInfo' in params ? params.DatabaseInfo : null;
3423
-
3424
- }
3425
- }
3426
-
3427
- /**
3428
- * DescribeRegionConf request structure.
3429
- * @class
3430
- */
3431
- class DescribeRegionConfRequest extends AbstractModel {
3432
- constructor(){
3433
- super();
3434
-
3435
- }
3436
-
3437
- /**
3438
- * @private
3439
- */
3440
- deserialize(params) {
3441
- if (!params) {
3442
- return;
3443
- }
3444
-
3445
- }
3446
- }
3447
-
3448
- /**
3449
- * CompleteMigrateJob response structure.
3450
- * @class
3451
- */
3452
- class CompleteMigrateJobResponse extends AbstractModel {
3453
- constructor(){
3454
- super();
2295
+ this.Offset = null;
3455
2296
 
3456
2297
  /**
3457
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
3458
- * @type {string || null}
2298
+ * Number of the returned instances. Value range: [1, 100]. Default value: 20
2299
+ * @type {number || null}
3459
2300
  */
3460
- this.RequestId = null;
3461
-
3462
- }
3463
-
3464
- /**
3465
- * @private
3466
- */
3467
- deserialize(params) {
3468
- if (!params) {
3469
- return;
3470
- }
3471
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
3472
-
3473
- }
3474
- }
3475
-
3476
- /**
3477
- * StartMigrateJob response structure.
3478
- * @class
3479
- */
3480
- class StartMigrateJobResponse extends AbstractModel {
3481
- constructor(){
3482
- super();
2301
+ this.Limit = null;
3483
2302
 
3484
2303
  /**
3485
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
3486
- * @type {string || null}
2304
+ * Tag filter.
2305
+ * @type {Array.<TagFilter> || null}
3487
2306
  */
3488
- this.RequestId = null;
2307
+ this.TagFilters = null;
3489
2308
 
3490
2309
  }
3491
2310
 
@@ -3496,39 +2315,38 @@ class StartMigrateJobResponse extends AbstractModel {
3496
2315
  if (!params) {
3497
2316
  return;
3498
2317
  }
3499
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
2318
+ this.JobId = 'JobId' in params ? params.JobId : null;
2319
+ this.JobName = 'JobName' in params ? params.JobName : null;
2320
+ this.Order = 'Order' in params ? params.Order : null;
2321
+ this.OrderSeq = 'OrderSeq' in params ? params.OrderSeq : null;
2322
+ this.Offset = 'Offset' in params ? params.Offset : null;
2323
+ this.Limit = 'Limit' in params ? params.Limit : null;
2324
+
2325
+ if (params.TagFilters) {
2326
+ this.TagFilters = new Array();
2327
+ for (let z in params.TagFilters) {
2328
+ let obj = new TagFilter();
2329
+ obj.deserialize(params.TagFilters[z]);
2330
+ this.TagFilters.push(obj);
2331
+ }
2332
+ }
3500
2333
 
3501
2334
  }
3502
2335
  }
3503
2336
 
3504
2337
  /**
3505
- * Data subscription object
2338
+ * StopMigrateJob response structure.
3506
2339
  * @class
3507
2340
  */
3508
- class SubscribeObject extends AbstractModel {
2341
+ class StopMigrateJobResponse extends AbstractModel {
3509
2342
  constructor(){
3510
2343
  super();
3511
2344
 
3512
2345
  /**
3513
- * Data subscription object type. 0: database, 1: database table
3514
- Note: this field may return null, indicating that no valid values can be obtained.
3515
- * @type {number || null}
3516
- */
3517
- this.ObjectsType = null;
3518
-
3519
- /**
3520
- * Name of subscribed database
3521
- Note: this field may return null, indicating that no valid values can be obtained.
2346
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
3522
2347
  * @type {string || null}
3523
2348
  */
3524
- this.DatabaseName = null;
3525
-
3526
- /**
3527
- * Array of table names in subscribed database
3528
- Note: this field may return null, indicating that no valid values can be obtained.
3529
- * @type {Array.<string> || null}
3530
- */
3531
- this.TableNames = null;
2349
+ this.RequestId = null;
3532
2350
 
3533
2351
  }
3534
2352
 
@@ -3539,27 +2357,19 @@ Note: this field may return null, indicating that no valid values can be obtaine
3539
2357
  if (!params) {
3540
2358
  return;
3541
2359
  }
3542
- this.ObjectsType = 'ObjectsType' in params ? params.ObjectsType : null;
3543
- this.DatabaseName = 'DatabaseName' in params ? params.DatabaseName : null;
3544
- this.TableNames = 'TableNames' in params ? params.TableNames : null;
2360
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
3545
2361
 
3546
2362
  }
3547
2363
  }
3548
2364
 
3549
2365
  /**
3550
- * CreateMigrateJob response structure.
2366
+ * OfflineIsolatedSubscribe response structure.
3551
2367
  * @class
3552
2368
  */
3553
- class CreateMigrateJobResponse extends AbstractModel {
2369
+ class OfflineIsolatedSubscribeResponse extends AbstractModel {
3554
2370
  constructor(){
3555
2371
  super();
3556
2372
 
3557
- /**
3558
- * Data migration task ID
3559
- * @type {string || null}
3560
- */
3561
- this.JobId = null;
3562
-
3563
2373
  /**
3564
2374
  * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
3565
2375
  * @type {string || null}
@@ -3575,17 +2385,16 @@ class CreateMigrateJobResponse extends AbstractModel {
3575
2385
  if (!params) {
3576
2386
  return;
3577
2387
  }
3578
- this.JobId = 'JobId' in params ? params.JobId : null;
3579
2388
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
3580
2389
 
3581
2390
  }
3582
2391
  }
3583
2392
 
3584
2393
  /**
3585
- * DescribeSubscribeConf request structure.
2394
+ * IsolateSubscribe request structure.
3586
2395
  * @class
3587
2396
  */
3588
- class DescribeSubscribeConfRequest extends AbstractModel {
2397
+ class IsolateSubscribeRequest extends AbstractModel {
3589
2398
  constructor(){
3590
2399
  super();
3591
2400
 
@@ -3610,18 +2419,24 @@ class DescribeSubscribeConfRequest extends AbstractModel {
3610
2419
  }
3611
2420
 
3612
2421
  /**
3613
- * ModifySubscribeVipVport response structure.
2422
+ * CompleteMigrateJob request structure.
3614
2423
  * @class
3615
2424
  */
3616
- class ModifySubscribeVipVportResponse extends AbstractModel {
2425
+ class CompleteMigrateJobRequest extends AbstractModel {
3617
2426
  constructor(){
3618
2427
  super();
3619
2428
 
3620
2429
  /**
3621
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2430
+ * Data migration task ID
3622
2431
  * @type {string || null}
3623
2432
  */
3624
- this.RequestId = null;
2433
+ this.JobId = null;
2434
+
2435
+ /**
2436
+ * The way to complete the task, which is supported only for legacy MySQL migration task. waitForSync: wait for the source-replica lag to become 0 before stopping; immediately: complete immediately without waiting for source-replica sync. Default value: waitForSync
2437
+ * @type {string || null}
2438
+ */
2439
+ this.CompleteMode = null;
3625
2440
 
3626
2441
  }
3627
2442
 
@@ -3632,7 +2447,8 @@ class ModifySubscribeVipVportResponse extends AbstractModel {
3632
2447
  if (!params) {
3633
2448
  return;
3634
2449
  }
3635
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
2450
+ this.JobId = 'JobId' in params ? params.JobId : null;
2451
+ this.CompleteMode = 'CompleteMode' in params ? params.CompleteMode : null;
3636
2452
 
3637
2453
  }
3638
2454
  }
@@ -3815,10 +2631,104 @@ Note: this field may return `null`, indicating that no valid values can be obtai
3815
2631
  }
3816
2632
 
3817
2633
  /**
3818
- * DeleteMigrateJob request structure.
2634
+ * DescribeRegionConf request structure.
3819
2635
  * @class
3820
2636
  */
3821
- class DeleteMigrateJobRequest extends AbstractModel {
2637
+ class DescribeRegionConfRequest extends AbstractModel {
2638
+ constructor(){
2639
+ super();
2640
+
2641
+ }
2642
+
2643
+ /**
2644
+ * @private
2645
+ */
2646
+ deserialize(params) {
2647
+ if (!params) {
2648
+ return;
2649
+ }
2650
+
2651
+ }
2652
+ }
2653
+
2654
+ /**
2655
+ * CompleteMigrateJob response structure.
2656
+ * @class
2657
+ */
2658
+ class CompleteMigrateJobResponse extends AbstractModel {
2659
+ constructor(){
2660
+ super();
2661
+
2662
+ /**
2663
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2664
+ * @type {string || null}
2665
+ */
2666
+ this.RequestId = null;
2667
+
2668
+ }
2669
+
2670
+ /**
2671
+ * @private
2672
+ */
2673
+ deserialize(params) {
2674
+ if (!params) {
2675
+ return;
2676
+ }
2677
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2678
+
2679
+ }
2680
+ }
2681
+
2682
+ /**
2683
+ * Data subscription object
2684
+ * @class
2685
+ */
2686
+ class SubscribeObject extends AbstractModel {
2687
+ constructor(){
2688
+ super();
2689
+
2690
+ /**
2691
+ * Data subscription object type. 0: database, 1: database table
2692
+ Note: this field may return null, indicating that no valid values can be obtained.
2693
+ * @type {number || null}
2694
+ */
2695
+ this.ObjectsType = null;
2696
+
2697
+ /**
2698
+ * Name of subscribed database
2699
+ Note: this field may return null, indicating that no valid values can be obtained.
2700
+ * @type {string || null}
2701
+ */
2702
+ this.DatabaseName = null;
2703
+
2704
+ /**
2705
+ * Array of table names in subscribed database
2706
+ Note: this field may return null, indicating that no valid values can be obtained.
2707
+ * @type {Array.<string> || null}
2708
+ */
2709
+ this.TableNames = null;
2710
+
2711
+ }
2712
+
2713
+ /**
2714
+ * @private
2715
+ */
2716
+ deserialize(params) {
2717
+ if (!params) {
2718
+ return;
2719
+ }
2720
+ this.ObjectsType = 'ObjectsType' in params ? params.ObjectsType : null;
2721
+ this.DatabaseName = 'DatabaseName' in params ? params.DatabaseName : null;
2722
+ this.TableNames = 'TableNames' in params ? params.TableNames : null;
2723
+
2724
+ }
2725
+ }
2726
+
2727
+ /**
2728
+ * CreateMigrateJob response structure.
2729
+ * @class
2730
+ */
2731
+ class CreateMigrateJobResponse extends AbstractModel {
3822
2732
  constructor(){
3823
2733
  super();
3824
2734
 
@@ -3828,6 +2738,12 @@ class DeleteMigrateJobRequest extends AbstractModel {
3828
2738
  */
3829
2739
  this.JobId = null;
3830
2740
 
2741
+ /**
2742
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2743
+ * @type {string || null}
2744
+ */
2745
+ this.RequestId = null;
2746
+
3831
2747
  }
3832
2748
 
3833
2749
  /**
@@ -3838,20 +2754,77 @@ class DeleteMigrateJobRequest extends AbstractModel {
3838
2754
  return;
3839
2755
  }
3840
2756
  this.JobId = 'JobId' in params ? params.JobId : null;
2757
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2758
+
2759
+ }
2760
+ }
2761
+
2762
+ /**
2763
+ * DescribeSubscribeConf request structure.
2764
+ * @class
2765
+ */
2766
+ class DescribeSubscribeConfRequest extends AbstractModel {
2767
+ constructor(){
2768
+ super();
2769
+
2770
+ /**
2771
+ * Subscription instance ID
2772
+ * @type {string || null}
2773
+ */
2774
+ this.SubscribeId = null;
2775
+
2776
+ }
2777
+
2778
+ /**
2779
+ * @private
2780
+ */
2781
+ deserialize(params) {
2782
+ if (!params) {
2783
+ return;
2784
+ }
2785
+ this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null;
2786
+
2787
+ }
2788
+ }
2789
+
2790
+ /**
2791
+ * ModifySubscribeVipVport response structure.
2792
+ * @class
2793
+ */
2794
+ class ModifySubscribeVipVportResponse extends AbstractModel {
2795
+ constructor(){
2796
+ super();
2797
+
2798
+ /**
2799
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2800
+ * @type {string || null}
2801
+ */
2802
+ this.RequestId = null;
2803
+
2804
+ }
2805
+
2806
+ /**
2807
+ * @private
2808
+ */
2809
+ deserialize(params) {
2810
+ if (!params) {
2811
+ return;
2812
+ }
2813
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
3841
2814
 
3842
2815
  }
3843
2816
  }
3844
2817
 
3845
2818
  /**
3846
- * DeleteSyncJob request structure.
2819
+ * DeleteMigrateJob request structure.
3847
2820
  * @class
3848
2821
  */
3849
- class DeleteSyncJobRequest extends AbstractModel {
2822
+ class DeleteMigrateJobRequest extends AbstractModel {
3850
2823
  constructor(){
3851
2824
  super();
3852
2825
 
3853
2826
  /**
3854
- * ID of the disaster recovery sync task to be deleted
2827
+ * Data migration task ID
3855
2828
  * @type {string || null}
3856
2829
  */
3857
2830
  this.JobId = null;
@@ -4074,43 +3047,13 @@ class ErrorInfo extends AbstractModel {
4074
3047
  }
4075
3048
 
4076
3049
  /**
4077
- * DescribeSyncCheckJob response structure.
3050
+ * StartMigrateJob response structure.
4078
3051
  * @class
4079
3052
  */
4080
- class DescribeSyncCheckJobResponse extends AbstractModel {
3053
+ class StartMigrateJobResponse extends AbstractModel {
4081
3054
  constructor(){
4082
3055
  super();
4083
3056
 
4084
- /**
4085
- * Task check status: starting, running, finished
4086
- * @type {string || null}
4087
- */
4088
- this.Status = null;
4089
-
4090
- /**
4091
- * Code of the task check result
4092
- * @type {number || null}
4093
- */
4094
- this.ErrorCode = null;
4095
-
4096
- /**
4097
- * Prompt message
4098
- * @type {string || null}
4099
- */
4100
- this.ErrorMessage = null;
4101
-
4102
- /**
4103
- * Description of a task execution step
4104
- * @type {Array.<SyncCheckStepInfo> || null}
4105
- */
4106
- this.StepInfo = null;
4107
-
4108
- /**
4109
- * Check flag. 0: checking; 1: successfully checked
4110
- * @type {number || null}
4111
- */
4112
- this.CheckFlag = null;
4113
-
4114
3057
  /**
4115
3058
  * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
4116
3059
  * @type {string || null}
@@ -4126,19 +3069,6 @@ class DescribeSyncCheckJobResponse extends AbstractModel {
4126
3069
  if (!params) {
4127
3070
  return;
4128
3071
  }
4129
- this.Status = 'Status' in params ? params.Status : null;
4130
- this.ErrorCode = 'ErrorCode' in params ? params.ErrorCode : null;
4131
- this.ErrorMessage = 'ErrorMessage' in params ? params.ErrorMessage : null;
4132
-
4133
- if (params.StepInfo) {
4134
- this.StepInfo = new Array();
4135
- for (let z in params.StepInfo) {
4136
- let obj = new SyncCheckStepInfo();
4137
- obj.deserialize(params.StepInfo[z]);
4138
- this.StepInfo.push(obj);
4139
- }
4140
- }
4141
- this.CheckFlag = 'CheckFlag' in params ? params.CheckFlag : null;
4142
3072
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
4143
3073
 
4144
3074
  }
@@ -4173,24 +3103,18 @@ class StartMigrateJobRequest extends AbstractModel {
4173
3103
  }
4174
3104
 
4175
3105
  module.exports = {
4176
- DescribeSyncJobsResponse: DescribeSyncJobsResponse,
4177
3106
  DescribeMigrateJobsResponse: DescribeMigrateJobsResponse,
4178
- MigrateDetailInfo: MigrateDetailInfo,
3107
+ MigrateStepDetailInfo: MigrateStepDetailInfo,
4179
3108
  DeleteMigrateJobResponse: DeleteMigrateJobResponse,
4180
3109
  CreateMigrateCheckJobRequest: CreateMigrateCheckJobRequest,
4181
3110
  ModifySubscribeVipVportRequest: ModifySubscribeVipVportRequest,
4182
- SyncInstanceInfo: SyncInstanceInfo,
4183
3111
  ModifySubscribeNameResponse: ModifySubscribeNameResponse,
4184
- CreateSyncJobResponse: CreateSyncJobResponse,
4185
3112
  DescribeMigrateCheckJobRequest: DescribeMigrateCheckJobRequest,
4186
3113
  IsolateSubscribeResponse: IsolateSubscribeResponse,
4187
3114
  ModifySubscribeObjectsResponse: ModifySubscribeObjectsResponse,
4188
- SwitchDrToMasterRequest: SwitchDrToMasterRequest,
4189
- StartSyncJobRequest: StartSyncJobRequest,
4190
3115
  CreateMigrateJobRequest: CreateMigrateJobRequest,
4191
- SubscribeInfo: SubscribeInfo,
3116
+ SubscribeRegionConf: SubscribeRegionConf,
4192
3117
  ModifySubscribeNameRequest: ModifySubscribeNameRequest,
4193
- SyncJobInfo: SyncJobInfo,
4194
3118
  ModifySubscribeConsumeTimeResponse: ModifySubscribeConsumeTimeResponse,
4195
3119
  DstInfo: DstInfo,
4196
3120
  DescribeSubscribeConfResponse: DescribeSubscribeConfResponse,
@@ -4200,57 +3124,41 @@ module.exports = {
4200
3124
  ModifyMigrateJobRequest: ModifyMigrateJobRequest,
4201
3125
  CreateSubscribeRequest: CreateSubscribeRequest,
4202
3126
  CreateMigrateCheckJobResponse: CreateMigrateCheckJobResponse,
4203
- MigrateStepDetailInfo: MigrateStepDetailInfo,
4204
3127
  ModifySubscribeObjectsRequest: ModifySubscribeObjectsRequest,
4205
3128
  DescribeMigrateCheckJobResponse: DescribeMigrateCheckJobResponse,
4206
- SubscribeRegionConf: SubscribeRegionConf,
4207
3129
  ActivateSubscribeRequest: ActivateSubscribeRequest,
4208
3130
  OfflineIsolatedSubscribeRequest: OfflineIsolatedSubscribeRequest,
4209
3131
  DescribeSubscribesRequest: DescribeSubscribesRequest,
4210
3132
  ResetSubscribeResponse: ResetSubscribeResponse,
4211
- StartSyncJobResponse: StartSyncJobResponse,
4212
3133
  DescribeSubscribesResponse: DescribeSubscribesResponse,
4213
- SyncCheckStepInfo: SyncCheckStepInfo,
4214
- CreateSyncCheckJobResponse: CreateSyncCheckJobResponse,
3134
+ ModifySubscribeConsumeTimeRequest: ModifySubscribeConsumeTimeRequest,
4215
3135
  StopMigrateJobRequest: StopMigrateJobRequest,
4216
- DescribeSyncCheckJobRequest: DescribeSyncCheckJobRequest,
3136
+ MigrateDetailInfo: MigrateDetailInfo,
4217
3137
  DescribeRegionConfResponse: DescribeRegionConfResponse,
4218
- ModifySyncJobResponse: ModifySyncJobResponse,
4219
3138
  DescribeAsyncRequestInfoResponse: DescribeAsyncRequestInfoResponse,
4220
- CompleteMigrateJobRequest: CompleteMigrateJobRequest,
3139
+ SubscribeInfo: SubscribeInfo,
4221
3140
  ResetSubscribeRequest: ResetSubscribeRequest,
4222
3141
  TagItem: TagItem,
4223
3142
  TagFilter: TagFilter,
4224
- ModifySubscribeConsumeTimeRequest: ModifySubscribeConsumeTimeRequest,
4225
- SwitchDrToMasterResponse: SwitchDrToMasterResponse,
4226
3143
  ModifyMigrateJobResponse: ModifyMigrateJobResponse,
4227
- CreateSyncJobRequest: CreateSyncJobRequest,
4228
- DescribeSyncJobsRequest: DescribeSyncJobsRequest,
4229
3144
  DescribeMigrateJobsRequest: DescribeMigrateJobsRequest,
4230
- SyncDetailInfo: SyncDetailInfo,
4231
3145
  StopMigrateJobResponse: StopMigrateJobResponse,
4232
- SyncOption: SyncOption,
4233
3146
  OfflineIsolatedSubscribeResponse: OfflineIsolatedSubscribeResponse,
4234
- SyncStepDetailInfo: SyncStepDetailInfo,
4235
3147
  IsolateSubscribeRequest: IsolateSubscribeRequest,
4236
- DeleteSyncJobResponse: DeleteSyncJobResponse,
4237
- CreateSyncCheckJobRequest: CreateSyncCheckJobRequest,
4238
- ModifySyncJobRequest: ModifySyncJobRequest,
3148
+ CompleteMigrateJobRequest: CompleteMigrateJobRequest,
3149
+ MigrateJobInfo: MigrateJobInfo,
4239
3150
  DescribeRegionConfRequest: DescribeRegionConfRequest,
4240
3151
  CompleteMigrateJobResponse: CompleteMigrateJobResponse,
4241
- StartMigrateJobResponse: StartMigrateJobResponse,
4242
3152
  SubscribeObject: SubscribeObject,
4243
3153
  CreateMigrateJobResponse: CreateMigrateJobResponse,
4244
3154
  DescribeSubscribeConfRequest: DescribeSubscribeConfRequest,
4245
3155
  ModifySubscribeVipVportResponse: ModifySubscribeVipVportResponse,
4246
- MigrateJobInfo: MigrateJobInfo,
4247
3156
  DeleteMigrateJobRequest: DeleteMigrateJobRequest,
4248
- DeleteSyncJobRequest: DeleteSyncJobRequest,
4249
3157
  ActivateSubscribeResponse: ActivateSubscribeResponse,
4250
3158
  CreateSubscribeResponse: CreateSubscribeResponse,
4251
3159
  MigrateOption: MigrateOption,
4252
3160
  ErrorInfo: ErrorInfo,
4253
- DescribeSyncCheckJobResponse: DescribeSyncCheckJobResponse,
3161
+ StartMigrateJobResponse: StartMigrateJobResponse,
4254
3162
  StartMigrateJobRequest: StartMigrateJobRequest,
4255
3163
 
4256
3164
  }