@alicloud/cs20151215 3.0.7 → 3.0.10
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 +17 -4
- package/dist/client.js +36 -9
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +44 -11
package/dist/client.d.ts
CHANGED
|
@@ -644,6 +644,18 @@ export declare class DeleteClusterResponse extends $tea.Model {
|
|
|
644
644
|
[key: string]: any;
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
|
+
export declare class DeleteClusterNodepoolRequest extends $tea.Model {
|
|
648
|
+
force?: boolean;
|
|
649
|
+
static names(): {
|
|
650
|
+
[key: string]: string;
|
|
651
|
+
};
|
|
652
|
+
static types(): {
|
|
653
|
+
[key: string]: any;
|
|
654
|
+
};
|
|
655
|
+
constructor(map?: {
|
|
656
|
+
[key: string]: any;
|
|
657
|
+
});
|
|
658
|
+
}
|
|
647
659
|
export declare class DeleteClusterNodepoolResponseBody extends $tea.Model {
|
|
648
660
|
requestId?: string;
|
|
649
661
|
static names(): {
|
|
@@ -1402,6 +1414,7 @@ export declare class DescribeClustersV1Request extends $tea.Model {
|
|
|
1402
1414
|
pageNumber?: number;
|
|
1403
1415
|
pageSize?: number;
|
|
1404
1416
|
profile?: string;
|
|
1417
|
+
regionId?: string;
|
|
1405
1418
|
static names(): {
|
|
1406
1419
|
[key: string]: string;
|
|
1407
1420
|
};
|
|
@@ -2439,7 +2452,7 @@ export declare class ModifyClusterTagsResponse extends $tea.Model {
|
|
|
2439
2452
|
export declare class ModifyPolicyInstanceRequest extends $tea.Model {
|
|
2440
2453
|
action?: string;
|
|
2441
2454
|
instanceName?: string;
|
|
2442
|
-
|
|
2455
|
+
namespaces?: string[];
|
|
2443
2456
|
parameters?: {
|
|
2444
2457
|
[key: string]: any;
|
|
2445
2458
|
};
|
|
@@ -3362,7 +3375,6 @@ export declare class DescribeClusterLogsResponseBody extends $tea.Model {
|
|
|
3362
3375
|
ID?: number;
|
|
3363
3376
|
clusterId?: string;
|
|
3364
3377
|
clusterLog?: string;
|
|
3365
|
-
logLevel?: string;
|
|
3366
3378
|
created?: string;
|
|
3367
3379
|
updated?: string;
|
|
3368
3380
|
static names(): {
|
|
@@ -4693,6 +4705,7 @@ export declare class UnInstallClusterAddonsRequestAddons extends $tea.Model {
|
|
|
4693
4705
|
}
|
|
4694
4706
|
export declare class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
4695
4707
|
componentName?: string;
|
|
4708
|
+
config?: string;
|
|
4696
4709
|
nextVersion?: string;
|
|
4697
4710
|
version?: string;
|
|
4698
4711
|
static names(): {
|
|
@@ -4766,8 +4779,8 @@ export default class Client extends OpenApi {
|
|
|
4766
4779
|
deleteClusterWithOptions(ClusterId: string, tmpReq: DeleteClusterRequest, headers: {
|
|
4767
4780
|
[key: string]: string;
|
|
4768
4781
|
}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterResponse>;
|
|
4769
|
-
deleteClusterNodepool(ClusterId: string, NodepoolId: string): Promise<DeleteClusterNodepoolResponse>;
|
|
4770
|
-
deleteClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, headers: {
|
|
4782
|
+
deleteClusterNodepool(ClusterId: string, NodepoolId: string, request: DeleteClusterNodepoolRequest): Promise<DeleteClusterNodepoolResponse>;
|
|
4783
|
+
deleteClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, request: DeleteClusterNodepoolRequest, headers: {
|
|
4771
4784
|
[key: string]: string;
|
|
4772
4785
|
}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterNodepoolResponse>;
|
|
4773
4786
|
deleteClusterNodes(ClusterId: string, request: DeleteClusterNodesRequest): Promise<DeleteClusterNodesResponse>;
|
package/dist/client.js
CHANGED
|
@@ -939,6 +939,22 @@ class DeleteClusterResponse extends $tea.Model {
|
|
|
939
939
|
}
|
|
940
940
|
}
|
|
941
941
|
exports.DeleteClusterResponse = DeleteClusterResponse;
|
|
942
|
+
class DeleteClusterNodepoolRequest extends $tea.Model {
|
|
943
|
+
constructor(map) {
|
|
944
|
+
super(map);
|
|
945
|
+
}
|
|
946
|
+
static names() {
|
|
947
|
+
return {
|
|
948
|
+
force: 'force',
|
|
949
|
+
};
|
|
950
|
+
}
|
|
951
|
+
static types() {
|
|
952
|
+
return {
|
|
953
|
+
force: 'boolean',
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
exports.DeleteClusterNodepoolRequest = DeleteClusterNodepoolRequest;
|
|
942
958
|
class DeleteClusterNodepoolResponseBody extends $tea.Model {
|
|
943
959
|
constructor(map) {
|
|
944
960
|
super(map);
|
|
@@ -1933,6 +1949,7 @@ class DescribeClustersV1Request extends $tea.Model {
|
|
|
1933
1949
|
pageNumber: 'page_number',
|
|
1934
1950
|
pageSize: 'page_size',
|
|
1935
1951
|
profile: 'profile',
|
|
1952
|
+
regionId: 'region_id',
|
|
1936
1953
|
};
|
|
1937
1954
|
}
|
|
1938
1955
|
static types() {
|
|
@@ -1943,6 +1960,7 @@ class DescribeClustersV1Request extends $tea.Model {
|
|
|
1943
1960
|
pageNumber: 'number',
|
|
1944
1961
|
pageSize: 'number',
|
|
1945
1962
|
profile: 'string',
|
|
1963
|
+
regionId: 'string',
|
|
1946
1964
|
};
|
|
1947
1965
|
}
|
|
1948
1966
|
}
|
|
@@ -3307,7 +3325,7 @@ class ModifyPolicyInstanceRequest extends $tea.Model {
|
|
|
3307
3325
|
return {
|
|
3308
3326
|
action: 'action',
|
|
3309
3327
|
instanceName: 'instance_name',
|
|
3310
|
-
|
|
3328
|
+
namespaces: 'namespaces',
|
|
3311
3329
|
parameters: 'parameters',
|
|
3312
3330
|
};
|
|
3313
3331
|
}
|
|
@@ -3315,7 +3333,7 @@ class ModifyPolicyInstanceRequest extends $tea.Model {
|
|
|
3315
3333
|
return {
|
|
3316
3334
|
action: 'string',
|
|
3317
3335
|
instanceName: 'string',
|
|
3318
|
-
|
|
3336
|
+
namespaces: { 'type': 'array', 'itemType': 'string' },
|
|
3319
3337
|
parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
3320
3338
|
};
|
|
3321
3339
|
}
|
|
@@ -4584,7 +4602,6 @@ class DescribeClusterLogsResponseBody extends $tea.Model {
|
|
|
4584
4602
|
ID: 'ID',
|
|
4585
4603
|
clusterId: 'cluster_id',
|
|
4586
4604
|
clusterLog: 'cluster_log',
|
|
4587
|
-
logLevel: 'log_level',
|
|
4588
4605
|
created: 'created',
|
|
4589
4606
|
updated: 'updated',
|
|
4590
4607
|
};
|
|
@@ -4594,7 +4611,6 @@ class DescribeClusterLogsResponseBody extends $tea.Model {
|
|
|
4594
4611
|
ID: 'number',
|
|
4595
4612
|
clusterId: 'string',
|
|
4596
4613
|
clusterLog: 'string',
|
|
4597
|
-
logLevel: 'string',
|
|
4598
4614
|
created: 'string',
|
|
4599
4615
|
updated: 'string',
|
|
4600
4616
|
};
|
|
@@ -6632,6 +6648,7 @@ class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
|
6632
6648
|
static names() {
|
|
6633
6649
|
return {
|
|
6634
6650
|
componentName: 'component_name',
|
|
6651
|
+
config: 'config',
|
|
6635
6652
|
nextVersion: 'next_version',
|
|
6636
6653
|
version: 'version',
|
|
6637
6654
|
};
|
|
@@ -6639,6 +6656,7 @@ class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
|
6639
6656
|
static types() {
|
|
6640
6657
|
return {
|
|
6641
6658
|
componentName: 'string',
|
|
6659
|
+
config: 'string',
|
|
6642
6660
|
nextVersion: 'string',
|
|
6643
6661
|
version: 'string',
|
|
6644
6662
|
};
|
|
@@ -7446,16 +7464,22 @@ class Client extends openapi_client_1.default {
|
|
|
7446
7464
|
});
|
|
7447
7465
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteClusterResponse({}));
|
|
7448
7466
|
}
|
|
7449
|
-
async deleteClusterNodepool(ClusterId, NodepoolId) {
|
|
7467
|
+
async deleteClusterNodepool(ClusterId, NodepoolId, request) {
|
|
7450
7468
|
let runtime = new $Util.RuntimeOptions({});
|
|
7451
7469
|
let headers = {};
|
|
7452
|
-
return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, headers, runtime);
|
|
7470
|
+
return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
7453
7471
|
}
|
|
7454
|
-
async deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, headers, runtime) {
|
|
7472
|
+
async deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
|
|
7473
|
+
tea_util_1.default.validateModel(request);
|
|
7455
7474
|
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
7456
7475
|
NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
|
|
7476
|
+
let body = {};
|
|
7477
|
+
if (!tea_util_1.default.isUnset(request.force)) {
|
|
7478
|
+
body["force"] = request.force;
|
|
7479
|
+
}
|
|
7457
7480
|
let req = new $OpenApi.OpenApiRequest({
|
|
7458
7481
|
headers: headers,
|
|
7482
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
7459
7483
|
});
|
|
7460
7484
|
let params = new $OpenApi.Params({
|
|
7461
7485
|
action: "DeleteClusterNodepool",
|
|
@@ -8172,6 +8196,9 @@ class Client extends openapi_client_1.default {
|
|
|
8172
8196
|
if (!tea_util_1.default.isUnset(request.profile)) {
|
|
8173
8197
|
query["profile"] = request.profile;
|
|
8174
8198
|
}
|
|
8199
|
+
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
8200
|
+
query["region_id"] = request.regionId;
|
|
8201
|
+
}
|
|
8175
8202
|
let req = new $OpenApi.OpenApiRequest({
|
|
8176
8203
|
headers: headers,
|
|
8177
8204
|
query: openapi_util_1.default.query(query),
|
|
@@ -9139,8 +9166,8 @@ class Client extends openapi_client_1.default {
|
|
|
9139
9166
|
if (!tea_util_1.default.isUnset(request.instanceName)) {
|
|
9140
9167
|
body["instance_name"] = request.instanceName;
|
|
9141
9168
|
}
|
|
9142
|
-
if (!tea_util_1.default.isUnset(request.
|
|
9143
|
-
body["
|
|
9169
|
+
if (!tea_util_1.default.isUnset(request.namespaces)) {
|
|
9170
|
+
body["namespaces"] = request.namespaces;
|
|
9144
9171
|
}
|
|
9145
9172
|
if (!tea_util_1.default.isUnset(request.parameters)) {
|
|
9146
9173
|
body["parameters"] = request.parameters;
|