@alicloud/adb20211201 5.2.0 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/client.d.ts +19 -4
  2. package/dist/client.js +55 -4
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DescribeDbresourceGroupRequest.d.ts +1 -1
  5. package/dist/models/DescribeDbresourceGroupResponseBody.d.ts +17 -15
  6. package/dist/models/DescribeDbresourceGroupResponseBody.js.map +1 -1
  7. package/dist/models/GetKnowledgeRecallRequest.d.ts +19 -3
  8. package/dist/models/GetKnowledgeRecallRequest.js +4 -0
  9. package/dist/models/GetKnowledgeRecallRequest.js.map +1 -1
  10. package/dist/models/GetKnowledgeRecallResponseBody.d.ts +1 -1
  11. package/dist/models/ModifyMaterializedViewRecommendRequest.d.ts +5 -5
  12. package/dist/models/RemoveKnowledgeUploadUserRequest.d.ts +43 -0
  13. package/dist/models/RemoveKnowledgeUploadUserRequest.js +62 -0
  14. package/dist/models/RemoveKnowledgeUploadUserRequest.js.map +1 -0
  15. package/dist/models/RemoveKnowledgeUploadUserResponse.d.ts +19 -0
  16. package/dist/models/RemoveKnowledgeUploadUserResponse.js +69 -0
  17. package/dist/models/RemoveKnowledgeUploadUserResponse.js.map +1 -0
  18. package/dist/models/RemoveKnowledgeUploadUserResponseBody.d.ts +72 -0
  19. package/dist/models/RemoveKnowledgeUploadUserResponseBody.js +88 -0
  20. package/dist/models/RemoveKnowledgeUploadUserResponseBody.js.map +1 -0
  21. package/dist/models/model.d.ts +4 -0
  22. package/dist/models/model.js +26 -18
  23. package/dist/models/model.js.map +1 -1
  24. package/package.json +1 -1
  25. package/src/client.ts +62 -4
  26. package/src/models/DescribeDbresourceGroupRequest.ts +1 -1
  27. package/src/models/DescribeDbresourceGroupResponseBody.ts +17 -15
  28. package/src/models/GetKnowledgeRecallRequest.ts +23 -3
  29. package/src/models/GetKnowledgeRecallResponseBody.ts +1 -1
  30. package/src/models/ModifyMaterializedViewRecommendRequest.ts +5 -5
  31. package/src/models/RemoveKnowledgeUploadUserRequest.ts +60 -0
  32. package/src/models/RemoveKnowledgeUploadUserResponse.ts +40 -0
  33. package/src/models/RemoveKnowledgeUploadUserResponseBody.ts +106 -0
  34. package/src/models/model.ts +4 -0
@@ -13,7 +13,7 @@ export class DescribeDBResourceGroupResponseBodyGroupsInfoAtmConfig extends $dar
13
13
  authNodeNum?: string;
