@alicloud/polardb20170801 8.3.2 → 8.4.1

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 (67) hide show
  1. package/dist/client.d.ts +49 -4
  2. package/dist/client.js +166 -4
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AnswerKnowledgeBaseRequest.d.ts +5 -5
  5. package/dist/models/CreateKbsyncLinkRequest.d.ts +12 -4
  6. package/dist/models/CreateKbsyncLinkRequest.js +2 -0
  7. package/dist/models/CreateKbsyncLinkRequest.js.map +1 -1
  8. package/dist/models/CreateKbsyncLinkResponseBody.d.ts +2 -2
  9. package/dist/models/DeleteAidbclusterCustomModelRequest.d.ts +43 -0
  10. package/dist/models/DeleteAidbclusterCustomModelRequest.js +62 -0
  11. package/dist/models/DeleteAidbclusterCustomModelRequest.js.map +1 -0
  12. package/dist/models/DeleteAidbclusterCustomModelResponse.d.ts +19 -0
  13. package/dist/models/DeleteAidbclusterCustomModelResponse.js +69 -0
  14. package/dist/models/DeleteAidbclusterCustomModelResponse.js.map +1 -0
  15. package/dist/models/DeleteAidbclusterCustomModelResponseBody.d.ts +45 -0
  16. package/dist/models/DeleteAidbclusterCustomModelResponseBody.js +64 -0
  17. package/dist/models/DeleteAidbclusterCustomModelResponseBody.js.map +1 -0
  18. package/dist/models/DescribeKnowledgeBaseAnswerResponseBody.d.ts +64 -7
  19. package/dist/models/DescribeKnowledgeBaseAnswerResponseBody.js +33 -1
  20. package/dist/models/DescribeKnowledgeBaseAnswerResponseBody.js.map +1 -1
  21. package/dist/models/DescribeKnowledgeBaseFileShardsResponseBody.d.ts +68 -1
  22. package/dist/models/DescribeKnowledgeBaseFileShardsResponseBody.js +43 -1
  23. package/dist/models/DescribeKnowledgeBaseFileShardsResponseBody.js.map +1 -1
  24. package/dist/models/ModifyAidbclusterModelRequest.d.ts +77 -0
  25. package/dist/models/ModifyAidbclusterModelRequest.js +70 -0
  26. package/dist/models/ModifyAidbclusterModelRequest.js.map +1 -0
  27. package/dist/models/ModifyAidbclusterModelResponse.d.ts +19 -0
  28. package/dist/models/ModifyAidbclusterModelResponse.js +69 -0
  29. package/dist/models/ModifyAidbclusterModelResponse.js.map +1 -0
  30. package/dist/models/ModifyAidbclusterModelResponseBody.d.ts +82 -0
  31. package/dist/models/ModifyAidbclusterModelResponseBody.js +77 -0
  32. package/dist/models/ModifyAidbclusterModelResponseBody.js.map +1 -0
  33. package/dist/models/RegisterAidbclusterCustomModelRequest.d.ts +71 -0
  34. package/dist/models/RegisterAidbclusterCustomModelRequest.js +68 -0
  35. package/dist/models/RegisterAidbclusterCustomModelRequest.js.map +1 -0
  36. package/dist/models/RegisterAidbclusterCustomModelResponse.d.ts +19 -0
  37. package/dist/models/RegisterAidbclusterCustomModelResponse.js +69 -0
  38. package/dist/models/RegisterAidbclusterCustomModelResponse.js.map +1 -0
  39. package/dist/models/RegisterAidbclusterCustomModelResponseBody.d.ts +69 -0
  40. package/dist/models/RegisterAidbclusterCustomModelResponseBody.js +70 -0
  41. package/dist/models/RegisterAidbclusterCustomModelResponseBody.js.map +1 -0
  42. package/dist/models/UpdateKbsyncLinkRequest.d.ts +12 -4
  43. package/dist/models/UpdateKbsyncLinkRequest.js +2 -0
  44. package/dist/models/UpdateKbsyncLinkRequest.js.map +1 -1
  45. package/dist/models/UpdateKbsyncLinkResponseBody.d.ts +1 -1
  46. package/dist/models/model.d.ts +11 -0
  47. package/dist/models/model.js +62 -39
  48. package/dist/models/model.js.map +1 -1
  49. package/package.json +1 -1
  50. package/src/client.ts +190 -4
  51. package/src/models/AnswerKnowledgeBaseRequest.ts +5 -5
  52. package/src/models/CreateKbsyncLinkRequest.ts +14 -4
  53. package/src/models/CreateKbsyncLinkResponseBody.ts +2 -2
  54. package/src/models/DeleteAidbclusterCustomModelRequest.ts +60 -0
  55. package/src/models/DeleteAidbclusterCustomModelResponse.ts +40 -0
  56. package/src/models/DeleteAidbclusterCustomModelResponseBody.ts +64 -0
  57. package/src/models/DescribeKnowledgeBaseAnswerResponseBody.ts +87 -7
  58. package/src/models/DescribeKnowledgeBaseFileShardsResponseBody.ts +101 -1
  59. package/src/models/ModifyAidbclusterModelRequest.ts +102 -0
  60. package/src/models/ModifyAidbclusterModelResponse.ts +40 -0
  61. package/src/models/ModifyAidbclusterModelResponseBody.ts +114 -0
  62. package/src/models/RegisterAidbclusterCustomModelRequest.ts +94 -0
  63. package/src/models/RegisterAidbclusterCustomModelResponse.ts +40 -0
  64. package/src/models/RegisterAidbclusterCustomModelResponseBody.ts +94 -0
  65. package/src/models/UpdateKbsyncLinkRequest.ts +14 -4
  66. package/src/models/UpdateKbsyncLinkResponseBody.ts +1 -1
  67. package/src/models/model.ts +11 -0
