@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/cs20151215",
3
- "version": "3.0.9",
3
+ "version": "3.0.12",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -338,14 +338,18 @@ export class CancelWorkflowResponse extends $tea.Model {
338
338
 
339
339
  export class CreateAutoscalingConfigRequest extends $tea.Model {
340
340
  coolDownDuration?: string;
341
+ expander?: string;
341
342
  gpuUtilizationThreshold?: string;
343
+ scaleDownEnabled?: boolean;
342
344
  scanInterval?: string;
343
345
  unneededDuration?: string;
344
346
  utilizationThreshold?: string;
345
347
  static names(): { [key: string]: string } {
346
348
  return {
347
349
  coolDownDuration: 'cool_down_duration',
350
+ expander: 'expander',
348
351
  gpuUtilizationThreshold: 'gpu_utilization_threshold',
352
+ scaleDownEnabled: 'scale_down_enabled',
349
353
  scanInterval: 'scan_interval',
350
354
  unneededDuration: 'unneeded_duration',
351
355
  utilizationThreshold: 'utilization_threshold',
@@ -355,7 +359,9 @@ export class CreateAutoscalingConfigRequest extends $tea.Model {
355
359
  static types(): { [key: string]: any } {
356
360
  return {
357
361
  coolDownDuration: 'string',
362
+ expander: 'string',
358
363
  gpuUtilizationThreshold: 'string',
364
+ scaleDownEnabled: 'boolean',
359
365
  scanInterval: 'string',
360
366
  unneededDuration: 'string',
361
367
  utilizationThreshold: 'string',
@@ -1198,6 +1204,25 @@ export class DeleteClusterResponse extends $tea.Model {
1198
1204
  }
1199
1205
  }
1200
1206
 
1207
+ export class DeleteClusterNodepoolRequest extends $tea.Model {
1208
+ force?: boolean;
1209
+ static names(): { [key: string]: string } {
1210
+ return {
1211
+ force: 'force',
1212
+ };
1213
+ }
1214
+
1215
+ static types(): { [key: string]: any } {
1216
+ return {
1217
+ force: 'boolean',
1218
+ };
1219
+ }
1220
+
1221
+ constructor(map?: { [key: string]: any }) {
1222
+ super(map);
1223
+ }
1224
+ }
1225
+
1201
1226
  export class DeleteClusterNodepoolResponseBody extends $tea.Model {
1202
1227
  requestId?: string;
1203
1228
  static names(): { [key: string]: string } {
@@ -2023,28 +2048,6 @@ export class DescribeClusterLogsResponse extends $tea.Model {
2023
2048
  }
2024
2049
  }
2025
2050
 
2026
- export class DescribeClusterNamespacesResponse extends $tea.Model {
2027
- headers: { [key: string]: string };
2028
- body: string[];
2029
- static names(): { [key: string]: string } {
2030
- return {
2031
- headers: 'headers',
2032
- body: 'body',
2033
- };
2034
- }
2035
-
2036
- static types(): { [key: string]: any } {
2037
- return {
2038
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2039
- body: { 'type': 'array', 'itemType': 'string' },
2040
- };
2041
- }
2042
-
2043
- constructor(map?: { [key: string]: any }) {
2044
- super(map);
2045
- }
2046
- }
2047
-
2048
2051
  export class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
2049
2052
  autoScaling?: DescribeClusterNodePoolDetailResponseBodyAutoScaling;
2050
2053
  interconnectConfig?: DescribeClusterNodePoolDetailResponseBodyInterconnectConfig;
@@ -8444,11 +8447,13 @@ export class UnInstallClusterAddonsRequestAddons extends $tea.Model {
8444
8447
 
8445
8448
  export class UpgradeClusterAddonsRequestBody extends $tea.Model {
8446
8449
  componentName?: string;
8450
+ config?: string;
8447
8451
  nextVersion?: string;
8448
8452
  version?: string;
8449
8453
  static names(): { [key: string]: string } {
8450
8454
  return {
8451
8455
  componentName: 'component_name',
8456
+ config: 'config',
8452
8457
  nextVersion: 'next_version',
8453
8458
  version: 'version',
8454
8459
  };
@@ -8457,6 +8462,7 @@ export class UpgradeClusterAddonsRequestBody extends $tea.Model {
8457
8462
  static types(): { [key: string]: any } {
8458
8463
  return {
8459
8464
  componentName: 'string',
8465
+ config: 'string',
8460
8466
  nextVersion: 'string',
8461
8467
  version: 'string',
8462
8468
  };
@@ -8704,10 +8710,18 @@ export default class Client extends OpenApi {
8704
8710
  body["cool_down_duration"] = request.coolDownDuration;
8705
8711
  }
8706
8712
 
8713
+ if (!Util.isUnset(request.expander)) {
8714
+ body["expander"] = request.expander;
8715
+ }
8716
+
8707
8717
  if (!Util.isUnset(request.gpuUtilizationThreshold)) {
8708
8718
  body["gpu_utilization_threshold"] = request.gpuUtilizationThreshold;
8709
8719
  }
8710
8720
 
8721
+ if (!Util.isUnset(request.scaleDownEnabled)) {
8722
+ body["scale_down_enabled"] = request.scaleDownEnabled;
8723
+ }
8724
+
8711
8725
  if (!Util.isUnset(request.scanInterval)) {
8712
8726
  body["scan_interval"] = request.scanInterval;
8713
8727
  }
@@ -9436,17 +9450,24 @@ export default class Client extends OpenApi {
9436
9450
  return $tea.cast<DeleteClusterResponse>(await this.callApi(params, req, runtime), new DeleteClusterResponse({}));
9437
9451
  }
9438
9452
 
9439
- async deleteClusterNodepool(ClusterId: string, NodepoolId: string): Promise<DeleteClusterNodepoolResponse> {
9453
+ async deleteClusterNodepool(ClusterId: string, NodepoolId: string, request: DeleteClusterNodepoolRequest): Promise<DeleteClusterNodepoolResponse> {
9440
9454
  let runtime = new $Util.RuntimeOptions({ });
9441
9455
  let headers : {[key: string ]: string} = { };
9442
- return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, headers, runtime);
9456
+ return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
9443
9457
  }
9444
9458
 
9445
- async deleteClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterNodepoolResponse> {
9459
+ async deleteClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, request: DeleteClusterNodepoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterNodepoolResponse> {
9460
+ Util.validateModel(request);
9446
9461
  ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
9447
9462
  NodepoolId = OpenApiUtil.getEncodeParam(NodepoolId);
9463
+ let query : {[key: string ]: any} = { };
9464
+ if (!Util.isUnset(request.force)) {
9465
+ query["force"] = request.force;
9466
+ }
9467
+
9448
9468
  let req = new $OpenApi.OpenApiRequest({
9449
9469
  headers: headers,
9470
+ query: OpenApiUtil.query(query),
9450
9471
  });
9451
9472
  let params = new $OpenApi.Params({
9452
9473
  action: "DeleteClusterNodepool",
@@ -9962,31 +9983,6 @@ export default class Client extends OpenApi {
9962
9983
  return $tea.cast<DescribeClusterLogsResponse>(await this.callApi(params, req, runtime), new DescribeClusterLogsResponse({}));
9963
9984
  }
9964
9985
 
9965
- async describeClusterNamespaces(ClusterId: string): Promise<DescribeClusterNamespacesResponse> {
9966
- let runtime = new $Util.RuntimeOptions({ });
9967
- let headers : {[key: string ]: string} = { };
9968
- return await this.describeClusterNamespacesWithOptions(ClusterId, headers, runtime);
9969
- }
9970
-
9971
- async describeClusterNamespacesWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterNamespacesResponse> {
9972
- ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
9973
- let req = new $OpenApi.OpenApiRequest({
9974
- headers: headers,
9975
- });
9976
- let params = new $OpenApi.Params({
9977
- action: "DescribeClusterNamespaces",
9978
- version: "2015-12-15",
9979
- protocol: "HTTPS",
9980
- pathname: `/k8s/${ClusterId}/namespaces`,
9981
- method: "GET",
9982
- authType: "AK",
9983
- style: "ROA",
9984
- reqBodyType: "json",
9985
- bodyType: "array",
9986
- });
9987
- return $tea.cast<DescribeClusterNamespacesResponse>(await this.callApi(params, req, runtime), new DescribeClusterNamespacesResponse({}));
9988
- }
9989
-
9990
9986
  async describeClusterNodePoolDetail(ClusterId: string, NodepoolId: string): Promise<DescribeClusterNodePoolDetailResponse> {
9991
9987
  let runtime = new $Util.RuntimeOptions({ });
9992
9988
  let headers : {[key: string ]: string} = { };