@alicloud/cs20151215 3.0.9 → 3.0.12

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 CHANGED
@@ -197,7 +197,9 @@ export declare class CancelWorkflowResponse extends $tea.Model {
197
197
  }
198
198
  export declare class CreateAutoscalingConfigRequest extends $tea.Model {
199
199
  coolDownDuration?: string;
200
+ expander?: string;
200
201
  gpuUtilizationThreshold?: string;
202
+ scaleDownEnabled?: boolean;
201
203
  scanInterval?: string;
202
204
  unneededDuration?: string;
203
205
  utilizationThreshold?: string;
@@ -644,6 +646,18 @@ export declare class DeleteClusterResponse extends $tea.Model {
644
646
  [key: string]: any;
645
647
  });
646
648
  }
649
+ export declare class DeleteClusterNodepoolRequest extends $tea.Model {
650
+ force?: boolean;
651
+ static names(): {
652
+ [key: string]: string;
653
+ };
654
+ static types(): {
655
+ [key: string]: any;
656
+ };
657
+ constructor(map?: {
658
+ [key: string]: any;
659
+ });
660
+ }
647
661
  export declare class DeleteClusterNodepoolResponseBody extends $tea.Model {
648
662
  requestId?: string;
649
663
  static names(): {
@@ -1150,21 +1164,6 @@ export declare class DescribeClusterLogsResponse extends $tea.Model {
1150
1164
  [key: string]: any;
1151
1165
  });
1152
1166
  }
1153
- export declare class DescribeClusterNamespacesResponse extends $tea.Model {
1154
- headers: {
1155
- [key: string]: string;
1156
- };
1157
- body: string[];
1158
- static names(): {
1159
- [key: string]: string;
1160
- };
1161
- static types(): {
1162
- [key: string]: any;
1163
- };
1164
- constructor(map?: {
1165
- [key: string]: any;
1166
- });
1167
- }
1168
1167
  export declare class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
1169
1168
  autoScaling?: DescribeClusterNodePoolDetailResponseBodyAutoScaling;
1170
1169
  interconnectConfig?: DescribeClusterNodePoolDetailResponseBodyInterconnectConfig;
@@ -4693,6 +4692,7 @@ export declare class UnInstallClusterAddonsRequestAddons extends $tea.Model {
4693
4692
  }
