@alicloud/adb20211201 5.1.1 → 5.1.3

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 (38) hide show
  1. package/dist/client.d.ts +18 -12
  2. package/dist/client.js +21 -27
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddKnowledgeFileRequest.d.ts +7 -2
  5. package/dist/models/AddKnowledgeFileRequest.js +2 -0
  6. package/dist/models/AddKnowledgeFileRequest.js.map +1 -1
  7. package/dist/models/CreateDbresourceGroupRequest.d.ts +69 -15
  8. package/dist/models/CreateDbresourceGroupRequest.js +29 -1
  9. package/dist/models/CreateDbresourceGroupRequest.js.map +1 -1
  10. package/dist/models/CreateDbresourceGroupShrinkRequest.d.ts +13 -9
  11. package/dist/models/CreateDbresourceGroupShrinkRequest.js.map +1 -1
  12. package/dist/models/DescribeDbresourceGroupRequest.d.ts +6 -6
  13. package/dist/models/DescribeDbresourceGroupResponseBody.d.ts +56 -15
  14. package/dist/models/DescribeDbresourceGroupResponseBody.js +2 -0
  15. package/dist/models/DescribeDbresourceGroupResponseBody.js.map +1 -1
  16. package/dist/models/GetKnowledgeRecallRequest.d.ts +3 -0
  17. package/dist/models/GetKnowledgeRecallRequest.js.map +1 -1
  18. package/dist/models/GetKnowledgeRecallResponseBody.d.ts +1 -1
  19. package/dist/models/ModifyDbresourceGroupRequest.d.ts +91 -67
  20. package/dist/models/ModifyDbresourceGroupRequest.js +2 -0
  21. package/dist/models/ModifyDbresourceGroupRequest.js.map +1 -1
  22. package/dist/models/ModifyDbresourceGroupShrinkRequest.d.ts +34 -41
  23. package/dist/models/ModifyDbresourceGroupShrinkRequest.js.map +1 -1
  24. package/dist/models/model.d.ts +1 -0
  25. package/dist/models/model.js +30 -28
  26. package/dist/models/model.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/client.ts +22 -27
  29. package/src/models/AddKnowledgeFileRequest.ts +9 -2
  30. package/src/models/CreateDbresourceGroupRequest.ts +88 -15
  31. package/src/models/CreateDbresourceGroupShrinkRequest.ts +13 -9
  32. package/src/models/DescribeDbresourceGroupRequest.ts +6 -6
  33. package/src/models/DescribeDbresourceGroupResponseBody.ts +58 -15
  34. package/src/models/GetKnowledgeRecallRequest.ts +3 -0
  35. package/src/models/GetKnowledgeRecallResponseBody.ts +1 -1
  36. package/src/models/ModifyDbresourceGroupRequest.ts +93 -67
  37. package/src/models/ModifyDbresourceGroupShrinkRequest.ts +34 -41
  38. package/src/models/model.ts +1 -0
package/dist/client.d.ts CHANGED
@@ -9,7 +9,7 @@ export default class Client extends OpenApi {
9
9
  [key: string]: string;
10
10
  }, endpoint: string): string;
11
11
  /**
12
- * Adds a knowledge base document.
12
+ * Adds a document to a knowledge base.
13
13
  *
14
14
  * @param request - AddKnowledgeFileRequest
15
15
  * @param runtime - runtime options for this request RuntimeOptions
@@ -17,7 +17,7 @@ export default class Client extends OpenApi {
17
17
  */
