@huaweicloud/huaweicloud-sdk-drs 3.1.181 → 3.1.183

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.
Files changed (121) hide show
  1. package/package.json +2 -2
  2. package/v3/model/QueryJobResp.d.ts +12 -0
  3. package/v3/model/QueryJobResp.d.ts.map +1 -1
  4. package/v3/model/QueryJobResp.js +20 -1
  5. package/v3/model/QueryJobResp.js.map +1 -1
  6. package/v3/model/StartInfo.d.ts +4 -0
  7. package/v3/model/StartInfo.d.ts.map +1 -1
  8. package/v3/model/StartInfo.js +10 -0
  9. package/v3/model/StartInfo.js.map +1 -1
  10. package/v5/DrsClient.d.ts +151 -3
  11. package/v5/DrsClient.d.ts.map +1 -1
  12. package/v5/DrsClient.js +354 -3
  13. package/v5/DrsClient.js.map +1 -1
  14. package/v5/model/ActionParams.d.ts +4 -0
  15. package/v5/model/ActionParams.d.ts.map +1 -1
  16. package/v5/model/ActionParams.js +10 -0
  17. package/v5/model/ActionParams.js.map +1 -1
  18. package/v5/model/ColumnInfo.d.ts +24 -0
  19. package/v5/model/ColumnInfo.d.ts.map +1 -0
  20. package/v5/model/ColumnInfo.js +57 -0
  21. package/v5/model/ColumnInfo.js.map +1 -0
  22. package/v5/model/ColumnMappingInfo.d.ts +13 -0
  23. package/v5/model/ColumnMappingInfo.d.ts.map +1 -0
  24. package/v5/model/ColumnMappingInfo.js +29 -0
  25. package/v5/model/ColumnMappingInfo.js.map +1 -0
  26. package/v5/model/DeleteColumnInfoReq.d.ts +16 -0
  27. package/v5/model/DeleteColumnInfoReq.d.ts.map +1 -0
  28. package/v5/model/DeleteColumnInfoReq.js +42 -0
  29. package/v5/model/DeleteColumnInfoReq.js.map +1 -0
  30. package/v5/model/DeleteColumnInfosRequest.d.ts +23 -0
  31. package/v5/model/DeleteColumnInfosRequest.d.ts.map +1 -0
  32. package/v5/model/DeleteColumnInfosRequest.js +43 -0
  33. package/v5/model/DeleteColumnInfosRequest.js.map +1 -0
  34. package/v5/model/DeleteColumnInfosResponse.d.ts +9 -0
  35. package/v5/model/DeleteColumnInfosResponse.d.ts.map +1 -0
  36. package/v5/model/DeleteColumnInfosResponse.js +21 -0
  37. package/v5/model/DeleteColumnInfosResponse.js.map +1 -0
  38. package/v5/model/JobDetailResp.d.ts +12 -0
  39. package/v5/model/JobDetailResp.d.ts.map +1 -1
  40. package/v5/model/JobDetailResp.js +20 -1
  41. package/v5/model/JobDetailResp.js.map +1 -1
  42. package/v5/model/ListTagsRequest.d.ts +2 -1
  43. package/v5/model/ListTagsRequest.d.ts.map +1 -1
  44. package/v5/model/ListTagsRequest.js +1 -0
  45. package/v5/model/ListTagsRequest.js.map +1 -1
  46. package/v5/model/ModifyColumnInfoReq.d.ts +9 -0
  47. package/v5/model/ModifyColumnInfoReq.d.ts.map +1 -0
  48. package/v5/model/ModifyColumnInfoReq.js +20 -0
  49. package/v5/model/ModifyColumnInfoReq.js.map +1 -0
  50. package/v5/model/ModifyColumnInfosRequest.d.ts +23 -0
  51. package/v5/model/ModifyColumnInfosRequest.d.ts.map +1 -0
  52. package/v5/model/ModifyColumnInfosRequest.js +43 -0
  53. package/v5/model/ModifyColumnInfosRequest.js.map +1 -0
  54. package/v5/model/ModifyColumnInfosResponse.d.ts +9 -0
  55. package/v5/model/ModifyColumnInfosResponse.d.ts.map +1 -0
  56. package/v5/model/ModifyColumnInfosResponse.js +21 -0
  57. package/v5/model/ModifyColumnInfosResponse.js.map +1 -0
  58. package/v5/model/ObjectWithColumnInfo.d.ts +48 -0
  59. package/v5/model/ObjectWithColumnInfo.d.ts.map +1 -0
  60. package/v5/model/ObjectWithColumnInfo.js +115 -0
  61. package/v5/model/ObjectWithColumnInfo.js.map +1 -0
  62. package/v5/model/QuerySubscriptionsReq.d.ts +60 -0
  63. package/v5/model/QuerySubscriptionsReq.d.ts.map +1 -0
  64. package/v5/model/QuerySubscriptionsReq.js +136 -0
  65. package/v5/model/QuerySubscriptionsReq.js.map +1 -0
  66. package/v5/model/ReplaySqlNowInfo.d.ts +44 -0
  67. package/v5/model/ReplaySqlNowInfo.d.ts.map +1 -0
  68. package/v5/model/ReplaySqlNowInfo.js +118 -0
  69. package/v5/model/ReplaySqlNowInfo.js.map +1 -0
  70. package/v5/model/ShowColumnInfoReq.d.ts +10 -0
  71. package/v5/model/ShowColumnInfoReq.d.ts.map +1 -0
  72. package/v5/model/ShowColumnInfoReq.js +24 -0
  73. package/v5/model/ShowColumnInfoReq.js.map +1 -0
  74. package/v5/model/ShowColumnInfosRequest.d.ts +23 -0
  75. package/v5/model/ShowColumnInfosRequest.d.ts.map +1 -0
  76. package/v5/model/ShowColumnInfosRequest.js +43 -0
  77. package/v5/model/ShowColumnInfosRequest.js.map +1 -0
  78. package/v5/model/ShowColumnInfosResponse.d.ts +15 -0
  79. package/v5/model/ShowColumnInfosResponse.d.ts.map +1 -0
  80. package/v5/model/ShowColumnInfosResponse.js +31 -0
  81. package/v5/model/ShowColumnInfosResponse.js.map +1 -0
  82. package/v5/model/ShowDirtyDataRequest.d.ts +8 -0
  83. package/v5/model/ShowDirtyDataRequest.d.ts.map +1 -1
  84. package/v5/model/ShowDirtyDataRequest.js +20 -0
  85. package/v5/model/ShowDirtyDataRequest.js.map +1 -1
  86. package/v5/model/ShowJobDetailRequest.d.ts +4 -0
  87. package/v5/model/ShowJobDetailRequest.d.ts.map +1 -1
  88. package/v5/model/ShowJobDetailRequest.js +10 -0
  89. package/v5/model/ShowJobDetailRequest.js.map +1 -1
  90. package/v5/model/ShowProgressDataRequest.d.ts +4 -0
  91. package/v5/model/ShowProgressDataRequest.d.ts.map +1 -1
  92. package/v5/model/ShowProgressDataRequest.js +10 -0
  93. package/v5/model/ShowProgressDataRequest.js.map +1 -1
  94. package/v5/model/ShowReplayProgressRequest.d.ts +20 -0
  95. package/v5/model/ShowReplayProgressRequest.d.ts.map +1 -0
  96. package/v5/model/ShowReplayProgressRequest.js +39 -0
  97. package/v5/model/ShowReplayProgressRequest.js.map +1 -0
  98. package/v5/model/ShowReplayProgressResponse.d.ts +52 -0
  99. package/v5/model/ShowReplayProgressResponse.d.ts.map +1 -0
  100. package/v5/model/ShowReplayProgressResponse.js +125 -0
  101. package/v5/model/ShowReplayProgressResponse.js.map +1 -0
  102. package/v5/model/ShowSubscriptionListsRequest.d.ts +23 -0
  103. package/v5/model/ShowSubscriptionListsRequest.d.ts.map +1 -0
  104. package/v5/model/ShowSubscriptionListsRequest.js +40 -0
  105. package/v5/model/ShowSubscriptionListsRequest.js.map +1 -0
  106. package/v5/model/ShowSubscriptionListsResponse.d.ts +12 -0
  107. package/v5/model/ShowSubscriptionListsResponse.d.ts.map +1 -0
  108. package/v5/model/ShowSubscriptionListsResponse.js +27 -0
  109. package/v5/model/ShowSubscriptionListsResponse.js.map +1 -0
  110. package/v5/model/ShowSupportObjectTypeResponse.d.ts +8 -0
  111. package/v5/model/ShowSupportObjectTypeResponse.d.ts.map +1 -1
  112. package/v5/model/ShowSupportObjectTypeResponse.js +20 -0
  113. package/v5/model/ShowSupportObjectTypeResponse.js.map +1 -1
  114. package/v5/model/SubscriptionListResp.d.ts +33 -0
  115. package/v5/model/SubscriptionListResp.d.ts.map +1 -0
  116. package/v5/model/SubscriptionListResp.js +84 -0
  117. package/v5/model/SubscriptionListResp.js.map +1 -0
  118. package/v5/public-api.d.ts +19 -0
  119. package/v5/public-api.d.ts.map +1 -1
  120. package/v5/public-api.js +19 -0
  121. package/v5/public-api.js.map +1 -1
