@alicloud/adb20211201 4.4.0 → 4.5.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.
- package/dist/client.d.ts +105 -0
- package/dist/client.js +430 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateApsWebhookRequest.d.ts +76 -0
- package/dist/models/CreateApsWebhookRequest.js +92 -0
- package/dist/models/CreateApsWebhookRequest.js.map +1 -0
- package/dist/models/CreateApsWebhookResponse.d.ts +19 -0
- package/dist/models/CreateApsWebhookResponse.js +69 -0
- package/dist/models/CreateApsWebhookResponse.js.map +1 -0
- package/dist/models/CreateApsWebhookResponseBody.d.ts +43 -0
- package/dist/models/CreateApsWebhookResponseBody.js +68 -0
- package/dist/models/CreateApsWebhookResponseBody.js.map +1 -0
- package/dist/models/CreateApsWebhookShrinkRequest.d.ts +38 -0
- package/dist/models/CreateApsWebhookShrinkRequest.js +64 -0
- package/dist/models/CreateApsWebhookShrinkRequest.js.map +1 -0
- package/dist/models/CreateMaterializedViewRecommendRequest.d.ts +72 -0
- package/dist/models/CreateMaterializedViewRecommendRequest.js +86 -0
- package/dist/models/CreateMaterializedViewRecommendRequest.js.map +1 -0
- package/dist/models/CreateMaterializedViewRecommendResponse.d.ts +19 -0
- package/dist/models/CreateMaterializedViewRecommendResponse.js +69 -0
- package/dist/models/CreateMaterializedViewRecommendResponse.js.map +1 -0
- package/dist/models/CreateMaterializedViewRecommendResponseBody.d.ts +21 -0
- package/dist/models/CreateMaterializedViewRecommendResponseBody.js +58 -0
- package/dist/models/CreateMaterializedViewRecommendResponseBody.js.map +1 -0
- package/dist/models/DeleteApsWebhookRequest.d.ts +37 -0
- package/dist/models/DeleteApsWebhookRequest.js +62 -0
- package/dist/models/DeleteApsWebhookRequest.js.map +1 -0
- package/dist/models/DeleteApsWebhookResponse.d.ts +19 -0
- package/dist/models/DeleteApsWebhookResponse.js +69 -0
- package/dist/models/DeleteApsWebhookResponse.js.map +1 -0
- package/dist/models/DeleteApsWebhookResponseBody.d.ts +44 -0
- package/dist/models/DeleteApsWebhookResponseBody.js +70 -0
- package/dist/models/DeleteApsWebhookResponseBody.js.map +1 -0
- package/dist/models/DescribeDbresourceGroupResponseBody.d.ts +122 -0
- package/dist/models/DescribeDbresourceGroupResponseBody.js +81 -1
- package/dist/models/DescribeDbresourceGroupResponseBody.js.map +1 -1
- package/dist/models/ListApsWebhookRequest.d.ts +34 -0
- package/dist/models/ListApsWebhookRequest.js +62 -0
- package/dist/models/ListApsWebhookRequest.js.map +1 -0
- package/dist/models/ListApsWebhookResponse.d.ts +19 -0
- package/dist/models/ListApsWebhookResponse.js +69 -0
- package/dist/models/ListApsWebhookResponse.js.map +1 -0
- package/dist/models/ListApsWebhookResponseBody.d.ts +76 -0
- package/dist/models/ListApsWebhookResponseBody.js +98 -0
- package/dist/models/ListApsWebhookResponseBody.js.map +1 -0
- package/dist/models/ModifyDbresourceGroupRequest.d.ts +74 -0
- package/dist/models/ModifyDbresourceGroupRequest.js +81 -1
- package/dist/models/ModifyDbresourceGroupRequest.js.map +1 -1
- package/dist/models/ModifyMaterializedViewRecommendRequest.d.ts +66 -0
- package/dist/models/ModifyMaterializedViewRecommendRequest.js +86 -0
- package/dist/models/ModifyMaterializedViewRecommendRequest.js.map +1 -0
- package/dist/models/ModifyMaterializedViewRecommendResponse.d.ts +19 -0
- package/dist/models/ModifyMaterializedViewRecommendResponse.js +69 -0
- package/dist/models/ModifyMaterializedViewRecommendResponse.js.map +1 -0
- package/dist/models/ModifyMaterializedViewRecommendResponseBody.d.ts +21 -0
- package/dist/models/ModifyMaterializedViewRecommendResponseBody.js +58 -0
- package/dist/models/ModifyMaterializedViewRecommendResponseBody.js.map +1 -0
- package/dist/models/ModifyMaterializedViewRequest.d.ts +71 -0
- package/dist/models/ModifyMaterializedViewRequest.js +82 -0
- package/dist/models/ModifyMaterializedViewRequest.js.map +1 -0
- package/dist/models/ModifyMaterializedViewResponse.d.ts +19 -0
- package/dist/models/ModifyMaterializedViewResponse.js +69 -0
- package/dist/models/ModifyMaterializedViewResponse.js.map +1 -0
- package/dist/models/ModifyMaterializedViewResponseBody.d.ts +21 -0
- package/dist/models/ModifyMaterializedViewResponseBody.js +58 -0
- package/dist/models/ModifyMaterializedViewResponseBody.js.map +1 -0
- package/dist/models/UpdateApsWebhookRequest.d.ts +72 -0
- package/dist/models/UpdateApsWebhookRequest.js +92 -0
- package/dist/models/UpdateApsWebhookRequest.js.map +1 -0
- package/dist/models/UpdateApsWebhookResponse.d.ts +19 -0
- package/dist/models/UpdateApsWebhookResponse.js +69 -0
- package/dist/models/UpdateApsWebhookResponse.js.map +1 -0
- package/dist/models/UpdateApsWebhookResponseBody.d.ts +44 -0
- package/dist/models/UpdateApsWebhookResponseBody.js +70 -0
- package/dist/models/UpdateApsWebhookResponseBody.js.map +1 -0
- package/dist/models/UpdateApsWebhookShrinkRequest.d.ts +30 -0
- package/dist/models/UpdateApsWebhookShrinkRequest.js +62 -0
- package/dist/models/UpdateApsWebhookShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +32 -0
- package/dist/models/model.js +96 -31
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +502 -0
- package/src/models/CreateApsWebhookRequest.ts +114 -0
- package/src/models/CreateApsWebhookResponse.ts +40 -0
- package/src/models/CreateApsWebhookResponseBody.ts +66 -0
- package/src/models/CreateApsWebhookShrinkRequest.ts +57 -0
- package/src/models/CreateMaterializedViewRecommendRequest.ts +113 -0
- package/src/models/CreateMaterializedViewRecommendResponse.ts +40 -0
- package/src/models/CreateMaterializedViewRecommendResponseBody.ts +34 -0
- package/src/models/DeleteApsWebhookRequest.ts +54 -0
- package/src/models/DeleteApsWebhookResponse.ts +40 -0
- package/src/models/DeleteApsWebhookResponseBody.ts +69 -0
- package/src/models/DescribeDbresourceGroupResponseBody.ts +175 -0
- package/src/models/ListApsWebhookRequest.ts +51 -0
- package/src/models/ListApsWebhookResponse.ts +40 -0
- package/src/models/ListApsWebhookResponseBody.ts +120 -0
- package/src/models/ModifyDbresourceGroupRequest.ts +127 -0
- package/src/models/ModifyMaterializedViewRecommendRequest.ts +107 -0
- package/src/models/ModifyMaterializedViewRecommendResponse.ts +40 -0
- package/src/models/ModifyMaterializedViewRecommendResponseBody.ts +34 -0
- package/src/models/ModifyMaterializedViewRequest.ts +108 -0
- package/src/models/ModifyMaterializedViewResponse.ts +40 -0
- package/src/models/ModifyMaterializedViewResponseBody.ts +34 -0
- package/src/models/UpdateApsWebhookRequest.ts +110 -0
- package/src/models/UpdateApsWebhookResponse.ts +40 -0
- package/src/models/UpdateApsWebhookResponseBody.ts +69 -0
- package/src/models/UpdateApsWebhookShrinkRequest.ts +47 -0
- package/src/models/model.ts +32 -0
package/src/client.ts
CHANGED
|
@@ -1473,6 +1473,66 @@ export default class Client extends OpenApi {
|
|
|
1473
1473
|
return await this.createApsSlsADBJobWithOptions(request, runtime);
|
|
1474
1474
|
}
|
|
1475
1475
|
|
|
1476
|
+
/**
|
|
1477
|
+
* CreateApsWebhook
|
|
1478
|
+
*
|
|
1479
|
+
* @param tmpReq - CreateApsWebhookRequest
|
|
1480
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1481
|
+
* @returns CreateApsWebhookResponse
|
|
1482
|
+
*/
|
|
1483
|
+
async createApsWebhookWithOptions(tmpReq: $_model.CreateApsWebhookRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateApsWebhookResponse> {
|
|
1484
|
+
tmpReq.validate();
|
|
1485
|
+
let request = new $_model.CreateApsWebhookShrinkRequest({ });
|
|
1486
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
1487
|
+
if (!$dara.isNull(tmpReq.webhook)) {
|
|
1488
|
+
request.webhookShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.webhook, "Webhook", "json");
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
let body : {[key: string ]: any} = { };
|
|
1492
|
+
if (!$dara.isNull(request.DBClusterId)) {
|
|
1493
|
+
body["DBClusterId"] = request.DBClusterId;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
if (!$dara.isNull(request.jobType)) {
|
|
1497
|
+
body["JobType"] = request.jobType;
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
if (!$dara.isNull(request.regionId)) {
|
|
1501
|
+
body["RegionId"] = request.regionId;
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
if (!$dara.isNull(request.webhookShrink)) {
|
|
1505
|
+
body["Webhook"] = request.webhookShrink;
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1509
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1510
|
+
});
|
|
1511
|
+
let params = new $OpenApiUtil.Params({
|
|
1512
|
+
action: "CreateApsWebhook",
|
|
1513
|
+
version: "2021-12-01",
|
|
1514
|
+
protocol: "HTTPS",
|
|
1515
|
+
pathname: "/",
|
|
1516
|
+
method: "POST",
|
|
1517
|
+
authType: "AK",
|
|
1518
|
+
style: "RPC",
|
|
1519
|
+
reqBodyType: "formData",
|
|
1520
|
+
bodyType: "json",
|
|
1521
|
+
});
|
|
1522
|
+
return $dara.cast<$_model.CreateApsWebhookResponse>(await this.callApi(params, req, runtime), new $_model.CreateApsWebhookResponse({}));
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* CreateApsWebhook
|
|
1527
|
+
*
|
|
1528
|
+
* @param request - CreateApsWebhookRequest
|
|
1529
|
+
* @returns CreateApsWebhookResponse
|
|
1530
|
+
*/
|
|
1531
|
+
async createApsWebhook(request: $_model.CreateApsWebhookRequest): Promise<$_model.CreateApsWebhookResponse> {
|
|
1532
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1533
|
+
return await this.createApsWebhookWithOptions(request, runtime);
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1476
1536
|
/**
|
|
1477
1537
|
* 手动创建备份集
|
|
1478
1538
|
*
|
|
@@ -1983,6 +2043,104 @@ export default class Client extends OpenApi {
|
|
|
1983
2043
|
return await this.createLakeStorageWithOptions(request, runtime);
|
|
1984
2044
|
}
|
|
1985
2045
|
|
|
2046
|
+
/**
|
|
2047
|
+
* 创建物化视图自动推荐任务
|
|
2048
|
+
*
|
|
2049
|
+
* @param request - CreateMaterializedViewRecommendRequest
|
|
2050
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2051
|
+
* @returns CreateMaterializedViewRecommendResponse
|
|
2052
|
+
*/
|
|
2053
|
+
async createMaterializedViewRecommendWithOptions(request: $_model.CreateMaterializedViewRecommendRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMaterializedViewRecommendResponse> {
|
|
2054
|
+
request.validate();
|
|
2055
|
+
let query = { };
|
|
2056
|
+
if (!$dara.isNull(request.DBClusterId)) {
|
|
2057
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
if (!$dara.isNull(request.description)) {
|
|
2061
|
+
query["Description"] = request.description;
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
if (!$dara.isNull(request.minRewriteQueryCount)) {
|
|
2065
|
+
query["MinRewriteQueryCount"] = request.minRewriteQueryCount;
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
if (!$dara.isNull(request.minRewriteQueryPattern)) {
|
|
2069
|
+
query["MinRewriteQueryPattern"] = request.minRewriteQueryPattern;
|
|
2070
|
+
}
|
|
2071
|
+
|
|
2072
|
+
if (!$dara.isNull(request.ownerAccount)) {
|
|
2073
|
+
query["OwnerAccount"] = request.ownerAccount;
|
|
2074
|
+
}
|
|
2075
|
+
|
|
2076
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
2077
|
+
query["OwnerId"] = request.ownerId;
|
|
2078
|
+
}
|
|
2079
|
+
|
|
2080
|
+
if (!$dara.isNull(request.regionId)) {
|
|
2081
|
+
query["RegionId"] = request.regionId;
|
|
2082
|
+
}
|
|
2083
|
+
|
|
2084
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
2085
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2088
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
2089
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2090
|
+
}
|
|
2091
|
+
|
|
2092
|
+
if (!$dara.isNull(request.scanQueriesRange)) {
|
|
2093
|
+
query["ScanQueriesRange"] = request.scanQueriesRange;
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
if (!$dara.isNull(request.schedulingDay)) {
|
|
2097
|
+
query["SchedulingDay"] = request.schedulingDay;
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
if (!$dara.isNull(request.schedulingPolicy)) {
|
|
2101
|
+
query["SchedulingPolicy"] = request.schedulingPolicy;
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
if (!$dara.isNull(request.slowQueryThreshold)) {
|
|
2105
|
+
query["SlowQueryThreshold"] = request.slowQueryThreshold;
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
if (!$dara.isNull(request.specifiedTime)) {
|
|
2109
|
+
query["SpecifiedTime"] = request.specifiedTime;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
if (!$dara.isNull(request.taskName)) {
|
|
2113
|
+
query["TaskName"] = request.taskName;
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2117
|
+
query: OpenApiUtil.query(query),
|
|
2118
|
+
});
|
|
2119
|
+
let params = new $OpenApiUtil.Params({
|
|
2120
|
+
action: "CreateMaterializedViewRecommend",
|
|
2121
|
+
version: "2021-12-01",
|
|
2122
|
+
protocol: "HTTPS",
|
|
2123
|
+
pathname: "/",
|
|
2124
|
+
method: "POST",
|
|
2125
|
+
authType: "AK",
|
|
2126
|
+
style: "RPC",
|
|
2127
|
+
reqBodyType: "formData",
|
|
2128
|
+
bodyType: "json",
|
|
2129
|
+
});
|
|
2130
|
+
return $dara.cast<$_model.CreateMaterializedViewRecommendResponse>(await this.callApi(params, req, runtime), new $_model.CreateMaterializedViewRecommendResponse({}));
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
/**
|
|
2134
|
+
* 创建物化视图自动推荐任务
|
|
2135
|
+
*
|
|
2136
|
+
* @param request - CreateMaterializedViewRecommendRequest
|
|
2137
|
+
* @returns CreateMaterializedViewRecommendResponse
|
|
2138
|
+
*/
|
|
2139
|
+
async createMaterializedViewRecommend(request: $_model.CreateMaterializedViewRecommendRequest): Promise<$_model.CreateMaterializedViewRecommendResponse> {
|
|
2140
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2141
|
+
return await this.createMaterializedViewRecommendWithOptions(request, runtime);
|
|
2142
|
+
}
|
|
2143
|
+
|
|
1986
2144
|
/**
|
|
1987
2145
|
* Creates an Object Storage Service (OSS) subdirectory.
|
|
1988
2146
|
*
|
|
@@ -2359,6 +2517,56 @@ export default class Client extends OpenApi {
|
|
|
2359
2517
|
return await this.deleteApsJobWithOptions(request, runtime);
|
|
2360
2518
|
}
|
|
2361
2519
|
|
|
2520
|
+
/**
|
|
2521
|
+
* DeleteApsWebhook
|
|
2522
|
+
*
|
|
2523
|
+
* @param request - DeleteApsWebhookRequest
|
|
2524
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2525
|
+
* @returns DeleteApsWebhookResponse
|
|
2526
|
+
*/
|
|
2527
|
+
async deleteApsWebhookWithOptions(request: $_model.DeleteApsWebhookRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteApsWebhookResponse> {
|
|
2528
|
+
request.validate();
|
|
2529
|
+
let body : {[key: string ]: any} = { };
|
|
2530
|
+
if (!$dara.isNull(request.DBClusterId)) {
|
|
2531
|
+
body["DBClusterId"] = request.DBClusterId;
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
if (!$dara.isNull(request.regionId)) {
|
|
2535
|
+
body["RegionId"] = request.regionId;
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
if (!$dara.isNull(request.webhookId)) {
|
|
2539
|
+
body["WebhookId"] = request.webhookId;
|
|
2540
|
+
}
|
|
2541
|
+
|
|
2542
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2543
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2544
|
+
});
|
|
2545
|
+
let params = new $OpenApiUtil.Params({
|
|
2546
|
+
action: "DeleteApsWebhook",
|
|
2547
|
+
version: "2021-12-01",
|
|
2548
|
+
protocol: "HTTPS",
|
|
2549
|
+
pathname: "/",
|
|
2550
|
+
method: "POST",
|
|
2551
|
+
authType: "AK",
|
|
2552
|
+
style: "RPC",
|
|
2553
|
+
reqBodyType: "formData",
|
|
2554
|
+
bodyType: "json",
|
|
2555
|
+
});
|
|
2556
|
+
return $dara.cast<$_model.DeleteApsWebhookResponse>(await this.callApi(params, req, runtime), new $_model.DeleteApsWebhookResponse({}));
|
|
2557
|
+
}
|
|
2558
|
+
|
|
2559
|
+
/**
|
|
2560
|
+
* DeleteApsWebhook
|
|
2561
|
+
*
|
|
2562
|
+
* @param request - DeleteApsWebhookRequest
|
|
2563
|
+
* @returns DeleteApsWebhookResponse
|
|
2564
|
+
*/
|
|
2565
|
+
async deleteApsWebhook(request: $_model.DeleteApsWebhookRequest): Promise<$_model.DeleteApsWebhookResponse> {
|
|
2566
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2567
|
+
return await this.deleteApsWebhookWithOptions(request, runtime);
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2362
2570
|
/**
|
|
2363
2571
|
* Manually deletes backup sets.
|
|
2364
2572
|
*
|
|
@@ -11482,6 +11690,56 @@ export default class Client extends OpenApi {
|
|
|
11482
11690
|
return await this.listApsOptimizationTasksWithOptions(request, runtime);
|
|
11483
11691
|
}
|
|
11484
11692
|
|
|
11693
|
+
/**
|
|
11694
|
+
* ListApsWebhook
|
|
11695
|
+
*
|
|
11696
|
+
* @param request - ListApsWebhookRequest
|
|
11697
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
11698
|
+
* @returns ListApsWebhookResponse
|
|
11699
|
+
*/
|
|
11700
|
+
async listApsWebhookWithOptions(request: $_model.ListApsWebhookRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListApsWebhookResponse> {
|
|
11701
|
+
request.validate();
|
|
11702
|
+
let body : {[key: string ]: any} = { };
|
|
11703
|
+
if (!$dara.isNull(request.DBClusterId)) {
|
|
11704
|
+
body["DBClusterId"] = request.DBClusterId;
|
|
11705
|
+
}
|
|
11706
|
+
|
|
11707
|
+
if (!$dara.isNull(request.jobType)) {
|
|
11708
|
+
body["JobType"] = request.jobType;
|
|
11709
|
+
}
|
|
11710
|
+
|
|
11711
|
+
if (!$dara.isNull(request.regionId)) {
|
|
11712
|
+
body["RegionId"] = request.regionId;
|
|
11713
|
+
}
|
|
11714
|
+
|
|
11715
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
11716
|
+
body: OpenApiUtil.parseToMap(body),
|
|
11717
|
+
});
|
|
11718
|
+
let params = new $OpenApiUtil.Params({
|
|
11719
|
+
action: "ListApsWebhook",
|
|
11720
|
+
version: "2021-12-01",
|
|
11721
|
+
protocol: "HTTPS",
|
|
11722
|
+
pathname: "/",
|
|
11723
|
+
method: "POST",
|
|
11724
|
+
authType: "AK",
|
|
11725
|
+
style: "RPC",
|
|
11726
|
+
reqBodyType: "formData",
|
|
11727
|
+
bodyType: "json",
|
|
11728
|
+
});
|
|
11729
|
+
return $dara.cast<$_model.ListApsWebhookResponse>(await this.callApi(params, req, runtime), new $_model.ListApsWebhookResponse({}));
|
|
11730
|
+
}
|
|
11731
|
+
|
|
11732
|
+
/**
|
|
11733
|
+
* ListApsWebhook
|
|
11734
|
+
*
|
|
11735
|
+
* @param request - ListApsWebhookRequest
|
|
11736
|
+
* @returns ListApsWebhookResponse
|
|
11737
|
+
*/
|
|
11738
|
+
async listApsWebhook(request: $_model.ListApsWebhookRequest): Promise<$_model.ListApsWebhookResponse> {
|
|
11739
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
11740
|
+
return await this.listApsWebhookWithOptions(request, runtime);
|
|
11741
|
+
}
|
|
11742
|
+
|
|
11485
11743
|
/**
|
|
11486
11744
|
* Queries a list of lake storages.
|
|
11487
11745
|
*
|
|
@@ -13522,6 +13780,194 @@ export default class Client extends OpenApi {
|
|
|
13522
13780
|
return await this.modifyLakeCacheSizeWithOptions(request, runtime);
|
|
13523
13781
|
}
|
|
13524
13782
|
|
|
13783
|
+
/**
|
|
13784
|
+
* 修改物化视图
|
|
13785
|
+
*
|
|
13786
|
+
* @param request - ModifyMaterializedViewRequest
|
|
13787
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
13788
|
+
* @returns ModifyMaterializedViewResponse
|
|
13789
|
+
*/
|
|
13790
|
+
async modifyMaterializedViewWithOptions(request: $_model.ModifyMaterializedViewRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyMaterializedViewResponse> {
|
|
13791
|
+
request.validate();
|
|
13792
|
+
let query = { };
|
|
13793
|
+
if (!$dara.isNull(request.DBClusterId)) {
|
|
13794
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
13795
|
+
}
|
|
13796
|
+
|
|
13797
|
+
if (!$dara.isNull(request.dbName)) {
|
|
13798
|
+
query["DbName"] = request.dbName;
|
|
13799
|
+
}
|
|
13800
|
+
|
|
13801
|
+
if (!$dara.isNull(request.enableDelayAlert)) {
|
|
13802
|
+
query["EnableDelayAlert"] = request.enableDelayAlert;
|
|
13803
|
+
}
|
|
13804
|
+
|
|
13805
|
+
if (!$dara.isNull(request.enableFailureAlert)) {
|
|
13806
|
+
query["EnableFailureAlert"] = request.enableFailureAlert;
|
|
13807
|
+
}
|
|
13808
|
+
|
|
13809
|
+
if (!$dara.isNull(request.groupName)) {
|
|
13810
|
+
query["GroupName"] = request.groupName;
|
|
13811
|
+
}
|
|
13812
|
+
|
|
13813
|
+
if (!$dara.isNull(request.latencyTolerance)) {
|
|
13814
|
+
query["LatencyTolerance"] = request.latencyTolerance;
|
|
13815
|
+
}
|
|
13816
|
+
|
|
13817
|
+
if (!$dara.isNull(request.ownerAccount)) {
|
|
13818
|
+
query["OwnerAccount"] = request.ownerAccount;
|
|
13819
|
+
}
|
|
13820
|
+
|
|
13821
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
13822
|
+
query["OwnerId"] = request.ownerId;
|
|
13823
|
+
}
|
|
13824
|
+
|
|
13825
|
+
if (!$dara.isNull(request.queryWrite)) {
|
|
13826
|
+
query["QueryWrite"] = request.queryWrite;
|
|
13827
|
+
}
|
|
13828
|
+
|
|
13829
|
+
if (!$dara.isNull(request.regionId)) {
|
|
13830
|
+
query["RegionId"] = request.regionId;
|
|
13831
|
+
}
|
|
13832
|
+
|
|
13833
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
13834
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
13835
|
+
}
|
|
13836
|
+
|
|
13837
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
13838
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
13839
|
+
}
|
|
13840
|
+
|
|
13841
|
+
if (!$dara.isNull(request.viewName)) {
|
|
13842
|
+
query["ViewName"] = request.viewName;
|
|
13843
|
+
}
|
|
13844
|
+
|
|
13845
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
13846
|
+
query: OpenApiUtil.query(query),
|
|
13847
|
+
});
|
|
13848
|
+
let params = new $OpenApiUtil.Params({
|
|
13849
|
+
action: "ModifyMaterializedView",
|
|
13850
|
+
version: "2021-12-01",
|
|
13851
|
+
protocol: "HTTPS",
|
|
13852
|
+
pathname: "/",
|
|
13853
|
+
method: "POST",
|
|
13854
|
+
authType: "AK",
|
|
13855
|
+
style: "RPC",
|
|
13856
|
+
reqBodyType: "formData",
|
|
13857
|
+
bodyType: "json",
|
|
13858
|
+
});
|
|
13859
|
+
return $dara.cast<$_model.ModifyMaterializedViewResponse>(await this.callApi(params, req, runtime), new $_model.ModifyMaterializedViewResponse({}));
|
|
13860
|
+
}
|
|
13861
|
+
|
|
13862
|
+
/**
|
|
13863
|
+
* 修改物化视图
|
|
13864
|
+
*
|
|
13865
|
+
* @param request - ModifyMaterializedViewRequest
|
|
13866
|
+
* @returns ModifyMaterializedViewResponse
|
|
13867
|
+
*/
|
|
13868
|
+
async modifyMaterializedView(request: $_model.ModifyMaterializedViewRequest): Promise<$_model.ModifyMaterializedViewResponse> {
|
|
13869
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
13870
|
+
return await this.modifyMaterializedViewWithOptions(request, runtime);
|
|
13871
|
+
}
|
|
13872
|
+
|
|
13873
|
+
/**
|
|
13874
|
+
* 修改物化视图自动推荐任务
|
|
13875
|
+
*
|
|
13876
|
+
* @param request - ModifyMaterializedViewRecommendRequest
|
|
13877
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
13878
|
+
* @returns ModifyMaterializedViewRecommendResponse
|
|
13879
|
+
*/
|
|
13880
|
+
async modifyMaterializedViewRecommendWithOptions(request: $_model.ModifyMaterializedViewRecommendRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyMaterializedViewRecommendResponse> {
|
|
13881
|
+
request.validate();
|
|
13882
|
+
let query = { };
|
|
13883
|
+
if (!$dara.isNull(request.DBClusterId)) {
|
|
13884
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
13885
|
+
}
|
|
13886
|
+
|
|
13887
|
+
if (!$dara.isNull(request.description)) {
|
|
13888
|
+
query["Description"] = request.description;
|
|
13889
|
+
}
|
|
13890
|
+
|
|
13891
|
+
if (!$dara.isNull(request.minRewriteQueryCount)) {
|
|
13892
|
+
query["MinRewriteQueryCount"] = request.minRewriteQueryCount;
|
|
13893
|
+
}
|
|
13894
|
+
|
|
13895
|
+
if (!$dara.isNull(request.minRewriteQueryPattern)) {
|
|
13896
|
+
query["MinRewriteQueryPattern"] = request.minRewriteQueryPattern;
|
|
13897
|
+
}
|
|
13898
|
+
|
|
13899
|
+
if (!$dara.isNull(request.ownerAccount)) {
|
|
13900
|
+
query["OwnerAccount"] = request.ownerAccount;
|
|
13901
|
+
}
|
|
13902
|
+
|
|
13903
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
13904
|
+
query["OwnerId"] = request.ownerId;
|
|
13905
|
+
}
|
|
13906
|
+
|
|
13907
|
+
if (!$dara.isNull(request.regionId)) {
|
|
13908
|
+
query["RegionId"] = request.regionId;
|
|
13909
|
+
}
|
|
13910
|
+
|
|
13911
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
13912
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
13913
|
+
}
|
|
13914
|
+
|
|
13915
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
13916
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
13917
|
+
}
|
|
13918
|
+
|
|
13919
|
+
if (!$dara.isNull(request.scanQueriesRange)) {
|
|
13920
|
+
query["ScanQueriesRange"] = request.scanQueriesRange;
|
|
13921
|
+
}
|
|
13922
|
+
|
|
13923
|
+
if (!$dara.isNull(request.schedulingDay)) {
|
|
13924
|
+
query["SchedulingDay"] = request.schedulingDay;
|
|
13925
|
+
}
|
|
13926
|
+
|
|
13927
|
+
if (!$dara.isNull(request.schedulingPolicy)) {
|
|
13928
|
+
query["SchedulingPolicy"] = request.schedulingPolicy;
|
|
13929
|
+
}
|
|
13930
|
+
|
|
13931
|
+
if (!$dara.isNull(request.slowQueryThreshold)) {
|
|
13932
|
+
query["SlowQueryThreshold"] = request.slowQueryThreshold;
|
|
13933
|
+
}
|
|
13934
|
+
|
|
13935
|
+
if (!$dara.isNull(request.specifiedTime)) {
|
|
13936
|
+
query["SpecifiedTime"] = request.specifiedTime;
|
|
13937
|
+
}
|
|
13938
|
+
|
|
13939
|
+
if (!$dara.isNull(request.taskName)) {
|
|
13940
|
+
query["TaskName"] = request.taskName;
|
|
13941
|
+
}
|
|
13942
|
+
|
|
13943
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
13944
|
+
query: OpenApiUtil.query(query),
|
|
13945
|
+
});
|
|
13946
|
+
let params = new $OpenApiUtil.Params({
|
|
13947
|
+
action: "ModifyMaterializedViewRecommend",
|
|
13948
|
+
version: "2021-12-01",
|
|
13949
|
+
protocol: "HTTPS",
|
|
13950
|
+
pathname: "/",
|
|
13951
|
+
method: "POST",
|
|
13952
|
+
authType: "AK",
|
|
13953
|
+
style: "RPC",
|
|
13954
|
+
reqBodyType: "formData",
|
|
13955
|
+
bodyType: "json",
|
|
13956
|
+
});
|
|
13957
|
+
return $dara.cast<$_model.ModifyMaterializedViewRecommendResponse>(await this.callApi(params, req, runtime), new $_model.ModifyMaterializedViewRecommendResponse({}));
|
|
13958
|
+
}
|
|
13959
|
+
|
|
13960
|
+
/**
|
|
13961
|
+
* 修改物化视图自动推荐任务
|
|
13962
|
+
*
|
|
13963
|
+
* @param request - ModifyMaterializedViewRecommendRequest
|
|
13964
|
+
* @returns ModifyMaterializedViewRecommendResponse
|
|
13965
|
+
*/
|
|
13966
|
+
async modifyMaterializedViewRecommend(request: $_model.ModifyMaterializedViewRecommendRequest): Promise<$_model.ModifyMaterializedViewRecommendResponse> {
|
|
13967
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
13968
|
+
return await this.modifyMaterializedViewRecommendWithOptions(request, runtime);
|
|
13969
|
+
}
|
|
13970
|
+
|
|
13525
13971
|
/**
|
|
13526
13972
|
* Modifies the information about a custom monitoring view.
|
|
13527
13973
|
*
|
|
@@ -14541,6 +14987,62 @@ export default class Client extends OpenApi {
|
|
|
14541
14987
|
return await this.unbindDBResourceGroupWithUserWithOptions(request, runtime);
|
|
14542
14988
|
}
|
|
14543
14989
|
|
|
14990
|
+
/**
|
|
14991
|
+
* UpdateApsWebhook
|
|
14992
|
+
*
|
|
14993
|
+
* @param tmpReq - UpdateApsWebhookRequest
|
|
14994
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
14995
|
+
* @returns UpdateApsWebhookResponse
|
|
14996
|
+
*/
|
|
14997
|
+
async updateApsWebhookWithOptions(tmpReq: $_model.UpdateApsWebhookRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateApsWebhookResponse> {
|
|
14998
|
+
tmpReq.validate();
|
|
14999
|
+
let request = new $_model.UpdateApsWebhookShrinkRequest({ });
|
|
15000
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
15001
|
+
if (!$dara.isNull(tmpReq.webhook)) {
|
|
15002
|
+
request.webhookShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.webhook, "Webhook", "json");
|
|
15003
|
+
}
|
|
15004
|
+
|
|
15005
|
+
let body : {[key: string ]: any} = { };
|
|
15006
|
+
if (!$dara.isNull(request.DBClusterId)) {
|
|
15007
|
+
body["DBClusterId"] = request.DBClusterId;
|
|
15008
|
+
}
|
|
15009
|
+
|
|
15010
|
+
if (!$dara.isNull(request.regionId)) {
|
|
15011
|
+
body["RegionId"] = request.regionId;
|
|
15012
|
+
}
|
|
15013
|
+
|
|
15014
|
+
if (!$dara.isNull(request.webhookShrink)) {
|
|
15015
|
+
body["Webhook"] = request.webhookShrink;
|
|
15016
|
+
}
|
|
15017
|
+
|
|
15018
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
15019
|
+
body: OpenApiUtil.parseToMap(body),
|
|
15020
|
+
});
|
|
15021
|
+
let params = new $OpenApiUtil.Params({
|
|
15022
|
+
action: "UpdateApsWebhook",
|
|
15023
|
+
version: "2021-12-01",
|
|
15024
|
+
protocol: "HTTPS",
|
|
15025
|
+
pathname: "/",
|
|
15026
|
+
method: "POST",
|
|
15027
|
+
authType: "AK",
|
|
15028
|
+
style: "RPC",
|
|
15029
|
+
reqBodyType: "formData",
|
|
15030
|
+
bodyType: "json",
|
|
15031
|
+
});
|
|
15032
|
+
return $dara.cast<$_model.UpdateApsWebhookResponse>(await this.callApi(params, req, runtime), new $_model.UpdateApsWebhookResponse({}));
|
|
15033
|
+
}
|
|
15034
|
+
|
|
15035
|
+
/**
|
|
15036
|
+
* UpdateApsWebhook
|
|
15037
|
+
*
|
|
15038
|
+
* @param request - UpdateApsWebhookRequest
|
|
15039
|
+
* @returns UpdateApsWebhookResponse
|
|
15040
|
+
*/
|
|
15041
|
+
async updateApsWebhook(request: $_model.UpdateApsWebhookRequest): Promise<$_model.UpdateApsWebhookResponse> {
|
|
15042
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
15043
|
+
return await this.updateApsWebhookWithOptions(request, runtime);
|
|
15044
|
+
}
|
|
15045
|
+
|
|
14544
15046
|
/**
|
|
14545
15047
|
* Updates a lake storage.
|
|
14546
15048
|
*
|
|
@@ -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 CreateApsWebhookRequestWebhook extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* ***
|
|
9
|
+
*/
|
|
10
|
+
key?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* MyWebhookName
|
|
14
|
+
*/
|
|
15
|
+
name?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* This parameter is required.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* https://example.com/webhook
|
|
22
|
+
*/
|
|
23
|
+
url?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* This parameter is required.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* dingtalk
|
|
30
|
+
*/
|
|
31
|
+
webhookType?: string;
|
|
32
|
+
static names(): { [key: string]: string } {
|
|
33
|
+
return {
|
|
34
|
+
key: 'Key',
|
|
35
|
+
name: 'Name',
|
|
36
|
+
url: 'Url',
|
|
37
|
+
webhookType: 'WebhookType',
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static types(): { [key: string]: any } {
|
|
42
|
+
return {
|
|
43
|
+
key: 'string',
|
|
44
|
+
name: 'string',
|
|
45
|
+
url: 'string',
|
|
46
|
+
webhookType: 'string',
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
validate() {
|
|
51
|
+
super.validate();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
constructor(map?: { [key: string]: any }) {
|
|
55
|
+
super(map);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export class CreateApsWebhookRequest extends $dara.Model {
|
|
60
|
+
/**
|
|
61
|
+
* @remarks
|
|
62
|
+
* This parameter is required.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* amv-bp11q28kvl688****
|
|
66
|
+
*/
|
|
67
|
+
DBClusterId?: string;
|
|
68
|
+
/**
|
|
69
|
+
* @remarks
|
|
70
|
+
* This parameter is required.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ResultExport
|
|
74
|
+
*/
|
|
75
|
+
jobType?: string;
|
|
76
|
+
/**
|
|
77
|
+
* @remarks
|
|
78
|
+
* This parameter is required.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* cn-hangzhou
|
|
82
|
+
*/
|
|
83
|
+
regionId?: string;
|
|
84
|
+
webhook?: CreateApsWebhookRequestWebhook[];
|
|
85
|
+
static names(): { [key: string]: string } {
|
|
86
|
+
return {
|
|
87
|
+
DBClusterId: 'DBClusterId',
|
|
88
|
+
jobType: 'JobType',
|
|
89
|
+
regionId: 'RegionId',
|
|
90
|
+
webhook: 'Webhook',
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
static types(): { [key: string]: any } {
|
|
95
|
+
return {
|
|
96
|
+
DBClusterId: 'string',
|
|
97
|
+
jobType: 'string',
|
|
98
|
+
regionId: 'string',
|
|
99
|
+
webhook: { 'type': 'array', 'itemType': CreateApsWebhookRequestWebhook },
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
validate() {
|
|
104
|
+
if(Array.isArray(this.webhook)) {
|
|
105
|
+
$dara.Model.validateArray(this.webhook);
|
|
106
|
+
}
|
|
107
|
+
super.validate();
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
constructor(map?: { [key: string]: any }) {
|
|
111
|
+
super(map);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateApsWebhookResponseBody } from "./CreateApsWebhookResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateApsWebhookResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateApsWebhookResponseBody;
|
|
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: CreateApsWebhookResponseBody,
|
|
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
|
+
|