@@ -33,7 +33,7 @@ export class CreateKBSyncLinkRequest extends $dara.Model {
33
33
  description?: string;
34
34
  /**
35
35
  * @remarks
36
- * The unique identifier of the knowledge base.
36
+ * The unique ID of the knowledge base.
37
37
  *
38
38
  * This parameter is required.
39
39
  *
@@ -53,7 +53,7 @@ export class CreateKBSyncLinkRequest extends $dara.Model {
53
53
  linkName?: string;
54
54
  /**
55
55
  * @remarks
56
- * The DingTalk document MCP Server endpoint.
56
+ * The MCP Server address for DingTalk documents.
57
57
  *
58
58
  * @example
59
59
  * https://mcp-gw.dingtalk.com/server/1a2b3cxxxxxx789?key=d5e6fxxxxxx876
@@ -71,7 +71,7 @@ export class CreateKBSyncLinkRequest extends $dara.Model {
71
71
  regionId?: string;
72
72
  /**
73
73
  * @remarks
74
- * The DingTalk spreadsheet MCP Server endpoint.
74
+ * The MCP Server address for DingTalk sheets.
75
75
  *
76
76
  * @example
77
77
  * https://mcp-gw.dingtalk.com/server/1a2b3cxxxxxx567?key=d5e6fxxxxxx543
@@ -115,7 +115,15 @@ export class CreateKBSyncLinkRequest extends $dara.Model {
115
115
  tenantId?: string;
116
116
  /**
117
117
  * @remarks
118
- * The DingTalk operator user ID.
118
+ * The Lark user access token. This token is used only when the application identity cannot expand group members because the bot is not in the group chat.
119
+ *
120
+ * @example
121
+ * ******
122
+ */
123
+ userAccessToken?: string;
124
+ /**
125
+ * @remarks
126
+ * The DingTalk user ID of the operator.
119
127
  *
120
128
  * @example
121
129
  * 123***56
@@ -135,6 +143,7 @@ export class CreateKBSyncLinkRequest extends $dara.Model {
135
143
  sourceType: 'SourceType',
136
144
  syncIntervalMinutes: 'SyncIntervalMinutes',
137
145
  tenantId: 'TenantId',
146
+ userAccessToken: 'UserAccessToken',
138
147
  userId: 'UserId',
139
148
  };
140
149
  }
@@ -153,6 +162,7 @@ export class CreateKBSyncLinkRequest extends $dara.Model {
153
162
  sourceType: 'string',
154
163
  syncIntervalMinutes: 'number',
155
164
  tenantId: 'string',
165
+ userAccessToken: 'string',
156
166
  userId: 'string',
157
167
  };
158
168
  }
@@ -13,7 +13,7 @@ export class CreateKBSyncLinkResponseBody extends $dara.Model {
13
13
  clientId?: string;
14
14
  /**
15
15
  * @remarks
16
- * The creation time.
16
+ * The time when the synchronization link was created.
17
17
  *
18
18
  * @example
19
19
  * 2026-08-14T05:58:42Z
@@ -39,7 +39,7 @@ export class CreateKBSyncLinkResponseBody extends $dara.Model {
39
39
  imPlatform?: string;
40
40
  /**
41
41
  * @remarks
42
- * The synchronization link ID.
42
+ * The ID of the synchronization link.
43
43
  *
44
44
  * @example
45
45
  * pkbl-xxxxxx
@@ -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 DeleteAIDBClusterCustomModelRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ID of the PolarDB AI 3.0 logical instance.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * pm-2ze4x2mwo81knj08a
14
+ */
15
+ DBClusterId?: string;
16
+ /**
17
+ * @remarks
18
+ * The key of the custom model registration to delete.
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * Qwen3-32B
24
+ */
25
+ modelName?: string;
26
+ /**
27
+ * @remarks
28
+ * The region ID.
29
+ *
30
+ * This parameter is required.
31
+ *
32
+ * @example
33
+ * cn-beijing
34
+ */
35
+ regionId?: string;
36
+ static names(): { [key: string]: string } {
37
+ return {
38
+ DBClusterId: 'DBClusterId',
39
+ modelName: 'ModelName',
40
+ regionId: 'RegionId',
41
+ };
42
+ }
43
+
44
+ static types(): { [key: string]: any } {
45
+ return {
46
+ DBClusterId: 'string',
47
+ modelName: 'string',
48
+ regionId: '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 { DeleteAIDBClusterCustomModelResponseBody } from "./DeleteAidbclusterCustomModelResponseBody";
4
+
5
+
6
+ export class DeleteAIDBClusterCustomModelResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DeleteAIDBClusterCustomModelResponseBody;
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: DeleteAIDBClusterCustomModelResponseBody,
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,64 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DeleteAIDBClusterCustomModelResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Indicates whether the deletion was successful.
9
+ *
10
+ * @example
11
+ * true
12
+ */
13
+ deleted?: boolean;
14
+ /**
15
+ * @remarks
16
+ * The ID of the deleted model registration.
17
+ *
18
+ * @example
19
+ * 123456
20
+ */
21
+ modelId?: number;
22
+ /**
23
+ * @remarks
24
+ * The key of the deleted custom model registration.
25
+ *
26
+ * @example
27
+ * Qwen3-32B
28
+ */
29
+ modelName?: string;
30
+ /**
31
+ * @remarks
32
+ * Id of the request
33
+ *
34
+ * @example
35
+ * 3AA6E0E4-1234-5678-90AB-1234567890AB
36
+ */
37
+ requestId?: string;
38
+ static names(): { [key: string]: string } {
39
+ return {
40
+ deleted: 'Deleted',
41
+ modelId: 'ModelId',
42
+ modelName: 'ModelName',
43
+ requestId: 'RequestId',
44
+ };
45
+ }
46
+
47
+ static types(): { [key: string]: any } {
48
+ return {
49
+ deleted: 'boolean',
50
+ modelId: 'number',
51
+ modelName: 'string',
52
+ requestId: 'string',
53
+ };
54
+ }
55
+
56
+ validate() {
57
+ super.validate();
58
+ }
59
+
60
+ constructor(map?: { [key: string]: any }) {
61
+ super(map);
62
+ }
63
+ }
64
+
@@ -2,6 +2,76 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class DescribeKnowledgeBaseAnswerResponseBodySourcesImageResources extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The index of the source document to which the image belongs, starting from 0.
9
+ *
10
+ * @example
11
+ * 0
12
+ */
13
+ documentIndex?: number;
14
+ /**
15
+ * @remarks
16
+ * The unique ID of the image resource.
17
+ *
18
+ * @example
19
+ * document-0/pictures/1
20
+ */
21
+ id?: string;
22
+ /**
23
+ * @remarks
24
+ * The element reference of the image in the Docling source document structure.
25
+ *
26
+ * @example
27
+ * #/pictures/1
28
+ */
29
+ itemRef?: string;
30
+ /**
31
+ * @remarks
32
+ * The media type of the image resource.
33
+ *
34
+ * @example
35
+ * image/png
36
+ */
37
+ mimeType?: string;
38
+ /**
39
+ * @remarks
40
+ * The OSS URI of the image resource.
41
+ *
42
+ * @example
43
+ * oss://my-bucket/results/my-space/doc-001/artifacts/image-1.png
44
+ */
45
+ uri?: string;
46
+ static names(): { [key: string]: string } {
47
+ return {
48
+ documentIndex: 'DocumentIndex',
49
+ id: 'Id',
50
+ itemRef: 'ItemRef',
51
+ mimeType: 'MimeType',
52
+ uri: 'Uri',
53
+ };
54
+ }
55
+
56
+ static types(): { [key: string]: any } {
57
+ return {
58
+ documentIndex: 'number',
59
+ id: 'string',
60
+ itemRef: 'string',
61
+ mimeType: 'string',
62
+ uri: 'string',
63
+ };
64
+ }
65
+
66
+ validate() {
67
+ super.validate();
68
+ }
69
+
70
+ constructor(map?: { [key: string]: any }) {
71
+ super(map);
72
+ }
73
+ }
74
+
5
75
  export class DescribeKnowledgeBaseAnswerResponseBodySources extends $dara.Model {
6
76
  /**
7
77
  * @remarks
@@ -24,9 +94,14 @@ export class DescribeKnowledgeBaseAnswerResponseBodySources extends $dara.Model
24
94
  * The file name.
25
95
  *
26
96
  * @example
27
- * financial_report.pdf
97
+ * FinancialReport.pdf
28
98
  */
29
99
  fileName?: string;
100
+ /**
101
+ * @remarks
102
+ * The list of image resources associated with the referenced chunk in the Q&A.
103
+ */
104
+ imageResources?: DescribeKnowledgeBaseAnswerResponseBodySourcesImageResources[];
30
105
  /**
31
106
  * @remarks
32
107
  * The unique ID of the knowledge base.
@@ -45,20 +120,20 @@ export class DescribeKnowledgeBaseAnswerResponseBodySources extends $dara.Model
45
120
  metadata?: { [key: string]: any };
46
121
  /**
47
122
  * @remarks
48
- * The list of page numbers to which the shard belongs.
123
+ * The list of page numbers to which the chunk belongs.
49
124
  */
50
125
  pageNumbers?: number[];
51
126
  /**
52
127
  * @remarks
53
- * The shard content.
128
+ * The chunk content.
54
129
  *
55
130
  * @example
56
- * financial_report
131
+ * FinancialReport
57
132
  */
58
133
  shardContent?: string;
59
134
  /**
60
135
  * @remarks
61
- * The shard ID.
136
+ * The chunk ID.
62
137
  *
63
138
  * @example
64
139
  * 8
@@ -85,6 +160,7 @@ export class DescribeKnowledgeBaseAnswerResponseBodySources extends $dara.Model
85
160
  chunkMetadata: 'ChunkMetadata',
86
161
  fileId: 'FileId',
87
162
  fileName: 'FileName',
163
+ imageResources: 'ImageResources',
88
164
  knowledgeBaseId: 'KnowledgeBaseId',
89
165
  metadata: 'Metadata',
90
166
  pageNumbers: 'PageNumbers',
@@ -100,6 +176,7 @@ export class DescribeKnowledgeBaseAnswerResponseBodySources extends $dara.Model
100
176
  chunkMetadata: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
101
177
  fileId: 'string',
102
178
  fileName: 'string',
179
+ imageResources: { 'type': 'array', 'itemType': DescribeKnowledgeBaseAnswerResponseBodySourcesImageResources },
103
180
  knowledgeBaseId: 'string',
104
181
  metadata: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
105
182
  pageNumbers: { 'type': 'array', 'itemType': 'number' },
@@ -114,6 +191,9 @@ export class DescribeKnowledgeBaseAnswerResponseBodySources extends $dara.Model
114
191
  if(this.chunkMetadata) {
115
192
  $dara.Model.validateMap(this.chunkMetadata);
116
193
  }
194
+ if(Array.isArray(this.imageResources)) {
195
+ $dara.Model.validateArray(this.imageResources);
196
+ }
117
197
  if(this.metadata) {
118
198
  $dara.Model.validateMap(this.metadata);
119
199
  }
@@ -142,12 +222,12 @@ export class DescribeKnowledgeBaseAnswerResponseBody extends $dara.Model {
142
222
  * The answer content.
143
223
  *
144
224
  * @example
145
- * The financial report is summarized as follows: ******
225
+ * The financial report summary is as follows: ******
146
226
  */
147
227
  answer?: string;
148
228
  /**
149
229
  * @remarks
150
- * The cumulative number of tokens generated by the completion.
230
+ * The cumulative number of tokens generated for completion.
151
231
  *
152
232
  * @example
153
233
  * 3935
@@ -2,12 +2,97 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class DescribeKnowledgeBaseFileShardsResponseBodyShardsImageResources extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The index of the source document to which the image belongs, starting from 0.
9
+ *
10
+ * @example
11
+ * 0
12
+ */
13
+ documentIndex?: number;
14
+ /**
15
+ * @remarks
16
+ * The unique ID of the image resource.
17
+ *
18
+ * @example
19
+ * document-0/pictures/1
20
+ */
21
+ id?: string;
22
+ /**
23
+ * @remarks
24
+ * The element reference of the image in the Docling source document structure.
25
+ *
26
+ * @example
27
+ * #/pictures/1
28
+ */
29
+ itemRef?: string;
30
+ /**
31
+ * @remarks
32
+ * The media type of the image resource.
33
+ *
34
+ * @example
35
+ * image/png
36
+ */
37
+ mimeType?: string;
38
+ /**
39
+ * @remarks
40
+ * The OSS URI of the image resource.
41
+ *
42
+ * @example
43
+ * oss://my-bucket/results/my-space/doc-001/artifacts/image-1.png
44
+ */
45
+ uri?: string;
46
+ static names(): { [key: string]: string } {
47
+ return {
48
+ documentIndex: 'DocumentIndex',
49
+ id: 'Id',
50
+ itemRef: 'ItemRef',
51
+ mimeType: 'MimeType',
52
+ uri: 'Uri',
53
+ };
54
+ }
55
+
56
+ static types(): { [key: string]: any } {
57
+ return {
58
+ documentIndex: 'number',
59
+ id: 'string',
60
+ itemRef: 'string',
61
+ mimeType: 'string',
62
+ uri: 'string',
63
+ };
64
+ }
65
+
66
+ validate() {
67
+ super.validate();
68
+ }
69
+
70
+ constructor(map?: { [key: string]: any }) {
71
+ super(map);
72
+ }
73
+ }
74
+
5
75
  export class DescribeKnowledgeBaseFileShardsResponseBodyShards extends $dara.Model {
76
+ /**
77
+ * @remarks
78
+ * The list of figure or table captions associated with the shard.
79
+ */
80
+ captions?: string[];
81
+ /**
82
+ * @remarks
83
+ * The list of Docling source document structured element references associated with the shard. You can use these references to precisely locate original document elements.
84
+ */
85
+ docItems?: string[];
6
86
  /**
7
87
  * @remarks
8
88
  * The chain of section headings to which the shard belongs.
9
89
  */
10
90
  headings?: string[];
91
+ /**
92
+ * @remarks
93
+ * The list of image resources referenced by the shard.
94
+ */
95
+ imageResources?: DescribeKnowledgeBaseFileShardsResponseBodyShardsImageResources[];
11
96
  /**
12
97
  * @remarks
13
98
  * The list of page numbers to which the shard belongs.
@@ -23,7 +108,7 @@ export class DescribeKnowledgeBaseFileShardsResponseBodyShards extends $dara.Mod
23
108
  shardContent?: string;
24
109
  /**
25
110
  * @remarks
26
- * The shard index.
111
+ * The index of the shard.
27
112
  *
28
113
  * @example
29
114
  * 1
@@ -31,7 +116,10 @@ export class DescribeKnowledgeBaseFileShardsResponseBodyShards extends $dara.Mod
31
116
  shardIndex?: number;
32
117
  static names(): { [key: string]: string } {
33
118
  return {
119
+ captions: 'Captions',
120
+ docItems: 'DocItems',
34
121
  headings: 'Headings',
122
+ imageResources: 'ImageResources',
35
123
  pageNumbers: 'PageNumbers',
36
124
  shardContent: 'ShardContent',
37
125
  shardIndex: 'ShardIndex',
@@ -40,7 +128,10 @@ export class DescribeKnowledgeBaseFileShardsResponseBodyShards extends $dara.Mod
40
128
 
41
129
  static types(): { [key: string]: any } {
42
130
  return {
131
+ captions: { 'type': 'array', 'itemType': 'string' },
132
+ docItems: { 'type': 'array', 'itemType': 'string' },
43
133
  headings: { 'type': 'array', 'itemType': 'string' },
134
+ imageResources: { 'type': 'array', 'itemType': DescribeKnowledgeBaseFileShardsResponseBodyShardsImageResources },
44
135
  pageNumbers: { 'type': 'array', 'itemType': 'string' },
45
136
  shardContent: 'string',
46
137
  shardIndex: 'number',
@@ -48,9 +139,18 @@ export class DescribeKnowledgeBaseFileShardsResponseBodyShards extends $dara.Mod
48
139
  }
49
140
 
50
141
  validate() {
142
+ if(Array.isArray(this.captions)) {
143
+ $dara.Model.validateArray(this.captions);
144
+ }
145
+ if(Array.isArray(this.docItems)) {
146
+ $dara.Model.validateArray(this.docItems);
147
+ }
51
148
  if(Array.isArray(this.headings)) {
52
149
  $dara.Model.validateArray(this.headings);
53
150
  }
151
+ if(Array.isArray(this.imageResources)) {
152
+ $dara.Model.validateArray(this.imageResources);
153
+ }
54
154
  if(Array.isArray(this.pageNumbers)) {
55
155
  $dara.Model.validateArray(this.pageNumbers);
56
156
  }
@@ -0,0 +1,102 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ModifyAIDBClusterModelRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ID of the PolarDB AI 3.0 logical instance.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * pm-2ze4x2mwo81knj08a
14
+ */
15
+ DBClusterId?: string;
16
+ /**
17
+ * @remarks
18
+ * The new client-facing invocation name. If this parameter is not specified, the existing invocation name is retained.
19
+ *
20
+ * @example
21
+ * my-flagship-chat
22
+ */
23
+ displayModelName?: string;
24
+ /**
25
+ * @remarks
26
+ * Specifies whether to only preview the change without actually performing it.
27
+ *
28
+ * @example
29
+ * true
30
+ */
31
+ dryRun?: boolean;
32
+ /**
33
+ * @remarks
34
+ * The name of the target model. Select a value from the ModelName values returned by the DescribeAvailableModels operation.
35
+ *
36
+ * This parameter is required.
37
+ *
38
+ * @example
39
+ * Qwen3-32B
40
+ */
41
+ modelName?: string;
42
+ /**
43
+ * @remarks
44
+ * The region ID.
45
+ *
46
+ * This parameter is required.
47
+ *
48
+ * @example
49
+ * cn-beijing
50
+ */
51
+ regionId?: string;
52
+ /**
53
+ * @remarks
54
+ * The restart mode for workers. Valid values:
55
+ * - inPlace
56
+ * - recreate
57
+ *
58
+ * @example
59
+ * inPlace
60
+ */
61
+ restartMode?: string;
62
+ /**
63
+ * @remarks
64
+ * The maximum number of workers to restart per batch within a single MSD. Valid values: 1 to 30. This parameter takes effect only when RestartMode is set to inPlace.
65
+ *
66
+ * @example
67
+ * 8
68
+ */
69
+ workerBatchSize?: number;
70
+ static names(): { [key: string]: string } {
71
+ return {
72
+ DBClusterId: 'DBClusterId',
73
+ displayModelName: 'DisplayModelName',
74
+ dryRun: 'DryRun',
75
+ modelName: 'ModelName',
76
+ regionId: 'RegionId',
77
+ restartMode: 'RestartMode',
78
+ workerBatchSize: 'WorkerBatchSize',
79
+ };
80
+ }
81
+
82
+ static types(): { [key: string]: any } {
83
+ return {
84
+ DBClusterId: 'string',
85
+ displayModelName: 'string',
86
+ dryRun: 'boolean',
87
+ modelName: 'string',
88
+ regionId: 'string',
89
+ restartMode: 'string',
90
+ workerBatchSize: 'number',
91
+ };
92
+ }
93
+
94
+ validate() {
95
+ super.validate();
96
+ }
97
+
98
+ constructor(map?: { [key: string]: any }) {
99
+ super(map);
100
+ }
101
+ }
102
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ModifyAIDBClusterModelResponseBody } from "./ModifyAidbclusterModelResponseBody";
4
+
5
+
6
+ export class ModifyAIDBClusterModelResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ModifyAIDBClusterModelResponseBody;
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: ModifyAIDBClusterModelResponseBody,
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
+