@alicloud/dms20250414 4.5.0 → 4.6.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 (75) hide show
  1. package/dist/client.d.ts +64 -4
  2. package/dist/client.js +200 -4
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/BatchCreateDataLakePartitionsRequest.d.ts +88 -0
  5. package/dist/models/BatchCreateDataLakePartitionsRequest.js +76 -0
  6. package/dist/models/BatchCreateDataLakePartitionsRequest.js.map +1 -0
  7. package/dist/models/BatchCreateDataLakePartitionsResponse.d.ts +19 -0
  8. package/dist/models/BatchCreateDataLakePartitionsResponse.js +69 -0
  9. package/dist/models/BatchCreateDataLakePartitionsResponse.js.map +1 -0
  10. package/dist/models/BatchCreateDataLakePartitionsResponseBody.d.ts +54 -0
  11. package/dist/models/BatchCreateDataLakePartitionsResponseBody.js +70 -0
  12. package/dist/models/BatchCreateDataLakePartitionsResponseBody.js.map +1 -0
  13. package/dist/models/BatchCreateDataLakePartitionsShrinkRequest.d.ts +87 -0
  14. package/dist/models/BatchCreateDataLakePartitionsShrinkRequest.js +72 -0
  15. package/dist/models/BatchCreateDataLakePartitionsShrinkRequest.js.map +1 -0
  16. package/dist/models/DescribeDataAgentSkillDownloadResponseBody.d.ts +1 -1
  17. package/dist/models/DmsGatewayOrder.d.ts +1 -0
  18. package/dist/models/DmsGatewayOrder.js +2 -0
  19. package/dist/models/DmsGatewayOrder.js.map +1 -1
  20. package/dist/models/GetMyAgenticNotificationChannelAuthorizeUrlRequest.d.ts +23 -0
  21. package/dist/models/GetMyAgenticNotificationChannelAuthorizeUrlRequest.js +58 -0
  22. package/dist/models/GetMyAgenticNotificationChannelAuthorizeUrlRequest.js.map +1 -0
  23. package/dist/models/GetMyAgenticNotificationChannelAuthorizeUrlResponse.d.ts +19 -0
  24. package/dist/models/GetMyAgenticNotificationChannelAuthorizeUrlResponse.js +69 -0
  25. package/dist/models/GetMyAgenticNotificationChannelAuthorizeUrlResponse.js.map +1 -0
  26. package/dist/models/GetMyAgenticNotificationChannelAuthorizeUrlResponseBody.d.ts +77 -0
  27. package/dist/models/GetMyAgenticNotificationChannelAuthorizeUrlResponseBody.js +90 -0
  28. package/dist/models/GetMyAgenticNotificationChannelAuthorizeUrlResponseBody.js.map +1 -0
  29. package/dist/models/ListMyAgenticNotificationChannelConfigsRequest.d.ts +37 -0
  30. package/dist/models/ListMyAgenticNotificationChannelConfigsRequest.js +62 -0
  31. package/dist/models/ListMyAgenticNotificationChannelConfigsRequest.js.map +1 -0
  32. package/dist/models/ListMyAgenticNotificationChannelConfigsResponse.d.ts +19 -0
  33. package/dist/models/ListMyAgenticNotificationChannelConfigsResponse.js +69 -0
  34. package/dist/models/ListMyAgenticNotificationChannelConfigsResponse.js.map +1 -0
  35. package/dist/models/ListMyAgenticNotificationChannelConfigsResponseBody.d.ts +98 -0
  36. package/dist/models/ListMyAgenticNotificationChannelConfigsResponseBody.js +99 -0
  37. package/dist/models/ListMyAgenticNotificationChannelConfigsResponseBody.js.map +1 -0
  38. package/dist/models/SendChatMessageRequest.d.ts +67 -59
  39. package/dist/models/SendChatMessageRequest.js +2 -0
  40. package/dist/models/SendChatMessageRequest.js.map +1 -1
  41. package/dist/models/SendChatMessageShrinkRequest.d.ts +13 -13
  42. package/dist/models/UpdateMyAgenticNotificationChannelConfigRequest.d.ts +36 -0
  43. package/dist/models/UpdateMyAgenticNotificationChannelConfigRequest.js +62 -0
  44. package/dist/models/UpdateMyAgenticNotificationChannelConfigRequest.js.map +1 -0
  45. package/dist/models/UpdateMyAgenticNotificationChannelConfigResponse.d.ts +19 -0
  46. package/dist/models/UpdateMyAgenticNotificationChannelConfigResponse.js +69 -0
  47. package/dist/models/UpdateMyAgenticNotificationChannelConfigResponse.js.map +1 -0
  48. package/dist/models/UpdateMyAgenticNotificationChannelConfigResponseBody.d.ts +82 -0
  49. package/dist/models/UpdateMyAgenticNotificationChannelConfigResponseBody.js +95 -0
  50. package/dist/models/UpdateMyAgenticNotificationChannelConfigResponseBody.js.map +1 -0
  51. package/dist/models/WorkspaceActionStatusResponseBody.d.ts +1 -1
  52. package/dist/models/model.d.ts +16 -0
  53. package/dist/models/model.js +45 -12
  54. package/dist/models/model.js.map +1 -1
  55. package/package.json +1 -1
  56. package/src/client.ts +224 -4
  57. package/src/models/BatchCreateDataLakePartitionsRequest.ts +118 -0
  58. package/src/models/BatchCreateDataLakePartitionsResponse.ts +40 -0
  59. package/src/models/BatchCreateDataLakePartitionsResponseBody.ts +78 -0
  60. package/src/models/BatchCreateDataLakePartitionsShrinkRequest.ts +114 -0
  61. package/src/models/DescribeDataAgentSkillDownloadResponseBody.ts +1 -1
  62. package/src/models/DmsGatewayOrder.ts +3 -0
  63. package/src/models/GetMyAgenticNotificationChannelAuthorizeUrlRequest.ts +36 -0
  64. package/src/models/GetMyAgenticNotificationChannelAuthorizeUrlResponse.ts +40 -0
  65. package/src/models/GetMyAgenticNotificationChannelAuthorizeUrlResponseBody.ts +113 -0
  66. package/src/models/ListMyAgenticNotificationChannelConfigsRequest.ts +54 -0
  67. package/src/models/ListMyAgenticNotificationChannelConfigsResponse.ts +40 -0
  68. package/src/models/ListMyAgenticNotificationChannelConfigsResponseBody.ts +141 -0
  69. package/src/models/SendChatMessageRequest.ts +69 -59
  70. package/src/models/SendChatMessageShrinkRequest.ts +13 -13
  71. package/src/models/UpdateMyAgenticNotificationChannelConfigRequest.ts +53 -0
  72. package/src/models/UpdateMyAgenticNotificationChannelConfigResponse.ts +40 -0
  73. package/src/models/UpdateMyAgenticNotificationChannelConfigResponseBody.ts +121 -0
  74. package/src/models/WorkspaceActionStatusResponseBody.ts +1 -1
  75. package/src/models/model.ts +16 -0
