@alicloud/polardb20170801 9.6.0 → 9.6.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.
@@ -1,5 +1,13 @@
1
1
  import * as $dara from '@darabonba/typescript';
2
2
  export declare class CreateKnowledgeSpaceRequest extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * Specifies whether to automatically activate MCP. The specifications are fixed to polar.app.g2.medium with 2 nodes and the pay-as-you-go billing method. If you set this parameter to true, you must also explicitly set EnforceAcl to true.
6
+ *
7
+ * @example
8
+ * false
9
+ */
10
+ autoCreateMcpInstance?: boolean;
3
11
  /**
4
12
  * @remarks
5
13
  * The type of the database engine.
@@ -16,6 +24,14 @@ export declare class CreateKnowledgeSpaceRequest extends $dara.Model {
16
24
  * testDesc
17
25
  */
18
26
  description?: string;
27
+ /**
28
+ * @remarks
29
+ * Specifies whether to only validate the creation request without placing an order or creating resources.
30
+ *
31
+ * @example
32
+ * false
33
+ */
34
+ dryRun?: boolean;
19
35
  /**
20
36
  * @remarks
21
37
  * The vector dimensions.
@@ -38,7 +54,7 @@ export declare class CreateKnowledgeSpaceRequest extends $dara.Model {
38
54
  embeddingModel?: string;
39
55
  /**
40
56
  * @remarks
41
- * Specifies whether to enforce access control list (ACL) authentication for the knowledge space.
57
+ * Specifies whether to enforce ACL authentication for the knowledge space.
42
58
  *
43
59
  * @example
44
60
  * false
@@ -104,7 +120,7 @@ export declare class CreateKnowledgeSpaceRequest extends $dara.Model {
104
120
  regionId?: string;
105
121
  /**
106
122
  * @remarks
107
- * The name of the rerank model.
123
+ * The name of the reranking model.
108
124
  *
109
125
  * @example
110
126
  * qwen3-rerank
@@ -122,7 +138,7 @@ export declare class CreateKnowledgeSpaceRequest extends $dara.Model {
122
138
  securityGroupId?: string;
123
139
  /**
124
140
  * @remarks
125
- * The shard size, in tokens.
141
+ * The shard size in tokens.
126
142
  *
127
143
  * This parameter is required.
128
144
  *
@@ -133,8 +149,8 @@ export declare class CreateKnowledgeSpaceRequest extends $dara.Model {
133
149
  /**
134
150
  * @remarks
135
151
  * The sharding strategy. Valid values:
136
- * - hierarchical: hierarchical sharding. This is the default value.
137
- * - hybrid: hybrid sharding.
152
+ * - hierarchical: The default value.
153
+ * - hybrid.
138
154
  *
139
155
  * This parameter is required.
140
156
  *
@@ -144,7 +160,7 @@ export declare class CreateKnowledgeSpaceRequest extends $dara.Model {
144
160
  shardingStrategy?: string;
145
161
  /**
146
162
  * @remarks
147
- * The vSwitch for automatic creation of the database.
163
+ * The ID of the vSwitch for the automatic creation of the database.
148
164
  *
149
165
  * This parameter is required.
150
166
  *
@@ -154,7 +170,7 @@ export declare class CreateKnowledgeSpaceRequest extends $dara.Model {
154
170
  vSwitchId?: string;
155
171
  /**
156
172
  * @remarks
157
- * The VPC for automatic creation of the database.
173
+ * The ID of the VPC for the automatic creation of the database.
158
174
  *
159
175
  * This parameter is required.
160
176
  *
@@ -164,7 +180,7 @@ export declare class CreateKnowledgeSpaceRequest extends $dara.Model {
164
180
  vpcId?: string;
165
181
  /**
166
182
  * @remarks
167
- * The active zone for automatic creation of the database.
183
+ * The active zone for the automatic creation of the database.
168
184
  *
169
185
  * This parameter is required.
170
186
  *
@@ -39,8 +39,10 @@ const $dara = __importStar(require("@darabonba/typescript"));
39
39
  class CreateKnowledgeSpaceRequest extends $dara.Model {
40
40
  static names() {
41
41
  return {
42
+ autoCreateMcpInstance: 'AutoCreateMcpInstance',
42
43
  DBType: 'DBType',
43
44
  description: 'Description',
45
+ dryRun: 'DryRun',
44
46
  embeddingDimension: 'EmbeddingDimension',
45
47
  embeddingModel: 'EmbeddingModel',
46
48
  enforceAcl: 'EnforceAcl',
@@ -61,8 +63,10 @@ class CreateKnowledgeSpaceRequest extends $dara.Model {
61
63
  }
62
64
  static types() {
63
65
  return {
66
+ autoCreateMcpInstance: 'boolean',
64
67
  DBType: 'string',
65
68
  description: 'string',
69
+ dryRun: 'boolean',
66
70
  embeddingDimension: 'number',
67
71
  embeddingModel: 'string',
68
72
  enforceAcl: 'boolean',
@@ -1 +1 @@
1
- {"version":3,"file":"CreateKnowledgeSpaceRequest.js","sourceRoot":"","sources":["../../src/models/CreateKnowledgeSpaceRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IA6K1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,aAAa;YAC1B,kBAAkB,EAAE,oBAAoB;YACxC,cAAc,EAAE,gBAAgB;YAChC,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,YAAY,EAAE,cAAc;YAC5B,SAAS,EAAE,WAAW;YACtB,YAAY,EAAE,cAAc;YAC5B,QAAQ,EAAE,UAAU;YACpB,WAAW,EAAE,aAAa;YAC1B,eAAe,EAAE,iBAAiB;YAClC,YAAY,EAAE,cAAc;YAC5B,gBAAgB,EAAE,kBAAkB;YACpC,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,QAAQ;YACrB,kBAAkB,EAAE,QAAQ;YAC5B,cAAc,EAAE,QAAQ;YACxB,UAAU,EAAE,SAAS;YACrB,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,QAAQ;YACtB,SAAS,EAAE,QAAQ;YACnB,YAAY,EAAE,QAAQ;YACtB,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,QAAQ;YACrB,eAAe,EAAE,QAAQ;YACzB,YAAY,EAAE,QAAQ;YACtB,gBAAgB,EAAE,QAAQ;YAC1B,SAAS,EAAE,QAAQ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,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,QAAQ;YACtB,SAAS,EAAE,QAAQ;YACnB,YAAY,EAAE,QAAQ;YACtB,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,QAAQ;YACrB,eAAe,EAAE,QAAQ;YACzB,YAAY,EAAE,QAAQ;YACtB,gBAAgB,EAAE,QAAQ;YAC1B,SAAS,EAAE,QAAQ;YACnB,KAAK,EAAE,QAAQ;YACf,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtPD,kEAsPC"}
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class CreateKnowledgeSpaceResponseBody extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The PolarDB instance ID for automatic creation.
5
+ * The ID of the PolarDB instance for automatic creation.
6
6
  *
7
7
  * @example
8
8
  * pc-**************
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/polardb20170801",
3
- "version": "9.6.0",
3
+ "version": "9.6.1",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -6242,7 +6242,7 @@ export default class Client extends OpenApi {
6242
6242
  * Creates a knowledge space.
6243
6243
  *
6244
6244
  * @remarks
6245
- * Prerequisites: Before you call this operation, you must activate the PrivateLink service in your current account. If the service is not activated, the API returns the PrivateLinkService.NotOpen (400) error. You can check the activation status of the service in the PrivateLink console. Before creating a knowledge space, you must also prepare the VpcId, VSwitchId, SecurityGroupId, and OSSBucket parameters. You can query VPCs and vSwitches by calling the DescribeVpcs and DescribeVSwitches operations of VPC, query security groups by calling the DescribeSecurityGroups operation of ECS, and query buckets by calling the ListBuckets operation of OSS. If the resources do not exist, create them in the corresponding services first.
6245
+ * Prerequisites: You must activate the PrivateLink service in your current account before calling this operation. If the service is not activated, the operation returns the PrivateLinkService.NotOpen (400) error. You can check the service activation status in the PrivateLink console. Before creating a knowledge space, you must also prepare a VpcId, VSwitchId, SecurityGroupId, and OSSBucket. You can query VPCs and vSwitches by calling the VPC DescribeVpcs and DescribeVSwitches operations, query security groups by calling the ECS DescribeSecurityGroups operation, and query buckets by calling the OSS ListBuckets operation. If the resources do not exist, create them in the corresponding services first.
6246
6246
  *
6247
6247
  * @param request - CreateKnowledgeSpaceRequest
6248
6248
  * @param runtime - runtime options for this request RuntimeOptions
@@ -6251,6 +6251,10 @@ export default class Client extends OpenApi {
6251
6251
  async createKnowledgeSpaceWithOptions(request: $_model.CreateKnowledgeSpaceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateKnowledgeSpaceResponse> {
6252
6252
  request.validate();
6253
6253
  let query = { };
6254
+ if (!$dara.isNull(request.autoCreateMcpInstance)) {
6255
+ query["AutoCreateMcpInstance"] = request.autoCreateMcpInstance;
6256
+ }
6257
+
6254
6258
  if (!$dara.isNull(request.DBType)) {
6255
6259
  query["DBType"] = request.DBType;
6256
6260
  }
@@ -6259,6 +6263,10 @@ export default class Client extends OpenApi {
6259
6263
  query["Description"] = request.description;
6260
6264
  }
6261
6265
 
6266
+ if (!$dara.isNull(request.dryRun)) {
6267
+ query["DryRun"] = request.dryRun;
6268
+ }
6269
+
6262
6270
  if (!$dara.isNull(request.embeddingDimension)) {
6263
6271
  query["EmbeddingDimension"] = request.embeddingDimension;
6264
6272
  }
@@ -6344,7 +6352,7 @@ export default class Client extends OpenApi {
6344
6352
  * Creates a knowledge space.
6345
6353
  *
6346
6354
  * @remarks
6347
- * Prerequisites: Before you call this operation, you must activate the PrivateLink service in your current account. If the service is not activated, the API returns the PrivateLinkService.NotOpen (400) error. You can check the activation status of the service in the PrivateLink console. Before creating a knowledge space, you must also prepare the VpcId, VSwitchId, SecurityGroupId, and OSSBucket parameters. You can query VPCs and vSwitches by calling the DescribeVpcs and DescribeVSwitches operations of VPC, query security groups by calling the DescribeSecurityGroups operation of ECS, and query buckets by calling the ListBuckets operation of OSS. If the resources do not exist, create them in the corresponding services first.
6355
+ * Prerequisites: You must activate the PrivateLink service in your current account before calling this operation. If the service is not activated, the operation returns the PrivateLinkService.NotOpen (400) error. You can check the service activation status in the PrivateLink console. Before creating a knowledge space, you must also prepare a VpcId, VSwitchId, SecurityGroupId, and OSSBucket. You can query VPCs and vSwitches by calling the VPC DescribeVpcs and DescribeVSwitches operations, query security groups by calling the ECS DescribeSecurityGroups operation, and query buckets by calling the OSS ListBuckets operation. If the resources do not exist, create them in the corresponding services first.
6348
6356
  *
6349
6357
  * @param request - CreateKnowledgeSpaceRequest
6350
6358
  * @returns CreateKnowledgeSpaceResponse
@@ -3,6 +3,14 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class CreateKnowledgeSpaceRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Specifies whether to automatically activate MCP. The specifications are fixed to polar.app.g2.medium with 2 nodes and the pay-as-you-go billing method. If you set this parameter to true, you must also explicitly set EnforceAcl to true.
9
+ *
10
+ * @example
11
+ * false
12
+ */
13
+ autoCreateMcpInstance?: boolean;
6
14
  /**
7
15
  * @remarks
8
16
  * The type of the database engine.
@@ -19,6 +27,14 @@ export class CreateKnowledgeSpaceRequest extends $dara.Model {
19
27
  * testDesc
20
28
  */