14
14
  /**
15
15
  * @remarks
16
- * The authentication node specifications.
16
+ * The node specifications of authentication nodes.
17
17
  *
18
18
  * @example
19
19
  * 8ACU
@@ -29,7 +29,7 @@ export class DescribeDBResourceGroupResponseBodyGroupsInfoAtmConfig extends $dar
29
29
  insertNodeNum?: string;
30
30
  /**
31
31
  * @remarks
32
- * The write node specifications.
32
+ * The node specifications of write nodes.
33
33
  *
34
34
  * @example
35
35
  * 8ACU
@@ -53,7 +53,7 @@ export class DescribeDBResourceGroupResponseBodyGroupsInfoAtmConfig extends $dar
53
53
  selectNodeNum?: string;
54
54
  /**
55
55
  * @remarks
56
- * The query node specifications.
56
+ * The node specifications of query nodes.
57
57
  *
58
58
  * @example
59
59
  * 8ACU
@@ -85,7 +85,7 @@ export class DescribeDBResourceGroupResponseBodyGroupsInfoAtmConfig extends $dar
85
85
  storageNodeNum?: string;
86
86
  /**
87
87
  * @remarks
88
- * The storage node specifications.
88
+ * The node specifications of storage nodes.
89
89
  *
90
90
  * @example
91
91
  * 8ACU
@@ -135,7 +135,7 @@ export class DescribeDBResourceGroupResponseBodyGroupsInfoAtmConfig extends $dar
135
135
  export class DescribeDBResourceGroupResponseBodyGroupsInfoGpuElasticPlanRules extends $dara.Model {
136
136
  /**
137
137
  * @remarks
138
- * The end time in Cron expression format. The interval must be at least 1 hour.
138
+ * The end time in cron expression format. The interval must be at least 1 hour.
139
139
  *
140
140
  * @example
141
141
  * 0 0 3 * * ?
@@ -143,7 +143,7 @@ export class DescribeDBResourceGroupResponseBodyGroupsInfoGpuElasticPlanRules ex
143
143
  endCronExpression?: string;
144
144
  /**
145
145
  * @remarks
146
- * The start time in Cron expression format. The interval must be at least 1 hour.
146
+ * The start time in cron expression format. The interval must be at least 1 hour.
147
147
  *
148
148
  * @example
149
149
  * 0 0 2 * * ?
@@ -369,7 +369,7 @@ export class DescribeDBResourceGroupResponseBodyGroupsInfoRayConfigWorkerGroups
369
369
  allocateUnit?: string;
370
370
  /**
371
371
  * @remarks
372
- * The Ray worker group name.
372
+ * The name of the Ray worker group.
373
373
  *
374
374
  * @example
375
375
  * g01
@@ -461,9 +461,9 @@ export class DescribeDBResourceGroupResponseBodyGroupsInfoRayConfig extends $dar
461
461
  * @remarks
462
462
  * The Ray cluster type. Valid values:
463
463
  *
464
- * - BASIC: basic type, non-high-availability
464
+ * - BASIC: basic type, non-high-availability.
465
465
  *
466
- * - HIGH_AVAILABILITY: high-availability type
466
+ * - HIGH_AVAILABILITY: high-availability type.
467
467
  *
468
468
  * @example
469
469
  * BASIC
@@ -719,7 +719,7 @@ export class DescribeDBResourceGroupResponseBodyGroupsInfo extends $dara.Model {
719
719
  elasticMinComputeResource?: string;
720
720
  /**
721
721
  * @remarks
722
- * Indicates whether the spot instance feature is enabled for the resource group. When the spot instance feature is enabled, the unit price of resources is reduced, but instances may be released. Valid values:
722
+ * Indicates whether the spot instance feature is enabled for the resource group. After the spot instance feature is enabled, the unit price of resources is reduced, but the resources may be released. Valid values:
723
723
  * - **True**: The spot instance feature is enabled.
724
724
  * - **False**: The spot instance feature is disabled.
725
725
  *
@@ -760,7 +760,7 @@ export class DescribeDBResourceGroupResponseBodyGroupsInfo extends $dara.Model {
760
760
  * The resource group type. Valid values:
761
761
  * - **Interactive**
762
762
  * - **Job**
763
- * > For more information about resource groups in Data Lakehouse Edition, see [Resource group introduction (Data Lakehouse Edition)](https://help.aliyun.com/document_detail/428610.html).
763
+ * > For more information about resource groups of the Data Lakehouse Edition, see [Resource group introduction (Data Lakehouse Edition)](https://help.aliyun.com/document_detail/428610.html).
764
764
  *
765
765
  * @example
766
766
  * Job
@@ -873,12 +873,14 @@ export class DescribeDBResourceGroupResponseBodyGroupsInfo extends $dara.Model {
873
873
  /**
874
874
  * @remarks
875
875
  * The resource group status. Valid values:
876
- * - **creating**: being created
877
- * - **ok**: created
878
- * - **pendingdelete**: pending deletion
876
+ * - **Pending**: being created.
877
+ * - **Running**: running.
878
+ * - **Scaling**: being scaled.
879
+ * - **Deleting**: being deleted.
880
+ * - **Deleted**: deleted.
879
881
  *
880
882
  * @example
881
- * ok
883
+ * Running
882
884
  */
883
885
  status?: string;
884
886
  /**
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class GetKnowledgeRecallRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The ID of the AnalyticDB for MySQL cluster.
8
+ * The ID of the ADB MySQL cluster.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
@@ -13,6 +13,14 @@ export class GetKnowledgeRecallRequest extends $dara.Model {
13
13
  * am-bp19aaaaaa****
14
14
  */
15
15
  DBClusterId?: string;