18
18
  addKnowledgeFileWithOptions(request: $_model.AddKnowledgeFileRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AddKnowledgeFileResponse>;
19
19
  /**
20
- * Adds a knowledge base document.
20
+ * Adds a document to a knowledge base.
21
21
  *
22
22
  * @param request - AddKnowledgeFileRequest
23
23
  * @returns AddKnowledgeFileResponse
@@ -430,7 +430,10 @@ export default class Client extends OpenApi {
430
430
  * Creates a backup set immediately.
431
431
  *
432
432
  * @remarks
433
- * *Before you use this operation, make sure that you fully understand the billing methods and [pricing](https://www.aliyun.com/price/product#/ads/detail/ads_pre) of AnalyticDB for MySQL.** Temporary backups and regular backups have the same pricing and backup set retention period.
433
+ * *Before using this operation, make sure that you fully understand the billing methods and <props="china">[pricing](https://www.aliyun.com/price/product#/ads/detail/ads_pre
434
+ * )
435
+ * <props="intl">[pricing](https://www.alibabacloud.com/zh/zh/pricing-calculator?_p_lc=1#/) of AnalyticDB for MySQL.**
436
+ * Temporary backups and regular backups have the same pricing and backup set retention period.
434
437
  *
435
438
  * @param request - CreateBackupRequest
436
439
  * @param runtime - runtime options for this request RuntimeOptions
@@ -441,7 +444,10 @@ export default class Client extends OpenApi {
441
444
  * Creates a backup set immediately.
442
445
  *
443
446
  * @remarks
444
- * *Before you use this operation, make sure that you fully understand the billing methods and [pricing](https://www.aliyun.com/price/product#/ads/detail/ads_pre) of AnalyticDB for MySQL.** Temporary backups and regular backups have the same pricing and backup set retention period.
447
+ * *Before using this operation, make sure that you fully understand the billing methods and <props="china">[pricing](https://www.aliyun.com/price/product#/ads/detail/ads_pre
448
+ * )
449
+ * <props="intl">[pricing](https://www.alibabacloud.com/zh/zh/pricing-calculator?_p_lc=1#/) of AnalyticDB for MySQL.**
450
+ * Temporary backups and regular backups have the same pricing and backup set retention period.
445
451
  *
446
452
  * @param request - CreateBackupRequest
447
453
  * @returns CreateBackupResponse
@@ -469,10 +475,10 @@ export default class Client extends OpenApi {
469
475
  */
470
476
  createDBCluster(request: $_model.CreateDBClusterRequest): Promise<$_model.CreateDBClusterResponse>;
471
477
  /**
472
- * Creates a resource group for a specified Dedicated Edition, Basic Edition, or Data Lakehouse Edition cluster.
478
+ * Creates a resource group for a specified Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
473
479
  *
474
480
  * @remarks
475
- * For information about the service registration of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
481
+ * For the service registration of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
476
482
  *
477
483
  * @param tmpReq - CreateDBResourceGroupRequest
478
484
  * @param runtime - runtime options for this request RuntimeOptions
@@ -480,10 +486,10 @@ export default class Client extends OpenApi {
480
486
  */
481
487
  createDBResourceGroupWithOptions(tmpReq: $_model.CreateDBResourceGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateDBResourceGroupResponse>;
482
488
  /**
483
- * Creates a resource group for a specified Dedicated Edition, Basic Edition, or Data Lakehouse Edition cluster.
489
+ * Creates a resource group for a specified Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
484
490
  *
485
491
  * @remarks
486
- * For information about the service registration of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
492
+ * For the service registration of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
487
493
  *
488
494
  * @param request - CreateDBResourceGroupRequest
489
495
  * @returns CreateDBResourceGroupResponse
@@ -1820,7 +1826,7 @@ export default class Client extends OpenApi {
1820
1826
  * Queries the resource group information of a cluster.
1821
1827
  *
1822
1828
  * @remarks
1823
- * For information about the service registration of the current service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
1829
+ * For the service registration of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
1824
1830
  *
1825
1831
  * @param request - DescribeDBResourceGroupRequest
1826
1832
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1831,7 +1837,7 @@ export default class Client extends OpenApi {
1831
1837
  * Queries the resource group information of a cluster.
1832
1838
  *
1833
1839
  * @remarks
1834
- * For information about the service registration of the current service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
1840
+ * For the service registration of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
1835
1841
  *
1836
1842
  * @param request - DescribeDBResourceGroupRequest
1837
1843
  * @returns DescribeDBResourceGroupResponse
@@ -4357,7 +4363,7 @@ export default class Client extends OpenApi {
4357
4363
  * Changes the resource group of a cluster.
4358
4364
  *
4359
4365
  * @remarks
4360
- * For service endpoints, see [endpoints](https://help.aliyun.com/document_detail/612373.html).
4366
+ * For information about the endpoints of this service, see [Service registration](https://help.aliyun.com/document_detail/612373.html).
4361
4367
  *
4362
4368
  * @param tmpReq - ModifyDBResourceGroupRequest
4363
4369
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4368,7 +4374,7 @@ export default class Client extends OpenApi {
4368
4374
  * Changes the resource group of a cluster.
4369
4375
  *
4370
4376
  * @remarks
4371
- * For service endpoints, see [endpoints](https://help.aliyun.com/document_detail/612373.html).
4377
+ * For information about the endpoints of this service, see [Service registration](https://help.aliyun.com/document_detail/612373.html).
4372
4378
  *
4373
4379
  * @param request - ModifyDBResourceGroupRequest
4374
4380
  * @returns ModifyDBResourceGroupResponse
package/dist/client.js CHANGED
@@ -94,21 +94,6 @@ class Client extends openapi_core_1.default {
94
94
  'eu-west-1-oxs': "adb.ap-northeast-1.aliyuncs.com",
95
95
  'me-east-1': "adb.ap-northeast-1.aliyuncs.com",
96
96
  'rus-west-1-pop': "adb.ap-northeast-1.aliyuncs.com",
97
- 'cn-chengdu': "adb.cn-chengdu.aliyuncs.com",
98
- 'cn-wulanchabu': "adb.cn-wulanchabu.aliyuncs.com",
99
- 'cn-zhangjiakou': "adb.cn-zhangjiakou.aliyuncs.com",
100
- 'ap-northeast-2': "adb.ap-northeast-2.aliyuncs.com",
101
- 'ap-northeast-1': "adb.ap-northeast-1.aliyuncs.com",
102
- 'cn-guangzhou': "adb.cn-guangzhou.aliyuncs.com",
103
- 'ap-southeast-3': "adb.ap-southeast-3.aliyuncs.com",
104
- 'cn-huhehaote': "adb.cn-huhehaote.aliyuncs.com",
105
- 'ap-southeast-5': "adb.ap-southeast-5.aliyuncs.com",
106
- 'ap-southeast-6': "adb.ap-southeast-6.aliyuncs.com",
107
- 'ap-southeast-7': "adb.ap-southeast-7.aliyuncs.com",
108
- 'eu-west-1': "adb.eu-west-1.aliyuncs.com",
109
- 'eu-central-1': "adb.eu-central-1.aliyuncs.com",
110
- 'na-south-1': "adb.na-south-1.aliyuncs.com",
111
- 'me-central-1': "adb.me-central-1.aliyuncs.com",
112
97
  };
113
98
  this.checkConfig(config);
114
99
  this._endpoint = this.getEndpoint("adb", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -123,7 +108,7 @@ class Client extends openapi_core_1.default {
123
108
  return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
124
109
  }
125
110
  /**
126
- * Adds a knowledge base document.
111
+ * Adds a document to a knowledge base.
127
112
  *
128
113
  * @param request - AddKnowledgeFileRequest
129
114
  * @param runtime - runtime options for this request RuntimeOptions
@@ -144,6 +129,9 @@ class Client extends openapi_core_1.default {
144
129
  if (!$dara.isNull(request.isDir)) {
145
130
  query["IsDir"] = request.isDir;
146
131
  }
132
+ if (!$dara.isNull(request.priority)) {
133
+ query["Priority"] = request.priority;
134
+ }
147
135
  if (!$dara.isNull(request.tags)) {
148
136
  query["Tags"] = request.tags;
149
137
  }
@@ -167,7 +155,7 @@ class Client extends openapi_core_1.default {
167
155
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddKnowledgeFileResponse({}));
168
156
  }
169
157
  /**
170
- * Adds a knowledge base document.
158
+ * Adds a document to a knowledge base.
171
159
  *
172
160
  * @param request - AddKnowledgeFileRequest
173
161
  * @returns AddKnowledgeFileResponse
@@ -1575,7 +1563,10 @@ class Client extends openapi_core_1.default {
1575
1563
  * Creates a backup set immediately.
1576
1564
  *
1577
1565
  * @remarks
1578
- * *Before you use this operation, make sure that you fully understand the billing methods and [pricing](https://www.aliyun.com/price/product#/ads/detail/ads_pre) of AnalyticDB for MySQL.** Temporary backups and regular backups have the same pricing and backup set retention period.
1566
+ * *Before using this operation, make sure that you fully understand the billing methods and <props="china">[pricing](https://www.aliyun.com/price/product#/ads/detail/ads_pre
1567
+ * )
1568
+ * <props="intl">[pricing](https://www.alibabacloud.com/zh/zh/pricing-calculator?_p_lc=1#/) of AnalyticDB for MySQL.**
1569
+ * Temporary backups and regular backups have the same pricing and backup set retention period.
1579
1570
  *
1580
1571
  * @param request - CreateBackupRequest
1581
1572
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1622,7 +1613,10 @@ class Client extends openapi_core_1.default {
1622
1613
  * Creates a backup set immediately.
1623
1614
  *
1624
1615
  * @remarks
1625
- * *Before you use this operation, make sure that you fully understand the billing methods and [pricing](https://www.aliyun.com/price/product#/ads/detail/ads_pre) of AnalyticDB for MySQL.** Temporary backups and regular backups have the same pricing and backup set retention period.
1616
+ * *Before using this operation, make sure that you fully understand the billing methods and <props="china">[pricing](https://www.aliyun.com/price/product#/ads/detail/ads_pre
1617
+ * )
1618
+ * <props="intl">[pricing](https://www.alibabacloud.com/zh/zh/pricing-calculator?_p_lc=1#/) of AnalyticDB for MySQL.**
1619
+ * Temporary backups and regular backups have the same pricing and backup set retention period.
1626
1620
  *
1627
1621
  * @param request - CreateBackupRequest
1628
1622
  * @returns CreateBackupResponse
@@ -1767,10 +1761,10 @@ class Client extends openapi_core_1.default {
1767
1761
  return await this.createDBClusterWithOptions(request, runtime);
1768
1762
  }
1769
1763
  /**
1770
- * Creates a resource group for a specified Dedicated Edition, Basic Edition, or Data Lakehouse Edition cluster.
1764
+ * Creates a resource group for a specified Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
1771
1765
  *
1772
1766
  * @remarks
1773
- * For information about the service registration of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
1767
+ * For the service registration of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
1774
1768
  *
1775
1769
  * @param tmpReq - CreateDBResourceGroupRequest
1776
1770
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1885,10 +1879,10 @@ class Client extends openapi_core_1.default {
1885
1879
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateDBResourceGroupResponse({}));
1886
1880
  }
1887
1881
  /**
1888
- * Creates a resource group for a specified Dedicated Edition, Basic Edition, or Data Lakehouse Edition cluster.
1882
+ * Creates a resource group for a specified Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
1889
1883
  *
1890
1884
  * @remarks
1891
- * For information about the service registration of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
1885
+ * For the service registration of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
1892
1886
  *
1893
1887
  * @param request - CreateDBResourceGroupRequest
1894
1888
  * @returns CreateDBResourceGroupResponse
@@ -5686,7 +5680,7 @@ class Client extends openapi_core_1.default {
5686
5680
  * Queries the resource group information of a cluster.
5687
5681
  *
5688
5682
  * @remarks
5689
- * For information about the service registration of the current service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
5683
+ * For the service registration of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
5690
5684
  *
5691
5685
  * @param request - DescribeDBResourceGroupRequest
5692
5686
  * @param runtime - runtime options for this request RuntimeOptions
@@ -5730,7 +5724,7 @@ class Client extends openapi_core_1.default {
5730
5724
  * Queries the resource group information of a cluster.
5731
5725
  *
5732
5726
  * @remarks
5733
- * For information about the service registration of the current service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
5727
+ * For the service registration of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
5734
5728
  *
5735
5729
  * @param request - DescribeDBResourceGroupRequest
5736
5730
  * @returns DescribeDBResourceGroupResponse
@@ -12888,7 +12882,7 @@ class Client extends openapi_core_1.default {
12888
12882
  * Changes the resource group of a cluster.
12889
12883
  *
12890
12884
  * @remarks
12891
- * For service endpoints, see [endpoints](https://help.aliyun.com/document_detail/612373.html).
12885
+ * For information about the endpoints of this service, see [Service registration](https://help.aliyun.com/document_detail/612373.html).
12892
12886
  *
12893
12887
  * @param tmpReq - ModifyDBResourceGroupRequest
12894
12888
  * @param runtime - runtime options for this request RuntimeOptions
@@ -13000,7 +12994,7 @@ class Client extends openapi_core_1.default {
13000
12994
  * Changes the resource group of a cluster.
13001
12995
  *
13002
12996
  * @remarks
13003
- * For service endpoints, see [endpoints](https://help.aliyun.com/document_detail/612373.html).
12997
+ * For information about the endpoints of this service, see [Service registration](https://help.aliyun.com/document_detail/612373.html).
13004
12998
  *
13005
12999
  * @param request - ModifyDBResourceGroupRequest
13006
13000
  * @returns ModifyDBResourceGroupResponse