21
29
  description?: string;
30
+ /**
31
+ * @remarks
32
+ * Specifies whether to only validate the creation request without placing an order or creating resources.
33
+ *
34
+ * @example
35
+ * false
36
+ */
37
+ dryRun?: boolean;
22
38
  /**
23
39
  * @remarks
24
40
  * The vector dimensions.
@@ -41,7 +57,7 @@ export class CreateKnowledgeSpaceRequest extends $dara.Model {
41
57
  embeddingModel?: string;
42
58
  /**
43
59
  * @remarks
44
- * Specifies whether to enforce access control list (ACL) authentication for the knowledge space.
60
+ * Specifies whether to enforce ACL authentication for the knowledge space.
45
61
  *
46
62
  * @example
47
63
  * false
@@ -107,7 +123,7 @@ export class CreateKnowledgeSpaceRequest extends $dara.Model {
107
123
  regionId?: string;
108
124
  /**
109
125
  * @remarks
110
- * The name of the rerank model.
126
+ * The name of the reranking model.
111
127
  *
112
128
  * @example
113
129
  * qwen3-rerank
@@ -125,7 +141,7 @@ export class CreateKnowledgeSpaceRequest extends $dara.Model {
125
141
  securityGroupId?: string;
126
142
  /**
127
143
  * @remarks
128
- * The shard size, in tokens.
144
+ * The shard size in tokens.
129
145
  *
130
146
  * This parameter is required.
131
147
  *
@@ -136,8 +152,8 @@ export class CreateKnowledgeSpaceRequest extends $dara.Model {
136
152
  /**
137
153
  * @remarks
138
154
  * The sharding strategy. Valid values:
139
- * - hierarchical: hierarchical sharding. This is the default value.
140
- * - hybrid: hybrid sharding.
155
+ * - hierarchical: The default value.
156
+ * - hybrid.
141
157
  *
142
158
  * This parameter is required.
143
159
  *
@@ -147,7 +163,7 @@ export class CreateKnowledgeSpaceRequest extends $dara.Model {
147
163
  shardingStrategy?: string;
148
164
  /**
149
165
  * @remarks
150
- * The vSwitch for automatic creation of the database.
166
+ * The ID of the vSwitch for the automatic creation of the database.
151
167
  *
152
168
  * This parameter is required.
153
169
  *
@@ -157,7 +173,7 @@ export class CreateKnowledgeSpaceRequest extends $dara.Model {
157
173
  vSwitchId?: string;
158
174
  /**
159
175
  * @remarks
160
- * The VPC for automatic creation of the database.
176
+ * The ID of the VPC for the automatic creation of the database.
161
177
  *
162
178
  * This parameter is required.
163
179
  *
@@ -167,7 +183,7 @@ export class CreateKnowledgeSpaceRequest extends $dara.Model {
167
183
  vpcId?: string;
168
184
  /**
169
185
  * @remarks
170
- * The active zone for automatic creation of the database.
186
+ * The active zone for the automatic creation of the database.
171
187
  *
172
188
  * This parameter is required.
173
189
  *
@@ -177,8 +193,10 @@ export class CreateKnowledgeSpaceRequest extends $dara.Model {
177
193
  zoneId?: string;
178
194
  static names(): { [key: string]: string } {
179
195
  return {
196
+ autoCreateMcpInstance: 'AutoCreateMcpInstance',
180
197
  DBType: 'DBType',
181
198
  description: 'Description',
199
+ dryRun: 'DryRun',
182
200
  embeddingDimension: 'EmbeddingDimension',
183
201
  embeddingModel: 'EmbeddingModel',
184
202
  enforceAcl: 'EnforceAcl',
@@ -200,8 +218,10 @@ export class CreateKnowledgeSpaceRequest extends $dara.Model {
200
218
 
201
219
  static types(): { [key: string]: any } {
202
220
  return {
221
+ autoCreateMcpInstance: 'boolean',
203
222
  DBType: 'string',
204
223
  description: 'string',
224
+ dryRun: 'boolean',
205
225
  embeddingDimension: 'number',
206
226
  embeddingModel: 'string',
207
227
  enforceAcl: 'boolean',
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class CreateKnowledgeSpaceResponseBody extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The PolarDB instance ID for automatic creation.
8
+ * The ID of the PolarDB instance for automatic creation.
9
9
  *
10
10
  * @example
11
11
  * pc-**************