@alicloud/cs20151215 4.9.7 → 5.0.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.
Files changed (143) hide show
  1. package/dist/client.d.ts +0 -169
  2. package/dist/client.js +0 -452
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateClusterNodePoolRequest.d.ts +19 -0
  5. package/dist/models/CreateClusterNodePoolRequest.js +30 -1
  6. package/dist/models/CreateClusterNodePoolRequest.js.map +1 -1
  7. package/dist/models/CreateClusterRequest.d.ts +16 -4
  8. package/dist/models/CreateClusterRequest.js.map +1 -1
  9. package/dist/models/DescribeClusterDetailResponseBody.d.ts +12 -0
  10. package/dist/models/DescribeClusterDetailResponseBody.js.map +1 -1
  11. package/dist/models/DescribeClusterNodePoolDetailResponseBody.d.ts +34 -0
  12. package/dist/models/DescribeClusterNodePoolDetailResponseBody.js +58 -1
  13. package/dist/models/DescribeClusterNodePoolDetailResponseBody.js.map +1 -1
  14. package/dist/models/DescribeClusterNodePoolsResponseBody.d.ts +34 -0
  15. package/dist/models/DescribeClusterNodePoolsResponseBody.js +58 -1
  16. package/dist/models/DescribeClusterNodePoolsResponseBody.js.map +1 -1
  17. package/dist/models/DescribeClustersV1responseBody.d.ts +12 -0
  18. package/dist/models/DescribeClustersV1responseBody.js.map +1 -1
  19. package/dist/models/Hugepage.d.ts +19 -0
  20. package/dist/models/{DeleteEdgeMachineResponse.js → Hugepage.js} +16 -11
  21. package/dist/models/Hugepage.js.map +1 -0
  22. package/dist/models/KubeletConfig.d.ts +1 -0
  23. package/dist/models/KubeletConfig.js +2 -0
  24. package/dist/models/KubeletConfig.js.map +1 -1
  25. package/dist/models/ModifyClusterNodePoolRequest.d.ts +19 -0
  26. package/dist/models/ModifyClusterNodePoolRequest.js +30 -1
  27. package/dist/models/ModifyClusterNodePoolRequest.js.map +1 -1
  28. package/dist/models/ModifyClusterRequest.d.ts +8 -0
  29. package/dist/models/ModifyClusterRequest.js.map +1 -1
  30. package/dist/models/ModifyNodePoolNodeConfigRequest.d.ts +2 -0
  31. package/dist/models/ModifyNodePoolNodeConfigRequest.js +6 -0
  32. package/dist/models/ModifyNodePoolNodeConfigRequest.js.map +1 -1
  33. package/dist/models/Nodepool.d.ts +19 -0
  34. package/dist/models/Nodepool.js +30 -1
  35. package/dist/models/Nodepool.js.map +1 -1
  36. package/dist/models/UpgradeClusterRequest.d.ts +4 -0
  37. package/dist/models/UpgradeClusterRequest.js.map +1 -1
  38. package/dist/models/model.d.ts +8 -30
  39. package/dist/models/model.js +62 -107
  40. package/dist/models/model.js.map +1 -1
  41. package/package.json +1 -1
  42. package/src/client.ts +0 -503
  43. package/src/models/CreateClusterNodePoolRequest.ts +39 -0
  44. package/src/models/CreateClusterRequest.ts +16 -4
  45. package/src/models/DescribeClusterDetailResponseBody.ts +12 -0
  46. package/src/models/DescribeClusterNodePoolDetailResponseBody.ts +72 -0
  47. package/src/models/DescribeClusterNodePoolsResponseBody.ts +72 -0
  48. package/src/models/DescribeClustersV1responseBody.ts +12 -0
  49. package/src/models/Hugepage.ts +42 -0
  50. package/src/models/KubeletConfig.ts +3 -0
  51. package/src/models/ModifyClusterNodePoolRequest.ts +39 -0
  52. package/src/models/ModifyClusterRequest.ts +8 -0
  53. package/src/models/ModifyNodePoolNodeConfigRequest.ts +7 -0
  54. package/src/models/Nodepool.ts +39 -0
  55. package/src/models/UpgradeClusterRequest.ts +4 -0
  56. package/src/models/model.ts +8 -30
  57. package/dist/models/CreateEdgeMachineRequest.d.ts +0 -45
  58. package/dist/models/CreateEdgeMachineRequest.js +0 -62
  59. package/dist/models/CreateEdgeMachineRequest.js.map +0 -1
  60. package/dist/models/CreateEdgeMachineResponse.d.ts +0 -19
  61. package/dist/models/CreateEdgeMachineResponse.js +0 -69
  62. package/dist/models/CreateEdgeMachineResponse.js.map +0 -1
  63. package/dist/models/CreateEdgeMachineResponseBody.d.ts +0 -29
  64. package/dist/models/CreateEdgeMachineResponseBody.js +0 -60
  65. package/dist/models/CreateEdgeMachineResponseBody.js.map +0 -1
  66. package/dist/models/DeleteEdgeMachineRequest.d.ts +0 -26
  67. package/dist/models/DeleteEdgeMachineRequest.js +0 -58
  68. package/dist/models/DeleteEdgeMachineRequest.js.map +0 -1
  69. package/dist/models/DeleteEdgeMachineResponse.d.ts +0 -17
  70. package/dist/models/DeleteEdgeMachineResponse.js.map +0 -1
  71. package/dist/models/DescribeEdgeMachineActiveProcessResponse.d.ts +0 -19
  72. package/dist/models/DescribeEdgeMachineActiveProcessResponse.js +0 -69
  73. package/dist/models/DescribeEdgeMachineActiveProcessResponse.js.map +0 -1
  74. package/dist/models/DescribeEdgeMachineActiveProcessResponseBody.d.ts +0 -53
  75. package/dist/models/DescribeEdgeMachineActiveProcessResponseBody.js +0 -66
  76. package/dist/models/DescribeEdgeMachineActiveProcessResponseBody.js.map +0 -1
  77. package/dist/models/DescribeEdgeMachineModelsResponse.d.ts +0 -19
  78. package/dist/models/DescribeEdgeMachineModelsResponse.js +0 -69
  79. package/dist/models/DescribeEdgeMachineModelsResponse.js.map +0 -1
  80. package/dist/models/DescribeEdgeMachineModelsResponseBody.d.ts +0 -94
  81. package/dist/models/DescribeEdgeMachineModelsResponseBody.js +0 -94
  82. package/dist/models/DescribeEdgeMachineModelsResponseBody.js.map +0 -1
  83. package/dist/models/DescribeEdgeMachineTunnelConfigDetailResponse.d.ts +0 -19
  84. package/dist/models/DescribeEdgeMachineTunnelConfigDetailResponse.js +0 -69
  85. package/dist/models/DescribeEdgeMachineTunnelConfigDetailResponse.js.map +0 -1
  86. package/dist/models/DescribeEdgeMachineTunnelConfigDetailResponseBody.d.ts +0 -69
  87. package/dist/models/DescribeEdgeMachineTunnelConfigDetailResponseBody.js +0 -70
  88. package/dist/models/DescribeEdgeMachineTunnelConfigDetailResponseBody.js.map +0 -1
  89. package/dist/models/DescribeEdgeMachinesRequest.d.ts +0 -64
  90. package/dist/models/DescribeEdgeMachinesRequest.js +0 -68
  91. package/dist/models/DescribeEdgeMachinesRequest.js.map +0 -1
  92. package/dist/models/DescribeEdgeMachinesResponse.d.ts +0 -19
  93. package/dist/models/DescribeEdgeMachinesResponse.js +0 -69
  94. package/dist/models/DescribeEdgeMachinesResponse.js.map +0 -1
  95. package/dist/models/DescribeEdgeMachinesResponseBody.d.ts +0 -155
  96. package/dist/models/DescribeEdgeMachinesResponseBody.js +0 -126
  97. package/dist/models/DescribeEdgeMachinesResponseBody.js.map +0 -1
  98. package/dist/models/EdgeClusterAddEdgeMachineRequest.d.ts +0 -39
  99. package/dist/models/EdgeClusterAddEdgeMachineRequest.js +0 -62
  100. package/dist/models/EdgeClusterAddEdgeMachineRequest.js.map +0 -1
  101. package/dist/models/EdgeClusterAddEdgeMachineResponse.d.ts +0 -19
  102. package/dist/models/EdgeClusterAddEdgeMachineResponse.js +0 -69
  103. package/dist/models/EdgeClusterAddEdgeMachineResponse.js.map +0 -1
  104. package/dist/models/EdgeClusterAddEdgeMachineResponseBody.d.ts +0 -29
  105. package/dist/models/EdgeClusterAddEdgeMachineResponseBody.js +0 -60
  106. package/dist/models/EdgeClusterAddEdgeMachineResponseBody.js.map +0 -1
  107. package/dist/models/ModifyClusterConfigurationRequest.d.ts +0 -71
  108. package/dist/models/ModifyClusterConfigurationRequest.js +0 -106
  109. package/dist/models/ModifyClusterConfigurationRequest.js.map +0 -1
  110. package/dist/models/ModifyClusterConfigurationResponse.d.ts +0 -17
  111. package/dist/models/ModifyClusterConfigurationResponse.js +0 -63
  112. package/dist/models/ModifyClusterConfigurationResponse.js.map +0 -1
  113. package/dist/models/ScaleClusterRequest.d.ts +0 -75
  114. package/dist/models/ScaleClusterRequest.js +0 -174
  115. package/dist/models/ScaleClusterRequest.js.map +0 -1
  116. package/dist/models/ScaleClusterResponse.d.ts +0 -19
  117. package/dist/models/ScaleClusterResponse.js +0 -69
  118. package/dist/models/ScaleClusterResponse.js.map +0 -1
  119. package/dist/models/ScaleClusterResponseBody.d.ts +0 -16
  120. package/dist/models/ScaleClusterResponseBody.js +0 -62
  121. package/dist/models/ScaleClusterResponseBody.js.map +0 -1
  122. package/src/models/CreateEdgeMachineRequest.ts +0 -62
  123. package/src/models/CreateEdgeMachineResponse.ts +0 -40
  124. package/src/models/CreateEdgeMachineResponseBody.ts +0 -44
  125. package/src/models/DeleteEdgeMachineRequest.ts +0 -39
  126. package/src/models/DeleteEdgeMachineResponse.ts +0 -33
  127. package/src/models/DescribeEdgeMachineActiveProcessResponse.ts +0 -40
  128. package/src/models/DescribeEdgeMachineActiveProcessResponseBody.ts +0 -74
  129. package/src/models/DescribeEdgeMachineModelsResponse.ts +0 -40
  130. package/src/models/DescribeEdgeMachineModelsResponseBody.ts +0 -134
  131. package/src/models/DescribeEdgeMachineTunnelConfigDetailResponse.ts +0 -40
  132. package/src/models/DescribeEdgeMachineTunnelConfigDetailResponseBody.ts +0 -94
  133. package/src/models/DescribeEdgeMachinesRequest.ts +0 -87
  134. package/src/models/DescribeEdgeMachinesResponse.ts +0 -40
  135. package/src/models/DescribeEdgeMachinesResponseBody.ts +0 -218
  136. package/src/models/EdgeClusterAddEdgeMachineRequest.ts +0 -56
  137. package/src/models/EdgeClusterAddEdgeMachineResponse.ts +0 -40
  138. package/src/models/EdgeClusterAddEdgeMachineResponseBody.ts +0 -44
  139. package/src/models/ModifyClusterConfigurationRequest.ts +0 -114
  140. package/src/models/ModifyClusterConfigurationResponse.ts +0 -33
  141. package/src/models/ScaleClusterRequest.ts +0 -177
  142. package/src/models/ScaleClusterResponse.ts +0 -40
  143. package/src/models/ScaleClusterResponseBody.ts +0 -33