package/src/client.ts CHANGED
@@ -289,6 +289,84 @@ export default class Client extends OpenApi {
289
289
  return await this.addUserToDataAgentWorkspaceWithOptions(request, runtime);
290
290
  }
291
291
 
292
+ /**
293
+ * Creates multiple partitions for a data lakehouse table.
294
+ *
295
+ * @param tmpReq - BatchCreateDataLakePartitionsRequest
296
+ * @param runtime - runtime options for this request RuntimeOptions
297
+ * @returns BatchCreateDataLakePartitionsResponse
298
+ */
299
+ async batchCreateDataLakePartitionsWithOptions(tmpReq: $_model.BatchCreateDataLakePartitionsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.BatchCreateDataLakePartitionsResponse> {
300
+ tmpReq.validate();
301
+ let request = new $_model.BatchCreateDataLakePartitionsShrinkRequest({ });
302
+ OpenApiUtil.convert(tmpReq, request);
303
+ if (!$dara.isNull(tmpReq.partitionInputs)) {
304
+ request.partitionInputsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.partitionInputs, "PartitionInputs", "json");
305
+ }
306
+
307
+ let query = { };
308
+ if (!$dara.isNull(request.catalogName)) {
309
+ query["CatalogName"] = request.catalogName;
310
+ }
311
+
312
+ if (!$dara.isNull(request.dbName)) {
313
+ query["DbName"] = request.dbName;
314
+ }
315
+
316
+ if (!$dara.isNull(request.ifNotExists)) {
317
+ query["IfNotExists"] = request.ifNotExists;
318
+ }
319
+
320
+ if (!$dara.isNull(request.needResult)) {
321
+ query["NeedResult"] = request.needResult;
322
+ }
323
+
324
+ if (!$dara.isNull(request.tableName)) {
325
+ query["TableName"] = request.tableName;
326
+ }
327
+
328
+ if (!$dara.isNull(request.tid)) {
329
+ query["Tid"] = request.tid;
330
+ }
331
+
332
+ if (!$dara.isNull(request.workspaceId)) {
333
+ query["WorkspaceId"] = request.workspaceId;
334
+ }
335
+
336
+ let body : {[key: string ]: any} = { };
337
+ if (!$dara.isNull(request.partitionInputsShrink)) {
338
+ body["PartitionInputs"] = request.partitionInputsShrink;
339
+ }
340
+
341
+ let req = new $OpenApiUtil.OpenApiRequest({
342
+ query: OpenApiUtil.query(query),
343
+ body: OpenApiUtil.parseToMap(body),
344
+ });
345
+ let params = new $OpenApiUtil.Params({
346
+ action: "BatchCreateDataLakePartitions",
347
+ version: "2025-04-14",
348
+ protocol: "HTTPS",
349
+ pathname: "/",
350
+ method: "POST",
351
+ authType: "AK",
352
+ style: "RPC",
353
+ reqBodyType: "formData",
354
+ bodyType: "json",
355
+ });
356
+ return $dara.cast<$_model.BatchCreateDataLakePartitionsResponse>(await this.callApi(params, req, runtime), new $_model.BatchCreateDataLakePartitionsResponse({}));
357
+ }
358
+
359
+ /**
360
+ * Creates multiple partitions for a data lakehouse table.
361
+ *
362
+ * @param request - BatchCreateDataLakePartitionsRequest
363
+ * @returns BatchCreateDataLakePartitionsResponse
364
+ */
365
+ async batchCreateDataLakePartitions(request: $_model.BatchCreateDataLakePartitionsRequest): Promise<$_model.BatchCreateDataLakePartitionsResponse> {
366
+ let runtime = new $dara.RuntimeOptions({ });
367
+ return await this.batchCreateDataLakePartitionsWithOptions(request, runtime);
368
+ }
369
+
292
370
  /**
293
371
  * CheckDataAgentMemoryConfig - Queries the memory generation and usage configuration of a DataAgent.
294
372
  *
@@ -3663,6 +3741,48 @@ export default class Client extends OpenApi {
3663
3741
  return await this.getListMcpServerToolsResultWithOptions(request, runtime);
3664
3742
  }
3665
3743
 
3744
+ /**
3745
+ * Retrieves the OAuth authorization URL required for the current user to bind a Lark account. After the user completes the authorization, the system automatically binds their Lark account.
3746
+ *
3747
+ * @param request - GetMyAgenticNotificationChannelAuthorizeUrlRequest
3748
+ * @param runtime - runtime options for this request RuntimeOptions
3749
+ * @returns GetMyAgenticNotificationChannelAuthorizeUrlResponse
3750
+ */
3751
+ async getMyAgenticNotificationChannelAuthorizeUrlWithOptions(request: $_model.GetMyAgenticNotificationChannelAuthorizeUrlRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetMyAgenticNotificationChannelAuthorizeUrlResponse> {
3752
+ request.validate();
3753
+ let query = { };
3754
+ if (!$dara.isNull(request.channel)) {
3755
+ query["Channel"] = request.channel;
3756
+ }
3757
+
3758
+ let req = new $OpenApiUtil.OpenApiRequest({
3759
+ query: OpenApiUtil.query(query),
3760
+ });
3761
+ let params = new $OpenApiUtil.Params({
3762
+ action: "GetMyAgenticNotificationChannelAuthorizeUrl",
3763
+ version: "2025-04-14",
3764
+ protocol: "HTTPS",
3765
+ pathname: "/",
3766
+ method: "POST",
3767
+ authType: "AK",
3768
+ style: "RPC",
3769
+ reqBodyType: "formData",
3770
+ bodyType: "json",
3771
+ });
3772
+ return $dara.cast<$_model.GetMyAgenticNotificationChannelAuthorizeUrlResponse>(await this.callApi(params, req, runtime), new $_model.GetMyAgenticNotificationChannelAuthorizeUrlResponse({}));
3773
+ }
3774
+
3775
+ /**
3776
+ * Retrieves the OAuth authorization URL required for the current user to bind a Lark account. After the user completes the authorization, the system automatically binds their Lark account.
3777
+ *
3778
+ * @param request - GetMyAgenticNotificationChannelAuthorizeUrlRequest
3779
+ * @returns GetMyAgenticNotificationChannelAuthorizeUrlResponse
3780
+ */
3781
+ async getMyAgenticNotificationChannelAuthorizeUrl(request: $_model.GetMyAgenticNotificationChannelAuthorizeUrlRequest): Promise<$_model.GetMyAgenticNotificationChannelAuthorizeUrlResponse> {
3782
+ let runtime = new $dara.RuntimeOptions({ });
3783
+ return await this.getMyAgenticNotificationChannelAuthorizeUrlWithOptions(request, runtime);
3784
+ }
3785
+
3666
3786
  /**
3667
3787
  * Submits a task to schedule and run a Notebook file.
3668
3788
  *
@@ -6141,6 +6261,56 @@ export default class Client extends OpenApi {
6141
6261
  return await this.listKnowledgeBasesWithOptions(request, runtime);
6142
6262
  }
6143
6263
 
6264
+ /**
6265
+ * Queries the personal notification channel configurations of the current user in the current tenant, including channel status and bound identity information.
6266
+ *
6267
+ * @param request - ListMyAgenticNotificationChannelConfigsRequest
6268
+ * @param runtime - runtime options for this request RuntimeOptions
6269
+ * @returns ListMyAgenticNotificationChannelConfigsResponse
6270
+ */
6271
+ async listMyAgenticNotificationChannelConfigsWithOptions(request: $_model.ListMyAgenticNotificationChannelConfigsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListMyAgenticNotificationChannelConfigsResponse> {
6272
+ request.validate();
6273
+ let query = { };
6274
+ if (!$dara.isNull(request.channel)) {
6275
+ query["Channel"] = request.channel;
6276
+ }
6277
+
6278
+ if (!$dara.isNull(request.maxResults)) {
6279
+ query["MaxResults"] = request.maxResults;
6280
+ }
6281
+
6282
+ if (!$dara.isNull(request.nextToken)) {
6283
+ query["NextToken"] = request.nextToken;
6284
+ }
6285
+
6286
+ let req = new $OpenApiUtil.OpenApiRequest({
6287
+ query: OpenApiUtil.query(query),
6288
+ });
6289
+ let params = new $OpenApiUtil.Params({
6290
+ action: "ListMyAgenticNotificationChannelConfigs",
6291
+ version: "2025-04-14",
6292
+ protocol: "HTTPS",
6293
+ pathname: "/",
6294
+ method: "POST",
6295
+ authType: "AK",
6296
+ style: "RPC",
6297
+ reqBodyType: "formData",
6298
+ bodyType: "json",
6299
+ });
6300
+ return $dara.cast<$_model.ListMyAgenticNotificationChannelConfigsResponse>(await this.callApi(params, req, runtime), new $_model.ListMyAgenticNotificationChannelConfigsResponse({}));
6301
+ }
6302
+
6303
+ /**
6304
+ * Queries the personal notification channel configurations of the current user in the current tenant, including channel status and bound identity information.
6305
+ *
6306
+ * @param request - ListMyAgenticNotificationChannelConfigsRequest
6307
+ * @returns ListMyAgenticNotificationChannelConfigsResponse
6308
+ */
6309
+ async listMyAgenticNotificationChannelConfigs(request: $_model.ListMyAgenticNotificationChannelConfigsRequest): Promise<$_model.ListMyAgenticNotificationChannelConfigsResponse> {
6310
+ let runtime = new $dara.RuntimeOptions({ });
6311
+ return await this.listMyAgenticNotificationChannelConfigsWithOptions(request, runtime);
6312
+ }
6313
+
6144
6314
  /**
6145
6315
  * Retrieves a list of OSSIE models.
6146
6316
  *
@@ -7096,8 +7266,8 @@ export default class Client extends OpenApi {
7096
7266
  * ## Request description
7097
7267
  * - The default value of message_type is primary. Set this parameter to additional or cancel when you need to append information or cancel the session.
7098
7268
  * - The reply_to field specifies the agent message to which this message responds. The default value is 0.
7099
- * - When message_type is set to additional, the question field is required.
7100
- * - You can use quoted_message to quote previous user messages.
7269
+ * - The question field is required when message_type is set to additional.
7270
+ * - You can use quoted_message to quote previous messages from the user.
7101
7271
  *
7102
7272
  * @param tmpReq - SendChatMessageRequest
7103
7273
  * @param runtime - runtime options for this request RuntimeOptions
@@ -7208,8 +7378,8 @@ export default class Client extends OpenApi {
7208
7378
  * ## Request description
7209
7379
  * - The default value of message_type is primary. Set this parameter to additional or cancel when you need to append information or cancel the session.
7210
7380
  * - The reply_to field specifies the agent message to which this message responds. The default value is 0.
7211
- * - When message_type is set to additional, the question field is required.
7212
- * - You can use quoted_message to quote previous user messages.
7381
+ * - The question field is required when message_type is set to additional.
7382
+ * - You can use quoted_message to quote previous messages from the user.
7213
7383
  *
7214
7384
  * @param request - SendChatMessageRequest
7215
7385
  * @returns SendChatMessageResponse
@@ -8263,6 +8433,56 @@ export default class Client extends OpenApi {
8263
8433
  return await this.updateKnowledgeBaseWithOptions(request, runtime);
8264
8434
  }
8265
8435
 
8436
+ /**
8437
+ * Updates the notification channel switch or Lark account binding information for the current user.
8438
+ *
8439
+ * @param request - UpdateMyAgenticNotificationChannelConfigRequest
8440
+ * @param runtime - runtime options for this request RuntimeOptions
8441
+ * @returns UpdateMyAgenticNotificationChannelConfigResponse
8442
+ */
8443
+ async updateMyAgenticNotificationChannelConfigWithOptions(request: $_model.UpdateMyAgenticNotificationChannelConfigRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateMyAgenticNotificationChannelConfigResponse> {
8444
+ request.validate();
8445
+ let body : {[key: string ]: any} = { };
8446
+ if (!$dara.isNull(request.channel)) {
8447
+ body["Channel"] = request.channel;
8448
+ }
8449
+
8450
+ if (!$dara.isNull(request.config)) {
8451
+ body["Config"] = request.config;
8452
+ }
8453
+
8454
+ if (!$dara.isNull(request.enabled)) {
8455
+ body["Enabled"] = request.enabled;
8456
+ }
8457
+
8458
+ let req = new $OpenApiUtil.OpenApiRequest({
8459
+ body: OpenApiUtil.parseToMap(body),
8460
+ });
8461
+ let params = new $OpenApiUtil.Params({
8462
+ action: "UpdateMyAgenticNotificationChannelConfig",
8463
+ version: "2025-04-14",
8464
+ protocol: "HTTPS",
8465
+ pathname: "/",
8466
+ method: "POST",
8467
+ authType: "AK",
8468
+ style: "RPC",
8469
+ reqBodyType: "formData",
8470
+ bodyType: "json",
8471
+ });
8472
+ return $dara.cast<$_model.UpdateMyAgenticNotificationChannelConfigResponse>(await this.callApi(params, req, runtime), new $_model.UpdateMyAgenticNotificationChannelConfigResponse({}));
8473
+ }
8474
+
8475
+ /**
8476
+ * Updates the notification channel switch or Lark account binding information for the current user.
8477
+ *
8478
+ * @param request - UpdateMyAgenticNotificationChannelConfigRequest
8479
+ * @returns UpdateMyAgenticNotificationChannelConfigResponse
8480
+ */
8481
+ async updateMyAgenticNotificationChannelConfig(request: $_model.UpdateMyAgenticNotificationChannelConfigRequest): Promise<$_model.UpdateMyAgenticNotificationChannelConfigResponse> {
8482
+ let runtime = new $dara.RuntimeOptions({ });
8483
+ return await this.updateMyAgenticNotificationChannelConfigWithOptions(request, runtime);
8484
+ }
8485
+
8266
8486
  /**
8267
8487
  * Updates an SQL template.
8268
8488
  *
@@ -0,0 +1,118 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DLPartitionInput } from "./DlpartitionInput";
4
+
5
+
6
+ export class BatchCreateDataLakePartitionsRequest extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * The name of the data catalog.
10
+ *
11
+ * This parameter is required.
12
+ *
13
+ * @example
14
+ * hive
15
+ */
16
+ catalogName?: string;
17
+ /**
18
+ * @remarks
19
+ * The name of the database.
20
+ *
21
+ * This parameter is required.
22
+ *
23
+ * @example
24
+ * default
25
+ */
26
+ dbName?: string;
27
+ /**
28
+ * @remarks
29
+ * Specifies whether to ignore the exception if the name of a new partition duplicates an existing partition name. Valid values:
30
+ *
31
+ * - **true**: The exception is ignored.
32
+ *
33
+ * - **false**: The exception is not ignored.
34
+ *
35
+ * @example
36
+ * true
37
+ */
38
+ ifNotExists?: boolean;
39
+ /**
40
+ * @remarks
41
+ * Specifies whether to return partition information. If this parameter is set to **true**, the Partitions field is returned.
42
+ *
43
+ * @example
44
+ * true
45
+ */
46
+ needResult?: boolean;
47
+ /**
48
+ * @remarks
49
+ * The information about the partitions to be added.
50
+ *
51
+ * This parameter is required.
52
+ */
53
+ partitionInputs?: DLPartitionInput[];
54
+ /**
55
+ * @remarks
56
+ * The name of the table.
57
+ *
58
+ * This parameter is required.
59
+ *
60
+ * @example
61
+ * test_table
62
+ */
63
+ tableName?: string;
64
+ /**
65
+ * @remarks
66
+ * The tenant ID.
67
+ * > Move the pointer over the profile picture in the upper-right corner of the console to view the tenant ID. For more information, see [View tenant information](https://help.aliyun.com/document_detail/181330.html).
68
+ *
69
+ * @example
70
+ * 3****
71
+ */
72
+ tid?: number;
73
+ /**
74
+ * @remarks
75
+ * The workspace ID.
76
+ *
77
+ * @example
78
+ * 12****
79
+ */
80
+ workspaceId?: number;
81
+ static names(): { [key: string]: string } {
82
+ return {
83
+ catalogName: 'CatalogName',
84
+ dbName: 'DbName',
85
+ ifNotExists: 'IfNotExists',
86
+ needResult: 'NeedResult',
87
+ partitionInputs: 'PartitionInputs',
88
+ tableName: 'TableName',
89
+ tid: 'Tid',
90
+ workspaceId: 'WorkspaceId',
91
+ };
92
+ }
93
+
94
+ static types(): { [key: string]: any } {
95
+ return {
96
+ catalogName: 'string',
97
+ dbName: 'string',
98
+ ifNotExists: 'boolean',
99
+ needResult: 'boolean',
100
+ partitionInputs: { 'type': 'array', 'itemType': DLPartitionInput },
101
+ tableName: 'string',
102
+ tid: 'number',
103
+ workspaceId: 'number',
104
+ };
105
+ }
106
+
107
+ validate() {
108
+ if(Array.isArray(this.partitionInputs)) {
109
+ $dara.Model.validateArray(this.partitionInputs);
110
+ }
111
+ super.validate();
112
+ }
113
+
114
+ constructor(map?: { [key: string]: any }) {
115
+ super(map);
116
+ }
117
+ }
118
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { BatchCreateDataLakePartitionsResponseBody } from "./BatchCreateDataLakePartitionsResponseBody";
4
+
5
+
6
+ export class BatchCreateDataLakePartitionsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: BatchCreateDataLakePartitionsResponseBody;
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: BatchCreateDataLakePartitionsResponseBody,
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,78 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DLPartition } from "./Dlpartition";
4
+
5
+
6
+ export class BatchCreateDataLakePartitionsResponseBody extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * The error code.
10
+ *
11
+ * @example
12
+ * UnknownError
13
+ */
14
+ errorCode?: string;
15
+ /**
16
+ * @remarks
17
+ * The error message returned when the call fails.
18
+ *
19
+ * @example
20
+ * UnknownError
21
+ */
22
+ errorMessage?: string;
23
+ /**
24
+ * @remarks
25
+ * The list of created partitions. This field is returned when the **NeedResult** parameter is set to **true**.
26
+ */
27
+ partitions?: DLPartition[];
28
+ /**
29
+ * @remarks
30
+ * The request ID, which is used to locate logs and troubleshoot issues.
31
+ *
32
+ * @example
33
+ * 0C1CB646-1DE4-4AD0-B4A4-7D47DD52****
34
+ */
35
+ requestId?: string;
36
+ /**
37
+ * @remarks
38
+ * Indicates whether the request is successful. Valid values:
39
+ *
40
+ * - **true**: The request is successful.
41
+ * - **false**: The request fails.
42
+ *
43
+ * @example
44
+ * true
45
+ */
46
+ success?: string;
47
+ static names(): { [key: string]: string } {
48
+ return {
49
+ errorCode: 'ErrorCode',
50
+ errorMessage: 'ErrorMessage',
51
+ partitions: 'Partitions',
52
+ requestId: 'RequestId',
53
+ success: 'Success',
54
+ };
55
+ }
56
+
57
+ static types(): { [key: string]: any } {
58
+ return {
59
+ errorCode: 'string',
60
+ errorMessage: 'string',
61
+ partitions: { 'type': 'array', 'itemType': DLPartition },
62
+ requestId: 'string',
63
+ success: 'string',
64
+ };
65
+ }
66
+
67
+ validate() {
68
+ if(Array.isArray(this.partitions)) {
69
+ $dara.Model.validateArray(this.partitions);
70
+ }
71
+ super.validate();
72
+ }
73
+
74
+ constructor(map?: { [key: string]: any }) {
75
+ super(map);
76
+ }
77
+ }
78
+
@@ -0,0 +1,114 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class BatchCreateDataLakePartitionsShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The name of the data catalog.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * hive
14
+ */
15
+ catalogName?: string;
16
+ /**
17
+ * @remarks
18
+ * The name of the database.
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * default
24
+ */
25
+ dbName?: string;
26
+ /**
27
+ * @remarks
28
+ * Specifies whether to ignore the exception if the name of a new partition duplicates an existing partition name. Valid values:
29
+ *
30
+ * - **true**: The exception is ignored.
31
+ *
32
+ * - **false**: The exception is not ignored.
33
+ *
34
+ * @example
35
+ * true
36
+ */
37
+ ifNotExists?: boolean;
38
+ /**
39
+ * @remarks
40
+ * Specifies whether to return partition information. If this parameter is set to **true**, the Partitions field is returned.
41
+ *
42
+ * @example
43
+ * true
44
+ */
45
+ needResult?: boolean;
46
+ /**
47
+ * @remarks
48
+ * The information about the partitions to be added.
49
+ *
50
+ * This parameter is required.
51
+ */
52
+ partitionInputsShrink?: string;
53
+ /**
54
+ * @remarks
55
+ * The name of the table.
56
+ *
57
+ * This parameter is required.
58
+ *
59
+ * @example
60
+ * test_table
61
+ */
62
+ tableName?: string;
63
+ /**
64
+ * @remarks
65
+ * The tenant ID.
66
+ * > Move the pointer over the profile picture in the upper-right corner of the console to view the tenant ID. For more information, see [View tenant information](https://help.aliyun.com/document_detail/181330.html).
67
+ *
68
+ * @example
69
+ * 3****
70
+ */
71
+ tid?: number;
72
+ /**
73
+ * @remarks
74
+ * The workspace ID.
75
+ *
76
+ * @example
77
+ * 12****
78
+ */
79
+ workspaceId?: number;
80
+ static names(): { [key: string]: string } {
81
+ return {
82
+ catalogName: 'CatalogName',
83
+ dbName: 'DbName',
84
+ ifNotExists: 'IfNotExists',
85
+ needResult: 'NeedResult',
86
+ partitionInputsShrink: 'PartitionInputs',
87
+ tableName: 'TableName',
88
+ tid: 'Tid',
89
+ workspaceId: 'WorkspaceId',
90
+ };
91
+ }
92
+
93
+ static types(): { [key: string]: any } {
94
+ return {
95
+ catalogName: 'string',
96
+ dbName: 'string',
97
+ ifNotExists: 'boolean',
98
+ needResult: 'boolean',
99
+ partitionInputsShrink: 'string',
100
+ tableName: 'string',
101
+ tid: 'number',
102
+ workspaceId: 'number',
103
+ };
104
+ }
105
+
106
+ validate() {
107
+ super.validate();
108
+ }
109
+
110
+ constructor(map?: { [key: string]: any }) {
111
+ super(map);
112
+ }
113
+ }
114
+
@@ -70,7 +70,7 @@ export class DescribeDataAgentSkillDownloadResponseBody extends $dara.Model {
70
70
  data?: DescribeDataAgentSkillDownloadResponseBodyData;
71
71
  /**
72
72
  * @remarks
73
- * The error code. This parameter is returned when a request exception occurs.
73
+ * The error code returned when a request exception occurs.
74
74
  *
75
75
  * @example
76
76
  * InvalidTid
@@ -15,6 +15,7 @@ export class DmsGatewayOrder extends $dara.Model {
15
15
  payNum?: number;
16
16
  region?: string;
17
17
  state?: string;
18
+ tags?: string;
18
19
  static names(): { [key: string]: string } {
19
20
  return {
20
21
  bizType: 'BizType',
@@ -29,6 +30,7 @@ export class DmsGatewayOrder extends $dara.Model {
29
30
  payNum: 'PayNum',
30
31
  region: 'Region',
31
32
  state: 'State',
33
+ tags: 'Tags',
32
34
  };
33
35
  }
34
36
 
@@ -46,6 +48,7 @@ export class DmsGatewayOrder extends $dara.Model {
46
48
  payNum: 'number',
47
49
  region: 'string',
48
50
  state: 'string',
51
+ tags: 'string',
49
52
  };
50
53
  }
51
54
 
@@ -0,0 +1,36 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetMyAgenticNotificationChannelAuthorizeUrlRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The notification channel type. Currently, only FEISHU (the Chinese version of Lark) is supported. Specifying other values results in a parameter error.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * FEISHU
14
+ */
15
+ channel?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ channel: 'Channel',
19
+ };
20
+ }
21
+
22
+ static types(): { [key: string]: any } {
23
+ return {
24
+ channel: 'string',
25
+ };
26
+ }
27
+
28
+ validate() {
29
+ super.validate();
30
+ }
31
+
32
+ constructor(map?: { [key: string]: any }) {
33
+ super(map);
34
+ }
35
+ }
36
+