Skip to content

Commit e65dd20

Browse files
committed
Support API EditMetaKnowledgeAsset.
1 parent 653e136 commit e65dd20

19 files changed

+894
-1
lines changed

dms-enterprise-20181101/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/dms-enterprise20181101",
3-
"version": "1.46.1",
3+
"version": "1.47.0",
44
"description": "",
55
"main": "dist/client.js",
66
"scripts": {

dms-enterprise-20181101/src/client.ts

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5060,6 +5060,64 @@ export default class Client extends OpenApi {
50605060
return await this.editLogicDatabaseWithOptions(request, runtime);
50615061
}
50625062

5063+
/**
5064+
* 编辑指定guid的元数据业务知识
5065+
*
5066+
* @param request - EditMetaKnowledgeAssetRequest
5067+
* @param runtime - runtime options for this request RuntimeOptions
5068+
* @returns EditMetaKnowledgeAssetResponse
5069+
*/
5070+
async editMetaKnowledgeAssetWithOptions(request: $_model.EditMetaKnowledgeAssetRequest, runtime: $dara.RuntimeOptions): Promise<$_model.EditMetaKnowledgeAssetResponse> {
5071+
request.validate();
5072+
let query = { };
5073+
if (!$dara.isNull(request.assetDescription)) {
5074+
query["AssetDescription"] = request.assetDescription;
5075+
}
5076+
5077+
if (!$dara.isNull(request.columnName)) {
5078+
query["ColumnName"] = request.columnName;
5079+
}
5080+
5081+
if (!$dara.isNull(request.dbId)) {
5082+
query["DbId"] = request.dbId;
5083+
}
5084+
5085+
if (!$dara.isNull(request.tableName)) {
5086+
query["TableName"] = request.tableName;
5087+
}
5088+
5089+
if (!$dara.isNull(request.tableSchemaName)) {
5090+
query["TableSchemaName"] = request.tableSchemaName;
5091+
}
5092+
5093+
let req = new $OpenApiUtil.OpenApiRequest({
5094+
query: OpenApiUtil.query(query),
5095+
});
5096+
let params = new $OpenApiUtil.Params({
5097+
action: "EditMetaKnowledgeAsset",
5098+
version: "2018-11-01",
5099+
protocol: "HTTPS",
5100+
pathname: "/",
5101+
method: "POST",
5102+
authType: "AK",
5103+
style: "RPC",
5104+
reqBodyType: "formData",
5105+
bodyType: "json",
5106+
});
5107+
return $dara.cast<$_model.EditMetaKnowledgeAssetResponse>(await this.callApi(params, req, runtime), new $_model.EditMetaKnowledgeAssetResponse({}));
5108+
}
5109+
5110+
/**
5111+
* 编辑指定guid的元数据业务知识
5112+
*
5113+
* @param request - EditMetaKnowledgeAssetRequest
5114+
* @returns EditMetaKnowledgeAssetResponse
5115+
*/
5116+
async editMetaKnowledgeAsset(request: $_model.EditMetaKnowledgeAssetRequest): Promise<$_model.EditMetaKnowledgeAssetResponse> {
5117+
let runtime = new $dara.RuntimeOptions({ });
5118+
return await this.editMetaKnowledgeAssetWithOptions(request, runtime);
5119+
}
5120+
50635121
/**
50645122
* You can call this operation to enable a user that has been disabled in Data Management (DMS) Enterprise.
50655123
*
@@ -8344,6 +8402,56 @@ export default class Client extends OpenApi {
83448402
return await this.getTableDesignProjectInfoWithOptions(request, runtime);
83458403
}
83468404

8405+
/**
8406+
* 获取指定guid的元数据知识
8407+
*
8408+
* @param request - GetTableKnowledgeInfoRequest
8409+
* @param runtime - runtime options for this request RuntimeOptions
8410+
* @returns GetTableKnowledgeInfoResponse
8411+
*/
8412+
async getTableKnowledgeInfoWithOptions(request: $_model.GetTableKnowledgeInfoRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetTableKnowledgeInfoResponse> {
8413+
request.validate();
8414+
let query = { };
8415+
if (!$dara.isNull(request.dbId)) {
8416+
query["DbId"] = request.dbId;
8417+
}
8418+
8419+
if (!$dara.isNull(request.tableName)) {
8420+
query["TableName"] = request.tableName;
8421+
}
8422+
8423+
if (!$dara.isNull(request.tableSchemaName)) {
8424+
query["TableSchemaName"] = request.tableSchemaName;
8425+
}
8426+
8427+
let req = new $OpenApiUtil.OpenApiRequest({
8428+
query: OpenApiUtil.query(query),
8429+
});
8430+
let params = new $OpenApiUtil.Params({
8431+
action: "GetTableKnowledgeInfo",
8432+
version: "2018-11-01",
8433+
protocol: "HTTPS",
8434+
pathname: "/",
8435+
method: "POST",
8436+
authType: "AK",
8437+
style: "RPC",
8438+
reqBodyType: "formData",
8439+
bodyType: "json",
8440+
});
8441+
return $dara.cast<$_model.GetTableKnowledgeInfoResponse>(await this.callApi(params, req, runtime), new $_model.GetTableKnowledgeInfoResponse({}));
8442+
}
8443+
8444+
/**
8445+
* 获取指定guid的元数据知识
8446+
*
8447+
* @param request - GetTableKnowledgeInfoRequest
8448+
* @returns GetTableKnowledgeInfoResponse
8449+
*/
8450+
async getTableKnowledgeInfo(request: $_model.GetTableKnowledgeInfoRequest): Promise<$_model.GetTableKnowledgeInfoResponse> {
8451+
let runtime = new $dara.RuntimeOptions({ });
8452+
return await this.getTableKnowledgeInfoWithOptions(request, runtime);
8453+
}
8454+
83478455
/**
83488456
* Queries the topology of a table.
83498457
*
@@ -12218,6 +12326,60 @@ export default class Client extends OpenApi {
1221812326
return await this.listStandardGroupsWithOptions(request, runtime);
1221912327
}
1222012328

12329+
/**
12330+
* 获取表字段信息
12331+
*
12332+
* @param request - ListTableColumnsRequest
12333+
* @param runtime - runtime options for this request RuntimeOptions
12334+
* @returns ListTableColumnsResponse
12335+
*/
12336+
async listTableColumnsWithOptions(request: $_model.ListTableColumnsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListTableColumnsResponse> {
12337+
request.validate();
12338+
let query = { };
12339+
if (!$dara.isNull(request.dbId)) {
12340+
query["DbId"] = request.dbId;
12341+
}
12342+
12343+
if (!$dara.isNull(request.tableName)) {
12344+
query["TableName"] = request.tableName;
12345+
}
12346+
12347+
if (!$dara.isNull(request.tableSchemaName)) {
12348+
query["TableSchemaName"] = request.tableSchemaName;
12349+
}
12350+
12351+
if (!$dara.isNull(request.tid)) {
12352+
query["Tid"] = request.tid;
12353+
}
12354+
12355+
let req = new $OpenApiUtil.OpenApiRequest({
12356+
query: OpenApiUtil.query(query),
12357+
});
12358+
let params = new $OpenApiUtil.Params({
12359+
action: "ListTableColumns",
12360+
version: "2018-11-01",
12361+
protocol: "HTTPS",
12362+
pathname: "/",
12363+
method: "POST",
12364+
authType: "AK",
12365+
style: "RPC",
12366+
reqBodyType: "formData",
12367+
bodyType: "json",
12368+
});
12369+
return $dara.cast<$_model.ListTableColumnsResponse>(await this.callApi(params, req, runtime), new $_model.ListTableColumnsResponse({}));
12370+
}
12371+
12372+
/**
12373+
* 获取表字段信息
12374+
*
12375+
* @param request - ListTableColumnsRequest
12376+
* @returns ListTableColumnsResponse
12377+
*/
12378+
async listTableColumns(request: $_model.ListTableColumnsRequest): Promise<$_model.ListTableColumnsResponse> {
12379+
let runtime = new $dara.RuntimeOptions({ });
12380+
return await this.listTableColumnsWithOptions(request, runtime);
12381+
}
12382+
1222112383
/**
1222212384
* Queries the tables in a database.
1222312385
*
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
4+
5+
export class ColumnKnowledgeInfo extends $dara.Model {
6+
assetDescription?: string;
7+
assetModifiedGmt?: string;
8+
columnName?: string;
9+
columnType?: string;
10+
description?: string;
11+
position?: number;
12+
static names(): { [key: string]: string } {
13+
return {
14+
assetDescription: 'AssetDescription',
15+
assetModifiedGmt: 'AssetModifiedGmt',
16+
columnName: 'ColumnName',
17+
columnType: 'ColumnType',
18+
description: 'Description',
19+
position: 'Position',
20+
};
21+
}
22+
23+
static types(): { [key: string]: any } {
24+
return {
25+
assetDescription: 'string',
26+
assetModifiedGmt: 'string',
27+
columnName: 'string',
28+
columnType: 'string',
29+
description: 'string',
30+
position: 'number',
31+
};
32+
}
33+
34+
validate() {
35+
super.validate();
36+
}
37+
38+
constructor(map?: { [key: string]: any }) {
39+
super(map);
40+
}
41+
}
42+

dms-enterprise-20181101/src/models/DescribeDifyAttributeRequest.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,25 @@ import * as $dara from '@darabonba/typescript';
33

44

55
export class DescribeDifyAttributeRequest extends $dara.Model {
6+
/**
7+
* @example
8+
* 92748163-af62-4ca4-ad85-1****
9+
*/
610
appUuid?: string;
11+
/**
12+
* @example
13+
* ETnLKlblzczshOTUbOCzxxxx
14+
*/
715
clientToken?: string;
16+
/**
17+
* @example
18+
* cn-hangzhou
19+
*/
820
dataRegion?: string;
21+
/**
22+
* @example
23+
* 339170706****
24+
*/
925
workspaceId?: string;
1026
static names(): { [key: string]: string } {
1127
return {

dms-enterprise-20181101/src/models/DescribeDifyAttributeResponseBody.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,36 @@ import { DescribeDifyAttributeResponseBodyRoot } from "./DescribeDifyAttributeRe
44

55

66
export class DescribeDifyAttributeResponseBody extends $dara.Model {
7+
/**
8+
* @example
9+
* 200
10+
*/
711
code?: string;
12+
/**
13+
* @example
14+
* UnknownError
15+
*/
816
errorCode?: string;
17+
/**
18+
* @example
19+
* 200
20+
*/
921
httpStatusCode?: number;
22+
/**
23+
* @example
24+
* UnknownError
25+
*/
1026
message?: string;
27+
/**
28+
* @example
29+
* 427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D
30+
*/
1131
requestId?: string;
1232
root?: DescribeDifyAttributeResponseBodyRoot;
33+
/**
34+
* @example
35+
* true
36+
*/
1337
success?: boolean;
1438
static names(): { [key: string]: string } {
1539
return {

dms-enterprise-20181101/src/models/DescribeDifyAttributeResponseBodyRoot.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,50 @@ import * as $dara from '@darabonba/typescript';
33

44

55
export class DescribeDifyAttributeResponseBodyRoot extends $dara.Model {
6+
/**
7+
* @example
8+
* 92748163-af62-4ca4-ad85-1****
9+
*/
610
appUuid?: string;
11+
/**
12+
* @example
13+
* 1
14+
*/
715
replicas?: string;
16+
/**
17+
* @example
18+
* 4CU
19+
*/
820
resourceQuota?: string;
21+
/**
22+
* @example
23+
* sg-bp1ik7t5d5f24b****
24+
*/
925
securityGroupId?: string;
26+
/**
27+
* @example
28+
* DEPLOYED
29+
*/
1030
status?: string;
31+
/**
32+
* @example
33+
* vsw-bp1tzpv5jfsuoqy****
34+
*/
1135
vSwitchId?: string;
36+
/**
37+
* @example
38+
* vpc-bp1n16nsg8z1kn6****
39+
*/
1240
vpcId?: string;
41+
/**
42+
* @example
43+
* 339170706****
44+
*/
1345
workspaceId?: string;
46+
/**
47+
* @example
48+
* cn-hangzhou-j
49+
*/
1450
zoneId?: string;
1551
static names(): { [key: string]: string } {
1652
return {
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
4+
5+
export class EditMetaKnowledgeAssetRequest extends $dara.Model {
6+
/**
7+
* @remarks
8+
* This parameter is required.
9+
*/
10+
assetDescription?: string;
11+
columnName?: string;
12+
/**
13+
* @remarks
14+
* This parameter is required.
15+
*/
16+
dbId?: number;
17+
/**
18+
* @remarks
19+
* This parameter is required.
20+
*/
21+
tableName?: string;
22+
tableSchemaName?: string;
23+
static names(): { [key: string]: string } {
24+
return {
25+
assetDescription: 'AssetDescription',
26+
columnName: 'ColumnName',
27+
dbId: 'DbId',
28+
tableName: 'TableName',
29+
tableSchemaName: 'TableSchemaName',
30+
};
31+
}
32+
33+
static types(): { [key: string]: any } {
34+
return {
35+
assetDescription: 'string',
36+
columnName: 'string',
37+
dbId: 'number',
38+
tableName: 'string',
39+
tableSchemaName: 'string',
40+
};
41+
}
42+
43+
validate() {
44+
super.validate();
45+
}
46+
47+
constructor(map?: { [key: string]: any }) {
48+
super(map);
49+
}
50+
}
51+

0 commit comments

Comments
 (0)