@alicloud/cs20151215 3.0.11 → 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;
@@ -1162,21 +1164,6 @@ export declare class DescribeClusterLogsResponse extends $tea.Model {
1162
1164
  [key: string]: any;
1163
1165
  });
1164
1166
  }
1165
- export declare class DescribeClusterNamespacesResponse extends $tea.Model {
1166
- headers: {
1167
- [key: string]: string;
1168
- };
1169
- body: string[];
1170
- static names(): {
1171
- [key: string]: string;
1172
- };
1173
- static types(): {
1174
- [key: string]: any;
1175
- };
1176
- constructor(map?: {
1177
- [key: string]: any;
1178
- });
1179
- }
1180
1167
  export declare class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
1181
1168
  autoScaling?: DescribeClusterNodePoolDetailResponseBodyAutoScaling;
1182
1169
  interconnectConfig?: DescribeClusterNodePoolDetailResponseBodyInterconnectConfig;
@@ -4847,10 +4834,6 @@ export default class Client extends OpenApi {
4847
4834
  describeClusterLogsWithOptions(ClusterId: string, headers: {
4848
4835
  [key: string]: string;
4849
4836
  }, runtime: $Util.RuntimeOptions): Promise<DescribeClusterLogsResponse>;
4850
- describeClusterNamespaces(ClusterId: string): Promise<DescribeClusterNamespacesResponse>;
4851
- describeClusterNamespacesWithOptions(ClusterId: string, headers: {
4852
- [key: string]: string;
4853
- }, runtime: $Util.RuntimeOptions): Promise<DescribeClusterNamespacesResponse>;
4854
4837
  describeClusterNodePoolDetail(ClusterId: string, NodepoolId: string): Promise<DescribeClusterNodePoolDetailResponse>;
4855
4838
  describeClusterNodePoolDetailWithOptions(ClusterId: string, NodepoolId: string, headers: {
4856
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',
@@ -1615,24 +1619,6 @@ class DescribeClusterLogsResponse extends $tea.Model {
1615
1619
  }
1616
1620
  }
1617
1621
  exports.DescribeClusterLogsResponse = DescribeClusterLogsResponse;
1618
- class DescribeClusterNamespacesResponse extends $tea.Model {
1619
- constructor(map) {
1620
- super(map);
1621
- }
1622
- static names() {
1623
- return {
1624
- headers: 'headers',
1625
- body: 'body',
1626
- };
1627
- }
1628
- static types() {
1629
- return {
1630
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1631
- body: { 'type': 'array', 'itemType': 'string' },
1632
- };
1633
- }
1634
- }
1635
- exports.DescribeClusterNamespacesResponse = DescribeClusterNamespacesResponse;
1636
1622
  class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
1637
1623
  constructor(map) {
1638
1624
  super(map);
@@ -6869,9 +6855,15 @@ class Client extends openapi_client_1.default {
6869
6855
  if (!tea_util_1.default.isUnset(request.coolDownDuration)) {
6870
6856
  body["cool_down_duration"] = request.coolDownDuration;
6871
6857
  }
6858
+ if (!tea_util_1.default.isUnset(request.expander)) {
6859
+ body["expander"] = request.expander;
6860
+ }
6872
6861
  if (!tea_util_1.default.isUnset(request.gpuUtilizationThreshold)) {
6873
6862
  body["gpu_utilization_threshold"] = request.gpuUtilizationThreshold;
6874
6863
  }
6864
+ if (!tea_util_1.default.isUnset(request.scaleDownEnabled)) {
6865
+ body["scale_down_enabled"] = request.scaleDownEnabled;
6866
+ }
6875
6867
  if (!tea_util_1.default.isUnset(request.scanInterval)) {
6876
6868
  body["scan_interval"] = request.scanInterval;
6877
6869
  }
@@ -7944,29 +7936,6 @@ class Client extends openapi_client_1.default {
7944
7936
  });
7945
7937
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterLogsResponse({}));
7946
7938
  }
7947
- async describeClusterNamespaces(ClusterId) {
7948
- let runtime = new $Util.RuntimeOptions({});
7949
- let headers = {};
7950
- return await this.describeClusterNamespacesWithOptions(ClusterId, headers, runtime);
7951
- }
7952
- async describeClusterNamespacesWithOptions(ClusterId, headers, runtime) {
7953
- ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
7954
- let req = new $OpenApi.OpenApiRequest({
7955
- headers: headers,
7956
- });
7957
- let params = new $OpenApi.Params({
7958
- action: "DescribeClusterNamespaces",
7959
- version: "2015-12-15",
7960
- protocol: "HTTPS",
7961
- pathname: `/k8s/${ClusterId}/namespaces`,
7962
- method: "GET",
7963
- authType: "AK",
7964
- style: "ROA",
7965
- reqBodyType: "json",
7966
- bodyType: "array",
7967
- });
7968
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNamespacesResponse({}));
7969
- }
7970
7939
  async describeClusterNodePoolDetail(ClusterId, NodepoolId) {
7971
7940
  let runtime = new $Util.RuntimeOptions({});
7972
7941
  let headers = {};