@alicloud/cs20151215 6.3.3 → 6.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 +99 -0
- package/dist/client.js +243 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateAutoRepairPolicyRequest.d.ts +209 -0
- package/dist/models/CreateAutoRepairPolicyRequest.js +271 -0
- package/dist/models/CreateAutoRepairPolicyRequest.js.map +1 -0
- package/dist/models/CreateAutoRepairPolicyResponse.d.ts +19 -0
- package/dist/models/CreateAutoRepairPolicyResponse.js +69 -0
- package/dist/models/CreateAutoRepairPolicyResponse.js.map +1 -0
- package/dist/models/CreateAutoRepairPolicyResponseBody.d.ts +23 -0
- package/dist/models/CreateAutoRepairPolicyResponseBody.js +60 -0
- package/dist/models/CreateAutoRepairPolicyResponseBody.js.map +1 -0
- package/dist/models/DeleteAutoRepairPolicyResponse.d.ts +19 -0
- package/dist/models/DeleteAutoRepairPolicyResponse.js +69 -0
- package/dist/models/DeleteAutoRepairPolicyResponse.js.map +1 -0
- package/dist/models/DeleteAutoRepairPolicyResponseBody.d.ts +18 -0
- package/dist/models/DeleteAutoRepairPolicyResponseBody.js +58 -0
- package/dist/models/DeleteAutoRepairPolicyResponseBody.js.map +1 -0
- package/dist/models/DescribeAutoRepairPolicyResponse.d.ts +19 -0
- package/dist/models/DescribeAutoRepairPolicyResponse.js +69 -0
- package/dist/models/DescribeAutoRepairPolicyResponse.js.map +1 -0
- package/dist/models/DescribeAutoRepairPolicyResponseBody.d.ts +211 -0
- package/dist/models/DescribeAutoRepairPolicyResponseBody.js +278 -0
- package/dist/models/DescribeAutoRepairPolicyResponseBody.js.map +1 -0
- package/dist/models/DescribeClusterNodePoolDetailResponseBody.d.ts +5 -0
- package/dist/models/DescribeClusterNodePoolDetailResponseBody.js +2 -0
- package/dist/models/DescribeClusterNodePoolDetailResponseBody.js.map +1 -1
- package/dist/models/DescribeClusterNodePoolsResponseBody.d.ts +5 -0
- package/dist/models/DescribeClusterNodePoolsResponseBody.js +2 -0
- package/dist/models/DescribeClusterNodePoolsResponseBody.js.map +1 -1
- package/dist/models/DescribeRegionsRequest.d.ts +28 -0
- package/dist/models/DescribeRegionsRequest.js +62 -0
- package/dist/models/DescribeRegionsRequest.js.map +1 -0
- package/dist/models/DescribeRegionsResponse.d.ts +19 -0
- package/dist/models/DescribeRegionsResponse.js +69 -0
- package/dist/models/DescribeRegionsResponse.js.map +1 -0
- package/dist/models/DescribeRegionsResponseBody.d.ts +37 -0
- package/dist/models/DescribeRegionsResponseBody.js +84 -0
- package/dist/models/DescribeRegionsResponseBody.js.map +1 -0
- package/dist/models/ListAutoRepairPoliciesResponse.d.ts +19 -0
- package/dist/models/ListAutoRepairPoliciesResponse.js +69 -0
- package/dist/models/ListAutoRepairPoliciesResponse.js.map +1 -0
- package/dist/models/ListAutoRepairPoliciesResponseBody.d.ts +224 -0
- package/dist/models/ListAutoRepairPoliciesResponseBody.js +300 -0
- package/dist/models/ListAutoRepairPoliciesResponseBody.js.map +1 -0
- package/dist/models/ModifyAutoRepairPolicyRequest.d.ts +195 -0
- package/dist/models/ModifyAutoRepairPolicyRequest.js +267 -0
- package/dist/models/ModifyAutoRepairPolicyRequest.js.map +1 -0
- package/dist/models/ModifyAutoRepairPolicyResponse.d.ts +19 -0
- package/dist/models/ModifyAutoRepairPolicyResponse.js +69 -0
- package/dist/models/ModifyAutoRepairPolicyResponse.js.map +1 -0
- package/dist/models/ModifyAutoRepairPolicyResponseBody.d.ts +18 -0
- package/dist/models/ModifyAutoRepairPolicyResponseBody.js +58 -0
- package/dist/models/ModifyAutoRepairPolicyResponseBody.js.map +1 -0
- package/dist/models/ModifyClusterNodePoolRequest.d.ts +5 -0
- package/dist/models/ModifyClusterNodePoolRequest.js +2 -0
- package/dist/models/ModifyClusterNodePoolRequest.js.map +1 -1
- package/dist/models/model.d.ts +49 -0
- package/dist/models/model.js +111 -12
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +264 -0
- package/src/models/CreateAutoRepairPolicyRequest.ts +361 -0
- package/src/models/CreateAutoRepairPolicyResponse.ts +40 -0
- package/src/models/CreateAutoRepairPolicyResponseBody.ts +38 -0
- package/src/models/DeleteAutoRepairPolicyResponse.ts +40 -0
- package/src/models/DeleteAutoRepairPolicyResponseBody.ts +31 -0
- package/src/models/DescribeAutoRepairPolicyResponse.ts +40 -0
- package/src/models/DescribeAutoRepairPolicyResponseBody.ts +370 -0
- package/src/models/DescribeClusterNodePoolDetailResponseBody.ts +7 -0
- package/src/models/DescribeClusterNodePoolsResponseBody.ts +7 -0
- package/src/models/DescribeRegionsRequest.ts +45 -0
- package/src/models/DescribeRegionsResponse.ts +40 -0
- package/src/models/DescribeRegionsResponseBody.ts +67 -0
- package/src/models/ListAutoRepairPoliciesResponse.ts +40 -0
- package/src/models/ListAutoRepairPoliciesResponseBody.ts +396 -0
- package/src/models/ModifyAutoRepairPolicyRequest.ts +343 -0
- package/src/models/ModifyAutoRepairPolicyResponse.ts +40 -0
- package/src/models/ModifyAutoRepairPolicyResponseBody.ts +31 -0
- package/src/models/ModifyClusterNodePoolRequest.ts +7 -0
- package/src/models/model.ts +49 -0
package/dist/client.d.ts
CHANGED
|
@@ -203,6 +203,24 @@ export default class Client extends OpenApi {
|
|
|
203
203
|
* @returns CleanUserPermissionsResponse
|
|
204
204
|
*/
|
|
205
205
|
cleanUserPermissions(Uid: string, request: $_model.CleanUserPermissionsRequest): Promise<$_model.CleanUserPermissionsResponse>;
|
|
206
|
+
/**
|
|
207
|
+
* 查询自愈规则
|
|
208
|
+
*
|
|
209
|
+
* @param request - CreateAutoRepairPolicyRequest
|
|
210
|
+
* @param headers - map
|
|
211
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
212
|
+
* @returns CreateAutoRepairPolicyResponse
|
|
213
|
+
*/
|
|
214
|
+
createAutoRepairPolicyWithOptions(clusterId: string, request: $_model.CreateAutoRepairPolicyRequest, headers: {
|
|
215
|
+
[key: string]: string;
|
|
216
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateAutoRepairPolicyResponse>;
|
|
217
|
+
/**
|
|
218
|
+
* 查询自愈规则
|
|
219
|
+
*
|
|
220
|
+
* @param request - CreateAutoRepairPolicyRequest
|
|
221
|
+
* @returns CreateAutoRepairPolicyResponse
|
|
222
|
+
*/
|
|
223
|
+
createAutoRepairPolicy(clusterId: string, request: $_model.CreateAutoRepairPolicyRequest): Promise<$_model.CreateAutoRepairPolicyResponse>;
|
|
206
224
|
/**
|
|
207
225
|
* Creates a scaling configuration to allow the system to scale resources based on the given scaling rules. When you create a scaling configuration, you can specify the scaling metrics, thresholds, scaling order, and scaling interval.
|
|
208
226
|
*
|
|
@@ -405,6 +423,21 @@ export default class Client extends OpenApi {
|
|
|
405
423
|
* @returns DeleteAlertContactGroupResponse
|
|
406
424
|
*/
|
|
407
425
|
deleteAlertContactGroup(request: $_model.DeleteAlertContactGroupRequest): Promise<$_model.DeleteAlertContactGroupResponse>;
|
|
426
|
+
/**
|
|
427
|
+
* 查询自愈规则
|
|
428
|
+
*
|
|
429
|
+
* @param headers - map
|
|
430
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
431
|
+
* @returns DeleteAutoRepairPolicyResponse
|
|
432
|
+
*/
|
|
433
|
+
deleteAutoRepairPolicyWithOptions(clusterId: string, policyId: string, headers: {
|
|
434
|
+
[key: string]: string;
|
|
435
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteAutoRepairPolicyResponse>;
|
|
436
|
+
/**
|
|
437
|
+
* 查询自愈规则
|
|
438
|
+
* @returns DeleteAutoRepairPolicyResponse
|
|
439
|
+
*/
|
|
440
|
+
deleteAutoRepairPolicy(clusterId: string, policyId: string): Promise<$_model.DeleteAutoRepairPolicyResponse>;
|
|
408
441
|
/**
|
|
409
442
|
* You can call the DeleteCluster operation to delete a cluster and specify whether to delete or retain the relevant cluster resources. Before you delete a cluster, you must manually delete workloads in the cluster, such as Deployments, StatefulSets, Jobs, and CronJobs. Otherwise, you may fail to delete the cluster.
|
|
410
443
|
*
|
|
@@ -631,6 +664,21 @@ export default class Client extends OpenApi {
|
|
|
631
664
|
* @returns DescribeAddonsResponse
|
|
632
665
|
*/
|
|
633
666
|
describeAddons(request: $_model.DescribeAddonsRequest): Promise<$_model.DescribeAddonsResponse>;
|
|
667
|
+
/**
|
|
668
|
+
* 查询自愈规则
|
|
669
|
+
*
|
|
670
|
+
* @param headers - map
|
|
671
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
672
|
+
* @returns DescribeAutoRepairPolicyResponse
|
|
673
|
+
*/
|
|
674
|
+
describeAutoRepairPolicyWithOptions(clusterId: string, policyId: string, headers: {
|
|
675
|
+
[key: string]: string;
|
|
676
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAutoRepairPolicyResponse>;
|
|
677
|
+
/**
|
|
678
|
+
* 查询自愈规则
|
|
679
|
+
* @returns DescribeAutoRepairPolicyResponse
|
|
680
|
+
*/
|
|
681
|
+
describeAutoRepairPolicy(clusterId: string, policyId: string): Promise<$_model.DescribeAutoRepairPolicyResponse>;
|
|
634
682
|
/**
|
|
635
683
|
* You can call the DescribeClusterAddonInstance operation to query the information about a cluster component, including the version, status, and configuration of the component.
|
|
636
684
|
*
|
|
@@ -1184,6 +1232,24 @@ export default class Client extends OpenApi {
|
|
|
1184
1232
|
* @returns DescribePolicyInstancesStatusResponse
|
|
1185
1233
|
*/
|
|
1186
1234
|
describePolicyInstancesStatus(clusterId: string): Promise<$_model.DescribePolicyInstancesStatusResponse>;
|
|
1235
|
+
/**
|
|
1236
|
+
* 查询地域列表
|
|
1237
|
+
*
|
|
1238
|
+
* @param request - DescribeRegionsRequest
|
|
1239
|
+
* @param headers - map
|
|
1240
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1241
|
+
* @returns DescribeRegionsResponse
|
|
1242
|
+
*/
|
|
1243
|
+
describeRegionsWithOptions(request: $_model.DescribeRegionsRequest, headers: {
|
|
1244
|
+
[key: string]: string;
|
|
1245
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeRegionsResponse>;
|
|
1246
|
+
/**
|
|
1247
|
+
* 查询地域列表
|
|
1248
|
+
*
|
|
1249
|
+
* @param request - DescribeRegionsRequest
|
|
1250
|
+
* @returns DescribeRegionsResponse
|
|
1251
|
+
*/
|
|
1252
|
+
describeRegions(request: $_model.DescribeRegionsRequest): Promise<$_model.DescribeRegionsResponse>;
|
|
1187
1253
|
/**
|
|
1188
1254
|
* Queries whether the deletion protection feature is enabled for the specified resources in the cluster. The resources that you can query include namespaces and Services.
|
|
1189
1255
|
*
|
|
@@ -1613,6 +1679,21 @@ export default class Client extends OpenApi {
|
|
|
1613
1679
|
* @returns ListAddonsResponse
|
|
1614
1680
|
*/
|
|
1615
1681
|
listAddons(request: $_model.ListAddonsRequest): Promise<$_model.ListAddonsResponse>;
|
|
1682
|
+
/**
|
|
1683
|
+
* 查询自愈规则
|
|
1684
|
+
*
|
|
1685
|
+
* @param headers - map
|
|
1686
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1687
|
+
* @returns ListAutoRepairPoliciesResponse
|
|
1688
|
+
*/
|
|
1689
|
+
listAutoRepairPoliciesWithOptions(clusterId: string, headers: {
|
|
1690
|
+
[key: string]: string;
|
|
1691
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListAutoRepairPoliciesResponse>;
|
|
1692
|
+
/**
|
|
1693
|
+
* 查询自愈规则
|
|
1694
|
+
* @returns ListAutoRepairPoliciesResponse
|
|
1695
|
+
*/
|
|
1696
|
+
listAutoRepairPolicies(clusterId: string): Promise<$_model.ListAutoRepairPoliciesResponse>;
|
|
1616
1697
|
/**
|
|
1617
1698
|
* 获取集群组件实例的资源列表
|
|
1618
1699
|
*
|
|
@@ -1801,6 +1882,24 @@ export default class Client extends OpenApi {
|
|
|
1801
1882
|
* @returns MigrateClusterResponse
|
|
1802
1883
|
*/
|
|
1803
1884
|
migrateCluster(clusterId: string, request: $_model.MigrateClusterRequest): Promise<$_model.MigrateClusterResponse>;
|
|
1885
|
+
/**
|
|
1886
|
+
* 查询自愈规则
|
|
1887
|
+
*
|
|
1888
|
+
* @param request - ModifyAutoRepairPolicyRequest
|
|
1889
|
+
* @param headers - map
|
|
1890
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1891
|
+
* @returns ModifyAutoRepairPolicyResponse
|
|
1892
|
+
*/
|
|
1893
|
+
modifyAutoRepairPolicyWithOptions(clusterId: string, policyId: string, request: $_model.ModifyAutoRepairPolicyRequest, headers: {
|
|
1894
|
+
[key: string]: string;
|
|
1895
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyAutoRepairPolicyResponse>;
|
|
1896
|
+
/**
|
|
1897
|
+
* 查询自愈规则
|
|
1898
|
+
*
|
|
1899
|
+
* @param request - ModifyAutoRepairPolicyRequest
|
|
1900
|
+
* @returns ModifyAutoRepairPolicyResponse
|
|
1901
|
+
*/
|
|
1902
|
+
modifyAutoRepairPolicy(clusterId: string, policyId: string, request: $_model.ModifyAutoRepairPolicyRequest): Promise<$_model.ModifyAutoRepairPolicyResponse>;
|
|
1804
1903
|
/**
|
|
1805
1904
|
* You can call the ModifyCluster operation to modify the cluster configurations by cluster ID.
|
|
1806
1905
|
*
|
package/dist/client.js
CHANGED
|
@@ -553,6 +553,57 @@ class Client extends openapi_core_1.default {
|
|
|
553
553
|
let headers = {};
|
|
554
554
|
return await this.cleanUserPermissionsWithOptions(Uid, request, headers, runtime);
|
|
555
555
|
}
|
|
556
|
+
/**
|
|
557
|
+
* 查询自愈规则
|
|
558
|
+
*
|
|
559
|
+
* @param request - CreateAutoRepairPolicyRequest
|
|
560
|
+
* @param headers - map
|
|
561
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
562
|
+
* @returns CreateAutoRepairPolicyResponse
|
|
563
|
+
*/
|
|
564
|
+
async createAutoRepairPolicyWithOptions(clusterId, request, headers, runtime) {
|
|
565
|
+
request.validate();
|
|
566
|
+
let body = {};
|
|
567
|
+
if (!$dara.isNull(request.name)) {
|
|
568
|
+
body["name"] = request.name;
|
|
569
|
+
}
|
|
570
|
+
if (!$dara.isNull(request.resourceSubType)) {
|
|
571
|
+
body["resource_sub_type"] = request.resourceSubType;
|
|
572
|
+
}
|
|
573
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
574
|
+
body["resource_type"] = request.resourceType;
|
|
575
|
+
}
|
|
576
|
+
if (!$dara.isNull(request.rules)) {
|
|
577
|
+
body["rules"] = request.rules;
|
|
578
|
+
}
|
|
579
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
580
|
+
headers: headers,
|
|
581
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
582
|
+
});
|
|
583
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
584
|
+
action: "CreateAutoRepairPolicy",
|
|
585
|
+
version: "2015-12-15",
|
|
586
|
+
protocol: "HTTPS",
|
|
587
|
+
pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/auto_repair_policies`,
|
|
588
|
+
method: "POST",
|
|
589
|
+
authType: "AK",
|
|
590
|
+
style: "ROA",
|
|
591
|
+
reqBodyType: "json",
|
|
592
|
+
bodyType: "json",
|
|
593
|
+
});
|
|
594
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateAutoRepairPolicyResponse({}));
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* 查询自愈规则
|
|
598
|
+
*
|
|
599
|
+
* @param request - CreateAutoRepairPolicyRequest
|
|
600
|
+
* @returns CreateAutoRepairPolicyResponse
|
|
601
|
+
*/
|
|
602
|
+
async createAutoRepairPolicy(clusterId, request) {
|
|
603
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
604
|
+
let headers = {};
|
|
605
|
+
return await this.createAutoRepairPolicyWithOptions(clusterId, request, headers, runtime);
|
|
606
|
+
}
|
|
556
607
|
/**
|
|
557
608
|
* Creates a scaling configuration to allow the system to scale resources based on the given scaling rules. When you create a scaling configuration, you can specify the scaling metrics, thresholds, scaling order, and scaling interval.
|
|
558
609
|
*
|
|
@@ -1441,6 +1492,39 @@ class Client extends openapi_core_1.default {
|
|
|
1441
1492
|
let headers = {};
|
|
1442
1493
|
return await this.deleteAlertContactGroupWithOptions(request, headers, runtime);
|
|
1443
1494
|
}
|
|
1495
|
+
/**
|
|
1496
|
+
* 查询自愈规则
|
|
1497
|
+
*
|
|
1498
|
+
* @param headers - map
|
|
1499
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1500
|
+
* @returns DeleteAutoRepairPolicyResponse
|
|
1501
|
+
*/
|
|
1502
|
+
async deleteAutoRepairPolicyWithOptions(clusterId, policyId, headers, runtime) {
|
|
1503
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1504
|
+
headers: headers,
|
|
1505
|
+
});
|
|
1506
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1507
|
+
action: "DeleteAutoRepairPolicy",
|
|
1508
|
+
version: "2015-12-15",
|
|
1509
|
+
protocol: "HTTPS",
|
|
1510
|
+
pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/auto_repair_policies/${$dara.URL.percentEncode(policyId)}`,
|
|
1511
|
+
method: "DELETE",
|
|
1512
|
+
authType: "AK",
|
|
1513
|
+
style: "ROA",
|
|
1514
|
+
reqBodyType: "json",
|
|
1515
|
+
bodyType: "json",
|
|
1516
|
+
});
|
|
1517
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteAutoRepairPolicyResponse({}));
|
|
1518
|
+
}
|
|
1519
|
+
/**
|
|
1520
|
+
* 查询自愈规则
|
|
1521
|
+
* @returns DeleteAutoRepairPolicyResponse
|
|
1522
|
+
*/
|
|
1523
|
+
async deleteAutoRepairPolicy(clusterId, policyId) {
|
|
1524
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1525
|
+
let headers = {};
|
|
1526
|
+
return await this.deleteAutoRepairPolicyWithOptions(clusterId, policyId, headers, runtime);
|
|
1527
|
+
}
|
|
1444
1528
|
/**
|
|
1445
1529
|
* You can call the DeleteCluster operation to delete a cluster and specify whether to delete or retain the relevant cluster resources. Before you delete a cluster, you must manually delete workloads in the cluster, such as Deployments, StatefulSets, Jobs, and CronJobs. Otherwise, you may fail to delete the cluster.
|
|
1446
1530
|
*
|
|
@@ -1968,6 +2052,39 @@ class Client extends openapi_core_1.default {
|
|
|
1968
2052
|
let headers = {};
|
|
1969
2053
|
return await this.describeAddonsWithOptions(request, headers, runtime);
|
|
1970
2054
|
}
|
|
2055
|
+
/**
|
|
2056
|
+
* 查询自愈规则
|
|
2057
|
+
*
|
|
2058
|
+
* @param headers - map
|
|
2059
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2060
|
+
* @returns DescribeAutoRepairPolicyResponse
|
|
2061
|
+
*/
|
|
2062
|
+
async describeAutoRepairPolicyWithOptions(clusterId, policyId, headers, runtime) {
|
|
2063
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2064
|
+
headers: headers,
|
|
2065
|
+
});
|
|
2066
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2067
|
+
action: "DescribeAutoRepairPolicy",
|
|
2068
|
+
version: "2015-12-15",
|
|
2069
|
+
protocol: "HTTPS",
|
|
2070
|
+
pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/auto_repair_policies/${$dara.URL.percentEncode(policyId)}`,
|
|
2071
|
+
method: "GET",
|
|
2072
|
+
authType: "AK",
|
|
2073
|
+
style: "ROA",
|
|
2074
|
+
reqBodyType: "json",
|
|
2075
|
+
bodyType: "json",
|
|
2076
|
+
});
|
|
2077
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeAutoRepairPolicyResponse({}));
|
|
2078
|
+
}
|
|
2079
|
+
/**
|
|
2080
|
+
* 查询自愈规则
|
|
2081
|
+
* @returns DescribeAutoRepairPolicyResponse
|
|
2082
|
+
*/
|
|
2083
|
+
async describeAutoRepairPolicy(clusterId, policyId) {
|
|
2084
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2085
|
+
let headers = {};
|
|
2086
|
+
return await this.describeAutoRepairPolicyWithOptions(clusterId, policyId, headers, runtime);
|
|
2087
|
+
}
|
|
1971
2088
|
/**
|
|
1972
2089
|
* You can call the DescribeClusterAddonInstance operation to query the information about a cluster component, including the version, status, and configuration of the component.
|
|
1973
2090
|
*
|
|
@@ -3320,6 +3437,54 @@ class Client extends openapi_core_1.default {
|
|
|
3320
3437
|
let headers = {};
|
|
3321
3438
|
return await this.describePolicyInstancesStatusWithOptions(clusterId, headers, runtime);
|
|
3322
3439
|
}
|
|
3440
|
+
/**
|
|
3441
|
+
* 查询地域列表
|
|
3442
|
+
*
|
|
3443
|
+
* @param request - DescribeRegionsRequest
|
|
3444
|
+
* @param headers - map
|
|
3445
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3446
|
+
* @returns DescribeRegionsResponse
|
|
3447
|
+
*/
|
|
3448
|
+
async describeRegionsWithOptions(request, headers, runtime) {
|
|
3449
|
+
request.validate();
|
|
3450
|
+
let query = {};
|
|
3451
|
+
if (!$dara.isNull(request.acceptLanguage)) {
|
|
3452
|
+
query["acceptLanguage"] = request.acceptLanguage;
|
|
3453
|
+
}
|
|
3454
|
+
if (!$dara.isNull(request.clusterType)) {
|
|
3455
|
+
query["clusterType"] = request.clusterType;
|
|
3456
|
+
}
|
|
3457
|
+
if (!$dara.isNull(request.profile)) {
|
|
3458
|
+
query["profile"] = request.profile;
|
|
3459
|
+
}
|
|
3460
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3461
|
+
headers: headers,
|
|
3462
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3463
|
+
});
|
|
3464
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3465
|
+
action: "DescribeRegions",
|
|
3466
|
+
version: "2015-12-15",
|
|
3467
|
+
protocol: "HTTPS",
|
|
3468
|
+
pathname: `/regions`,
|
|
3469
|
+
method: "GET",
|
|
3470
|
+
authType: "AK",
|
|
3471
|
+
style: "ROA",
|
|
3472
|
+
reqBodyType: "json",
|
|
3473
|
+
bodyType: "json",
|
|
3474
|
+
});
|
|
3475
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeRegionsResponse({}));
|
|
3476
|
+
}
|
|
3477
|
+
/**
|
|
3478
|
+
* 查询地域列表
|
|
3479
|
+
*
|
|
3480
|
+
* @param request - DescribeRegionsRequest
|
|
3481
|
+
* @returns DescribeRegionsResponse
|
|
3482
|
+
*/
|
|
3483
|
+
async describeRegions(request) {
|
|
3484
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3485
|
+
let headers = {};
|
|
3486
|
+
return await this.describeRegionsWithOptions(request, headers, runtime);
|
|
3487
|
+
}
|
|
3323
3488
|
/**
|
|
3324
3489
|
* Queries whether the deletion protection feature is enabled for the specified resources in the cluster. The resources that you can query include namespaces and Services.
|
|
3325
3490
|
*
|
|
@@ -4319,6 +4484,39 @@ class Client extends openapi_core_1.default {
|
|
|
4319
4484
|
let headers = {};
|
|
4320
4485
|
return await this.listAddonsWithOptions(request, headers, runtime);
|
|
4321
4486
|
}
|
|
4487
|
+
/**
|
|
4488
|
+
* 查询自愈规则
|
|
4489
|
+
*
|
|
4490
|
+
* @param headers - map
|
|
4491
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4492
|
+
* @returns ListAutoRepairPoliciesResponse
|
|
4493
|
+
*/
|
|
4494
|
+
async listAutoRepairPoliciesWithOptions(clusterId, headers, runtime) {
|
|
4495
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4496
|
+
headers: headers,
|
|
4497
|
+
});
|
|
4498
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4499
|
+
action: "ListAutoRepairPolicies",
|
|
4500
|
+
version: "2015-12-15",
|
|
4501
|
+
protocol: "HTTPS",
|
|
4502
|
+
pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/auto_repair_policies`,
|
|
4503
|
+
method: "GET",
|
|
4504
|
+
authType: "AK",
|
|
4505
|
+
style: "ROA",
|
|
4506
|
+
reqBodyType: "json",
|
|
4507
|
+
bodyType: "json",
|
|
4508
|
+
});
|
|
4509
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAutoRepairPoliciesResponse({}));
|
|
4510
|
+
}
|
|
4511
|
+
/**
|
|
4512
|
+
* 查询自愈规则
|
|
4513
|
+
* @returns ListAutoRepairPoliciesResponse
|
|
4514
|
+
*/
|
|
4515
|
+
async listAutoRepairPolicies(clusterId) {
|
|
4516
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4517
|
+
let headers = {};
|
|
4518
|
+
return await this.listAutoRepairPoliciesWithOptions(clusterId, headers, runtime);
|
|
4519
|
+
}
|
|
4322
4520
|
/**
|
|
4323
4521
|
* 获取集群组件实例的资源列表
|
|
4324
4522
|
*
|
|
@@ -4782,6 +4980,51 @@ class Client extends openapi_core_1.default {
|
|
|
4782
4980
|
let headers = {};
|
|
4783
4981
|
return await this.migrateClusterWithOptions(clusterId, request, headers, runtime);
|
|
4784
4982
|
}
|
|
4983
|
+
/**
|
|
4984
|
+
* 查询自愈规则
|
|
4985
|
+
*
|
|
4986
|
+
* @param request - ModifyAutoRepairPolicyRequest
|
|
4987
|
+
* @param headers - map
|
|
4988
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4989
|
+
* @returns ModifyAutoRepairPolicyResponse
|
|
4990
|
+
*/
|
|
4991
|
+
async modifyAutoRepairPolicyWithOptions(clusterId, policyId, request, headers, runtime) {
|
|
4992
|
+
request.validate();
|
|
4993
|
+
let body = {};
|
|
4994
|
+
if (!$dara.isNull(request.name)) {
|
|
4995
|
+
body["name"] = request.name;
|
|
4996
|
+
}
|
|
4997
|
+
if (!$dara.isNull(request.rules)) {
|
|
4998
|
+
body["rules"] = request.rules;
|
|
4999
|
+
}
|
|
5000
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
5001
|
+
headers: headers,
|
|
5002
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
5003
|
+
});
|
|
5004
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
5005
|
+
action: "ModifyAutoRepairPolicy",
|
|
5006
|
+
version: "2015-12-15",
|
|
5007
|
+
protocol: "HTTPS",
|
|
5008
|
+
pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/auto_repair_policies/${$dara.URL.percentEncode(policyId)}`,
|
|
5009
|
+
method: "PUT",
|
|
5010
|
+
authType: "AK",
|
|
5011
|
+
style: "ROA",
|
|
5012
|
+
reqBodyType: "json",
|
|
5013
|
+
bodyType: "json",
|
|
5014
|
+
});
|
|
5015
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyAutoRepairPolicyResponse({}));
|
|
5016
|
+
}
|
|
5017
|
+
/**
|
|
5018
|
+
* 查询自愈规则
|
|
5019
|
+
*
|
|
5020
|
+
* @param request - ModifyAutoRepairPolicyRequest
|
|
5021
|
+
* @returns ModifyAutoRepairPolicyResponse
|
|
5022
|
+
*/
|
|
5023
|
+
async modifyAutoRepairPolicy(clusterId, policyId, request) {
|
|
5024
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
5025
|
+
let headers = {};
|
|
5026
|
+
return await this.modifyAutoRepairPolicyWithOptions(clusterId, policyId, request, headers, runtime);
|
|
5027
|
+
}
|
|
4785
5028
|
/**
|
|
4786
5029
|
* You can call the ModifyCluster operation to modify the cluster configurations by cluster ID.
|
|
4787
5030
|
*
|