@alicloud/dms-enterprise20181101 2.8.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/client.d.ts +46 -4
  2. package/dist/client.js +127 -7
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateWorkspaceRequest.d.ts +8 -10
  5. package/dist/models/CreateWorkspaceRequest.js +2 -2
  6. package/dist/models/CreateWorkspaceRequest.js.map +1 -1
  7. package/dist/models/ListInventoryJobsRequest.d.ts +43 -0
  8. package/dist/models/ListInventoryJobsRequest.js +68 -0
  9. package/dist/models/ListInventoryJobsRequest.js.map +1 -0
  10. package/dist/models/ListInventoryJobsResponse.d.ts +19 -0
  11. package/dist/models/ListInventoryJobsResponse.js +69 -0
  12. package/dist/models/ListInventoryJobsResponse.js.map +1 -0
  13. package/dist/models/ListInventoryJobsResponseBody.d.ts +56 -0
  14. package/dist/models/ListInventoryJobsResponseBody.js +94 -0
  15. package/dist/models/ListInventoryJobsResponseBody.js.map +1 -0
  16. package/dist/models/SearchInventoryAssetRequest.d.ts +46 -0
  17. package/dist/models/SearchInventoryAssetRequest.js +68 -0
  18. package/dist/models/SearchInventoryAssetRequest.js.map +1 -0
  19. package/dist/models/SearchInventoryAssetResponse.d.ts +19 -0
  20. package/dist/models/SearchInventoryAssetResponse.js +69 -0
  21. package/dist/models/SearchInventoryAssetResponse.js.map +1 -0
  22. package/dist/models/SearchInventoryAssetResponseBody.d.ts +56 -0
  23. package/dist/models/SearchInventoryAssetResponseBody.js +94 -0
  24. package/dist/models/SearchInventoryAssetResponseBody.js.map +1 -0
  25. package/dist/models/model.d.ts +8 -0
  26. package/dist/models/model.js +40 -24
  27. package/dist/models/model.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/client.ts +144 -8
  30. package/src/models/CreateWorkspaceRequest.ts +10 -12
  31. package/src/models/ListInventoryJobsRequest.ts +66 -0
  32. package/src/models/ListInventoryJobsResponse.ts +40 -0
  33. package/src/models/ListInventoryJobsResponseBody.ts +95 -0
  34. package/src/models/SearchInventoryAssetRequest.ts +69 -0
  35. package/src/models/SearchInventoryAssetResponse.ts +40 -0
  36. package/src/models/SearchInventoryAssetResponseBody.ts +95 -0
  37. package/src/models/model.ts +8 -0
