@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 +2 -19
- package/dist/client.js +10 -41
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +14 -47
package/package.json
CHANGED
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',
|
|
@@ -2042,28 +2048,6 @@ export class DescribeClusterLogsResponse extends $tea.Model {
|
|
|
2042
2048
|
}
|
|
2043
2049
|
}
|
|
2044
2050
|
|
|
2045
|
-
export class DescribeClusterNamespacesResponse extends $tea.Model {
|
|
2046
|
-
headers: { [key: string]: string };
|
|
2047
|
-
body: string[];
|
|
2048
|
-
static names(): { [key: string]: string } {
|
|
2049
|
-
return {
|
|
2050
|
-
headers: 'headers',
|
|
2051
|
-
body: 'body',
|
|
2052
|
-
};
|
|
2053
|
-
}
|
|
2054
|
-
|
|
2055
|
-
static types(): { [key: string]: any } {
|
|
2056
|
-
return {
|
|
2057
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2058
|
-
body: { 'type': 'array', 'itemType': 'string' },
|
|
2059
|
-
};
|
|
2060
|
-
}
|
|
2061
|
-
|
|
2062
|
-
constructor(map?: { [key: string]: any }) {
|
|
2063
|
-
super(map);
|
|
2064
|
-
}
|
|
2065
|
-
}
|
|
2066
|
-
|
|
2067
2051
|
export class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
|
|
2068
2052
|
autoScaling?: DescribeClusterNodePoolDetailResponseBodyAutoScaling;
|
|
2069
2053
|
interconnectConfig?: DescribeClusterNodePoolDetailResponseBodyInterconnectConfig;
|
|
@@ -8726,10 +8710,18 @@ export default class Client extends OpenApi {
|
|
|
8726
8710
|
body["cool_down_duration"] = request.coolDownDuration;
|
|
8727
8711
|
}
|
|
8728
8712
|
|
|
8713
|
+
if (!Util.isUnset(request.expander)) {
|
|
8714
|
+
body["expander"] = request.expander;
|
|
8715
|
+
}
|
|
8716
|
+
|
|
8729
8717
|
if (!Util.isUnset(request.gpuUtilizationThreshold)) {
|
|
8730
8718
|
body["gpu_utilization_threshold"] = request.gpuUtilizationThreshold;
|
|
8731
8719
|
}
|
|
8732
8720
|
|
|
8721
|
+
if (!Util.isUnset(request.scaleDownEnabled)) {
|
|
8722
|
+
body["scale_down_enabled"] = request.scaleDownEnabled;
|
|
8723
|
+
}
|
|
8724
|
+
|
|
8733
8725
|
if (!Util.isUnset(request.scanInterval)) {
|
|
8734
8726
|
body["scan_interval"] = request.scanInterval;
|
|
8735
8727
|
}
|
|
@@ -9991,31 +9983,6 @@ export default class Client extends OpenApi {
|
|
|
9991
9983
|
return $tea.cast<DescribeClusterLogsResponse>(await this.callApi(params, req, runtime), new DescribeClusterLogsResponse({}));
|
|
9992
9984
|
}
|
|
9993
9985
|
|
|
9994
|
-
async describeClusterNamespaces(ClusterId: string): Promise<DescribeClusterNamespacesResponse> {
|
|
9995
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
9996
|
-
let headers : {[key: string ]: string} = { };
|
|
9997
|
-
return await this.describeClusterNamespacesWithOptions(ClusterId, headers, runtime);
|
|
9998
|
-
}
|
|
9999
|
-
|
|
10000
|
-
async describeClusterNamespacesWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterNamespacesResponse> {
|
|
10001
|
-
ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
|
|
10002
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
10003
|
-
headers: headers,
|
|
10004
|
-
});
|
|
10005
|
-
let params = new $OpenApi.Params({
|
|
10006
|
-
action: "DescribeClusterNamespaces",
|
|
10007
|
-
version: "2015-12-15",
|
|
10008
|
-
protocol: "HTTPS",
|
|
10009
|
-
pathname: `/k8s/${ClusterId}/namespaces`,
|
|
10010
|
-
method: "GET",
|
|
10011
|
-
authType: "AK",
|
|
10012
|
-
style: "ROA",
|
|
10013
|
-
reqBodyType: "json",
|
|
10014
|
-
bodyType: "array",
|
|
10015
|
-
});
|
|
10016
|
-
return $tea.cast<DescribeClusterNamespacesResponse>(await this.callApi(params, req, runtime), new DescribeClusterNamespacesResponse({}));
|
|
10017
|
-
}
|
|
10018
|
-
|
|
10019
9986
|
async describeClusterNodePoolDetail(ClusterId: string, NodepoolId: string): Promise<DescribeClusterNodePoolDetailResponse> {
|
|
10020
9987
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10021
9988
|
let headers : {[key: string ]: string} = { };
|