package/src/client.ts CHANGED
@@ -1338,59 +1338,6 @@ export default class Client extends OpenApi {
1338
1338
  return await this.createClusterNodePoolWithOptions(ClusterId, request, headers, runtime);
1339
1339
  }
1340
1340
 
1341
- /**
1342
- * You can call the CreateEdgeMachine operation to activate a cloud-native box.
1343
- *
1344
- * @param request - CreateEdgeMachineRequest
1345
- * @param headers - map
1346
- * @param runtime - runtime options for this request RuntimeOptions
1347
- * @returns CreateEdgeMachineResponse
1348
- */
1349
- async createEdgeMachineWithOptions(request: $_model.CreateEdgeMachineRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateEdgeMachineResponse> {
1350
- request.validate();
1351
- let body : {[key: string ]: any} = { };
1352
- if (!$dara.isNull(request.hostname)) {
1353
- body["hostname"] = request.hostname;
1354
- }
1355
-
1356
- if (!$dara.isNull(request.model)) {
1357
- body["model"] = request.model;
1358
- }
1359
-
1360
- if (!$dara.isNull(request.sn)) {
1361
- body["sn"] = request.sn;
1362
- }
1363
-
1364
- let req = new $OpenApiUtil.OpenApiRequest({
1365
- headers: headers,
1366
- body: OpenApiUtil.parseToMap(body),
1367
- });
1368
- let params = new $OpenApiUtil.Params({
1369
- action: "CreateEdgeMachine",
1370
- version: "2015-12-15",
1371
- protocol: "HTTPS",
1372
- pathname: `/edge_machines`,
1373
- method: "POST",
1374
- authType: "AK",
1375
- style: "ROA",
1376
- reqBodyType: "json",
1377
- bodyType: "json",
1378
- });
1379
- return $dara.cast<$_model.CreateEdgeMachineResponse>(await this.callApi(params, req, runtime), new $_model.CreateEdgeMachineResponse({}));
1380
- }
1381
-
1382
- /**
1383
- * You can call the CreateEdgeMachine operation to activate a cloud-native box.
1384
- *
1385
- * @param request - CreateEdgeMachineRequest
1386
- * @returns CreateEdgeMachineResponse
1387
- */
1388
- async createEdgeMachine(request: $_model.CreateEdgeMachineRequest): Promise<$_model.CreateEdgeMachineResponse> {
1389
- let runtime = new $dara.RuntimeOptions({ });
1390
- let headers : {[key: string ]: string} = { };
1391
- return await this.createEdgeMachineWithOptions(request, headers, runtime);
1392
- }
1393
-
1394
1341
  /**
1395
1342
  * You can call the CreateKubernetesTrigger operation to create a trigger for an application.
1396
1343
  *
@@ -1905,51 +1852,6 @@ export default class Client extends OpenApi {
1905
1852
  return await this.deleteClusterNodesWithOptions(ClusterId, request, headers, runtime);
1906
1853
  }
1907
1854
 
1908
- /**
1909
- * You can call the DeleteEdgeMachine operation to delete a cloud-native box.
1910
- *
1911
- * @param request - DeleteEdgeMachineRequest
1912
- * @param headers - map
1913
- * @param runtime - runtime options for this request RuntimeOptions
1914
- * @returns DeleteEdgeMachineResponse
1915
- */
1916
- async deleteEdgeMachineWithOptions(edgeMachineid: string, request: $_model.DeleteEdgeMachineRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteEdgeMachineResponse> {
1917
- request.validate();
1918
- let query : {[key: string ]: any} = { };
1919
- if (!$dara.isNull(request.force)) {
1920
- query["force"] = request.force;
1921
- }
1922
-
1923
- let req = new $OpenApiUtil.OpenApiRequest({
1924
- headers: headers,
1925
- query: OpenApiUtil.query(query),
1926
- });
1927
- let params = new $OpenApiUtil.Params({
1928
- action: "DeleteEdgeMachine",
1929
- version: "2015-12-15",
1930
- protocol: "HTTPS",
1931
- pathname: `/edge_machines/%5Bedge_machineid%5D`,
1932
- method: "DELETE",
1933
- authType: "AK",
1934
- style: "ROA",
1935
- reqBodyType: "json",
1936
- bodyType: "none",
1937
- });
1938
- return $dara.cast<$_model.DeleteEdgeMachineResponse>(await this.callApi(params, req, runtime), new $_model.DeleteEdgeMachineResponse({}));
1939
- }
1940
-
1941
- /**
1942
- * You can call the DeleteEdgeMachine operation to delete a cloud-native box.
1943
- *
1944
- * @param request - DeleteEdgeMachineRequest
1945
- * @returns DeleteEdgeMachineResponse
1946
- */
1947
- async deleteEdgeMachine(edgeMachineid: string, request: $_model.DeleteEdgeMachineRequest): Promise<$_model.DeleteEdgeMachineResponse> {
1948
- let runtime = new $dara.RuntimeOptions({ });
1949
- let headers : {[key: string ]: string} = { };
1950
- return await this.deleteEdgeMachineWithOptions(edgeMachineid, request, headers, runtime);
1951
- }
1952
-
1953
1855
  /**
1954
1856
  * You can call the DeleteKubernetesTrigger operation to delete an application trigger by trigger ID
1955
1857
  *
@@ -3292,181 +3194,6 @@ export default class Client extends OpenApi {
3292
3194
  return await this.describeClustersV1WithOptions(request, headers, runtime);
3293
3195
  }
3294
3196
 
3295
- /**
3296
- * You can call the DescribeEdgeMachineActiveProcess operation to query the activation progress of a cloud-native box.
3297
- *
3298
- * @deprecated OpenAPI DescribeEdgeMachineActiveProcess is deprecated
3299
- *
3300
- * @param headers - map
3301
- * @param runtime - runtime options for this request RuntimeOptions
3302
- * @returns DescribeEdgeMachineActiveProcessResponse
3303
- */
3304
- async describeEdgeMachineActiveProcessWithOptions(edgeMachineid: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeEdgeMachineActiveProcessResponse> {
3305
- let req = new $OpenApiUtil.OpenApiRequest({
3306
- headers: headers,
3307
- });
3308
- let params = new $OpenApiUtil.Params({
3309
- action: "DescribeEdgeMachineActiveProcess",
3310
- version: "2015-12-15",
3311
- protocol: "HTTPS",
3312
- pathname: `/edge_machines/%5Bedge_machineid%5D/activeprocess`,
3313
- method: "GET",
3314
- authType: "AK",
3315
- style: "ROA",
3316
- reqBodyType: "json",
3317
- bodyType: "json",
3318
- });
3319
- return $dara.cast<$_model.DescribeEdgeMachineActiveProcessResponse>(await this.callApi(params, req, runtime), new $_model.DescribeEdgeMachineActiveProcessResponse({}));
3320
- }
3321
-
3322
- /**
3323
- * You can call the DescribeEdgeMachineActiveProcess operation to query the activation progress of a cloud-native box.
3324
- *
3325
- * @deprecated OpenAPI DescribeEdgeMachineActiveProcess is deprecated
3326
- * @returns DescribeEdgeMachineActiveProcessResponse
3327
- */
3328
- // Deprecated
3329
- async describeEdgeMachineActiveProcess(edgeMachineid: string): Promise<$_model.DescribeEdgeMachineActiveProcessResponse> {
3330
- let runtime = new $dara.RuntimeOptions({ });
3331
- let headers : {[key: string ]: string} = { };
3332
- return await this.describeEdgeMachineActiveProcessWithOptions(edgeMachineid, headers, runtime);
3333
- }
3334
-
3335
- /**
3336
- * You can call the DescribeEdgeMachineModels operation to query the cloud-native box models.
3337
- *
3338
- * @param headers - map
3339
- * @param runtime - runtime options for this request RuntimeOptions
3340
- * @returns DescribeEdgeMachineModelsResponse
3341
- */
3342
- async describeEdgeMachineModelsWithOptions(headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeEdgeMachineModelsResponse> {
3343
- let req = new $OpenApiUtil.OpenApiRequest({
3344
- headers: headers,
3345
- });
3346
- let params = new $OpenApiUtil.Params({
3347
- action: "DescribeEdgeMachineModels",
3348
- version: "2015-12-15",
3349
- protocol: "HTTPS",
3350
- pathname: `/edge_machines/models`,
3351
- method: "GET",
3352
- authType: "AK",
3353
- style: "ROA",
3354
- reqBodyType: "json",
3355
- bodyType: "json",
3356
- });
3357
- return $dara.cast<$_model.DescribeEdgeMachineModelsResponse>(await this.callApi(params, req, runtime), new $_model.DescribeEdgeMachineModelsResponse({}));
3358
- }
3359
-
3360
- /**
3361
- * You can call the DescribeEdgeMachineModels operation to query the cloud-native box models.
3362
- * @returns DescribeEdgeMachineModelsResponse
3363
- */
3364
- async describeEdgeMachineModels(): Promise<$_model.DescribeEdgeMachineModelsResponse> {
3365
- let runtime = new $dara.RuntimeOptions({ });
3366
- let headers : {[key: string ]: string} = { };
3367
- return await this.describeEdgeMachineModelsWithOptions(headers, runtime);
3368
- }
3369
-
3370
- /**
3371
- * You can call the DescribeEdgeMachineTunnelConfigDetail operation to obtain the SSH token of a cloud-native box.
3372
- *
3373
- * @param headers - map
3374
- * @param runtime - runtime options for this request RuntimeOptions
3375
- * @returns DescribeEdgeMachineTunnelConfigDetailResponse
3376
- */
3377
- async describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeEdgeMachineTunnelConfigDetailResponse> {
3378
- let req = new $OpenApiUtil.OpenApiRequest({
3379
- headers: headers,
3380
- });
3381
- let params = new $OpenApiUtil.Params({
3382
- action: "DescribeEdgeMachineTunnelConfigDetail",
3383
- version: "2015-12-15",
3384
- protocol: "HTTPS",
3385
- pathname: `/edge_machines/%5Bedge_machineid%5D/tunnelconfig`,
3386
- method: "POST",
3387
- authType: "AK",
3388
- style: "ROA",
3389
- reqBodyType: "json",
3390
- bodyType: "json",
3391
- });
3392
- return $dara.cast<$_model.DescribeEdgeMachineTunnelConfigDetailResponse>(await this.callApi(params, req, runtime), new $_model.DescribeEdgeMachineTunnelConfigDetailResponse({}));
3393
- }
3394
-
3395
- /**
3396
- * You can call the DescribeEdgeMachineTunnelConfigDetail operation to obtain the SSH token of a cloud-native box.
3397
- * @returns DescribeEdgeMachineTunnelConfigDetailResponse
3398
- */
3399
- async describeEdgeMachineTunnelConfigDetail(edgeMachineid: string): Promise<$_model.DescribeEdgeMachineTunnelConfigDetailResponse> {
3400
- let runtime = new $dara.RuntimeOptions({ });
3401
- let headers : {[key: string ]: string} = { };
3402
- return await this.describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid, headers, runtime);
3403
- }
3404
-
3405
- /**
3406
- * You can call the DescribeEdgeMachines operation to query a list of cloud-native boxes.
3407
- *
3408
- * @param request - DescribeEdgeMachinesRequest
3409
- * @param headers - map
3410
- * @param runtime - runtime options for this request RuntimeOptions
3411
- * @returns DescribeEdgeMachinesResponse
3412
- */
3413
- async describeEdgeMachinesWithOptions(request: $_model.DescribeEdgeMachinesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeEdgeMachinesResponse> {
3414
- request.validate();
3415
- let query : {[key: string ]: any} = { };
3416
- if (!$dara.isNull(request.hostname)) {
3417
- query["hostname"] = request.hostname;
3418
- }
3419
-
3420
- if (!$dara.isNull(request.lifeState)) {
3421
- query["life_state"] = request.lifeState;
3422
- }
3423
-
3424
- if (!$dara.isNull(request.model)) {
3425
- query["model"] = request.model;
3426
- }
3427
-
3428
- if (!$dara.isNull(request.onlineState)) {
3429
- query["online_state"] = request.onlineState;
3430
- }
3431
-
3432
- if (!$dara.isNull(request.pageNumber)) {
3433
- query["page_number"] = request.pageNumber;
3434
- }
3435
-
3436
- if (!$dara.isNull(request.pageSize)) {
3437
- query["page_size"] = request.pageSize;
3438
- }
3439
-
3440
- let req = new $OpenApiUtil.OpenApiRequest({
3441
- headers: headers,
3442
- query: OpenApiUtil.query(query),
3443
- });
3444
- let params = new $OpenApiUtil.Params({
3445
- action: "DescribeEdgeMachines",
3446
- version: "2015-12-15",
3447
- protocol: "HTTPS",
3448
- pathname: `/edge_machines`,
3449
- method: "GET",
3450
- authType: "AK",
3451
- style: "ROA",
3452
- reqBodyType: "json",
3453
- bodyType: "json",
3454
- });
3455
- return $dara.cast<$_model.DescribeEdgeMachinesResponse>(await this.callApi(params, req, runtime), new $_model.DescribeEdgeMachinesResponse({}));
3456
- }
3457
-
3458
- /**
3459
- * You can call the DescribeEdgeMachines operation to query a list of cloud-native boxes.
3460
- *
3461
- * @param request - DescribeEdgeMachinesRequest
3462
- * @returns DescribeEdgeMachinesResponse
3463
- */
3464
- async describeEdgeMachines(request: $_model.DescribeEdgeMachinesRequest): Promise<$_model.DescribeEdgeMachinesResponse> {
3465
- let runtime = new $dara.RuntimeOptions({ });
3466
- let headers : {[key: string ]: string} = { };
3467
- return await this.describeEdgeMachinesWithOptions(request, headers, runtime);
3468
- }
3469
-
3470
3197
  /**
3471
3198
  * Queries the detailed information about a type of events, including the severity level, status, and time. Events are generated when clusters are created, modified, and updated, node pools are created and scaled out, and components are installed.
3472
3199
  *
@@ -4347,64 +4074,6 @@ export default class Client extends OpenApi {
4347
4074
  return await this.describeUserQuotaWithOptions(headers, runtime);
4348
4075
  }
4349
4076
 
4350
- /**
4351
- * You can call the EdgeClusterAddEdgeMachine operation to add a cloud-native box to a Container Service for Kubernetes (ACK) Edge cluster.
4352
- *
4353
- * @deprecated OpenAPI EdgeClusterAddEdgeMachine is deprecated
4354
- *
4355
- * @param request - EdgeClusterAddEdgeMachineRequest
4356
- * @param headers - map
4357
- * @param runtime - runtime options for this request RuntimeOptions
4358
- * @returns EdgeClusterAddEdgeMachineResponse
4359
- */
4360
- async edgeClusterAddEdgeMachineWithOptions(clusterid: string, edgeMachineid: string, request: $_model.EdgeClusterAddEdgeMachineRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.EdgeClusterAddEdgeMachineResponse> {
4361
- request.validate();
4362
- let body : {[key: string ]: any} = { };
4363
- if (!$dara.isNull(request.expired)) {
4364
- body["expired"] = request.expired;
4365
- }
4366
-
4367
- if (!$dara.isNull(request.nodepoolId)) {
4368
- body["nodepool_id"] = request.nodepoolId;
4369
- }
4370
-
4371
- if (!$dara.isNull(request.options)) {
4372
- body["options"] = request.options;
4373
- }
4374
-
4375
- let req = new $OpenApiUtil.OpenApiRequest({
4376
- headers: headers,
4377
- body: OpenApiUtil.parseToMap(body),
4378
- });
4379
- let params = new $OpenApiUtil.Params({
4380
- action: "EdgeClusterAddEdgeMachine",
4381
- version: "2015-12-15",
4382
- protocol: "HTTPS",
4383
- pathname: `/clusters/%5Bclusterid%5D/attachedgemachine/%5Bedge_machineid%5D`,
4384
- method: "POST",
4385
- authType: "AK",
4386
- style: "ROA",
4387
- reqBodyType: "json",
4388
- bodyType: "json",
4389
- });
4390
- return $dara.cast<$_model.EdgeClusterAddEdgeMachineResponse>(await this.callApi(params, req, runtime), new $_model.EdgeClusterAddEdgeMachineResponse({}));
4391
- }
4392
-
4393
- /**
4394
- * You can call the EdgeClusterAddEdgeMachine operation to add a cloud-native box to a Container Service for Kubernetes (ACK) Edge cluster.
4395
- *
4396
- * @deprecated OpenAPI EdgeClusterAddEdgeMachine is deprecated
4397
- *
4398
- * @param request - EdgeClusterAddEdgeMachineRequest
4399
- * @returns EdgeClusterAddEdgeMachineResponse
4400
- */
4401
- // Deprecated
4402
- async edgeClusterAddEdgeMachine(clusterid: string, edgeMachineid: string, request: $_model.EdgeClusterAddEdgeMachineRequest): Promise<$_model.EdgeClusterAddEdgeMachineResponse> {
4403
- let runtime = new $dara.RuntimeOptions({ });
4404
- let headers : {[key: string ]: string} = { };
4405
- return await this.edgeClusterAddEdgeMachineWithOptions(clusterid, edgeMachineid, request, headers, runtime);
4406
- }
4407
-
4408
4077
  /**
4409
4078
  * Patches node vulnerabilities in a node pool to enhance node security. Cloud Security provided by Alibaba Cloud periodically scans Elastic Compute Service (ECS) instances for vulnerabilities and provides suggestions on how to patch the detected vulnerabilities. Vulnerability patching may require node restarts. Make sure that your cluster has sufficient idle nodes for node draining.
4410
4079
  *
@@ -5612,56 +5281,6 @@ export default class Client extends OpenApi {
5612
5281
  return await this.modifyClusterAddonWithOptions(clusterId, componentId, request, headers, runtime);
5613
5282
  }
5614
5283
 
5615
- /**
5616
- * This API operation applies only to Container Service for Kubernetes (ACK) managed clusters.
5617
- *
5618
- * @deprecated OpenAPI ModifyClusterConfiguration is deprecated
5619
- *
5620
- * @param request - ModifyClusterConfigurationRequest
5621
- * @param headers - map
5622
- * @param runtime - runtime options for this request RuntimeOptions
5623
- * @returns ModifyClusterConfigurationResponse
5624
- */
5625
- async modifyClusterConfigurationWithOptions(ClusterId: string, request: $_model.ModifyClusterConfigurationRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyClusterConfigurationResponse> {
5626
- request.validate();
5627
- let body : {[key: string ]: any} = { };
5628
- if (!$dara.isNull(request.customizeConfig)) {
5629
- body["customize_config"] = request.customizeConfig;
5630
- }
5631
-
5632
- let req = new $OpenApiUtil.OpenApiRequest({
5633
- headers: headers,
5634
- body: OpenApiUtil.parseToMap(body),
5635
- });
5636
- let params = new $OpenApiUtil.Params({
5637
- action: "ModifyClusterConfiguration",
5638
- version: "2015-12-15",
5639
- protocol: "HTTPS",
5640
- pathname: `/clusters/${$dara.URL.percentEncode(ClusterId)}/configuration`,
5641
- method: "PUT",
5642
- authType: "AK",
5643
- style: "ROA",
5644
- reqBodyType: "json",
5645
- bodyType: "none",
5646
- });
5647
- return $dara.cast<$_model.ModifyClusterConfigurationResponse>(await this.callApi(params, req, runtime), new $_model.ModifyClusterConfigurationResponse({}));
5648
- }
5649
-
5650
- /**
5651
- * This API operation applies only to Container Service for Kubernetes (ACK) managed clusters.
5652
- *
5653
- * @deprecated OpenAPI ModifyClusterConfiguration is deprecated
5654
- *
5655
- * @param request - ModifyClusterConfigurationRequest
5656
- * @returns ModifyClusterConfigurationResponse
5657
- */
5658
- // Deprecated
5659
- async modifyClusterConfiguration(ClusterId: string, request: $_model.ModifyClusterConfigurationRequest): Promise<$_model.ModifyClusterConfigurationResponse> {
5660
- let runtime = new $dara.RuntimeOptions({ });
5661
- let headers : {[key: string ]: string} = { };
5662
- return await this.modifyClusterConfigurationWithOptions(ClusterId, request, headers, runtime);
5663
- }
5664
-
5665
5284
  /**
5666
5285
  * You can call the ModifyClusterNodePool operation to modify the configuration of a node pool with the specified node pool ID.
5667
5286
  *
@@ -6521,128 +6140,6 @@ export default class Client extends OpenApi {
6521
6140
  return await this.runClusterInspectWithOptions(clusterId, request, headers, runtime);
6522
6141
  }
6523
6142
 
6524
- /**
6525
- * 扩容Kubernetes集群
6526
- *
6527
- * @deprecated OpenAPI ScaleCluster is deprecated
6528
- *
6529
- * @param request - ScaleClusterRequest
6530
- * @param headers - map
6531
- * @param runtime - runtime options for this request RuntimeOptions
6532
- * @returns ScaleClusterResponse
6533
- */
6534
- async scaleClusterWithOptions(ClusterId: string, request: $_model.ScaleClusterRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ScaleClusterResponse> {
6535
- request.validate();
6536
- let body : {[key: string ]: any} = { };
6537
- if (!$dara.isNull(request.cloudMonitorFlags)) {
6538
- body["cloud_monitor_flags"] = request.cloudMonitorFlags;
6539
- }
6540
-
6541
- if (!$dara.isNull(request.count)) {
6542
- body["count"] = request.count;
6543
- }
6544
-
6545
- if (!$dara.isNull(request.cpuPolicy)) {
6546
- body["cpu_policy"] = request.cpuPolicy;
6547
- }
6548
-
6549
- if (!$dara.isNull(request.disableRollback)) {
6550
- body["disable_rollback"] = request.disableRollback;
6551
- }
6552
-
6553
- if (!$dara.isNull(request.keyPair)) {
6554
- body["key_pair"] = request.keyPair;
6555
- }
6556
-
6557
- if (!$dara.isNull(request.loginPassword)) {
6558
- body["login_password"] = request.loginPassword;
6559
- }
6560
-
6561
- if (!$dara.isNull(request.tags)) {
6562
- body["tags"] = request.tags;
6563
- }
6564
-
6565
- if (!$dara.isNull(request.taints)) {
6566
- body["taints"] = request.taints;
6567
- }
6568
-
6569
- if (!$dara.isNull(request.vswitchIds)) {
6570
- body["vswitch_ids"] = request.vswitchIds;
6571
- }
6572
-
6573
- if (!$dara.isNull(request.workerAutoRenew)) {
6574
- body["worker_auto_renew"] = request.workerAutoRenew;
6575
- }
6576
-
6577
- if (!$dara.isNull(request.workerAutoRenewPeriod)) {
6578
- body["worker_auto_renew_period"] = request.workerAutoRenewPeriod;
6579
- }
6580
-
6581
- if (!$dara.isNull(request.workerDataDisk)) {
6582
- body["worker_data_disk"] = request.workerDataDisk;
6583
- }
6584
-
6585
- if (!$dara.isNull(request.workerDataDisks)) {
6586
- body["worker_data_disks"] = request.workerDataDisks;
6587
- }
6588
-
6589
- if (!$dara.isNull(request.workerInstanceChargeType)) {
6590
- body["worker_instance_charge_type"] = request.workerInstanceChargeType;
6591
- }
6592
-
6593
- if (!$dara.isNull(request.workerInstanceTypes)) {
6594
- body["worker_instance_types"] = request.workerInstanceTypes;
6595
- }
6596
-
6597
- if (!$dara.isNull(request.workerPeriod)) {
6598
- body["worker_period"] = request.workerPeriod;
6599
- }
6600
-
6601
- if (!$dara.isNull(request.workerPeriodUnit)) {
6602
- body["worker_period_unit"] = request.workerPeriodUnit;
6603
- }
6604
-
6605
- if (!$dara.isNull(request.workerSystemDiskCategory)) {
6606
- body["worker_system_disk_category"] = request.workerSystemDiskCategory;
6607
- }
6608
-
6609
- if (!$dara.isNull(request.workerSystemDiskSize)) {
6610
- body["worker_system_disk_size"] = request.workerSystemDiskSize;
6611
- }
6612
-
6613
- let req = new $OpenApiUtil.OpenApiRequest({
6614
- headers: headers,
6615
- body: OpenApiUtil.parseToMap(body),
6616
- });
6617
- let params = new $OpenApiUtil.Params({
6618
- action: "ScaleCluster",
6619
- version: "2015-12-15",
6620
- protocol: "HTTPS",
6621
- pathname: `/clusters/${$dara.URL.percentEncode(ClusterId)}`,
6622
- method: "PUT",
6623
- authType: "AK",
6624
- style: "ROA",
6625
- reqBodyType: "json",
6626
- bodyType: "json",
6627
- });
6628
- return $dara.cast<$_model.ScaleClusterResponse>(await this.callApi(params, req, runtime), new $_model.ScaleClusterResponse({}));
6629
- }
6630
-
6631
- /**
6632
- * 扩容Kubernetes集群
6633
- *
6634
- * @deprecated OpenAPI ScaleCluster is deprecated
6635
- *
6636
- * @param request - ScaleClusterRequest
6637
- * @returns ScaleClusterResponse
6638
- */
6639
- // Deprecated
6640
- async scaleCluster(ClusterId: string, request: $_model.ScaleClusterRequest): Promise<$_model.ScaleClusterResponse> {
6641
- let runtime = new $dara.RuntimeOptions({ });
6642
- let headers : {[key: string ]: string} = { };
6643
- return await this.scaleClusterWithOptions(ClusterId, request, headers, runtime);
6644
- }
6645
-
6646
6143
  /**
6647
6144
  * Scales out a node pool.
6648
6145
  *
@@ -894,6 +894,39 @@ export class CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions extends
894
894
  }
895
895
  }
896
896
 
897
+ export class CreateClusterNodePoolRequestScalingGroupResourcePoolOptions extends $dara.Model {
898
+ privatePoolIds?: string[];
899
+ /**
900
+ * @example
901
+ * PrivatePoolFirst
902
+ */
903
+ strategy?: string;
904
+ static names(): { [key: string]: string } {
905
+ return {
906
+ privatePoolIds: 'private_pool_ids',
907
+ strategy: 'strategy',
908
+ };
909
+ }
910
+
911
+ static types(): { [key: string]: any } {
912
+ return {
913
+ privatePoolIds: { 'type': 'array', 'itemType': 'string' },
914
+ strategy: 'string',
915
+ };
916
+ }
917
+
918
+ validate() {
919
+ if(Array.isArray(this.privatePoolIds)) {
920
+ $dara.Model.validateArray(this.privatePoolIds);
921
+ }
922
+ super.validate();
923
+ }
924
+
925
+ constructor(map?: { [key: string]: any }) {
926
+ super(map);
927
+ }
928
+ }
929
+
897
930
  export class CreateClusterNodePoolRequestScalingGroupSpotPriceLimit extends $dara.Model {
898
931
  /**
899
932
  * @remarks
@@ -1245,6 +1278,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $dara.Model {
1245
1278
  * The IDs of ApsaraDB RDS instances.
1246
1279
  */
1247
1280
  rdsInstances?: string[];
1281
+ resourcePoolOptions?: CreateClusterNodePoolRequestScalingGroupResourcePoolOptions;
1248
1282
  /**
1249
1283
  * @remarks
1250
1284
  * The scaling mode of the scaling group. Valid values:
@@ -1478,6 +1512,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $dara.Model {
1478
1512
  privatePoolOptions: 'private_pool_options',
1479
1513
  ramRoleName: 'ram_role_name',
1480
1514
  rdsInstances: 'rds_instances',
1515
+ resourcePoolOptions: 'resource_pool_options',
1481
1516
  scalingPolicy: 'scaling_policy',
1482
1517
  securityGroupId: 'security_group_id',
1483
1518
  securityGroupIds: 'security_group_ids',
@@ -1530,6 +1565,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $dara.Model {
1530
1565
  privatePoolOptions: CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions,
1531
1566
  ramRoleName: 'string',
1532
1567
  rdsInstances: { 'type': 'array', 'itemType': 'string' },
1568
+ resourcePoolOptions: CreateClusterNodePoolRequestScalingGroupResourcePoolOptions,
1533
1569
  scalingPolicy: 'string',
1534
1570
  securityGroupId: 'string',
1535
1571
  securityGroupIds: { 'type': 'array', 'itemType': 'string' },
@@ -1572,6 +1608,9 @@ export class CreateClusterNodePoolRequestScalingGroup extends $dara.Model {
1572
1608
  if(Array.isArray(this.rdsInstances)) {
1573
1609
  $dara.Model.validateArray(this.rdsInstances);
1574
1610
  }
1611
+ if(this.resourcePoolOptions && typeof (this.resourcePoolOptions as any).validate === 'function') {
1612
+ (this.resourcePoolOptions as any).validate();
1613
+ }
1575
1614
  if(Array.isArray(this.securityGroupIds)) {
1576
1615
  $dara.Model.validateArray(this.securityGroupIds);
1577
1616
  }
@@ -494,6 +494,8 @@ export class CreateClusterRequest extends $dara.Model {
494
494
  /**
495
495
  * @remarks
496
496
  * The network access control list (ACL) rule of the SLB instance associated with the API server if the cluster is a registered cluster.
497
+ *
498
+ * @deprecated
497
499
  */
498
500
  accessControlList?: string[];
499
501
  /**
@@ -650,8 +652,6 @@ export class CreateClusterRequest extends $dara.Model {
650
652
  * * `ManagedKubernetes`: ACK managed cluster. ACK managed clusters include ACK Basic clusters, ACK Pro clusters, ACK Serverless clusters (Basic Edition and Pro Edition), ACK Edge clusters (Basic Edition and Pro Edition), and ACK Lingjun clusters (Pro Edition).
651
653
  * * `ExternalKubernetes`: registered cluster.
652
654
  *
653
- * This parameter is required.
654
- *
655
655
  * @example
656
656
  * Kubernetes
657
657
  */
@@ -956,6 +956,8 @@ export class CreateClusterRequest extends $dara.Model {
956
956
  *
957
957
  * @example
958
958
  * SLS
959
+ *
960
+ * @deprecated
959
961
  */
960
962
  loggingType?: string;
961
963
  /**
@@ -1163,6 +1165,8 @@ export class CreateClusterRequest extends $dara.Model {
1163
1165
  *
1164
1166
  * @example
1165
1167
  * true
1168
+ *
1169
+ * @deprecated
1166
1170
  */
1167
1171
  natGateway?: boolean;
1168
1172
  /**
@@ -1202,6 +1206,8 @@ export class CreateClusterRequest extends $dara.Model {
1202
1206
  *
1203
1207
  * @example
1204
1208
  * 30000~32767
1209
+ *
1210
+ * @deprecated
1205
1211
  */
1206
1212
  nodePortRange?: string;
1207
1213
  /**
@@ -1303,6 +1309,8 @@ export class CreateClusterRequest extends $dara.Model {
1303
1309
  * If you select Terway as the network plug-in, you must allocate vSwitches to pods. For each vSwitch that allocates IP addresses to worker nodes, you must select a vSwitch in the same zone to allocate IP addresses to pods.
1304
1310
  *
1305
1311
  * > We recommend that you select pod vSwitches whose subnet masks do not exceed 19 bits in length. The maximum subnet mask length of a pod vSwitch is 25 bits. If you select a pod vSwitch whose subnet mask exceeds 25 bits in length, the IP addresses that can be allocated to pods may be insufficient.
1312
+ *
1313
+ * @deprecated
1306
1314
  */
1307
1315
  podVswitchIds?: string[];
1308
1316
  /**
@@ -1364,6 +1372,8 @@ export class CreateClusterRequest extends $dara.Model {
1364
1372
  * The container runtime. The default container runtime is Docker. containerd and Sandboxed-Container are also supported.
1365
1373
  *
1366
1374
  * For more information about how to select a proper container runtime, see [Comparison among Docker, containerd, and Sandboxed-Container](https://help.aliyun.com/document_detail/160313.html).
1375
+ *
1376
+ * @deprecated
1367
1377
  */
1368
1378
  runtime?: Runtime;
1369
1379
  /**
@@ -1407,8 +1417,6 @@ export class CreateClusterRequest extends $dara.Model {
1407
1417
  *
1408
1418
  * By default, the Service CIDR block is set to 172.19.0.0/20.
1409
1419
  *
1410
- * This parameter is required.
1411
- *
1412
1420
  * @example
1413
1421
  * 172.21.0.0/20
1414
1422
  */
@@ -1421,6 +1429,8 @@ export class CreateClusterRequest extends $dara.Model {
1421
1429
  * * `PrivateZone`: a DNS resolution service provided by Alibaba Cloud. You must activate Alibaba Cloud DNS PrivateZone before you can use it for service discovery.
1422
1430
  *
1423
1431
  * By default, this parameter is not specified.
1432
+ *
1433
+ * @deprecated
1424
1434
  */
1425
1435
  serviceDiscoveryTypes?: string[];
1426
1436
  /**
@@ -1523,6 +1533,8 @@ export class CreateClusterRequest extends $dara.Model {
1523
1533
  *
1524
1534
  * @example
1525
1535
  * IyEvdXNyL2Jpbi9iYXNoCmVjaG8gIkhlbGxvIEFD****
1536
+ *
1537
+ * @deprecated
1526
1538
  */
1527
1539
  userData?: string;
1528
1540
  /**