@alicloud/adb20211201 5.1.2 → 5.1.4
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.
- package/dist/client.d.ts +40 -34
- package/dist/client.js +91 -49
- package/dist/client.js.map +1 -1
- package/dist/models/AddKnowledgeFileRequest.d.ts +7 -2
- package/dist/models/AddKnowledgeFileRequest.js +2 -0
- package/dist/models/AddKnowledgeFileRequest.js.map +1 -1
- package/dist/models/CreateAccountRequest.d.ts +8 -4
- package/dist/models/CreateAccountRequest.js +14 -0
- package/dist/models/CreateAccountRequest.js.map +1 -1
- package/dist/models/CreateAccountShrinkRequest.d.ts +8 -4
- package/dist/models/CreateAccountShrinkRequest.js +8 -0
- package/dist/models/CreateAccountShrinkRequest.js.map +1 -1
- package/dist/models/CreateDbresourceGroupRequest.d.ts +27 -27
- package/dist/models/CreateDbresourceGroupShrinkRequest.d.ts +13 -13
- package/dist/models/DeleteAccountRequest.d.ts +7 -6
- package/dist/models/DeleteAccountRequest.js +2 -0
- package/dist/models/DeleteAccountRequest.js.map +1 -1
- package/dist/models/DescribeAccountsRequest.d.ts +7 -4
- package/dist/models/DescribeAccountsRequest.js +2 -0
- package/dist/models/DescribeAccountsRequest.js.map +1 -1
- package/dist/models/DescribeAccountsResponseBody.d.ts +43 -0
- package/dist/models/DescribeAccountsResponseBody.js +84 -1
- package/dist/models/DescribeAccountsResponseBody.js.map +1 -1
- package/dist/models/DescribeDbclusterPerformanceRequest.d.ts +9 -11
- package/dist/models/DescribeDbclusterPerformanceRequest.js.map +1 -1
- package/dist/models/DescribeDbclusterPerformanceResponseBody.d.ts +9 -10
- package/dist/models/DescribeDbclusterPerformanceResponseBody.js.map +1 -1
- package/dist/models/GetKnowledgeRecallRequest.d.ts +3 -0
- package/dist/models/GetKnowledgeRecallRequest.js.map +1 -1
- package/dist/models/GetKnowledgeRecallResponseBody.d.ts +1 -1
- package/dist/models/GetTableResponseBody.d.ts +1 -1
- package/dist/models/ModifyAccountDescriptionRequest.d.ts +1 -0
- package/dist/models/ModifyAccountDescriptionRequest.js +2 -0
- package/dist/models/ModifyAccountDescriptionRequest.js.map +1 -1
- package/dist/models/ModifyAccountPrivilegesRequest.d.ts +13 -10
- package/dist/models/ModifyAccountPrivilegesRequest.js +14 -0
- package/dist/models/ModifyAccountPrivilegesRequest.js.map +1 -1
- package/dist/models/ModifyAccountPrivilegesShrinkRequest.d.ts +7 -4
- package/dist/models/ModifyAccountPrivilegesShrinkRequest.js +8 -0
- package/dist/models/ModifyAccountPrivilegesShrinkRequest.js.map +1 -1
- package/dist/models/ModifyAuditLogConfigRequest.d.ts +11 -13
- package/dist/models/ModifyAuditLogConfigRequest.js.map +1 -1
- package/dist/models/ModifyAuditLogConfigResponseBody.d.ts +3 -4
- package/dist/models/ModifyAuditLogConfigResponseBody.js.map +1 -1
- package/dist/models/ModifyBackupPolicyRequest.d.ts +21 -25
- package/dist/models/ModifyBackupPolicyRequest.js.map +1 -1
- package/dist/models/ModifyDbresourceGroupRequest.d.ts +31 -31
- package/dist/models/ModifyDbresourceGroupShrinkRequest.d.ts +19 -19
- package/dist/models/ResetAccountPasswordRequest.d.ts +1 -0
- package/dist/models/ResetAccountPasswordRequest.js +2 -0
- package/dist/models/ResetAccountPasswordRequest.js.map +1 -1
- package/dist/models/model.d.ts +3 -0
- package/dist/models/model.js +34 -28
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +108 -49
- package/src/models/AddKnowledgeFileRequest.ts +9 -2
- package/src/models/CreateAccountRequest.ts +22 -4
- package/src/models/CreateAccountShrinkRequest.ts +16 -4
- package/src/models/CreateDbresourceGroupRequest.ts +27 -27
- package/src/models/CreateDbresourceGroupShrinkRequest.ts +13 -13
- package/src/models/DeleteAccountRequest.ts +9 -6
- package/src/models/DescribeAccountsRequest.ts +9 -4
- package/src/models/DescribeAccountsResponseBody.ts +99 -0
- package/src/models/DescribeDbclusterPerformanceRequest.ts +9 -11
- package/src/models/DescribeDbclusterPerformanceResponseBody.ts +9 -10
- package/src/models/GetKnowledgeRecallRequest.ts +3 -0
- package/src/models/GetKnowledgeRecallResponseBody.ts +1 -1
- package/src/models/GetTableResponseBody.ts +1 -1
- package/src/models/ModifyAccountDescriptionRequest.ts +3 -0
- package/src/models/ModifyAccountPrivilegesRequest.ts +27 -10
- package/src/models/ModifyAccountPrivilegesShrinkRequest.ts +15 -4
- package/src/models/ModifyAuditLogConfigRequest.ts +11 -13
- package/src/models/ModifyAuditLogConfigResponseBody.ts +3 -4
- package/src/models/ModifyBackupPolicyRequest.ts +21 -25
- package/src/models/ModifyDbresourceGroupRequest.ts +31 -31
- package/src/models/ModifyDbresourceGroupShrinkRequest.ts +19 -19
- package/src/models/ResetAccountPasswordRequest.ts +3 -0
- package/src/models/model.ts +3 -0
package/src/client.ts
CHANGED
|
@@ -57,21 +57,6 @@ export default class Client extends OpenApi {
|
|
|
57
57
|
'eu-west-1-oxs': "adb.ap-northeast-1.aliyuncs.com",
|
|
58
58
|
'me-east-1': "adb.ap-northeast-1.aliyuncs.com",
|
|
59
59
|
'rus-west-1-pop': "adb.ap-northeast-1.aliyuncs.com",
|
|
60
|
-
'cn-chengdu': "adb.cn-chengdu.aliyuncs.com",
|
|
61
|
-
'cn-wulanchabu': "adb.cn-wulanchabu.aliyuncs.com",
|
|
62
|
-
'cn-zhangjiakou': "adb.cn-zhangjiakou.aliyuncs.com",
|
|
63
|
-
'ap-northeast-2': "adb.ap-northeast-2.aliyuncs.com",
|
|
64
|
-
'ap-northeast-1': "adb.ap-northeast-1.aliyuncs.com",
|
|
65
|
-
'cn-guangzhou': "adb.cn-guangzhou.aliyuncs.com",
|
|
66
|
-
'ap-southeast-3': "adb.ap-southeast-3.aliyuncs.com",
|
|
67
|
-
'cn-huhehaote': "adb.cn-huhehaote.aliyuncs.com",
|
|
68
|
-
'ap-southeast-5': "adb.ap-southeast-5.aliyuncs.com",
|
|
69
|
-
'ap-southeast-6': "adb.ap-southeast-6.aliyuncs.com",
|
|
70
|
-
'ap-southeast-7': "adb.ap-southeast-7.aliyuncs.com",
|
|
71
|
-
'eu-west-1': "adb.eu-west-1.aliyuncs.com",
|
|
72
|
-
'eu-central-1': "adb.eu-central-1.aliyuncs.com",
|
|
73
|
-
'na-south-1': "adb.na-south-1.aliyuncs.com",
|
|
74
|
-
'me-central-1': "adb.me-central-1.aliyuncs.com",
|
|
75
60
|
};
|
|
76
61
|
this.checkConfig(config);
|
|
77
62
|
this._endpoint = this.getEndpoint("adb", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
@@ -91,7 +76,7 @@ export default class Client extends OpenApi {
|
|
|
91
76
|
}
|
|
92
77
|
|
|
93
78
|
/**
|
|
94
|
-
* Adds a knowledge base
|
|
79
|
+
* Adds a document to a knowledge base.
|
|
95
80
|
*
|
|
96
81
|
* @param request - AddKnowledgeFileRequest
|
|
97
82
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -116,6 +101,10 @@ export default class Client extends OpenApi {
|
|
|
116
101
|
query["IsDir"] = request.isDir;
|
|
117
102
|
}
|
|
118
103
|
|
|
104
|
+
if (!$dara.isNull(request.priority)) {
|
|
105
|
+
query["Priority"] = request.priority;
|
|
106
|
+
}
|
|
107
|
+
|
|
119
108
|
if (!$dara.isNull(request.tags)) {
|
|
120
109
|
query["Tags"] = request.tags;
|
|
121
110
|
}
|
|
@@ -142,7 +131,7 @@ export default class Client extends OpenApi {
|
|
|
142
131
|
}
|
|
143
132
|
|
|
144
133
|
/**
|
|
145
|
-
* Adds a knowledge base
|
|
134
|
+
* Adds a document to a knowledge base.
|
|
146
135
|
*
|
|
147
136
|
* @param request - AddKnowledgeFileRequest
|
|
148
137
|
* @returns AddKnowledgeFileResponse
|
|
@@ -1002,7 +991,7 @@ export default class Client extends OpenApi {
|
|
|
1002
991
|
* Creates a database account for a cluster.
|
|
1003
992
|
*
|
|
1004
993
|
* @remarks
|
|
1005
|
-
* For information about the endpoint of
|
|
994
|
+
* For information about the endpoint of the current service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
1006
995
|
*
|
|
1007
996
|
* @param tmpReq - CreateAccountRequest
|
|
1008
997
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1012,6 +1001,14 @@ export default class Client extends OpenApi {
|
|
|
1012
1001
|
tmpReq.validate();
|
|
1013
1002
|
let request = new $_model.CreateAccountShrinkRequest({ });
|
|
1014
1003
|
OpenApiUtil.convert(tmpReq, request);
|
|
1004
|
+
if (!$dara.isNull(tmpReq.promqlInsertPrivileges)) {
|
|
1005
|
+
request.promqlInsertPrivilegesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.promqlInsertPrivileges, "PromqlInsertPrivileges", "json");
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
if (!$dara.isNull(tmpReq.promqlSelectPrivileges)) {
|
|
1009
|
+
request.promqlSelectPrivilegesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.promqlSelectPrivileges, "PromqlSelectPrivileges", "json");
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1015
1012
|
if (!$dara.isNull(tmpReq.ramUserList)) {
|
|
1016
1013
|
request.ramUserListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.ramUserList, "RamUserList", "json");
|
|
1017
1014
|
}
|
|
@@ -1041,10 +1038,26 @@ export default class Client extends OpenApi {
|
|
|
1041
1038
|
query["Engine"] = request.engine;
|
|
1042
1039
|
}
|
|
1043
1040
|
|
|
1041
|
+
if (!$dara.isNull(request.promqlInsertPrivilegesShrink)) {
|
|
1042
|
+
query["PromqlInsertPrivileges"] = request.promqlInsertPrivilegesShrink;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
if (!$dara.isNull(request.promqlSelectNodePercentage)) {
|
|
1046
|
+
query["PromqlSelectNodePercentage"] = request.promqlSelectNodePercentage;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
if (!$dara.isNull(request.promqlSelectPrivilegesShrink)) {
|
|
1050
|
+
query["PromqlSelectPrivileges"] = request.promqlSelectPrivilegesShrink;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1044
1053
|
if (!$dara.isNull(request.ramUserListShrink)) {
|
|
1045
1054
|
query["RamUserList"] = request.ramUserListShrink;
|
|
1046
1055
|
}
|
|
1047
1056
|
|
|
1057
|
+
if (!$dara.isNull(request.resourceGroupName)) {
|
|
1058
|
+
query["ResourceGroupName"] = request.resourceGroupName;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1048
1061
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1049
1062
|
query: OpenApiUtil.query(query),
|
|
1050
1063
|
});
|
|
@@ -1066,7 +1079,7 @@ export default class Client extends OpenApi {
|
|
|
1066
1079
|
* Creates a database account for a cluster.
|
|
1067
1080
|
*
|
|
1068
1081
|
* @remarks
|
|
1069
|
-
* For information about the endpoint of
|
|
1082
|
+
* For information about the endpoint of the current service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
1070
1083
|
*
|
|
1071
1084
|
* @param request - CreateAccountRequest
|
|
1072
1085
|
* @returns CreateAccountResponse
|
|
@@ -1772,7 +1785,10 @@ export default class Client extends OpenApi {
|
|
|
1772
1785
|
* Creates a backup set immediately.
|
|
1773
1786
|
*
|
|
1774
1787
|
* @remarks
|
|
1775
|
-
* *Before
|
|
1788
|
+
* *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
|
|
1789
|
+
* )
|
|
1790
|
+
* <props="intl">[pricing](https://www.alibabacloud.com/zh/zh/pricing-calculator?_p_lc=1#/) of AnalyticDB for MySQL.**
|
|
1791
|
+
* Temporary backups and regular backups have the same pricing and backup set retention period.
|
|
1776
1792
|
*
|
|
1777
1793
|
* @param request - CreateBackupRequest
|
|
1778
1794
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1826,7 +1842,10 @@ export default class Client extends OpenApi {
|
|
|
1826
1842
|
* Creates a backup set immediately.
|
|
1827
1843
|
*
|
|
1828
1844
|
* @remarks
|
|
1829
|
-
* *Before
|
|
1845
|
+
* *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
|
|
1846
|
+
* )
|
|
1847
|
+
* <props="intl">[pricing](https://www.alibabacloud.com/zh/zh/pricing-calculator?_p_lc=1#/) of AnalyticDB for MySQL.**
|
|
1848
|
+
* Temporary backups and regular backups have the same pricing and backup set retention period.
|
|
1830
1849
|
*
|
|
1831
1850
|
* @param request - CreateBackupRequest
|
|
1832
1851
|
* @returns CreateBackupResponse
|
|
@@ -2008,7 +2027,7 @@ export default class Client extends OpenApi {
|
|
|
2008
2027
|
* Creates a resource group for a specified Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
|
|
2009
2028
|
*
|
|
2010
2029
|
* @remarks
|
|
2011
|
-
* For the
|
|
2030
|
+
* For the endpoints of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
2012
2031
|
*
|
|
2013
2032
|
* @param tmpReq - CreateDBResourceGroupRequest
|
|
2014
2033
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2156,7 +2175,7 @@ export default class Client extends OpenApi {
|
|
|
2156
2175
|
* Creates a resource group for a specified Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
|
|
2157
2176
|
*
|
|
2158
2177
|
* @remarks
|
|
2159
|
-
* For the
|
|
2178
|
+
* For the endpoints of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
2160
2179
|
*
|
|
2161
2180
|
* @param request - CreateDBResourceGroupRequest
|
|
2162
2181
|
* @returns CreateDBResourceGroupResponse
|
|
@@ -2751,10 +2770,10 @@ export default class Client extends OpenApi {
|
|
|
2751
2770
|
}
|
|
2752
2771
|
|
|
2753
2772
|
/**
|
|
2754
|
-
* Deletes a database account from
|
|
2773
|
+
* Deletes a database account from a cluster.
|
|
2755
2774
|
*
|
|
2756
2775
|
* @remarks
|
|
2757
|
-
* For
|
|
2776
|
+
* For the endpoint of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
2758
2777
|
*
|
|
2759
2778
|
* @param request - DeleteAccountRequest
|
|
2760
2779
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2775,6 +2794,10 @@ export default class Client extends OpenApi {
|
|
|
2775
2794
|
query["Engine"] = request.engine;
|
|
2776
2795
|
}
|
|
2777
2796
|
|
|
2797
|
+
if (!$dara.isNull(request.resourceGroupName)) {
|
|
2798
|
+
query["ResourceGroupName"] = request.resourceGroupName;
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2778
2801
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2779
2802
|
query: OpenApiUtil.query(query),
|
|
2780
2803
|
});
|
|
@@ -2793,10 +2816,10 @@ export default class Client extends OpenApi {
|
|
|
2793
2816
|
}
|
|
2794
2817
|
|
|
2795
2818
|
/**
|
|
2796
|
-
* Deletes a database account from
|
|
2819
|
+
* Deletes a database account from a cluster.
|
|
2797
2820
|
*
|
|
2798
2821
|
* @remarks
|
|
2799
|
-
* For
|
|
2822
|
+
* For the endpoint of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
2800
2823
|
*
|
|
2801
2824
|
* @param request - DeleteAccountRequest
|
|
2802
2825
|
* @returns DeleteAccountResponse
|
|
@@ -3954,7 +3977,7 @@ export default class Client extends OpenApi {
|
|
|
3954
3977
|
* Queries the database accounts of a cluster.
|
|
3955
3978
|
*
|
|
3956
3979
|
* @remarks
|
|
3957
|
-
* For the
|
|
3980
|
+
* For the service registration information of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
3958
3981
|
*
|
|
3959
3982
|
* @param request - DescribeAccountsRequest
|
|
3960
3983
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3979,6 +4002,10 @@ export default class Client extends OpenApi {
|
|
|
3979
4002
|
query["OwnerId"] = request.ownerId;
|
|
3980
4003
|
}
|
|
3981
4004
|
|
|
4005
|
+
if (!$dara.isNull(request.resourceGroupName)) {
|
|
4006
|
+
query["ResourceGroupName"] = request.resourceGroupName;
|
|
4007
|
+
}
|
|
4008
|
+
|
|
3982
4009
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3983
4010
|
query: OpenApiUtil.query(query),
|
|
3984
4011
|
});
|
|
@@ -4000,7 +4027,7 @@ export default class Client extends OpenApi {
|
|
|
4000
4027
|
* Queries the database accounts of a cluster.
|
|
4001
4028
|
*
|
|
4002
4029
|
* @remarks
|
|
4003
|
-
* For the
|
|
4030
|
+
* For the service registration information of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
4004
4031
|
*
|
|
4005
4032
|
* @param request - DescribeAccountsRequest
|
|
4006
4033
|
* @returns DescribeAccountsResponse
|
|
@@ -6113,10 +6140,10 @@ export default class Client extends OpenApi {
|
|
|
6113
6140
|
}
|
|
6114
6141
|
|
|
6115
6142
|
/**
|
|
6116
|
-
*
|
|
6143
|
+
* Queries the performance data of a specified cluster.
|
|
6117
6144
|
*
|
|
6118
6145
|
* @remarks
|
|
6119
|
-
* For the
|
|
6146
|
+
* For the endpoint of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
6120
6147
|
*
|
|
6121
6148
|
* @param request - DescribeDBClusterPerformanceRequest
|
|
6122
6149
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -6167,10 +6194,10 @@ export default class Client extends OpenApi {
|
|
|
6167
6194
|
}
|
|
6168
6195
|
|
|
6169
6196
|
/**
|
|
6170
|
-
*
|
|
6197
|
+
* Queries the performance data of a specified cluster.
|
|
6171
6198
|
*
|
|
6172
6199
|
* @remarks
|
|
6173
|
-
* For the
|
|
6200
|
+
* For the endpoint of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
6174
6201
|
*
|
|
6175
6202
|
* @param request - DescribeDBClusterPerformanceRequest
|
|
6176
6203
|
* @returns DescribeDBClusterPerformanceResponse
|
|
@@ -11956,8 +11983,8 @@ export default class Client extends OpenApi {
|
|
|
11956
11983
|
* Retrieves table information.
|
|
11957
11984
|
*
|
|
11958
11985
|
* @remarks
|
|
11959
|
-
* - Public endpoint of
|
|
11960
|
-
* - VPC endpoint of
|
|
11986
|
+
* - Public endpoint of a region: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
|
|
11987
|
+
* - VPC endpoint of a region: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
|
|
11961
11988
|
*
|
|
11962
11989
|
* @param request - GetTableRequest
|
|
11963
11990
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -12003,8 +12030,8 @@ export default class Client extends OpenApi {
|
|
|
12003
12030
|
* Retrieves table information.
|
|
12004
12031
|
*
|
|
12005
12032
|
* @remarks
|
|
12006
|
-
* - Public endpoint of
|
|
12007
|
-
* - VPC endpoint of
|
|
12033
|
+
* - Public endpoint of a region: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
|
|
12034
|
+
* - VPC endpoint of a region: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
|
|
12008
12035
|
*
|
|
12009
12036
|
* @param request - GetTableRequest
|
|
12010
12037
|
* @returns GetTableResponse
|
|
@@ -13354,6 +13381,10 @@ export default class Client extends OpenApi {
|
|
|
13354
13381
|
query["Engine"] = request.engine;
|
|
13355
13382
|
}
|
|
13356
13383
|
|
|
13384
|
+
if (!$dara.isNull(request.resourceGroupName)) {
|
|
13385
|
+
query["ResourceGroupName"] = request.resourceGroupName;
|
|
13386
|
+
}
|
|
13387
|
+
|
|
13357
13388
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
13358
13389
|
query: OpenApiUtil.query(query),
|
|
13359
13390
|
});
|
|
@@ -13389,7 +13420,7 @@ export default class Client extends OpenApi {
|
|
|
13389
13420
|
* Modifies the permissions of a database account.
|
|
13390
13421
|
*
|
|
13391
13422
|
* @remarks
|
|
13392
|
-
* For
|
|
13423
|
+
* For the service registration of this service, refer to [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
13393
13424
|
*
|
|
13394
13425
|
* @param tmpReq - ModifyAccountPrivilegesRequest
|
|
13395
13426
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -13403,6 +13434,14 @@ export default class Client extends OpenApi {
|
|
|
13403
13434
|
request.accountPrivilegesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.accountPrivileges, "AccountPrivileges", "json");
|
|
13404
13435
|
}
|
|
13405
13436
|
|
|
13437
|
+
if (!$dara.isNull(tmpReq.promqlInsertPrivileges)) {
|
|
13438
|
+
request.promqlInsertPrivilegesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.promqlInsertPrivileges, "PromqlInsertPrivileges", "json");
|
|
13439
|
+
}
|
|
13440
|
+
|
|
13441
|
+
if (!$dara.isNull(tmpReq.promqlSelectPrivileges)) {
|
|
13442
|
+
request.promqlSelectPrivilegesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.promqlSelectPrivileges, "PromqlSelectPrivileges", "json");
|
|
13443
|
+
}
|
|
13444
|
+
|
|
13406
13445
|
let query = { };
|
|
13407
13446
|
if (!$dara.isNull(request.accountName)) {
|
|
13408
13447
|
query["AccountName"] = request.accountName;
|
|
@@ -13416,10 +13455,26 @@ export default class Client extends OpenApi {
|
|
|
13416
13455
|
query["DBClusterId"] = request.DBClusterId;
|
|
13417
13456
|
}
|
|
13418
13457
|
|
|
13458
|
+
if (!$dara.isNull(request.promqlInsertPrivilegesShrink)) {
|
|
13459
|
+
query["PromqlInsertPrivileges"] = request.promqlInsertPrivilegesShrink;
|
|
13460
|
+
}
|
|
13461
|
+
|
|
13462
|
+
if (!$dara.isNull(request.promqlSelectNodePercentage)) {
|
|
13463
|
+
query["PromqlSelectNodePercentage"] = request.promqlSelectNodePercentage;
|
|
13464
|
+
}
|
|
13465
|
+
|
|
13466
|
+
if (!$dara.isNull(request.promqlSelectPrivilegesShrink)) {
|
|
13467
|
+
query["PromqlSelectPrivileges"] = request.promqlSelectPrivilegesShrink;
|
|
13468
|
+
}
|
|
13469
|
+
|
|
13419
13470
|
if (!$dara.isNull(request.regionId)) {
|
|
13420
13471
|
query["RegionId"] = request.regionId;
|
|
13421
13472
|
}
|
|
13422
13473
|
|
|
13474
|
+
if (!$dara.isNull(request.resourceGroupName)) {
|
|
13475
|
+
query["ResourceGroupName"] = request.resourceGroupName;
|
|
13476
|
+
}
|
|
13477
|
+
|
|
13423
13478
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
13424
13479
|
query: OpenApiUtil.query(query),
|
|
13425
13480
|
});
|
|
@@ -13441,7 +13496,7 @@ export default class Client extends OpenApi {
|
|
|
13441
13496
|
* Modifies the permissions of a database account.
|
|
13442
13497
|
*
|
|
13443
13498
|
* @remarks
|
|
13444
|
-
* For
|
|
13499
|
+
* For the service registration of this service, refer to [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
13445
13500
|
*
|
|
13446
13501
|
* @param request - ModifyAccountPrivilegesRequest
|
|
13447
13502
|
* @returns ModifyAccountPrivilegesResponse
|
|
@@ -13778,10 +13833,10 @@ export default class Client extends OpenApi {
|
|
|
13778
13833
|
}
|
|
13779
13834
|
|
|
13780
13835
|
/**
|
|
13781
|
-
* Modifies the SQL audit settings of
|
|
13836
|
+
* Modifies the SQL audit log settings of a cluster.
|
|
13782
13837
|
*
|
|
13783
13838
|
* @remarks
|
|
13784
|
-
* For
|
|
13839
|
+
* For the endpoint of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
13785
13840
|
*
|
|
13786
13841
|
* @param request - ModifyAuditLogConfigRequest
|
|
13787
13842
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -13840,10 +13895,10 @@ export default class Client extends OpenApi {
|
|
|
13840
13895
|
}
|
|
13841
13896
|
|
|
13842
13897
|
/**
|
|
13843
|
-
* Modifies the SQL audit settings of
|
|
13898
|
+
* Modifies the SQL audit log settings of a cluster.
|
|
13844
13899
|
*
|
|
13845
13900
|
* @remarks
|
|
13846
|
-
* For
|
|
13901
|
+
* For the endpoint of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
13847
13902
|
*
|
|
13848
13903
|
* @param request - ModifyAuditLogConfigRequest
|
|
13849
13904
|
* @returns ModifyAuditLogConfigResponse
|
|
@@ -13928,10 +13983,10 @@ export default class Client extends OpenApi {
|
|
|
13928
13983
|
}
|
|
13929
13984
|
|
|
13930
13985
|
/**
|
|
13931
|
-
* Modifies the backup policy of
|
|
13986
|
+
* Modifies the backup policy of a cluster.
|
|
13932
13987
|
*
|
|
13933
13988
|
* @remarks
|
|
13934
|
-
* For information about the
|
|
13989
|
+
* For information about the endpoint of the current service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
13935
13990
|
*
|
|
13936
13991
|
* @param request - ModifyBackupPolicyRequest
|
|
13937
13992
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -13998,10 +14053,10 @@ export default class Client extends OpenApi {
|
|
|
13998
14053
|
}
|
|
13999
14054
|
|
|
14000
14055
|
/**
|
|
14001
|
-
* Modifies the backup policy of
|
|
14056
|
+
* Modifies the backup policy of a cluster.
|
|
14002
14057
|
*
|
|
14003
14058
|
* @remarks
|
|
14004
|
-
* For information about the
|
|
14059
|
+
* For information about the endpoint of the current service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
14005
14060
|
*
|
|
14006
14061
|
* @param request - ModifyBackupPolicyRequest
|
|
14007
14062
|
* @returns ModifyBackupPolicyResponse
|
|
@@ -14549,7 +14604,7 @@ export default class Client extends OpenApi {
|
|
|
14549
14604
|
* Changes the resource group of a cluster.
|
|
14550
14605
|
*
|
|
14551
14606
|
* @remarks
|
|
14552
|
-
* For
|
|
14607
|
+
* For the endpoint of this service, refer to [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
14553
14608
|
*
|
|
14554
14609
|
* @param tmpReq - ModifyDBResourceGroupRequest
|
|
14555
14610
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -14689,7 +14744,7 @@ export default class Client extends OpenApi {
|
|
|
14689
14744
|
* Changes the resource group of a cluster.
|
|
14690
14745
|
*
|
|
14691
14746
|
* @remarks
|
|
14692
|
-
* For
|
|
14747
|
+
* For the endpoint of this service, refer to [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
14693
14748
|
*
|
|
14694
14749
|
* @param request - ModifyDBResourceGroupRequest
|
|
14695
14750
|
* @returns ModifyDBResourceGroupResponse
|
|
@@ -15740,6 +15795,10 @@ export default class Client extends OpenApi {
|
|
|
15740
15795
|
query["Engine"] = request.engine;
|
|
15741
15796
|
}
|
|
15742
15797
|
|
|
15798
|
+
if (!$dara.isNull(request.resourceGroupName)) {
|
|
15799
|
+
query["ResourceGroupName"] = request.resourceGroupName;
|
|
15800
|
+
}
|
|
15801
|
+
|
|
15743
15802
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
15744
15803
|
query: OpenApiUtil.query(query),
|
|
15745
15804
|
});
|
|
@@ -15,7 +15,7 @@ export class AddKnowledgeFileRequest extends $dara.Model {
|
|
|
15
15
|
DBClusterId?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The file
|
|
18
|
+
* The file location. Currently, only OSS paths are supported.
|
|
19
19
|
*
|
|
20
20
|
* This parameter is required.
|
|
21
21
|
*
|
|
@@ -33,12 +33,17 @@ export class AddKnowledgeFileRequest extends $dara.Model {
|
|
|
33
33
|
fileType?: string;
|
|
34
34
|
/**
|
|
35
35
|
* @remarks
|
|
36
|
-
* Specifies whether the
|
|
36
|
+
* Specifies whether the path is a directory.
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
39
|
* false
|
|
40
40
|
*/
|
|
41
41
|
isDir?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* @remarks
|
|
44
|
+
* The confidence level or weight of the file.
|
|
45
|
+
*/
|
|
46
|
+
priority?: string;
|
|
42
47
|
/**
|
|
43
48
|
* @remarks
|
|
44
49
|
* The file tags in JSON format.
|
|
@@ -61,6 +66,7 @@ export class AddKnowledgeFileRequest extends $dara.Model {
|
|
|
61
66
|
fileLocation: 'FileLocation',
|
|
62
67
|
fileType: 'FileType',
|
|
63
68
|
isDir: 'IsDir',
|
|
69
|
+
priority: 'Priority',
|
|
64
70
|
tags: 'Tags',
|
|
65
71
|
uploadUser: 'UploadUser',
|
|
66
72
|
};
|
|
@@ -72,6 +78,7 @@ export class AddKnowledgeFileRequest extends $dara.Model {
|
|
|
72
78
|
fileLocation: 'string',
|
|
73
79
|
fileType: 'string',
|
|
74
80
|
isDir: 'boolean',
|
|
81
|
+
priority: 'string',
|
|
75
82
|
tags: 'string',
|
|
76
83
|
uploadUser: 'string',
|
|
77
84
|
};
|
|
@@ -10,7 +10,7 @@ export class CreateAccountRequest extends $dara.Model {
|
|
|
10
10
|
* - Cannot exceed 256 characters in length.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
|
-
*
|
|
13
|
+
* Database connection test account
|
|
14
14
|
*/
|
|
15
15
|
accountDescription?: string;
|
|
16
16
|
/**
|
|
@@ -65,18 +65,22 @@ export class CreateAccountRequest extends $dara.Model {
|
|
|
65
65
|
* @remarks
|
|
66
66
|
* The database engine. Valid values:
|
|
67
67
|
*
|
|
68
|
-
* - **AnalyticDB** (default): AnalyticDB for MySQL engine.
|
|
69
|
-
* - **Clickhouse**: wide table engine.
|
|
68
|
+
* - **AnalyticDB** (default): the AnalyticDB for MySQL engine.
|
|
69
|
+
* - **Clickhouse**: the wide table engine.
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
72
|
* Clickhouse
|
|
73
73
|
*/
|
|
74
74
|
engine?: string;
|
|
75
|
+
promqlInsertPrivileges?: string[];
|
|
76
|
+
promqlSelectNodePercentage?: number;
|
|
77
|
+
promqlSelectPrivileges?: string[];
|
|
75
78
|
/**
|
|
76
79
|
* @remarks
|
|
77
|
-
* The list of Alibaba Cloud
|
|
80
|
+
* The list of Alibaba Cloud RAM user IDs to bind. Currently, only one RAM user can be bound.
|
|
78
81
|
*/
|
|
79
82
|
ramUserList?: string[];
|
|
83
|
+
resourceGroupName?: string;
|
|
80
84
|
static names(): { [key: string]: string } {
|
|
81
85
|
return {
|
|
82
86
|
accountDescription: 'AccountDescription',
|
|
@@ -85,7 +89,11 @@ export class CreateAccountRequest extends $dara.Model {
|
|
|
85
89
|
accountType: 'AccountType',
|
|
86
90
|
DBClusterId: 'DBClusterId',
|
|
87
91
|
engine: 'Engine',
|
|
92
|
+
promqlInsertPrivileges: 'PromqlInsertPrivileges',
|
|
93
|
+
promqlSelectNodePercentage: 'PromqlSelectNodePercentage',
|
|
94
|
+
promqlSelectPrivileges: 'PromqlSelectPrivileges',
|
|
88
95
|
ramUserList: 'RamUserList',
|
|
96
|
+
resourceGroupName: 'ResourceGroupName',
|
|
89
97
|
};
|
|
90
98
|
}
|
|
91
99
|
|
|
@@ -97,11 +105,21 @@ export class CreateAccountRequest extends $dara.Model {
|
|
|
97
105
|
accountType: 'string',
|
|
98
106
|
DBClusterId: 'string',
|
|
99
107
|
engine: 'string',
|
|
108
|
+
promqlInsertPrivileges: { 'type': 'array', 'itemType': 'string' },
|
|
109
|
+
promqlSelectNodePercentage: 'number',
|
|
110
|
+
promqlSelectPrivileges: { 'type': 'array', 'itemType': 'string' },
|
|
100
111
|
ramUserList: { 'type': 'array', 'itemType': 'string' },
|
|
112
|
+
resourceGroupName: 'string',
|
|
101
113
|
};
|
|
102
114
|
}
|
|
103
115
|
|
|
104
116
|
validate() {
|
|
117
|
+
if(Array.isArray(this.promqlInsertPrivileges)) {
|
|
118
|
+
$dara.Model.validateArray(this.promqlInsertPrivileges);
|
|
119
|
+
}
|
|
120
|
+
if(Array.isArray(this.promqlSelectPrivileges)) {
|
|
121
|
+
$dara.Model.validateArray(this.promqlSelectPrivileges);
|
|
122
|
+
}
|
|
105
123
|
if(Array.isArray(this.ramUserList)) {
|
|
106
124
|
$dara.Model.validateArray(this.ramUserList);
|
|
107
125
|
}
|
|
@@ -10,7 +10,7 @@ export class CreateAccountShrinkRequest extends $dara.Model {
|
|
|
10
10
|
* - Cannot exceed 256 characters in length.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
|
-
*
|
|
13
|
+
* Database connection test account
|
|
14
14
|
*/
|
|
15
15
|
accountDescription?: string;
|
|
16
16
|
/**
|
|
@@ -65,18 +65,22 @@ export class CreateAccountShrinkRequest extends $dara.Model {
|
|
|
65
65
|
* @remarks
|
|
66
66
|
* The database engine. Valid values:
|
|
67
67
|
*
|
|
68
|
-
* - **AnalyticDB** (default): AnalyticDB for MySQL engine.
|
|
69
|
-
* - **Clickhouse**: wide table engine.
|
|
68
|
+
* - **AnalyticDB** (default): the AnalyticDB for MySQL engine.
|
|
69
|
+
* - **Clickhouse**: the wide table engine.
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
72
|
* Clickhouse
|
|
73
73
|
*/
|
|
74
74
|
engine?: string;
|
|
75
|
+
promqlInsertPrivilegesShrink?: string;
|
|
76
|
+
promqlSelectNodePercentage?: number;
|
|
77
|
+
promqlSelectPrivilegesShrink?: string;
|
|
75
78
|
/**
|
|
76
79
|
* @remarks
|
|
77
|
-
* The list of Alibaba Cloud
|
|
80
|
+
* The list of Alibaba Cloud RAM user IDs to bind. Currently, only one RAM user can be bound.
|
|
78
81
|
*/
|
|
79
82
|
ramUserListShrink?: string;
|
|
83
|
+
resourceGroupName?: string;
|
|
80
84
|
static names(): { [key: string]: string } {
|
|
81
85
|
return {
|
|
82
86
|
accountDescription: 'AccountDescription',
|
|
@@ -85,7 +89,11 @@ export class CreateAccountShrinkRequest extends $dara.Model {
|
|
|
85
89
|
accountType: 'AccountType',
|
|
86
90
|
DBClusterId: 'DBClusterId',
|
|
87
91
|
engine: 'Engine',
|
|
92
|
+
promqlInsertPrivilegesShrink: 'PromqlInsertPrivileges',
|
|
93
|
+
promqlSelectNodePercentage: 'PromqlSelectNodePercentage',
|
|
94
|
+
promqlSelectPrivilegesShrink: 'PromqlSelectPrivileges',
|
|
88
95
|
ramUserListShrink: 'RamUserList',
|
|
96
|
+
resourceGroupName: 'ResourceGroupName',
|
|
89
97
|
};
|
|
90
98
|
}
|
|
91
99
|
|
|
@@ -97,7 +105,11 @@ export class CreateAccountShrinkRequest extends $dara.Model {
|
|
|
97
105
|
accountType: 'string',
|
|
98
106
|
DBClusterId: 'string',
|
|
99
107
|
engine: 'string',
|
|
108
|
+
promqlInsertPrivilegesShrink: 'string',
|
|
109
|
+
promqlSelectNodePercentage: 'number',
|
|
110
|
+
promqlSelectPrivilegesShrink: 'string',
|
|
100
111
|
ramUserListShrink: 'string',
|
|
112
|
+
resourceGroupName: 'string',
|
|
101
113
|
};
|
|
102
114
|
}
|
|
103
115
|
|