4694
4693
  export declare class UpgradeClusterAddonsRequestBody extends $tea.Model {
4695
4694
  componentName?: string;
4695
+ config?: string;
4696
4696
  nextVersion?: string;
4697
4697
  version?: string;
4698
4698
  static names(): {
@@ -4766,8 +4766,8 @@ export default class Client extends OpenApi {
4766
4766
  deleteClusterWithOptions(ClusterId: string, tmpReq: DeleteClusterRequest, headers: {
4767
4767
  [key: string]: string;
4768
4768
  }, runtime: $Util.RuntimeOptions): Promise<DeleteClusterResponse>;
4769
- deleteClusterNodepool(ClusterId: string, NodepoolId: string): Promise<DeleteClusterNodepoolResponse>;
4770
- deleteClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, headers: {
4769
+ deleteClusterNodepool(ClusterId: string, NodepoolId: string, request: DeleteClusterNodepoolRequest): Promise<DeleteClusterNodepoolResponse>;
4770
+ deleteClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, request: DeleteClusterNodepoolRequest, headers: {
4771
4771
  [key: string]: string;
4772
4772
  }, runtime: $Util.RuntimeOptions): Promise<DeleteClusterNodepoolResponse>;
4773
4773
  deleteClusterNodes(ClusterId: string, request: DeleteClusterNodesRequest): Promise<DeleteClusterNodesResponse>;
@@ -4834,10 +4834,6 @@ export default class Client extends OpenApi {
4834
4834
  describeClusterLogsWithOptions(ClusterId: string, headers: {
4835
4835
  [key: string]: string;
4836
4836
  }, runtime: $Util.RuntimeOptions): Promise<DescribeClusterLogsResponse>;
4837
- describeClusterNamespaces(ClusterId: string): Promise<DescribeClusterNamespacesResponse>;
4838
- describeClusterNamespacesWithOptions(ClusterId: string, headers: {
4839
- [key: string]: string;
4840
- }, runtime: $Util.RuntimeOptions): Promise<DescribeClusterNamespacesResponse>;
4841
4837
  describeClusterNodePoolDetail(ClusterId: string, NodepoolId: string): Promise<DescribeClusterNodePoolDetailResponse>;
4842
4838
  describeClusterNodePoolDetailWithOptions(ClusterId: string, NodepoolId: string, headers: {
4843
4839
  [key: string]: string;
package/dist/client.js CHANGED
@@ -288,7 +288,9 @@ class CreateAutoscalingConfigRequest extends $tea.Model {
288
288
  static names() {
289
289
  return {
290
290
  coolDownDuration: 'cool_down_duration',
291
+ expander: 'expander',
291
292
  gpuUtilizationThreshold: 'gpu_utilization_threshold',
293
+ scaleDownEnabled: 'scale_down_enabled',
292
294
  scanInterval: 'scan_interval',
293
295
  unneededDuration: 'unneeded_duration',
294
296
  utilizationThreshold: 'utilization_threshold',
@@ -297,7 +299,9 @@ class CreateAutoscalingConfigRequest extends $tea.Model {
297
299
  static types() {
298
300
  return {
299
301
  coolDownDuration: 'string',
302
+ expander: 'string',
300
303
  gpuUtilizationThreshold: 'string',
304
+ scaleDownEnabled: 'boolean',
301
305
  scanInterval: 'string',
302
306
  unneededDuration: 'string',
303
307
  utilizationThreshold: 'string',
@@ -939,6 +943,22 @@ class DeleteClusterResponse extends $tea.Model {
939
943
  }
940
944
  }
941
945
  exports.DeleteClusterResponse = DeleteClusterResponse;
946
+ class DeleteClusterNodepoolRequest extends $tea.Model {
947
+ constructor(map) {
948
+ super(map);
949
+ }
950
+ static names() {
951
+ return {
952
+ force: 'force',
953
+ };
954
+ }
955
+ static types() {
956
+ return {
957
+ force: 'boolean',
958
+ };
959
+ }
960
+ }
961
+ exports.DeleteClusterNodepoolRequest = DeleteClusterNodepoolRequest;
942
962
  class DeleteClusterNodepoolResponseBody extends $tea.Model {
943
963
  constructor(map) {
944
964
  super(map);
@@ -1599,24 +1619,6 @@ class DescribeClusterLogsResponse extends $tea.Model {
1599
1619
  }
1600
1620
  }
1601
1621
  exports.DescribeClusterLogsResponse = DescribeClusterLogsResponse;
1602
- class DescribeClusterNamespacesResponse extends $tea.Model {
1603
- constructor(map) {
1604
- super(map);
1605
- }
1606
- static names() {
1607
- return {
1608
- headers: 'headers',
1609
- body: 'body',
1610
- };
1611
- }
1612
- static types() {
1613
- return {
1614
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1615
- body: { 'type': 'array', 'itemType': 'string' },
1616
- };
1617
- }
1618
- }
1619
- exports.DescribeClusterNamespacesResponse = DescribeClusterNamespacesResponse;
1620
1622
  class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
1621
1623
  constructor(map) {
1622
1624
  super(map);
@@ -6632,6 +6634,7 @@ class UpgradeClusterAddonsRequestBody extends $tea.Model {
6632
6634
  static names() {
6633
6635
  return {
6634
6636
  componentName: 'component_name',
6637
+ config: 'config',
6635
6638
  nextVersion: 'next_version',
6636
6639
  version: 'version',
6637
6640
  };
@@ -6639,6 +6642,7 @@ class UpgradeClusterAddonsRequestBody extends $tea.Model {
6639
6642
  static types() {
6640
6643
  return {
6641
6644
  componentName: 'string',
6645
+ config: 'string',
6642
6646
  nextVersion: 'string',
6643
6647
  version: 'string',
6644
6648
  };
@@ -6851,9 +6855,15 @@ class Client extends openapi_client_1.default {
6851
6855
  if (!tea_util_1.default.isUnset(request.coolDownDuration)) {
6852
6856
  body["cool_down_duration"] = request.coolDownDuration;
6853
6857
  }
6858
+ if (!tea_util_1.default.isUnset(request.expander)) {
6859
+ body["expander"] = request.expander;
6860
+ }
6854
6861
  if (!tea_util_1.default.isUnset(request.gpuUtilizationThreshold)) {
6855
6862
  body["gpu_utilization_threshold"] = request.gpuUtilizationThreshold;
6856
6863
  }
6864
+ if (!tea_util_1.default.isUnset(request.scaleDownEnabled)) {
6865
+ body["scale_down_enabled"] = request.scaleDownEnabled;
6866
+ }
6857
6867
  if (!tea_util_1.default.isUnset(request.scanInterval)) {
6858
6868
  body["scan_interval"] = request.scanInterval;
6859
6869
  }
@@ -7446,16 +7456,22 @@ class Client extends openapi_client_1.default {
7446
7456
  });
7447
7457
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteClusterResponse({}));
7448
7458
  }
7449
- async deleteClusterNodepool(ClusterId, NodepoolId) {
7459
+ async deleteClusterNodepool(ClusterId, NodepoolId, request) {
7450
7460
  let runtime = new $Util.RuntimeOptions({});
7451
7461
  let headers = {};
7452
- return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, headers, runtime);
7462
+ return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
7453
7463
  }
7454
- async deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, headers, runtime) {
7464
+ async deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
7465
+ tea_util_1.default.validateModel(request);
7455
7466
  ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
7456
7467
  NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
7468
+ let query = {};
7469
+ if (!tea_util_1.default.isUnset(request.force)) {
7470
+ query["force"] = request.force;
7471
+ }
7457
7472
  let req = new $OpenApi.OpenApiRequest({
7458
7473
  headers: headers,
7474
+ query: openapi_util_1.default.query(query),
7459
7475
  });
7460
7476
  let params = new $OpenApi.Params({
7461
7477
  action: "DeleteClusterNodepool",
@@ -7920,29 +7936,6 @@ class Client extends openapi_client_1.default {
7920
7936
  });
7921
7937
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterLogsResponse({}));
7922
7938
  }
7923
- async describeClusterNamespaces(ClusterId) {
7924
- let runtime = new $Util.RuntimeOptions({});
7925
- let headers = {};
7926
- return await this.describeClusterNamespacesWithOptions(ClusterId, headers, runtime);
7927
- }
7928
- async describeClusterNamespacesWithOptions(ClusterId, headers, runtime) {
7929
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
7930
- let req = new $OpenApi.OpenApiRequest({
7931
- headers: headers,
7932
- });
7933
- let params = new $OpenApi.Params({
7934
- action: "DescribeClusterNamespaces",
7935
- version: "2015-12-15",
7936
- protocol: "HTTPS",
7937
- pathname: `/k8s/${ClusterId}/namespaces`,
7938
- method: "GET",
7939
- authType: "AK",
7940
- style: "ROA",
7941
- reqBodyType: "json",
7942
- bodyType: "array",
7943
- });
7944
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNamespacesResponse({}));
7945
- }
7946
7939
  async describeClusterNodePoolDetail(ClusterId, NodepoolId) {
7947
7940
  let runtime = new $Util.RuntimeOptions({});
7948
7941
  let headers = {};