@alicloud/adb20211201 5.1.3 → 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 +30 -30
- package/dist/client.js +78 -30
- package/dist/client.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/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 +94 -30
- 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/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
|
@@ -991,7 +991,7 @@ export default class Client extends OpenApi {
|
|
|
991
991
|
* Creates a database account for a cluster.
|
|
992
992
|
*
|
|
993
993
|
* @remarks
|
|
994
|
-
* 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).
|
|
995
995
|
*
|
|
996
996
|
* @param tmpReq - CreateAccountRequest
|
|
997
997
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1001,6 +1001,14 @@ export default class Client extends OpenApi {
|
|
|
1001
1001
|
tmpReq.validate();
|
|
1002
1002
|
let request = new $_model.CreateAccountShrinkRequest({ });
|
|
1003
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
|
+
|
|
1004
1012
|
if (!$dara.isNull(tmpReq.ramUserList)) {
|
|
1005
1013
|
request.ramUserListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.ramUserList, "RamUserList", "json");
|
|
1006
1014
|
}
|
|
@@ -1030,10 +1038,26 @@ export default class Client extends OpenApi {
|
|
|
1030
1038
|
query["Engine"] = request.engine;
|
|
1031
1039
|
}
|
|
1032
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
|
+
|
|
1033
1053
|
if (!$dara.isNull(request.ramUserListShrink)) {
|
|
1034
1054
|
query["RamUserList"] = request.ramUserListShrink;
|
|
1035
1055
|
}
|
|
1036
1056
|
|
|
1057
|
+
if (!$dara.isNull(request.resourceGroupName)) {
|
|
1058
|
+
query["ResourceGroupName"] = request.resourceGroupName;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1037
1061
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1038
1062
|
query: OpenApiUtil.query(query),
|
|
1039
1063
|
});
|
|
@@ -1055,7 +1079,7 @@ export default class Client extends OpenApi {
|
|
|
1055
1079
|
* Creates a database account for a cluster.
|
|
1056
1080
|
*
|
|
1057
1081
|
* @remarks
|
|
1058
|
-
* 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).
|
|
1059
1083
|
*
|
|
1060
1084
|
* @param request - CreateAccountRequest
|
|
1061
1085
|
* @returns CreateAccountResponse
|
|
@@ -2003,7 +2027,7 @@ export default class Client extends OpenApi {
|
|
|
2003
2027
|
* Creates a resource group for a specified Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
|
|
2004
2028
|
*
|
|
2005
2029
|
* @remarks
|
|
2006
|
-
* For the
|
|
2030
|
+
* For the endpoints of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
2007
2031
|
*
|
|
2008
2032
|
* @param tmpReq - CreateDBResourceGroupRequest
|
|
2009
2033
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2151,7 +2175,7 @@ export default class Client extends OpenApi {
|
|
|
2151
2175
|
* Creates a resource group for a specified Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
|
|
2152
2176
|
*
|
|
2153
2177
|
* @remarks
|
|
2154
|
-
* For the
|
|
2178
|
+
* For the endpoints of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
2155
2179
|
*
|
|
2156
2180
|
* @param request - CreateDBResourceGroupRequest
|
|
2157
2181
|
* @returns CreateDBResourceGroupResponse
|
|
@@ -2746,10 +2770,10 @@ export default class Client extends OpenApi {
|
|
|
2746
2770
|
}
|
|
2747
2771
|
|
|
2748
2772
|
/**
|
|
2749
|
-
* Deletes a database account from
|
|
2773
|
+
* Deletes a database account from a cluster.
|
|
2750
2774
|
*
|
|
2751
2775
|
* @remarks
|
|
2752
|
-
* For
|
|
2776
|
+
* For the endpoint of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
2753
2777
|
*
|
|
2754
2778
|
* @param request - DeleteAccountRequest
|
|
2755
2779
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2770,6 +2794,10 @@ export default class Client extends OpenApi {
|
|
|
2770
2794
|
query["Engine"] = request.engine;
|
|
2771
2795
|
}
|
|
2772
2796
|
|
|
2797
|
+
if (!$dara.isNull(request.resourceGroupName)) {
|
|
2798
|
+
query["ResourceGroupName"] = request.resourceGroupName;
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2773
2801
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2774
2802
|
query: OpenApiUtil.query(query),
|
|
2775
2803
|
});
|
|
@@ -2788,10 +2816,10 @@ export default class Client extends OpenApi {
|
|
|
2788
2816
|
}
|
|
2789
2817
|
|
|
2790
2818
|
/**
|
|
2791
|
-
* Deletes a database account from
|
|
2819
|
+
* Deletes a database account from a cluster.
|
|
2792
2820
|
*
|
|
2793
2821
|
* @remarks
|
|
2794
|
-
* For
|
|
2822
|
+
* For the endpoint of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
2795
2823
|
*
|
|
2796
2824
|
* @param request - DeleteAccountRequest
|
|
2797
2825
|
* @returns DeleteAccountResponse
|
|
@@ -3949,7 +3977,7 @@ export default class Client extends OpenApi {
|
|
|
3949
3977
|
* Queries the database accounts of a cluster.
|
|
3950
3978
|
*
|
|
3951
3979
|
* @remarks
|
|
3952
|
-
* For the
|
|
3980
|
+
* For the service registration information of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
3953
3981
|
*
|
|
3954
3982
|
* @param request - DescribeAccountsRequest
|
|
3955
3983
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3974,6 +4002,10 @@ export default class Client extends OpenApi {
|
|
|
3974
4002
|
query["OwnerId"] = request.ownerId;
|
|
3975
4003
|
}
|
|
3976
4004
|
|
|
4005
|
+
if (!$dara.isNull(request.resourceGroupName)) {
|
|
4006
|
+
query["ResourceGroupName"] = request.resourceGroupName;
|
|
4007
|
+
}
|
|
4008
|
+
|
|
3977
4009
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3978
4010
|
query: OpenApiUtil.query(query),
|
|
3979
4011
|
});
|
|
@@ -3995,7 +4027,7 @@ export default class Client extends OpenApi {
|
|
|
3995
4027
|
* Queries the database accounts of a cluster.
|
|
3996
4028
|
*
|
|
3997
4029
|
* @remarks
|
|
3998
|
-
* For the
|
|
4030
|
+
* For the service registration information of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
3999
4031
|
*
|
|
4000
4032
|
* @param request - DescribeAccountsRequest
|
|
4001
4033
|
* @returns DescribeAccountsResponse
|
|
@@ -6108,10 +6140,10 @@ export default class Client extends OpenApi {
|
|
|
6108
6140
|
}
|
|
6109
6141
|
|
|
6110
6142
|
/**
|
|
6111
|
-
*
|
|
6143
|
+
* Queries the performance data of a specified cluster.
|
|
6112
6144
|
*
|
|
6113
6145
|
* @remarks
|
|
6114
|
-
* For the
|
|
6146
|
+
* For the endpoint of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
6115
6147
|
*
|
|
6116
6148
|
* @param request - DescribeDBClusterPerformanceRequest
|
|
6117
6149
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -6162,10 +6194,10 @@ export default class Client extends OpenApi {
|
|
|
6162
6194
|
}
|
|
6163
6195
|
|
|
6164
6196
|
/**
|
|
6165
|
-
*
|
|
6197
|
+
* Queries the performance data of a specified cluster.
|
|
6166
6198
|
*
|
|
6167
6199
|
* @remarks
|
|
6168
|
-
* For the
|
|
6200
|
+
* For the endpoint of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
6169
6201
|
*
|
|
6170
6202
|
* @param request - DescribeDBClusterPerformanceRequest
|
|
6171
6203
|
* @returns DescribeDBClusterPerformanceResponse
|
|
@@ -11951,8 +11983,8 @@ export default class Client extends OpenApi {
|
|
|
11951
11983
|
* Retrieves table information.
|
|
11952
11984
|
*
|
|
11953
11985
|
* @remarks
|
|
11954
|
-
* - Public endpoint of
|
|
11955
|
-
* - 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`.
|
|
11956
11988
|
*
|
|
11957
11989
|
* @param request - GetTableRequest
|
|
11958
11990
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -11998,8 +12030,8 @@ export default class Client extends OpenApi {
|
|
|
11998
12030
|
* Retrieves table information.
|
|
11999
12031
|
*
|
|
12000
12032
|
* @remarks
|
|
12001
|
-
* - Public endpoint of
|
|
12002
|
-
* - 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`.
|
|
12003
12035
|
*
|
|
12004
12036
|
* @param request - GetTableRequest
|
|
12005
12037
|
* @returns GetTableResponse
|
|
@@ -13349,6 +13381,10 @@ export default class Client extends OpenApi {
|
|
|
13349
13381
|
query["Engine"] = request.engine;
|
|
13350
13382
|
}
|
|
13351
13383
|
|
|
13384
|
+
if (!$dara.isNull(request.resourceGroupName)) {
|
|
13385
|
+
query["ResourceGroupName"] = request.resourceGroupName;
|
|
13386
|
+
}
|
|
13387
|
+
|
|
13352
13388
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
13353
13389
|
query: OpenApiUtil.query(query),
|
|
13354
13390
|
});
|
|
@@ -13384,7 +13420,7 @@ export default class Client extends OpenApi {
|
|
|
13384
13420
|
* Modifies the permissions of a database account.
|
|
13385
13421
|
*
|
|
13386
13422
|
* @remarks
|
|
13387
|
-
* For
|
|
13423
|
+
* For the service registration of this service, refer to [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
13388
13424
|
*
|
|
13389
13425
|
* @param tmpReq - ModifyAccountPrivilegesRequest
|
|
13390
13426
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -13398,6 +13434,14 @@ export default class Client extends OpenApi {
|
|
|
13398
13434
|
request.accountPrivilegesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.accountPrivileges, "AccountPrivileges", "json");
|
|
13399
13435
|
}
|
|
13400
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
|
+
|
|
13401
13445
|
let query = { };
|
|
13402
13446
|
if (!$dara.isNull(request.accountName)) {
|
|
13403
13447
|
query["AccountName"] = request.accountName;
|
|
@@ -13411,10 +13455,26 @@ export default class Client extends OpenApi {
|
|
|
13411
13455
|
query["DBClusterId"] = request.DBClusterId;
|
|
13412
13456
|
}
|
|
13413
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
|
+
|
|
13414
13470
|
if (!$dara.isNull(request.regionId)) {
|
|
13415
13471
|
query["RegionId"] = request.regionId;
|
|
13416
13472
|
}
|
|
13417
13473
|
|
|
13474
|
+
if (!$dara.isNull(request.resourceGroupName)) {
|
|
13475
|
+
query["ResourceGroupName"] = request.resourceGroupName;
|
|
13476
|
+
}
|
|
13477
|
+
|
|
13418
13478
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
13419
13479
|
query: OpenApiUtil.query(query),
|
|
13420
13480
|
});
|
|
@@ -13436,7 +13496,7 @@ export default class Client extends OpenApi {
|
|
|
13436
13496
|
* Modifies the permissions of a database account.
|
|
13437
13497
|
*
|
|
13438
13498
|
* @remarks
|
|
13439
|
-
* For
|
|
13499
|
+
* For the service registration of this service, refer to [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
13440
13500
|
*
|
|
13441
13501
|
* @param request - ModifyAccountPrivilegesRequest
|
|
13442
13502
|
* @returns ModifyAccountPrivilegesResponse
|
|
@@ -13773,10 +13833,10 @@ export default class Client extends OpenApi {
|
|
|
13773
13833
|
}
|
|
13774
13834
|
|
|
13775
13835
|
/**
|
|
13776
|
-
* Modifies the SQL audit settings of
|
|
13836
|
+
* Modifies the SQL audit log settings of a cluster.
|
|
13777
13837
|
*
|
|
13778
13838
|
* @remarks
|
|
13779
|
-
* For
|
|
13839
|
+
* For the endpoint of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
13780
13840
|
*
|
|
13781
13841
|
* @param request - ModifyAuditLogConfigRequest
|
|
13782
13842
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -13835,10 +13895,10 @@ export default class Client extends OpenApi {
|
|
|
13835
13895
|
}
|
|
13836
13896
|
|
|
13837
13897
|
/**
|
|
13838
|
-
* Modifies the SQL audit settings of
|
|
13898
|
+
* Modifies the SQL audit log settings of a cluster.
|
|
13839
13899
|
*
|
|
13840
13900
|
* @remarks
|
|
13841
|
-
* For
|
|
13901
|
+
* For the endpoint of this service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
13842
13902
|
*
|
|
13843
13903
|
* @param request - ModifyAuditLogConfigRequest
|
|
13844
13904
|
* @returns ModifyAuditLogConfigResponse
|
|
@@ -13923,10 +13983,10 @@ export default class Client extends OpenApi {
|
|
|
13923
13983
|
}
|
|
13924
13984
|
|
|
13925
13985
|
/**
|
|
13926
|
-
* Modifies the backup policy of
|
|
13986
|
+
* Modifies the backup policy of a cluster.
|
|
13927
13987
|
*
|
|
13928
13988
|
* @remarks
|
|
13929
|
-
* For information about the
|
|
13989
|
+
* For information about the endpoint of the current service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
13930
13990
|
*
|
|
13931
13991
|
* @param request - ModifyBackupPolicyRequest
|
|
13932
13992
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -13993,10 +14053,10 @@ export default class Client extends OpenApi {
|
|
|
13993
14053
|
}
|
|
13994
14054
|
|
|
13995
14055
|
/**
|
|
13996
|
-
* Modifies the backup policy of
|
|
14056
|
+
* Modifies the backup policy of a cluster.
|
|
13997
14057
|
*
|
|
13998
14058
|
* @remarks
|
|
13999
|
-
* For information about the
|
|
14059
|
+
* For information about the endpoint of the current service, see [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
14000
14060
|
*
|
|
14001
14061
|
* @param request - ModifyBackupPolicyRequest
|
|
14002
14062
|
* @returns ModifyBackupPolicyResponse
|
|
@@ -14544,7 +14604,7 @@ export default class Client extends OpenApi {
|
|
|
14544
14604
|
* Changes the resource group of a cluster.
|
|
14545
14605
|
*
|
|
14546
14606
|
* @remarks
|
|
14547
|
-
* For
|
|
14607
|
+
* For the endpoint of this service, refer to [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
14548
14608
|
*
|
|
14549
14609
|
* @param tmpReq - ModifyDBResourceGroupRequest
|
|
14550
14610
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -14684,7 +14744,7 @@ export default class Client extends OpenApi {
|
|
|
14684
14744
|
* Changes the resource group of a cluster.
|
|
14685
14745
|
*
|
|
14686
14746
|
* @remarks
|
|
14687
|
-
* For
|
|
14747
|
+
* For the endpoint of this service, refer to [Endpoint](https://help.aliyun.com/document_detail/612373.html).
|
|
14688
14748
|
*
|
|
14689
14749
|
* @param request - ModifyDBResourceGroupRequest
|
|
14690
14750
|
* @returns ModifyDBResourceGroupResponse
|
|
@@ -15735,6 +15795,10 @@ export default class Client extends OpenApi {
|
|
|
15735
15795
|
query["Engine"] = request.engine;
|
|
15736
15796
|
}
|
|
15737
15797
|
|
|
15798
|
+
if (!$dara.isNull(request.resourceGroupName)) {
|
|
15799
|
+
query["ResourceGroupName"] = request.resourceGroupName;
|
|
15800
|
+
}
|
|
15801
|
+
|
|
15738
15802
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
15739
15803
|
query: OpenApiUtil.query(query),
|
|
15740
15804
|
});
|
|
@@ -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
|
|
|
@@ -13,7 +13,7 @@ export class CreateDBResourceGroupRequestAtmConfig extends $dara.Model {
|
|
|
13
13
|
authNodeNum?: number;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The authentication node
|
|
16
|
+
* The authentication node specification ([0-9+]ACU).
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* 8ACU
|
|
@@ -29,7 +29,7 @@ export class CreateDBResourceGroupRequestAtmConfig extends $dara.Model {
|
|
|
29
29
|
insertNodeNum?: number;
|
|
30
30
|
/**
|
|
31
31
|
* @remarks
|
|
32
|
-
* The insert node
|
|
32
|
+
* The insert node specification ([0-9+]ACU).
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* 8ACU
|
|
@@ -53,7 +53,7 @@ export class CreateDBResourceGroupRequestAtmConfig extends $dara.Model {
|
|
|
53
53
|
selectNodeNum?: number;
|
|
54
54
|
/**
|
|
55
55
|
* @remarks
|
|
56
|
-
* The query node
|
|
56
|
+
* The query node specification ([0-9+]ACU).
|
|
57
57
|
*
|
|
58
58
|
* @example
|
|
59
59
|
* 8ACU
|
|
@@ -85,7 +85,7 @@ export class CreateDBResourceGroupRequestAtmConfig extends $dara.Model {
|
|
|
85
85
|
storageNodeNum?: number;
|
|
86
86
|
/**
|
|
87
87
|
* @remarks
|
|
88
|
-
* The storage node
|
|
88
|
+
* The storage node specification ([0-9+]ACU).
|
|
89
89
|
*
|
|
90
90
|
* @example
|
|
91
91
|
* 8ACU
|
|
@@ -135,7 +135,7 @@ export class CreateDBResourceGroupRequestAtmConfig extends $dara.Model {
|
|
|
135
135
|
export class CreateDBResourceGroupRequestGpuElasticPlanRules extends $dara.Model {
|
|
136
136
|
/**
|
|
137
137
|
* @remarks
|
|
138
|
-
* The end time
|
|
138
|
+
* The end time as a cron expression. The interval must be at least 1 hour.
|
|
139
139
|
*
|
|
140
140
|
* @example
|
|
141
141
|
* 0 0 3 * * ?
|
|
@@ -143,7 +143,7 @@ export class CreateDBResourceGroupRequestGpuElasticPlanRules extends $dara.Model
|
|
|
143
143
|
endCronExpression?: string;
|
|
144
144
|
/**
|
|
145
145
|
* @remarks
|
|
146
|
-
* The start time
|
|
146
|
+
* The start time as a cron expression. The interval must be at least 1 hour.
|
|
147
147
|
*
|
|
148
148
|
* @example
|
|
149
149
|
* 0 0 2 * * ?
|
|
@@ -176,8 +176,8 @@ export class CreateDBResourceGroupRequestGpuElasticPlan extends $dara.Model {
|
|
|
176
176
|
/**
|
|
177
177
|
* @remarks
|
|
178
178
|
* Specifies whether to enable the elastic plan immediately after creation. Valid values:
|
|
179
|
-
* - true:
|
|
180
|
-
* - false:
|
|
179
|
+
* - true: Enables the elastic plan immediately.
|
|
180
|
+
* - false: Does not enable the elastic plan.
|
|
181
181
|
*
|
|
182
182
|
* @example
|
|
183
183
|
* true
|
|
@@ -286,7 +286,7 @@ export class CreateDBResourceGroupRequestRayConfigWorkerGroups extends $dara.Mod
|
|
|
286
286
|
workerDiskCapacity?: string;
|
|
287
287
|
/**
|
|
288
288
|
* @remarks
|
|
289
|
-
* The
|
|
289
|
+
* The specification of the worker node.
|
|
290
290
|
*
|
|
291
291
|
* @example
|
|
292
292
|
* xlarge
|
|
@@ -338,9 +338,9 @@ export class CreateDBResourceGroupRequestRayConfig extends $dara.Model {
|
|
|
338
338
|
* @remarks
|
|
339
339
|
* The Ray cluster type. Valid values:
|
|
340
340
|
*
|
|
341
|
-
* - BASIC: basic type, non-
|
|
341
|
+
* - BASIC: the basic type, which is non-highly available.
|
|
342
342
|
*
|
|
343
|
-
* - HIGH_AVAILABILITY:
|
|
343
|
+
* - HIGH_AVAILABILITY: the highly available type.
|
|
344
344
|
*
|
|
345
345
|
* @example
|
|
346
346
|
* BASIC
|
|
@@ -348,7 +348,7 @@ export class CreateDBResourceGroupRequestRayConfig extends $dara.Model {
|
|
|
348
348
|
category?: string;
|
|
349
349
|
/**
|
|
350
350
|
* @remarks
|
|
351
|
-
* Specifies whether to enable user ENI connectivity.
|
|
351
|
+
* Specifies whether to enable user Elastic Network Interface (ENI) connectivity.
|
|
352
352
|
*/
|
|
353
353
|
enableUserEni?: boolean;
|
|
354
354
|
/**
|
|
@@ -369,7 +369,7 @@ export class CreateDBResourceGroupRequestRayConfig extends $dara.Model {
|
|
|
369
369
|
headDiskCapacity?: string;
|
|
370
370
|
/**
|
|
371
371
|
* @remarks
|
|
372
|
-
* The
|
|
372
|
+
* The specification of the head node.
|
|
373
373
|
*
|
|
374
374
|
* @example
|
|
375
375
|
* xlarge
|
|
@@ -455,7 +455,7 @@ export class CreateDBResourceGroupRequestRules extends $dara.Model {
|
|
|
455
455
|
queryTime?: string;
|
|
456
456
|
/**
|
|
457
457
|
* @remarks
|
|
458
|
-
* The name of the
|
|
458
|
+
* The name of the destination resource group.
|
|
459
459
|
*
|
|
460
460
|
* @example
|
|
461
461
|
* job
|
|
@@ -494,7 +494,7 @@ export class CreateDBResourceGroupRequest extends $dara.Model {
|
|
|
494
494
|
atmConfig?: CreateDBResourceGroupRequestAtmConfig;
|
|
495
495
|
/**
|
|
496
496
|
* @remarks
|
|
497
|
-
* The
|
|
497
|
+
* The auto-stop interval, in minutes (m).
|
|
498
498
|
*
|
|
499
499
|
* @example
|
|
500
500
|
* 5m
|
|
@@ -541,8 +541,8 @@ export class CreateDBResourceGroupRequest extends $dara.Model {
|
|
|
541
541
|
/**
|
|
542
542
|
* @remarks
|
|
543
543
|
* Specifies whether to enable the spot instance feature for the resource group. After the spot instance feature is enabled, the unit price of resources is reduced, but the resources may be released. Only Job resource groups support this feature. Valid values:
|
|
544
|
-
* - **True**:
|
|
545
|
-
* - **False**:
|
|
544
|
+
* - **True**: Enables the spot instance feature.
|
|
545
|
+
* - **False**: Disables the spot instance feature.
|
|
546
546
|
*
|
|
547
547
|
* @example
|
|
548
548
|
* True
|
|
@@ -569,7 +569,7 @@ export class CreateDBResourceGroupRequest extends $dara.Model {
|
|
|
569
569
|
engineParams?: { [key: string]: any };
|
|
570
570
|
/**
|
|
571
571
|
* @remarks
|
|
572
|
-
* The GPU time-
|
|
572
|
+
* The GPU time-based elastic plan.
|
|
573
573
|
*/
|
|
574
574
|
gpuElasticPlan?: CreateDBResourceGroupRequestGpuElasticPlan;
|
|
575
575
|
/**
|
|
@@ -590,7 +590,7 @@ export class CreateDBResourceGroupRequest extends $dara.Model {
|
|
|
590
590
|
* The type of the resource group. Valid values:
|
|
591
591
|
* - **Interactive**
|
|
592
592
|
* - **Job**
|
|
593
|
-
* > For more information about
|
|
593
|
+
* > For more information about Data Lakehouse Edition resource groups, see [Introduction to resource groups (Data Lakehouse Edition)](https://help.aliyun.com/document_detail/428610.html).
|
|
594
594
|
*
|
|
595
595
|
* This parameter is required.
|
|
596
596
|
*
|
|
@@ -609,8 +609,8 @@ export class CreateDBResourceGroupRequest extends $dara.Model {
|
|
|
609
609
|
/**
|
|
610
610
|
* @remarks
|
|
611
611
|
* The maximum reserved computing resources, in ACUs.
|
|
612
|
-
* - If the resource group type is Interactive, the maximum reserved computing resources
|
|
613
|
-
* - If the resource group type is Job, the maximum reserved computing resources
|
|
612
|
+
* - If the resource group type is Interactive, the maximum reserved computing resources are the unallocated resources of the cluster, in increments of 16 ACUs.
|
|
613
|
+
* - If the resource group type is Job, the maximum reserved computing resources are the unallocated resources of the cluster, in increments of 8 ACUs.
|
|
614
614
|
*
|
|
615
615
|
* @example
|
|
616
616
|
* 48ACU
|
|
@@ -635,8 +635,8 @@ export class CreateDBResourceGroupRequest extends $dara.Model {
|
|
|
635
635
|
/**
|
|
636
636
|
* @remarks
|
|
637
637
|
* The minimum reserved computing resources, in ACUs.
|
|
638
|
-
* - If the resource group type is Interactive, the minimum reserved computing resources
|
|
639
|
-
* - If the resource group type is Job, the minimum reserved computing resources
|
|
638
|
+
* - If the resource group type is Interactive, the minimum reserved computing resources are 16 ACUs.
|
|
639
|
+
* - If the resource group type is Job, the minimum reserved computing resources are 0 ACUs.
|
|
640
640
|
*
|
|
641
641
|
* @example
|
|
642
642
|
* 0ACU
|
|
@@ -674,9 +674,9 @@ export class CreateDBResourceGroupRequest extends $dara.Model {
|
|
|
674
674
|
/**
|
|
675
675
|
* @remarks
|
|
676
676
|
* The scaling policy of the resource group. Valid values:
|
|
677
|
-
* - AutoScaling: enables the AutoScaling
|
|
678
|
-
* - Disable: disables
|
|
679
|
-
* - MultiCluster: enables the MultiCluster
|
|
677
|
+
* - AutoScaling: enables the AutoScaling auto-scaling policy.
|
|
678
|
+
* - Disable: disables auto-scaling.
|
|
679
|
+
* - MultiCluster: enables the MultiCluster auto-scaling policy.
|
|
680
680
|
*
|
|
681
681
|
* @example
|
|
682
682
|
* AutoScaling
|
|
@@ -692,7 +692,7 @@ export class CreateDBResourceGroupRequest extends $dara.Model {
|
|
|
692
692
|
specName?: string;
|
|
693
693
|
/**
|
|
694
694
|
* @remarks
|
|
695
|
-
* The name of the
|
|
695
|
+
* The name of the destination resource group.
|
|
696
696
|
*
|
|
697
697
|
* @example
|
|
698
698
|
* test
|