@alicloud/adb20211201 5.1.4 → 5.2.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 (87) hide show
  1. package/dist/client.d.ts +98 -8
  2. package/dist/client.js +269 -8
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddKnowledgeTagsRequest.d.ts +41 -0
  5. package/dist/models/AddKnowledgeTagsRequest.js +62 -0
  6. package/dist/models/AddKnowledgeTagsRequest.js.map +1 -0
  7. package/dist/models/AddKnowledgeTagsResponse.d.ts +19 -0
  8. package/dist/models/AddKnowledgeTagsResponse.js +69 -0
  9. package/dist/models/AddKnowledgeTagsResponse.js.map +1 -0
  10. package/dist/models/AddKnowledgeTagsResponseBody.d.ts +121 -0
  11. package/dist/models/AddKnowledgeTagsResponseBody.js +118 -0
  12. package/dist/models/AddKnowledgeTagsResponseBody.js.map +1 -0
  13. package/dist/models/AddKnowledgeUploadUserRequest.d.ts +43 -0
  14. package/dist/models/AddKnowledgeUploadUserRequest.js +62 -0
  15. package/dist/models/AddKnowledgeUploadUserRequest.js.map +1 -0
  16. package/dist/models/AddKnowledgeUploadUserResponse.d.ts +19 -0
  17. package/dist/models/AddKnowledgeUploadUserResponse.js +69 -0
  18. package/dist/models/AddKnowledgeUploadUserResponse.js.map +1 -0
  19. package/dist/models/AddKnowledgeUploadUserResponseBody.d.ts +106 -0
  20. package/dist/models/AddKnowledgeUploadUserResponseBody.js +114 -0
  21. package/dist/models/AddKnowledgeUploadUserResponseBody.js.map +1 -0
  22. package/dist/models/DeleteKnowledgeFileRequest.d.ts +33 -0
  23. package/dist/models/DeleteKnowledgeFileRequest.js +60 -0
  24. package/dist/models/DeleteKnowledgeFileRequest.js.map +1 -0
  25. package/dist/models/DeleteKnowledgeFileResponse.d.ts +19 -0
  26. package/dist/models/DeleteKnowledgeFileResponse.js +69 -0
  27. package/dist/models/DeleteKnowledgeFileResponse.js.map +1 -0
  28. package/dist/models/DeleteKnowledgeFileResponseBody.d.ts +65 -0
  29. package/dist/models/DeleteKnowledgeFileResponseBody.js +86 -0
  30. package/dist/models/DeleteKnowledgeFileResponseBody.js.map +1 -0
  31. package/dist/models/ListKnowledgeTagsRequest.d.ts +33 -0
  32. package/dist/models/ListKnowledgeTagsRequest.js +60 -0
  33. package/dist/models/ListKnowledgeTagsRequest.js.map +1 -0
  34. package/dist/models/ListKnowledgeTagsResponse.d.ts +19 -0
  35. package/dist/models/ListKnowledgeTagsResponse.js +69 -0
  36. package/dist/models/ListKnowledgeTagsResponse.js.map +1 -0
  37. package/dist/models/ListKnowledgeTagsResponseBody.d.ts +98 -0
  38. package/dist/models/ListKnowledgeTagsResponseBody.js +112 -0
  39. package/dist/models/ListKnowledgeTagsResponseBody.js.map +1 -0
  40. package/dist/models/ListKnowledgeUploadUserRequest.d.ts +33 -0
  41. package/dist/models/ListKnowledgeUploadUserRequest.js +60 -0
  42. package/dist/models/ListKnowledgeUploadUserRequest.js.map +1 -0
  43. package/dist/models/ListKnowledgeUploadUserResponse.d.ts +19 -0
  44. package/dist/models/ListKnowledgeUploadUserResponse.js +69 -0
  45. package/dist/models/ListKnowledgeUploadUserResponse.js.map +1 -0
  46. package/dist/models/ListKnowledgeUploadUserResponseBody.d.ts +70 -0
  47. package/dist/models/ListKnowledgeUploadUserResponseBody.js +91 -0
  48. package/dist/models/ListKnowledgeUploadUserResponseBody.js.map +1 -0
  49. package/dist/models/ModifyAccountDescriptionRequest.d.ts +10 -11
  50. package/dist/models/ModifyAccountDescriptionRequest.js.map +1 -1
  51. package/dist/models/RemoveKnowledgeTagsRequest.d.ts +41 -0
  52. package/dist/models/RemoveKnowledgeTagsRequest.js +62 -0
  53. package/dist/models/RemoveKnowledgeTagsRequest.js.map +1 -0
  54. package/dist/models/RemoveKnowledgeTagsResponse.d.ts +19 -0
  55. package/dist/models/RemoveKnowledgeTagsResponse.js +69 -0
  56. package/dist/models/RemoveKnowledgeTagsResponse.js.map +1 -0
  57. package/dist/models/RemoveKnowledgeTagsResponseBody.d.ts +73 -0
  58. package/dist/models/RemoveKnowledgeTagsResponseBody.js +88 -0
  59. package/dist/models/RemoveKnowledgeTagsResponseBody.js.map +1 -0
  60. package/dist/models/ResetAccountPasswordRequest.d.ts +13 -15
  61. package/dist/models/ResetAccountPasswordRequest.js.map +1 -1
  62. package/dist/models/model.d.ts +27 -0
  63. package/dist/models/model.js +77 -23
  64. package/dist/models/model.js.map +1 -1
  65. package/package.json +1 -1
  66. package/src/client.ts +296 -8
  67. package/src/models/AddKnowledgeTagsRequest.ts +58 -0
  68. package/src/models/AddKnowledgeTagsResponse.ts +40 -0
  69. package/src/models/AddKnowledgeTagsResponseBody.ts +176 -0
  70. package/src/models/AddKnowledgeUploadUserRequest.ts +60 -0
  71. package/src/models/AddKnowledgeUploadUserResponse.ts +40 -0
  72. package/src/models/AddKnowledgeUploadUserResponseBody.ts +157 -0
  73. package/src/models/DeleteKnowledgeFileRequest.ts +48 -0
  74. package/src/models/DeleteKnowledgeFileResponse.ts +40 -0
  75. package/src/models/DeleteKnowledgeFileResponseBody.ts +97 -0
  76. package/src/models/ListKnowledgeTagsRequest.ts +48 -0
  77. package/src/models/ListKnowledgeTagsResponse.ts +40 -0
  78. package/src/models/ListKnowledgeTagsResponseBody.ts +147 -0
  79. package/src/models/ListKnowledgeUploadUserRequest.ts +48 -0
  80. package/src/models/ListKnowledgeUploadUserResponse.ts +40 -0
  81. package/src/models/ListKnowledgeUploadUserResponseBody.ts +107 -0
  82. package/src/models/ModifyAccountDescriptionRequest.ts +10 -11
  83. package/src/models/RemoveKnowledgeTagsRequest.ts +58 -0
  84. package/src/models/RemoveKnowledgeTagsResponse.ts +40 -0
  85. package/src/models/RemoveKnowledgeTagsResponseBody.ts +107 -0
  86. package/src/models/ResetAccountPasswordRequest.ts +13 -15
  87. package/src/models/model.ts +27 -0
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { AddKnowledgeTagsResponseBody } from "./AddKnowledgeTagsResponseBody";
4
+
5
+
6
+ export class AddKnowledgeTagsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: AddKnowledgeTagsResponseBody;
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: AddKnowledgeTagsResponseBody,
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,176 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class AddKnowledgeTagsResponseBodyDataSkipped extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The reason why the tag was skipped.
9
+ *
10
+ * @example
11
+ * conflict
12
+ */
13
+ reason?: string;
14
+ /**
15
+ * @remarks
16
+ * The key of the tag.
17
+ *
18
+ * @example
19
+ * skipKey
20
+ */
21
+ tagKey?: string;
22
+ /**
23
+ * @remarks
24
+ * The value of the tag.
25
+ *
26
+ * @example
27
+ * skipValue
28
+ */
29
+ tagValue?: string;
30
+ static names(): { [key: string]: string } {
31
+ return {
32
+ reason: 'Reason',
33
+ tagKey: 'TagKey',
34
+ tagValue: 'TagValue',
35
+ };
36
+ }
37
+
38
+ static types(): { [key: string]: any } {
39
+ return {
40
+ reason: 'string',
41
+ tagKey: 'string',
42
+ tagValue: 'string',
43
+ };
44
+ }
45
+
46
+ validate() {
47
+ super.validate();
48
+ }
49
+
50
+ constructor(map?: { [key: string]: any }) {
51
+ super(map);
52
+ }
53
+ }
54
+
55
+ export class AddKnowledgeTagsResponseBodyData extends $dara.Model {
56
+ /**
57
+ * @remarks
58
+ * The location of the knowledge base file.
59
+ *
60
+ * @example
61
+ * oss://bucketName/path/to/file.pdf
62
+ */
63
+ fileLocation?: string;
64
+ /**
65
+ * @remarks
66
+ * The message.
67
+ *
68
+ * @example
69
+ * 1 tag skipped
70
+ */
71
+ message?: string;
72
+ /**
73
+ * @remarks
74
+ * The number of tags that were successfully updated.
75
+ *
76
+ * @example
77
+ * 1
78
+ */
79
+ replaced?: number;
80
+ /**
81
+ * @remarks
82
+ * The list of skipped tags.
83
+ */
84
+ skipped?: AddKnowledgeTagsResponseBodyDataSkipped[];
85
+ /**
86
+ * @remarks
87
+ * Indicates whether the request was successful. Valid values:
88
+ * - **true**: The request was successful.
89
+ * - **false**: The request failed.
90
+ *
91
+ * @example
92
+ * true
93
+ */
94
+ success?: boolean;
95
+ /**
96
+ * @remarks
97
+ * The number of tags that were successfully added.
98
+ *
99
+ * @example
100
+ * 2
101
+ */
102
+ written?: number;
103
+ static names(): { [key: string]: string } {
104
+ return {
105
+ fileLocation: 'FileLocation',
106
+ message: 'Message',
107
+ replaced: 'Replaced',
108
+ skipped: 'Skipped',
109
+ success: 'Success',
110
+ written: 'Written',
111
+ };
112
+ }
113
+
114
+ static types(): { [key: string]: any } {
115
+ return {
116
+ fileLocation: 'string',
117
+ message: 'string',
118
+ replaced: 'number',
119
+ skipped: { 'type': 'array', 'itemType': AddKnowledgeTagsResponseBodyDataSkipped },
120
+ success: 'boolean',
121
+ written: 'number',
122
+ };
123
+ }
124
+
125
+ validate() {
126
+ if(Array.isArray(this.skipped)) {
127
+ $dara.Model.validateArray(this.skipped);
128
+ }
129
+ super.validate();
130
+ }
131
+
132
+ constructor(map?: { [key: string]: any }) {
133
+ super(map);
134
+ }
135
+ }
136
+
137
+ export class AddKnowledgeTagsResponseBody extends $dara.Model {
138
+ /**
139
+ * @remarks
140
+ * The returned data.
141
+ */
142
+ data?: AddKnowledgeTagsResponseBodyData;
143
+ /**
144
+ * @remarks
145
+ * Id of the request
146
+ *
147
+ * @example
148
+ * 1AD222E9-E606-4A42-BF6D-8A4442913CEF
149
+ */
150
+ requestId?: string;
151
+ static names(): { [key: string]: string } {
152
+ return {
153
+ data: 'Data',
154
+ requestId: 'RequestId',
155
+ };
156
+ }
157
+
158
+ static types(): { [key: string]: any } {
159
+ return {
160
+ data: AddKnowledgeTagsResponseBodyData,
161
+ requestId: 'string',
162
+ };
163
+ }
164
+
165
+ validate() {
166
+ if(this.data && typeof (this.data as any).validate === 'function') {
167
+ (this.data as any).validate();
168
+ }
169
+ super.validate();
170
+ }
171
+
172
+ constructor(map?: { [key: string]: any }) {
173
+ super(map);
174
+ }
175
+ }
176
+
@@ -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 AddKnowledgeUploadUserRequest 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://bucketName/path/to/file.pdf
24
+ */
25
+ fileLocation?: string;
26
+ /**
27
+ * @remarks
28
+ * The JSON string of the authorized user array.
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 { AddKnowledgeUploadUserResponseBody } from "./AddKnowledgeUploadUserResponseBody";
4
+
5
+
6
+ export class AddKnowledgeUploadUserResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: AddKnowledgeUploadUserResponseBody;
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: AddKnowledgeUploadUserResponseBody,
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,157 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class AddKnowledgeUploadUserResponseBodyDataSkipped extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The reason why the user was skipped.
9
+ *
10
+ * @example
11
+ * conflicts error
12
+ */
13
+ reason?: string;
14
+ /**
15
+ * @remarks
16
+ * The username of the authorized user.
17
+ *
18
+ * @example
19
+ * test_user
20
+ */
21
+ user?: string;
22
+ static names(): { [key: string]: string } {
23
+ return {
24
+ reason: 'Reason',
25
+ user: 'User',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ reason: 'string',
32
+ user: 'string',
33
+ };
34
+ }
35
+
36
+ validate() {
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
45
+ export class AddKnowledgeUploadUserResponseBodyData extends $dara.Model {
46
+ /**
47
+ * @remarks
48
+ * The location of the knowledge base file.
49
+ *
50
+ * @example
51
+ * oss://bucketName/path/to/file.pfg
52
+ */
53
+ fileLocation?: string;
54
+ /**
55
+ * @remarks
56
+ * The prompt message.
57
+ *
58
+ * @example
59
+ * Successful
60
+ */
61
+ message?: string;
62
+ /**
63
+ * @remarks
64
+ * The list of skipped users.
65
+ */
66
+ skipped?: AddKnowledgeUploadUserResponseBodyDataSkipped[];
67
+ /**
68
+ * @remarks
69
+ * Indicates whether the request was successful. Valid values:
70
+ *
71
+ * - **true**: The request was successful.
72
+ * - **false**: The request failed.
73
+ *
74
+ * @example
75
+ * true
76
+ */
77
+ success?: boolean;
78
+ /**
79
+ * @remarks
80
+ * The number of users that were successfully added.
81
+ *
82
+ * @example
83
+ * 1
84
+ */
85
+ written?: number;
86
+ static names(): { [key: string]: string } {
87
+ return {
88
+ fileLocation: 'FileLocation',
89
+ message: 'Message',
90
+ skipped: 'Skipped',
91
+ success: 'Success',
92
+ written: 'Written',
93
+ };
94
+ }
95
+
96
+ static types(): { [key: string]: any } {
97
+ return {
98
+ fileLocation: 'string',
99
+ message: 'string',
100
+ skipped: { 'type': 'array', 'itemType': AddKnowledgeUploadUserResponseBodyDataSkipped },
101
+ success: 'boolean',
102
+ written: 'number',
103
+ };
104
+ }
105
+
106
+ validate() {
107
+ if(Array.isArray(this.skipped)) {
108
+ $dara.Model.validateArray(this.skipped);
109
+ }
110
+ super.validate();
111
+ }
112
+
113
+ constructor(map?: { [key: string]: any }) {
114
+ super(map);
115
+ }
116
+ }
117
+
118
+ export class AddKnowledgeUploadUserResponseBody extends $dara.Model {
119
+ /**
120
+ * @remarks
121
+ * The returned data.
122
+ */
123
+ data?: AddKnowledgeUploadUserResponseBodyData;
124
+ /**
125
+ * @remarks
126
+ * Id of the request
127
+ *
128
+ * @example
129
+ * 1AD222E9-E606-4A42-BF6D-8A4442913CEF
130
+ */
131
+ requestId?: string;
132
+ static names(): { [key: string]: string } {
133
+ return {
134
+ data: 'Data',
135
+ requestId: 'RequestId',
136
+ };
137
+ }
138
+
139
+ static types(): { [key: string]: any } {
140
+ return {
141
+ data: AddKnowledgeUploadUserResponseBodyData,
142
+ requestId: 'string',
143
+ };
144
+ }
145
+
146
+ validate() {
147
+ if(this.data && typeof (this.data as any).validate === 'function') {
148
+ (this.data as any).validate();
149
+ }
150
+ super.validate();
151
+ }
152
+
153
+ constructor(map?: { [key: string]: any }) {
154
+ super(map);
155
+ }
156
+ }
157
+
@@ -0,0 +1,48 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DeleteKnowledgeFileRequest 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
+ static names(): { [key: string]: string } {
27
+ return {
28
+ DBClusterId: 'DBClusterId',
29
+ fileLocation: 'FileLocation',
30
+ };
31
+ }
32
+
33
+ static types(): { [key: string]: any } {
34
+ return {
35
+ DBClusterId: 'string',
36
+ fileLocation: 'string',
37
+ };
38
+ }
39
+
40
+ validate() {
41
+ super.validate();
42
+ }
43
+
44
+ constructor(map?: { [key: string]: any }) {
45
+ super(map);
46
+ }
47
+ }
48
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DeleteKnowledgeFileResponseBody } from "./DeleteKnowledgeFileResponseBody";
4
+
5
+
6
+ export class DeleteKnowledgeFileResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DeleteKnowledgeFileResponseBody;
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: DeleteKnowledgeFileResponseBody,
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,97 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DeleteKnowledgeFileResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The file location. Currently, only OSS paths are supported.
9
+ *
10
+ * @example
11
+ * oss://bucket/doc.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
+ * Indicates whether the request was successful. Valid values:
25
+ *
26
+ * - **true**: Successful.
27
+ * - **false**: Failed.
28
+ *
29
+ * @example
30
+ * true
31
+ */
32
+ success?: boolean;
33
+ static names(): { [key: string]: string } {
34
+ return {
35
+ fileLocation: 'FileLocation',
36
+ message: 'Message',
37
+ success: 'Success',
38
+ };
39
+ }
40
+
41
+ static types(): { [key: string]: any } {
42
+ return {
43
+ fileLocation: 'string',
44
+ message: 'string',
45
+ success: 'boolean',
46
+ };
47
+ }
48
+
49
+ validate() {
50
+ super.validate();
51
+ }
52
+
53
+ constructor(map?: { [key: string]: any }) {
54
+ super(map);
55
+ }
56
+ }
57
+
58
+ export class DeleteKnowledgeFileResponseBody extends $dara.Model {
59
+ /**
60
+ * @remarks
61
+ * The returned data.
62
+ */
63
+ data?: DeleteKnowledgeFileResponseBodyData;
64
+ /**
65
+ * @remarks
66
+ * Id of the request
67
+ *
68
+ * @example
69
+ * 1AD222E9-E606-4A42-BF6D-8A4442913CEF
70
+ */
71
+ requestId?: string;
72
+ static names(): { [key: string]: string } {
73
+ return {
74
+ data: 'Data',
75
+ requestId: 'RequestId',
76
+ };
77
+ }
78
+
79
+ static types(): { [key: string]: any } {
80
+ return {
81
+ data: DeleteKnowledgeFileResponseBodyData,
82
+ requestId: 'string',
83
+ };
84
+ }
85
+
86
+ validate() {
87
+ if(this.data && typeof (this.data as any).validate === 'function') {
88
+ (this.data as any).validate();
89
+ }
90
+ super.validate();
91
+ }
92
+
93
+ constructor(map?: { [key: string]: any }) {
94
+ super(map);
95
+ }
96
+ }
97
+
@@ -0,0 +1,48 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListKnowledgeTagsRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ID of the AnalyticDB for MySQL 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
+ static names(): { [key: string]: string } {
27
+ return {
28
+ DBClusterId: 'DBClusterId',
29
+ fileLocation: 'FileLocation',
30
+ };
31
+ }
32
+
33
+ static types(): { [key: string]: any } {
34
+ return {
35
+ DBClusterId: 'string',
36
+ fileLocation: 'string',
37
+ };
38
+ }
39
+
40
+ validate() {
41
+ super.validate();
42
+ }
43
+
44
+ constructor(map?: { [key: string]: any }) {
45
+ super(map);
46
+ }
47
+ }
48
+