package/dist/client.d.ts CHANGED
@@ -1847,7 +1847,7 @@ export default class Client extends OpenApi {
1847
1847
  */
1848
1848
  fixSqlByMetaAgent(request: $_model.FixSqlByMetaAgentRequest): Promise<$_model.FixSqlByMetaAgentResponse>;
1849
1849
  /**
1850
- * 数据库知识库补数据接口
1850
+ * Database knowledge base data supplementation interface
1851
1851
  *
1852
1852
  * @param request - GenMetaKnowledgeAssetRequest
1853
1853
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1855,7 +1855,7 @@ export default class Client extends OpenApi {
1855
1855
  */
1856
1856
  genMetaKnowledgeAssetWithOptions(request: $_model.GenMetaKnowledgeAssetRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GenMetaKnowledgeAssetResponse>;
1857
1857
  /**
1858
- * 数据库知识库补数据接口
1858
+ * Database knowledge base data supplementation interface
1859
1859
  *
1860
1860
  * @param request - GenMetaKnowledgeAssetRequest
1861
1861
  * @returns GenMetaKnowledgeAssetResponse
@@ -2302,7 +2302,7 @@ export default class Client extends OpenApi {
2302
2302
  */
2303
2303
  getDataLakePartition(request: $_model.GetDataLakePartitionRequest): Promise<$_model.GetDataLakePartitionResponse>;
2304
2304
  /**
2305
- * Queries basic information about tables in the data lake.
2305
+ * Invokes this API to obtain table info in the data lake.
2306
2306
  *
2307
2307
  * @param request - GetDataLakeTableRequest
2308
2308
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2310,7 +2310,7 @@ export default class Client extends OpenApi {
2310
2310
  */
2311
2311
  getDataLakeTableWithOptions(request: $_model.GetDataLakeTableRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetDataLakeTableResponse>;
2312
2312
  /**
2313
- * Queries basic information about tables in the data lake.
2313
+ * Invokes this API to obtain table info in the data lake.
2314
2314
  *
2315
2315
  * @param request - GetDataLakeTableRequest
2316
2316
  * @returns GetDataLakeTableResponse
@@ -3734,6 +3734,27 @@ export default class Client extends OpenApi {
3734
3734
  * @returns ListInstancesResponse
3735
3735
  */
3736
3736
  listInstances(request: $_model.ListInstancesRequest): Promise<$_model.ListInstancesResponse>;
3737
+ /**
3738
+ * 分页查询资产盘点任务历史列表
3739
+ *
3740
+ * @remarks
3741
+ * 对应控制台 /knowledge/job/inventory/list,分页查询当前租户下的资产盘点任务历史,支持按任务 ID、创建人关键词及状态筛选
3742
+ *
3743
+ * @param request - ListInventoryJobsRequest
3744
+ * @param runtime - runtime options for this request RuntimeOptions
3745
+ * @returns ListInventoryJobsResponse
3746
+ */
3747
+ listInventoryJobsWithOptions(request: $_model.ListInventoryJobsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListInventoryJobsResponse>;
3748
+ /**
3749
+ * 分页查询资产盘点任务历史列表
3750
+ *
3751
+ * @remarks
3752
+ * 对应控制台 /knowledge/job/inventory/list,分页查询当前租户下的资产盘点任务历史,支持按任务 ID、创建人关键词及状态筛选
3753
+ *
3754
+ * @param request - ListInventoryJobsRequest
3755
+ * @returns ListInventoryJobsResponse
3756
+ */
3757
+ listInventoryJobs(request: $_model.ListInventoryJobsRequest): Promise<$_model.ListInventoryJobsResponse>;
3737
3758
  /**
3738
3759
  * Queries the information about task flows in the business scenarios of a workspace in Data Management (DMS).
3739
3760
  *
@@ -4836,6 +4857,27 @@ export default class Client extends OpenApi {
4836
4857
  * @returns SearchDatabaseResponse
4837
4858
  */
4838
4859
  searchDatabase(request: $_model.SearchDatabaseRequest): Promise<$_model.SearchDatabaseResponse>;
4860
+ /**
4861
+ * 分页查询盘点任务下的表资产列表
4862
+ *
4863
+ * @remarks
4864
+ * 对应控制台 /knowledge/job/inventory/asset,分页查询指定盘点任务产出的表级资产信息,支持关键词筛选与排序
4865
+ *
4866
+ * @param request - SearchInventoryAssetRequest
4867
+ * @param runtime - runtime options for this request RuntimeOptions
4868
+ * @returns SearchInventoryAssetResponse
4869
+ */
4870
+ searchInventoryAssetWithOptions(request: $_model.SearchInventoryAssetRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SearchInventoryAssetResponse>;
4871
+ /**
4872
+ * 分页查询盘点任务下的表资产列表
4873
+ *
4874
+ * @remarks
4875
+ * 对应控制台 /knowledge/job/inventory/asset,分页查询指定盘点任务产出的表级资产信息,支持关键词筛选与排序
4876
+ *
4877
+ * @param request - SearchInventoryAssetRequest
4878
+ * @returns SearchInventoryAssetResponse
4879
+ */
4880
+ searchInventoryAsset(request: $_model.SearchInventoryAssetRequest): Promise<$_model.SearchInventoryAssetResponse>;
4839
4881
  /**
4840
4882
  * 分页查询盘点任务产出的知识列表,支持按关键词、知识类型等条件筛选
4841
4883
  *
package/dist/client.js CHANGED
@@ -4074,15 +4074,15 @@ class Client extends openapi_core_1.default {
4074
4074
  if (!$dara.isNull(request.description)) {
4075
4075
  query["Description"] = request.description;
4076
4076
  }
4077
- if (!$dara.isNull(request.regionId)) {
4078
- query["RegionId"] = request.regionId;
4079
- }
4080
4077
  if (!$dara.isNull(request.vpcId)) {
4081
4078
  query["VpcId"] = request.vpcId;
4082
4079
  }
4083
4080
  if (!$dara.isNull(request.workspaceName)) {
4084
4081
  query["WorkspaceName"] = request.workspaceName;
4085
4082
  }
4083
+ if (!$dara.isNull(request.workspaceRegion)) {
4084
+ query["WorkspaceRegion"] = request.workspaceRegion;
4085
+ }
4086
4086
  let body = {};
4087
4087
  if (!$dara.isNull(request.clientToken)) {
4088
4088
  body["ClientToken"] = request.clientToken;
@@ -5989,7 +5989,7 @@ class Client extends openapi_core_1.default {
5989
5989
  return await this.fixSqlByMetaAgentWithOptions(request, runtime);
5990
5990
  }
5991
5991
  /**
5992
- * 数据库知识库补数据接口
5992
+ * Database knowledge base data supplementation interface
5993
5993
  *
5994
5994
  * @param request - GenMetaKnowledgeAssetRequest
5995
5995
  * @param runtime - runtime options for this request RuntimeOptions
@@ -6018,7 +6018,7 @@ class Client extends openapi_core_1.default {
6018
6018
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GenMetaKnowledgeAssetResponse({}));
6019
6019
  }
6020
6020
  /**
6021
- * 数据库知识库补数据接口
6021
+ * Database knowledge base data supplementation interface
6022
6022
  *
6023
6023
  * @param request - GenMetaKnowledgeAssetRequest
6024
6024
  * @returns GenMetaKnowledgeAssetResponse
@@ -7317,7 +7317,7 @@ class Client extends openapi_core_1.default {
7317
7317
  return await this.getDataLakePartitionWithOptions(request, runtime);
7318
7318
  }
7319
7319
  /**
7320
- * Queries basic information about tables in the data lake.
7320
+ * Invokes this API to obtain table info in the data lake.
7321
7321
  *
7322
7322
  * @param request - GetDataLakeTableRequest
7323
7323
  * @param runtime - runtime options for this request RuntimeOptions
@@ -7361,7 +7361,7 @@ class Client extends openapi_core_1.default {
7361
7361
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetDataLakeTableResponse({}));
7362
7362
  }
7363
7363
  /**
7364
- * Queries basic information about tables in the data lake.
7364
+ * Invokes this API to obtain table info in the data lake.
7365
7365
  *
7366
7366
  * @param request - GetDataLakeTableRequest
7367
7367
  * @returns GetDataLakeTableResponse
@@ -11601,6 +11601,66 @@ class Client extends openapi_core_1.default {
11601
11601
  let runtime = new $dara.RuntimeOptions({});
11602
11602
  return await this.listInstancesWithOptions(request, runtime);
11603
11603
  }
11604
+ /**
11605
+ * 分页查询资产盘点任务历史列表
11606
+ *
11607
+ * @remarks
11608
+ * 对应控制台 /knowledge/job/inventory/list,分页查询当前租户下的资产盘点任务历史,支持按任务 ID、创建人关键词及状态筛选
11609
+ *
11610
+ * @param request - ListInventoryJobsRequest
11611
+ * @param runtime - runtime options for this request RuntimeOptions
11612
+ * @returns ListInventoryJobsResponse
11613
+ */
11614
+ async listInventoryJobsWithOptions(request, runtime) {
11615
+ request.validate();
11616
+ let query = {};
11617
+ if (!$dara.isNull(request.offset)) {
11618
+ query["Offset"] = request.offset;
11619
+ }
11620
+ if (!$dara.isNull(request.query)) {
11621
+ query["Query"] = request.query;
11622
+ }
11623
+ if (!$dara.isNull(request.size)) {
11624
+ query["Size"] = request.size;
11625
+ }
11626
+ if (!$dara.isNull(request.sortBy)) {
11627
+ query["SortBy"] = request.sortBy;
11628
+ }
11629
+ if (!$dara.isNull(request.sortOrder)) {
11630
+ query["SortOrder"] = request.sortOrder;
11631
+ }
11632
+ if (!$dara.isNull(request.status)) {
11633
+ query["Status"] = request.status;
11634
+ }
11635
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
11636
+ query: openapi_core_2.OpenApiUtil.query(query),
11637
+ });
11638
+ let params = new openapi_core_2.$OpenApiUtil.Params({
11639
+ action: "ListInventoryJobs",
11640
+ version: "2018-11-01",
11641
+ protocol: "HTTPS",
11642
+ pathname: "/",
11643
+ method: "POST",
11644
+ authType: "AK",
11645
+ style: "RPC",
11646
+ reqBodyType: "formData",
11647
+ bodyType: "json",
11648
+ });
11649
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListInventoryJobsResponse({}));
11650
+ }
11651
+ /**
11652
+ * 分页查询资产盘点任务历史列表
11653
+ *
11654
+ * @remarks
11655
+ * 对应控制台 /knowledge/job/inventory/list,分页查询当前租户下的资产盘点任务历史,支持按任务 ID、创建人关键词及状态筛选
11656
+ *
11657
+ * @param request - ListInventoryJobsRequest
11658
+ * @returns ListInventoryJobsResponse
11659
+ */
11660
+ async listInventoryJobs(request) {
11661
+ let runtime = new $dara.RuntimeOptions({});
11662
+ return await this.listInventoryJobsWithOptions(request, runtime);
11663
+ }
11604
11664
  /**
11605
11665
  * Queries the information about task flows in the business scenarios of a workspace in Data Management (DMS).
11606
11666
  *
@@ -15208,6 +15268,66 @@ class Client extends openapi_core_1.default {
15208
15268
  let runtime = new $dara.RuntimeOptions({});
15209
15269
  return await this.searchDatabaseWithOptions(request, runtime);
15210
15270
  }
15271
+ /**
15272
+ * 分页查询盘点任务下的表资产列表
15273
+ *
15274
+ * @remarks
15275
+ * 对应控制台 /knowledge/job/inventory/asset,分页查询指定盘点任务产出的表级资产信息,支持关键词筛选与排序
15276
+ *
15277
+ * @param request - SearchInventoryAssetRequest
15278
+ * @param runtime - runtime options for this request RuntimeOptions
15279
+ * @returns SearchInventoryAssetResponse
15280
+ */
15281
+ async searchInventoryAssetWithOptions(request, runtime) {
15282
+ request.validate();
15283
+ let query = {};
15284
+ if (!$dara.isNull(request.jobId)) {
15285
+ query["JobId"] = request.jobId;
15286
+ }
15287
+ if (!$dara.isNull(request.offset)) {
15288
+ query["Offset"] = request.offset;
15289
+ }
15290
+ if (!$dara.isNull(request.query)) {
15291
+ query["Query"] = request.query;
15292
+ }
15293
+ if (!$dara.isNull(request.size)) {
15294
+ query["Size"] = request.size;
15295
+ }
15296
+ if (!$dara.isNull(request.sortBy)) {
15297
+ query["SortBy"] = request.sortBy;
15298
+ }
15299
+ if (!$dara.isNull(request.sortOrder)) {
15300
+ query["SortOrder"] = request.sortOrder;
15301
+ }
15302
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
15303
+ query: openapi_core_2.OpenApiUtil.query(query),
15304
+ });
15305
+ let params = new openapi_core_2.$OpenApiUtil.Params({
15306
+ action: "SearchInventoryAsset",
15307
+ version: "2018-11-01",
15308
+ protocol: "HTTPS",
15309
+ pathname: "/",
15310
+ method: "POST",
15311
+ authType: "AK",
15312
+ style: "RPC",
15313
+ reqBodyType: "formData",
15314
+ bodyType: "json",
15315
+ });
15316
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.SearchInventoryAssetResponse({}));
15317
+ }
15318
+ /**
15319
+ * 分页查询盘点任务下的表资产列表
15320
+ *
15321
+ * @remarks
15322
+ * 对应控制台 /knowledge/job/inventory/asset,分页查询指定盘点任务产出的表级资产信息,支持关键词筛选与排序
15323
+ *
15324
+ * @param request - SearchInventoryAssetRequest
15325
+ * @returns SearchInventoryAssetResponse
15326
+ */
15327
+ async searchInventoryAsset(request) {
15328
+ let runtime = new $dara.RuntimeOptions({});
15329
+ return await this.searchInventoryAssetWithOptions(request, runtime);
15330
+ }
15211
15331
  /**
15212
15332
  * 分页查询盘点任务产出的知识列表,支持按关键词、知识类型等条件筛选
15213
15333
  *