16
+ /**
17
+ * @remarks
18
+ * The file path prefix. Only files that match the specified path prefix are recalled.
19
+ *
20
+ * @example
21
+ * oss://bucketName/path/prefix/
22
+ */
23
+ path?: string;
16
24
  /**
17
25
  * @remarks
18
26
  * The question for knowledge base recall.
@@ -25,7 +33,15 @@ export class GetKnowledgeRecallRequest extends $dara.Model {
25
33
  question?: string;
26
34
  /**
27
35
  * @remarks
28
- * The top K number of related files to recall.
36
+ * The list of tags in JSON format.
37
+ *
38
+ * @example
39
+ * { "tag_key1": ["tag_key1_value1", "tag_key1_value2"], "tag_key2": ["tag_key2_value"] }
40
+ */
41
+ tags?: string;
42
+ /**
43
+ * @remarks
44
+ * The top K associated files to recall.
29
45
  *
30
46
  * @example
31
47
  * 5
@@ -33,7 +49,7 @@ export class GetKnowledgeRecallRequest extends $dara.Model {
33
49
  topk?: number;
34
50
  /**
35
51
  * @remarks
36
- * The username. Only files that this user has permission to access are recalled.
52
+ * The username. Only files that the specified user has permission to access are recalled.
37
53
  *
38
54
  * @example
39
55
  * user_name1
@@ -42,7 +58,9 @@ export class GetKnowledgeRecallRequest extends $dara.Model {
42
58
  static names(): { [key: string]: string } {
43
59
  return {
44
60
  DBClusterId: 'DBClusterId',
61
+ path: 'Path',
45
62
  question: 'Question',
63
+ tags: 'Tags',
46
64
  topk: 'Topk',
47
65
  user: 'User',
48
66
  };
@@ -51,7 +69,9 @@ export class GetKnowledgeRecallRequest extends $dara.Model {
51
69
  static types(): { [key: string]: any } {
52
70
  return {
53
71
  DBClusterId: 'string',
72
+ path: 'string',
54
73
  question: 'string',
74
+ tags: 'string',
55
75
  topk: 'number',
56
76
  user: 'string',
57
77
  };
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class GetKnowledgeRecallResponseBodyData extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The total number of records.
8
+ * The total number of entries.
9
9
  *
10
10
  * @example
11
11
  * 5
@@ -23,7 +23,7 @@ export class ModifyMaterializedViewRecommendRequest extends $dara.Model {
23
23
  description?: string;
24
24
  /**
25
25
  * @remarks
26
- * The minimum number of slow queries matched by a pattern.
26
+ * The minimum number of slow queries that a pattern must match.
27
27
  *
28
28
  * @example
29
29
  * 3
@@ -51,7 +51,7 @@ export class ModifyMaterializedViewRecommendRequest extends $dara.Model {
51
51
  resourceOwnerId?: number;
52
52
  /**
53
53
  * @remarks
54
- * The scan time range, in days. Default value: 3.
54
+ * The time range to scan, in days. Default value: 3.
55
55
  *
56
56
  * @example
57
57
  * 3
@@ -77,8 +77,8 @@ export class ModifyMaterializedViewRecommendRequest extends $dara.Model {
77
77
  /**
78
78
  * @remarks
79
79
  * The recommendation policy. Valid values:
80
- * - daliy: scheduled on a daily basis.
81
- * - weekly: scheduled on a weekly basis.
80
+ * - daily: schedules the task on a daily basis.
81
+ * - weekly: schedules the task on a weekly basis.
82
82
  *
83
83
  * @example
84
84
  * weekly
@@ -94,7 +94,7 @@ export class ModifyMaterializedViewRecommendRequest extends $dara.Model {
94
94
  slowQueryThreshold?: number;
95
95
  /**
96
96
  * @remarks
97
- * The execution time of the task in the format HH:MM:SS.
97
+ * The execution time of the task in HH:MM:SS format.
98
98
  *
99
99
  * @example
100
100
  * 10:00:00
@@ -0,0 +1,60 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class RemoveKnowledgeUploadUserRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ID of the ADB instance.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * am-bp19aaaaaa****
14
+ */
15
+ DBClusterId?: string;
16
+ /**
17
+ * @remarks
18
+ * The location of the knowledge base document.
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * oss://bucket/doc.pdf
24
+ */
25
+ fileLocation?: string;
26
+ /**
27
+ * @remarks
28
+ * The JSON string of the array of authorized users to delete.
29
+ *
30
+ * This parameter is required.
31
+ *
32
+ * @example
33
+ * ["alice","bob"]
34
+ */
35
+ users?: string;
36
+ static names(): { [key: string]: string } {
37
+ return {
38
+ DBClusterId: 'DBClusterId',
39
+ fileLocation: 'FileLocation',
40
+ users: 'Users',
41
+ };
42
+ }
43
+
44
+ static types(): { [key: string]: any } {
45
+ return {
46
+ DBClusterId: 'string',
47
+ fileLocation: 'string',
48
+ users: 'string',
49
+ };
50
+ }
51
+
52
+ validate() {
53
+ super.validate();
54
+ }
55
+
56
+ constructor(map?: { [key: string]: any }) {
57
+ super(map);
58
+ }
59
+ }
60
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { RemoveKnowledgeUploadUserResponseBody } from "./RemoveKnowledgeUploadUserResponseBody";
4
+
5
+
6
+ export class RemoveKnowledgeUploadUserResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: RemoveKnowledgeUploadUserResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: RemoveKnowledgeUploadUserResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,106 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class RemoveKnowledgeUploadUserResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The location of the knowledge base file.
9
+ *
10
+ * @example
11
+ * oss://bucketName/path/to/file.pdf
12
+ */
13
+ fileLocation?: string;
14
+ /**
15
+ * @remarks
16
+ * The prompt message.
17
+ *
18
+ * @example
19
+ * Successful
20
+ */
21
+ message?: string;
22
+ /**
23
+ * @remarks
24
+ * The number of users that were successfully deleted.
25
+ *
26
+ * @example
27
+ * 1
28
+ */
29
+ removed?: number;
30
+ /**
31
+ * @remarks
32
+ * Indicates whether the request was successful. Valid values:
33
+ * - **true**: The request was successful.
34
+ * - **false**: The request failed.
35
+ *
36
+ * @example
37
+ * true
38
+ */
39
+ success?: boolean;
40
+ static names(): { [key: string]: string } {
41
+ return {
42
+ fileLocation: 'FileLocation',
43
+ message: 'Message',
44
+ removed: 'Removed',
45
+ success: 'Success',
46
+ };
47
+ }
48
+
49
+ static types(): { [key: string]: any } {
50
+ return {
51
+ fileLocation: 'string',
52
+ message: 'string',
53
+ removed: 'number',
54
+ success: 'boolean',
55
+ };
56
+ }
57
+
58
+ validate() {
59
+ super.validate();
60
+ }
61
+
62
+ constructor(map?: { [key: string]: any }) {
63
+ super(map);
64
+ }
65
+ }
66
+
67
+ export class RemoveKnowledgeUploadUserResponseBody extends $dara.Model {
68
+ /**
69
+ * @remarks
70
+ * The returned data.
71
+ */
72
+ data?: RemoveKnowledgeUploadUserResponseBodyData;
73
+ /**
74
+ * @remarks
75
+ * Id of the request
76
+ *
77
+ * @example
78
+ * 1AD222E9-E606-4A42-BF6D-8A4442913CEF
79
+ */
80
+ requestId?: string;
81
+ static names(): { [key: string]: string } {
82
+ return {
83
+ data: 'Data',
84
+ requestId: 'RequestId',
85
+ };
86
+ }
87
+
88
+ static types(): { [key: string]: any } {
89
+ return {
90
+ data: RemoveKnowledgeUploadUserResponseBodyData,
91
+ requestId: 'string',
92
+ };
93
+ }
94
+
95
+ validate() {
96
+ if(this.data && typeof (this.data as any).validate === 'function') {
97
+ (this.data as any).validate();
98
+ }
99
+ super.validate();
100
+ }
101
+
102
+ constructor(map?: { [key: string]: any }) {
103
+ super(map);
104
+ }
105
+ }
106
+
@@ -288,6 +288,7 @@ export { PreloadSparkAppMetricsResponseBodyData } from './PreloadSparkAppMetrics
288
288
  export { QueryFormationInstsByTaskIDResponseBodyData } from './QueryFormationInstsByTaskIdresponseBody';