package/v5/DrsClient.js CHANGED
@@ -26,6 +26,7 @@ const CountInstanceByTagsRequest_1 = require("./model/CountInstanceByTagsRequest
26
26
  const CreateConnectionRequest_1 = require("./model/CreateConnectionRequest");
27
27
  const CreateJobRequest_1 = require("./model/CreateJobRequest");
28
28
  const CreateReplicationJobRequest_1 = require("./model/CreateReplicationJobRequest");
29
+ const DeleteColumnInfosRequest_1 = require("./model/DeleteColumnInfosRequest");
29
30
  const DeleteConnectionRequest_1 = require("./model/DeleteConnectionRequest");
30
31
  const DeleteJdbcDriverRequest_1 = require("./model/DeleteJdbcDriverRequest");
31
32
  const DeleteJobRequest_1 = require("./model/DeleteJobRequest");
@@ -56,10 +57,12 @@ const ListTagsRequest_1 = require("./model/ListTagsRequest");
56
57
  const ListTemplatesRequest_1 = require("./model/ListTemplatesRequest");
57
58
  const ListUserJdbcDriversRequest_1 = require("./model/ListUserJdbcDriversRequest");
58
59
  const ListsAgencyPermissionsRequest_1 = require("./model/ListsAgencyPermissionsRequest");
60
+ const ModifyColumnInfosRequest_1 = require("./model/ModifyColumnInfosRequest");
59
61
  const ModifyConnectionRequest_1 = require("./model/ModifyConnectionRequest");
60
62
  const ShowActionsRequest_1 = require("./model/ShowActionsRequest");
61
63
  const ShowAgencyInfoRequest_1 = require("./model/ShowAgencyInfoRequest");
62
64
  const ShowColumnInfoResultRequest_1 = require("./model/ShowColumnInfoResultRequest");
65
+ const ShowColumnInfosRequest_1 = require("./model/ShowColumnInfosRequest");
63
66
  const ShowComparePolicyRequest_1 = require("./model/ShowComparePolicyRequest");
64
67
  const ShowCompareProgressRequest_1 = require("./model/ShowCompareProgressRequest");
65
68
  const ShowDataFilteringResultRequest_1 = require("./model/ShowDataFilteringResultRequest");
@@ -83,8 +86,10 @@ const ShowMonitorDataRequest_1 = require("./model/ShowMonitorDataRequest");
83
86
  const ShowObjectMappingRequest_1 = require("./model/ShowObjectMappingRequest");
84
87
  const ShowPositionResultRequest_1 = require("./model/ShowPositionResultRequest");
85
88
  const ShowProgressDataRequest_1 = require("./model/ShowProgressDataRequest");
89
+ const ShowReplayProgressRequest_1 = require("./model/ShowReplayProgressRequest");
86
90
  const ShowReplayResultsRequest_1 = require("./model/ShowReplayResultsRequest");
87
91
  const ShowReplicationJobRequest_1 = require("./model/ShowReplicationJobRequest");
92
+ const ShowSubscriptionListsRequest_1 = require("./model/ShowSubscriptionListsRequest");
88
93
  const ShowSupportObjectTypeRequest_1 = require("./model/ShowSupportObjectTypeRequest");
89
94
  const ShowTimelineRequest_1 = require("./model/ShowTimelineRequest");
90
95
  const ShowUpdateObjectSavingStatusRequest_1 = require("./model/ShowUpdateObjectSavingStatusRequest");
@@ -482,6 +487,24 @@ class DrsClient {
482
487
  options['responseHeaders'] = [''];
483
488
  return this.hcClient.sendRequest(options);
484
489
  }
490
+ /**
491
+ * 删除对象的列信息(列映射、列过滤)
492
+ *
493
+ * Please refer to HUAWEI cloud API Explorer for details.
494
+ *
495
+ * @summary 删除对象的列信息(列映射、列过滤)
496
+ * @param {string} jobId 任务ID。
497
+ * @param {DeleteColumnInfoReq} deleteColumnInfosRequestBody 删除对象列信息请求体。
498
+ * @param {'en-us' | 'zh-cn'} [xLanguage] 请求语言类型。
499
+ * @param {*} [options] Override http request option.
500
+ * @throws {RequiredError}
501
+ */
502
+ deleteColumnInfos(deleteColumnInfosRequest) {
503
+ const options = (0, exports.ParamCreater)().deleteColumnInfos(deleteColumnInfosRequest);
504
+ // @ts-ignore
505
+ options['responseHeaders'] = [''];
506
+ return this.hcClient.sendRequest(options);
507
+ }
485
508
  /**
486
509
  * 删除租户指定的连接。
487
510
  *
@@ -750,7 +773,7 @@ class DrsClient {
750
773
  * @param {number} [offset] 偏移量,默认值为0,表示查询该偏移量后面的记录。
751
774
  * @param {number} [limit] 查询返回记录的数量限制,默认值为10。
752
775
  * @param {boolean} [fetchAll] 值为“true”时会使得offset和limit参数失效并返回所有记录。
753
- * @param {string} [sortKey] 返回结果按该关键字排序,默认为“created_at”。
776
+ * @param {string} [sortKey] 返回结果按该关键字排序,默认为“created_at”。 取值:name,db_type,inst_id,ip,created_at,description,tag_value
754
777
  * @param {string} [sortDir] 降序或升序(分别对应desc和asc,默认为“desc”)。
755
778
  * @param {*} [options] Override http request option.
756
779
  * @throws {RequiredError}
@@ -985,7 +1008,7 @@ class DrsClient {
985
1008
  * @param {string} [tags] 标签。
986
1009
  * @param {number} [limit] 查询返回记录的数量限制,默认值为10。
987
1010
  * @param {number} [offset] 偏移量,默认值为0,表示查询该偏移量后面的记录。
988
- * @param {string} [sortKey] 排序字段。
1011
+ * @param {string} [sortKey] 排序字段。 取值:name,db_type,inst_id,ip,created_at,description,tag_value
989
1012
  * @param {string} [sortDir] 排序方法。
990
1013
  * @param {*} [options] Override http request option.
991
1014
  * @throws {RequiredError}
@@ -1002,7 +1025,7 @@ class DrsClient {
1002
1025
  * Please refer to HUAWEI cloud API Explorer for details.
1003
1026
  *
1004
1027
  * @summary 查询项目标签
1005
- * @param {'migration' | 'sync' | 'cloudDataGuard' | 'subscription' | 'backupMigration' | 'replay'} resourceType 资源类型。 - migration:实时迁移 - sync:实时同步 - cloudDataGuard:实时灾备 - subscription:数据订阅 - backupMigration:备份迁移 - replay:录制回放
1028
+ * @param {'migration' | 'sync' | 'cloudDataGuard' | 'subscription' | 'backupMigration' | 'replay' | 'verify'} resourceType 资源类型。 - migration:实时迁移 - sync:实时同步 - cloudDataGuard:实时灾备 - subscription:数据订阅 - backupMigration:备份迁移 - replay:录制回放 - verify:校验任务
1006
1029
  * @param {'en-us' | 'zh-cn'} [xLanguage] 请求语言类型。
1007
1030
  * @param {*} [options] Override http request option.
1008
1031
  * @throws {RequiredError}
@@ -1069,6 +1092,24 @@ class DrsClient {
1069
1092
  options['responseHeaders'] = [''];
1070
1093
  return this.hcClient.sendRequest(options);
1071
1094
  }
1095
+ /**
1096
+ * 修改对象的列信息(列映射、列过滤)
1097
+ *
1098
+ * Please refer to HUAWEI cloud API Explorer for details.
1099
+ *
1100
+ * @summary 修改对象的列信息(列映射、列过滤)
1101
+ * @param {string} jobId 任务ID。
1102
+ * @param {ModifyColumnInfoReq} modifyColumnInfosRequestBody 修改对象列信息请求体。
1103
+ * @param {'en-us' | 'zh-cn'} [xLanguage] 请求语言类型。
1104
+ * @param {*} [options] Override http request option.
1105
+ * @throws {RequiredError}
1106
+ */
1107
+ modifyColumnInfos(modifyColumnInfosRequest) {
1108
+ const options = (0, exports.ParamCreater)().modifyColumnInfos(modifyColumnInfosRequest);
1109
+ // @ts-ignore
1110
+ options['responseHeaders'] = [''];
1111
+ return this.hcClient.sendRequest(options);
1112
+ }
1072
1113
  /**
1073
1114
  * 修改创建的连接信息。
1074
1115
  *
@@ -1141,6 +1182,24 @@ class DrsClient {
1141
1182
  options['responseHeaders'] = [''];
1142
1183
  return this.hcClient.sendRequest(options);
1143
1184
  }
1185
+ /**
1186
+ * 查询对象的列信息(列映射、列过滤)
1187
+ *
1188
+ * Please refer to HUAWEI cloud API Explorer for details.
1189
+ *
1190
+ * @summary 查询对象的列信息(列映射、列过滤)
1191
+ * @param {string} jobId 任务ID。
1192
+ * @param {ShowColumnInfoReq} showColumnInfosRequestBody 修改对象列信息请求体。
1193
+ * @param {'en-us' | 'zh-cn'} [xLanguage] 请求语言类型。
1194
+ * @param {*} [options] Override http request option.
1195
+ * @throws {RequiredError}
1196
+ */
1197
+ showColumnInfos(showColumnInfosRequest) {
1198
+ const options = (0, exports.ParamCreater)().showColumnInfos(showColumnInfosRequest);
1199
+ // @ts-ignore
1200
+ options['responseHeaders'] = [''];
1201
+ return this.hcClient.sendRequest(options);
1202
+ }
1144
1203
  /**
1145
1204
  * 查询对比策略。
1146
1205
  *
@@ -1321,6 +1380,8 @@ class DrsClient {
1321
1380
  * @param {string} [endTime] 结束时间,UTC时间,例如:2020-09-01T19:50:20Z
1322
1381
  * @param {number} [offset] 偏移量,表示从此偏移量开始查询, offset 大于等于 0。默认为0
1323
1382
  * @param {number} [limit] 每页显示的条目数量。默认为10,取值范围【1-1000】
1383
+ * @param {boolean} [anonymizeMode] 是否脱敏。
1384
+ * @param {string} [taskMode] 查询任务阶段信息,不传默认查增量阶段信息。 - FULL_TRANSFER,全量阶段
1324
1385
  * @param {*} [options] Override http request option.
1325
1386
  * @throws {RequiredError}
1326
1387
  */
@@ -1478,6 +1539,7 @@ class DrsClient {
1478
1539
  * @param {string} [sourceDbName] 数据对比源库名称。
1479
1540
  * @param {string} [targetDbName] 数据对比目标库名称。
1480
1541
  * @param {'compare' | 'uncompare'} [compareDetailType] 对比结果类型。取值: - compare:对比完成。 - uncompare:无法对比。
1542
+ * @param {string} [logLevel] 查询日志的级别。取值: - Info:提示级别。 - Warn:警告级别。 - Error:错误级别。
1481
1543
  * @param {*} [options] Override http request option.
1482
1544
  * @throws {RequiredError}
1483
1545
  */
@@ -1573,6 +1635,7 @@ class DrsClient {
1573
1635
  * @param {'en-us' | 'zh-cn'} [xLanguage] 请求语言类型。
1574
1636
  * @param {number} [offset] 偏移量,表示从此偏移量开始查询, offset 大于等于 0。默认为0
1575
1637
  * @param {number} [limit] 每页显示的条目数量。默认为10,取值范围【1-1000】
1638
+ * @param {string} [searchName] 需要过滤的源库对象名称
1576
1639
  * @param {*} [options] Override http request option.
1577
1640
  * @throws {RequiredError}
1578
1641
  */
@@ -1582,6 +1645,23 @@ class DrsClient {
1582
1645
  options['responseHeaders'] = [''];
1583
1646
  return this.hcClient.sendRequest(options);
1584
1647
  }
1648
+ /**
1649
+ * 查询录制回放任务进度
1650
+ *
1651
+ * Please refer to HUAWEI cloud API Explorer for details.
1652
+ *
1653
+ * @summary 查询录制回放任务进度
1654
+ * @param {string} jobId 任务ID。
1655
+ * @param {'en-us' | 'zh-cn'} [xLanguage] 请求语言类型。
1656
+ * @param {*} [options] Override http request option.
1657
+ * @throws {RequiredError}
1658
+ */
1659
+ showReplayProgress(showReplayProgressRequest) {
1660
+ const options = (0, exports.ParamCreater)().showReplayProgress(showReplayProgressRequest);
1661
+ // @ts-ignore
1662
+ options['responseHeaders'] = [''];
1663
+ return this.hcClient.sendRequest(options);
1664
+ }
1585
1665
  /**
1586
1666
  * 获取录制回放结果数据,包括:回放基于时间维度统计信息,异常SQL及统计结果、慢SQL及统计结果
1587
1667
  *
@@ -1627,6 +1707,25 @@ class DrsClient {
1627
1707
  options['responseHeaders'] = [''];
1628
1708
  return this.hcClient.sendRequest(options);
1629
1709
  }
1710
+ /**
1711
+ * 查询订阅任务列表,可以根据企业项目,引擎类型,网络类型,任务状态,任务名称,任务ID进行查询。
1712
+ *
1713
+ * Please refer to HUAWEI cloud API Explorer for details.
1714
+ *
1715
+ * @summary 查询订阅任务列表
1716
+ * @param {QuerySubscriptionsReq} showSubscriptionListsRequestBody 查询订阅任务列表请求体
1717
+ * @param {'en-us' | 'zh-cn'} [xLanguage] 请求语言类型。
1718
+ * @param {number} [limit] 查询返回记录的数量限制,默认为10。
1719
+ * @param {number} [offset] 偏移量,表示查询该偏移量后面的记录,默认为0。
1720
+ * @param {*} [options] Override http request option.
1721
+ * @throws {RequiredError}
1722
+ */
1723
+ showSubscriptionLists(showSubscriptionListsRequest) {
1724
+ const options = (0, exports.ParamCreater)().showSubscriptionLists(showSubscriptionListsRequest);
1725
+ // @ts-ignore
1726
+ options['responseHeaders'] = [''];
1727
+ return this.hcClient.sendRequest(options);
1728
+ }
1630
1729
  /**
1631
1730
  * 查询任务支持的对象选择类型、列映射、支持搜索的对象类型等信息。
1632
1731
  *
@@ -2863,6 +2962,52 @@ const ParamCreater = function () {
2863
2962
  options.headers = localVarHeaderParameter;
2864
2963
  return options;
2865
2964
  },
2965
+ /**
2966
+ * 删除对象的列信息(列映射、列过滤)
2967
+ *
2968
+ * Please refer to HUAWEI cloud API Explorer for details.
2969
+ */
2970
+ deleteColumnInfos(deleteColumnInfosRequest) {
2971
+ const options = {
2972
+ method: "DELETE",
2973
+ url: "/v5/{project_id}/job/{job_id}/column-info",
2974
+ contentType: "application/json",
2975
+ queryParams: {},
2976
+ pathParams: {},
2977
+ headers: {},
2978
+ data: {}
2979
+ };
2980
+ const localVarHeaderParameter = {};
2981
+ let body;
2982
+ let jobId;
2983
+ let xLanguage;
2984
+ if (deleteColumnInfosRequest !== null && deleteColumnInfosRequest !== undefined) {
2985
+ if (deleteColumnInfosRequest instanceof DeleteColumnInfosRequest_1.DeleteColumnInfosRequest) {
2986
+ jobId = deleteColumnInfosRequest.jobId;
2987
+ body = deleteColumnInfosRequest.body;
2988
+ xLanguage = deleteColumnInfosRequest.xLanguage;
2989
+ }
2990
+ else {
2991
+ jobId = deleteColumnInfosRequest['job_id'];
2992
+ body = deleteColumnInfosRequest['body'];
2993
+ xLanguage = deleteColumnInfosRequest['X-Language'];
2994
+ }
2995
+ }
2996
+ if (jobId === null || jobId === undefined) {
2997
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling deleteColumnInfos.');
2998
+ }
2999
+ if (body === null || body === undefined) {
3000
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3001
+ }
3002
+ if (xLanguage !== undefined && xLanguage !== null) {
3003
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
3004
+ }
3005
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3006
+ options.data = body !== undefined ? body : {};
3007
+ options.pathParams = { 'job_id': jobId, };
3008
+ options.headers = localVarHeaderParameter;
3009
+ return options;
3010
+ },
2866
3011
  /**
2867
3012
  * 删除租户指定的连接。
2868
3013
  *
@@ -4486,6 +4631,52 @@ const ParamCreater = function () {
4486
4631
  options.headers = localVarHeaderParameter;
4487
4632
  return options;
4488
4633
  },
4634
+ /**
4635
+ * 修改对象的列信息(列映射、列过滤)
4636
+ *
4637
+ * Please refer to HUAWEI cloud API Explorer for details.
4638
+ */
4639
+ modifyColumnInfos(modifyColumnInfosRequest) {
4640
+ const options = {
4641
+ method: "POST",
4642
+ url: "/v5/{project_id}/job/{job_id}/column-info-modification",
4643
+ contentType: "application/json",
4644
+ queryParams: {},
4645
+ pathParams: {},
4646
+ headers: {},
4647
+ data: {}
4648
+ };
4649
+ const localVarHeaderParameter = {};
4650
+ let body;
4651
+ let jobId;
4652
+ let xLanguage;
4653
+ if (modifyColumnInfosRequest !== null && modifyColumnInfosRequest !== undefined) {
4654
+ if (modifyColumnInfosRequest instanceof ModifyColumnInfosRequest_1.ModifyColumnInfosRequest) {
4655
+ jobId = modifyColumnInfosRequest.jobId;
4656
+ body = modifyColumnInfosRequest.body;
4657
+ xLanguage = modifyColumnInfosRequest.xLanguage;
4658
+ }
4659
+ else {
4660
+ jobId = modifyColumnInfosRequest['job_id'];
4661
+ body = modifyColumnInfosRequest['body'];
4662
+ xLanguage = modifyColumnInfosRequest['X-Language'];
4663
+ }
4664
+ }
4665
+ if (jobId === null || jobId === undefined) {
4666
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling modifyColumnInfos.');
4667
+ }
4668
+ if (body === null || body === undefined) {
4669
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4670
+ }
4671
+ if (xLanguage !== undefined && xLanguage !== null) {
4672
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
4673
+ }
4674
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4675
+ options.data = body !== undefined ? body : {};
4676
+ options.pathParams = { 'job_id': jobId, };
4677
+ options.headers = localVarHeaderParameter;
4678
+ return options;
4679
+ },
4489
4680
  /**
4490
4681
  * 修改创建的连接信息。
4491
4682
  *
@@ -4666,6 +4857,52 @@ const ParamCreater = function () {
4666
4857
  options.headers = localVarHeaderParameter;
4667
4858
  return options;
4668
4859
  },
4860
+ /**
4861
+ * 查询对象的列信息(列映射、列过滤)
4862
+ *
4863
+ * Please refer to HUAWEI cloud API Explorer for details.
4864
+ */
4865
+ showColumnInfos(showColumnInfosRequest) {
4866
+ const options = {
4867
+ method: "POST",
4868
+ url: "/v5/{project_id}/job/{job_id}/column-info",
4869
+ contentType: "application/json",
4870
+ queryParams: {},
4871
+ pathParams: {},
4872
+ headers: {},
4873
+ data: {}
4874
+ };
4875
+ const localVarHeaderParameter = {};
4876
+ let body;
4877
+ let jobId;
4878
+ let xLanguage;
4879
+ if (showColumnInfosRequest !== null && showColumnInfosRequest !== undefined) {
4880
+ if (showColumnInfosRequest instanceof ShowColumnInfosRequest_1.ShowColumnInfosRequest) {
4881
+ jobId = showColumnInfosRequest.jobId;
4882
+ body = showColumnInfosRequest.body;
4883
+ xLanguage = showColumnInfosRequest.xLanguage;
4884
+ }
4885
+ else {
4886
+ jobId = showColumnInfosRequest['job_id'];
4887
+ body = showColumnInfosRequest['body'];
4888
+ xLanguage = showColumnInfosRequest['X-Language'];
4889
+ }
4890
+ }
4891
+ if (jobId === null || jobId === undefined) {
4892
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showColumnInfos.');
4893
+ }
4894
+ if (body === null || body === undefined) {
4895
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4896
+ }
4897
+ if (xLanguage !== undefined && xLanguage !== null) {
4898
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
4899
+ }
4900
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4901
+ options.data = body !== undefined ? body : {};
4902
+ options.pathParams = { 'job_id': jobId, };
4903
+ options.headers = localVarHeaderParameter;
4904
+ return options;
4905
+ },
4669
4906
  /**
4670
4907
  * 查询对比策略。
4671
4908
  *
@@ -5125,6 +5362,8 @@ const ParamCreater = function () {
5125
5362
  let endTime;
5126
5363
  let offset;
5127
5364
  let limit;
5365
+ let anonymizeMode;
5366
+ let taskMode;
5128
5367
  if (showDirtyDataRequest !== null && showDirtyDataRequest !== undefined) {
5129
5368
  if (showDirtyDataRequest instanceof ShowDirtyDataRequest_1.ShowDirtyDataRequest) {
5130
5369
  jobId = showDirtyDataRequest.jobId;
@@ -5133,6 +5372,8 @@ const ParamCreater = function () {
5133
5372
  endTime = showDirtyDataRequest.endTime;
5134
5373
  offset = showDirtyDataRequest.offset;
5135
5374
  limit = showDirtyDataRequest.limit;
5375
+ anonymizeMode = showDirtyDataRequest.anonymizeMode;
5376
+ taskMode = showDirtyDataRequest.taskMode;
5136
5377
  }
5137
5378
  else {
5138
5379
  jobId = showDirtyDataRequest['job_id'];
@@ -5141,6 +5382,8 @@ const ParamCreater = function () {
5141
5382
  endTime = showDirtyDataRequest['end_time'];
5142
5383
  offset = showDirtyDataRequest['offset'];
5143
5384
  limit = showDirtyDataRequest['limit'];
5385
+ anonymizeMode = showDirtyDataRequest['anonymize_mode'];
5386
+ taskMode = showDirtyDataRequest['task_mode'];
5144
5387
  }
5145
5388
  }
5146
5389
  if (jobId === null || jobId === undefined) {
@@ -5158,6 +5401,12 @@ const ParamCreater = function () {
5158
5401
  if (limit !== null && limit !== undefined) {
5159
5402
  localVarQueryParameter['limit'] = limit;
5160
5403
  }
5404
+ if (anonymizeMode !== null && anonymizeMode !== undefined) {
5405
+ localVarQueryParameter['anonymize_mode'] = anonymizeMode;
5406
+ }
5407
+ if (taskMode !== null && taskMode !== undefined) {
5408
+ localVarQueryParameter['task_mode'] = taskMode;
5409
+ }
5161
5410
  if (xLanguage !== undefined && xLanguage !== null) {
5162
5411
  localVarHeaderParameter['X-Language'] = String(xLanguage);
5163
5412
  }
@@ -5512,6 +5761,7 @@ const ParamCreater = function () {
5512
5761
  let sourceDbName;
5513
5762
  let targetDbName;
5514
5763
  let compareDetailType;
5764
+ let logLevel;
5515
5765
  if (showJobDetailRequest !== null && showJobDetailRequest !== undefined) {
5516
5766
  if (showJobDetailRequest instanceof ShowJobDetailRequest_1.ShowJobDetailRequest) {
5517
5767
  jobId = showJobDetailRequest.jobId;
@@ -5527,6 +5777,7 @@ const ParamCreater = function () {
5527
5777
  sourceDbName = showJobDetailRequest.sourceDbName;
5528
5778
  targetDbName = showJobDetailRequest.targetDbName;
5529
5779
  compareDetailType = showJobDetailRequest.compareDetailType;
5780
+ logLevel = showJobDetailRequest.logLevel;
5530
5781
  }
5531
5782
  else {
5532
5783
  jobId = showJobDetailRequest['job_id'];
@@ -5542,6 +5793,7 @@ const ParamCreater = function () {
5542
5793
  sourceDbName = showJobDetailRequest['source_db_name'];
5543
5794
  targetDbName = showJobDetailRequest['target_db_name'];
5544
5795
  compareDetailType = showJobDetailRequest['compare_detail_type'];
5796
+ logLevel = showJobDetailRequest['log_level'];
5545
5797
  }
5546
5798
  }
5547
5799
  if (jobId === null || jobId === undefined) {
@@ -5583,6 +5835,9 @@ const ParamCreater = function () {
5583
5835
  if (compareDetailType !== null && compareDetailType !== undefined) {
5584
5836
  localVarQueryParameter['compare_detail_type'] = compareDetailType;
5585
5837
  }
5838
+ if (logLevel !== null && logLevel !== undefined) {
5839
+ localVarQueryParameter['log_level'] = logLevel;
5840
+ }
5586
5841
  if (xLanguage !== undefined && xLanguage !== null) {
5587
5842
  localVarHeaderParameter['X-Language'] = String(xLanguage);
5588
5843
  }
@@ -5785,6 +6040,7 @@ const ParamCreater = function () {
5785
6040
  let xLanguage;
5786
6041
  let offset;
5787
6042
  let limit;
6043
+ let searchName;
5788
6044
  if (showProgressDataRequest !== null && showProgressDataRequest !== undefined) {
5789
6045
  if (showProgressDataRequest instanceof ShowProgressDataRequest_1.ShowProgressDataRequest) {
5790
6046
  jobId = showProgressDataRequest.jobId;
@@ -5792,6 +6048,7 @@ const ParamCreater = function () {
5792
6048
  xLanguage = showProgressDataRequest.xLanguage;
5793
6049
  offset = showProgressDataRequest.offset;
5794
6050
  limit = showProgressDataRequest.limit;
6051
+ searchName = showProgressDataRequest.searchName;
5795
6052
  }
5796
6053
  else {
5797
6054
  jobId = showProgressDataRequest['job_id'];
@@ -5799,6 +6056,7 @@ const ParamCreater = function () {
5799
6056
  xLanguage = showProgressDataRequest['X-Language'];
5800
6057
  offset = showProgressDataRequest['offset'];
5801
6058
  limit = showProgressDataRequest['limit'];
6059
+ searchName = showProgressDataRequest['search_name'];
5802
6060
  }
5803
6061
  }
5804
6062
  if (jobId === null || jobId === undefined) {
@@ -5813,6 +6071,9 @@ const ParamCreater = function () {
5813
6071
  if (limit !== null && limit !== undefined) {
5814
6072
  localVarQueryParameter['limit'] = limit;
5815
6073
  }
6074
+ if (searchName !== null && searchName !== undefined) {
6075
+ localVarQueryParameter['search_name'] = searchName;
6076
+ }
5816
6077
  if (xLanguage !== undefined && xLanguage !== null) {
5817
6078
  localVarHeaderParameter['X-Language'] = String(xLanguage);
5818
6079
  }
@@ -5821,6 +6082,43 @@ const ParamCreater = function () {
5821
6082
  options.headers = localVarHeaderParameter;
5822
6083
  return options;
5823
6084
  },
6085
+ /**
6086
+ * 查询录制回放任务进度
6087
+ *
6088
+ * Please refer to HUAWEI cloud API Explorer for details.
6089
+ */
6090
+ showReplayProgress(showReplayProgressRequest) {
6091
+ const options = {
6092
+ method: "GET",
6093
+ url: "/v5/{project_id}/jobs/{job_id}/replay-progress",
6094
+ contentType: "application/json",
6095
+ queryParams: {},
6096
+ pathParams: {},
6097
+ headers: {}
6098
+ };
6099
+ const localVarHeaderParameter = {};
6100
+ let jobId;
6101
+ let xLanguage;
6102
+ if (showReplayProgressRequest !== null && showReplayProgressRequest !== undefined) {
6103
+ if (showReplayProgressRequest instanceof ShowReplayProgressRequest_1.ShowReplayProgressRequest) {
6104
+ jobId = showReplayProgressRequest.jobId;
6105
+ xLanguage = showReplayProgressRequest.xLanguage;
6106
+ }
6107
+ else {
6108
+ jobId = showReplayProgressRequest['job_id'];
6109
+ xLanguage = showReplayProgressRequest['X-Language'];
6110
+ }
6111
+ }
6112
+ if (jobId === null || jobId === undefined) {
6113
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showReplayProgress.');
6114
+ }
6115
+ if (xLanguage !== undefined && xLanguage !== null) {
6116
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
6117
+ }
6118
+ options.pathParams = { 'job_id': jobId, };
6119
+ options.headers = localVarHeaderParameter;
6120
+ return options;
6121
+ },
5824
6122
  /**
5825
6123
  * 获取录制回放结果数据,包括:回放基于时间维度统计信息,异常SQL及统计结果、慢SQL及统计结果
5826
6124
  *
@@ -5966,6 +6264,59 @@ const ParamCreater = function () {
5966
6264
  options.headers = localVarHeaderParameter;
5967
6265
  return options;
5968
6266
  },
6267
+ /**
6268
+ * 查询订阅任务列表,可以根据企业项目,引擎类型,网络类型,任务状态,任务名称,任务ID进行查询。
6269
+ *
6270
+ * Please refer to HUAWEI cloud API Explorer for details.
6271
+ */
6272
+ showSubscriptionLists(showSubscriptionListsRequest) {
6273
+ const options = {
6274
+ method: "POST",
6275
+ url: "/v5/{project_id}/subscriptions",
6276
+ contentType: "application/json",
6277
+ queryParams: {},
6278
+ pathParams: {},
6279
+ headers: {},
6280
+ data: {}
6281
+ };
6282
+ const localVarHeaderParameter = {};
6283
+ const localVarQueryParameter = {};
6284
+ let body;
6285
+ let xLanguage;
6286
+ let limit;
6287
+ let offset;
6288
+ if (showSubscriptionListsRequest !== null && showSubscriptionListsRequest !== undefined) {
6289
+ if (showSubscriptionListsRequest instanceof ShowSubscriptionListsRequest_1.ShowSubscriptionListsRequest) {
6290
+ body = showSubscriptionListsRequest.body;
6291
+ xLanguage = showSubscriptionListsRequest.xLanguage;
6292
+ limit = showSubscriptionListsRequest.limit;
6293
+ offset = showSubscriptionListsRequest.offset;
6294
+ }
6295
+ else {
6296
+ body = showSubscriptionListsRequest['body'];
6297
+ xLanguage = showSubscriptionListsRequest['X-Language'];
6298
+ limit = showSubscriptionListsRequest['limit'];
6299
+ offset = showSubscriptionListsRequest['offset'];
6300
+ }
6301
+ }
6302
+ if (body === null || body === undefined) {
6303
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
6304
+ }
6305
+ if (limit !== null && limit !== undefined) {
6306
+ localVarQueryParameter['limit'] = limit;
6307
+ }
6308
+ if (offset !== null && offset !== undefined) {
6309
+ localVarQueryParameter['offset'] = offset;
6310
+ }
6311
+ if (xLanguage !== undefined && xLanguage !== null) {
6312
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
6313
+ }
6314
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6315
+ options.data = body !== undefined ? body : {};
6316
+ options.queryParams = localVarQueryParameter;
6317
+ options.headers = localVarHeaderParameter;
6318
+ return options;
6319
+ },
5969
6320
  /**
5970
6321
  * 查询任务支持的对象选择类型、列映射、支持搜索的对象类型等信息。
5971
6322
  *