289
289
  export { QueryFormationTasksByTypeResponseBodyData } from './QueryFormationTasksByTypeResponseBody';
290
290
  export { RemoveKnowledgeTagsResponseBodyData } from './RemoveKnowledgeTagsResponseBody';
291
+ export { RemoveKnowledgeUploadUserResponseBodyData } from './RemoveKnowledgeUploadUserResponseBody';
291
292
  export { SetSparkAppLogRootPathResponseBodyData } from './SetSparkAppLogRootPathResponseBody';
292
293
  export { StartSparkReplSessionResponseBodyData } from './StartSparkReplSessionResponseBody';
293
294
  export { StartSparkSQLEngineResponseBodyData } from './StartSparkSqlengineResponseBody';
@@ -1066,6 +1067,9 @@ export { ReleaseClusterPublicConnectionResponse } from './ReleaseClusterPublicCo
1066
1067
  export { RemoveKnowledgeTagsRequest } from './RemoveKnowledgeTagsRequest';
1067
1068
  export { RemoveKnowledgeTagsResponseBody } from './RemoveKnowledgeTagsResponseBody';
1068
1069
  export { RemoveKnowledgeTagsResponse } from './RemoveKnowledgeTagsResponse';
1070
+ export { RemoveKnowledgeUploadUserRequest } from './RemoveKnowledgeUploadUserRequest';
1071
+ export { RemoveKnowledgeUploadUserResponseBody } from './RemoveKnowledgeUploadUserResponseBody';
1072
+ export { RemoveKnowledgeUploadUserResponse } from './RemoveKnowledgeUploadUserResponse';
1069
1073
  export { RenameSemanticViewRequest } from './RenameSemanticViewRequest';
1070
1074
  export { RenameSemanticViewResponseBody } from './RenameSemanticViewResponseBody';
1071
1075
  export { RenameSemanticViewResponse } from './RenameSemanticViewResponse';