@alicloud/cs20151215 3.0.19 → 3.0.20
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 +62 -0
- package/dist/client.js +114 -0
- package/dist/client.js.map +1 -1
- package/package.json +4 -4
- package/src/client.ts +139 -0
package/dist/client.d.ts
CHANGED
|
@@ -2181,6 +2181,7 @@ export declare class DescribeUserQuotaResponseBody extends $tea.Model {
|
|
|
2181
2181
|
askClusterQuota?: number;
|
|
2182
2182
|
clusterNodepoolQuota?: number;
|
|
2183
2183
|
clusterQuota?: number;
|
|
2184
|
+
edgeImprovedNodepoolQuota?: DescribeUserQuotaResponseBodyEdgeImprovedNodepoolQuota;
|
|
2184
2185
|
nodeQuota?: number;
|
|
2185
2186
|
static names(): {
|
|
2186
2187
|
[key: string]: string;
|
|
@@ -3546,6 +3547,48 @@ export declare class UpgradeClusterAddonsResponse extends $tea.Model {
|
|
|
3546
3547
|
[key: string]: any;
|
|
3547
3548
|
});
|
|
3548
3549
|
}
|
|
3550
|
+
export declare class UpgradeClusterNodepoolRequest extends $tea.Model {
|
|
3551
|
+
imageId?: string;
|
|
3552
|
+
kubernetesVersion?: string;
|
|
3553
|
+
runtimeVersion?: string;
|
|
3554
|
+
static names(): {
|
|
3555
|
+
[key: string]: string;
|
|
3556
|
+
};
|
|
3557
|
+
static types(): {
|
|
3558
|
+
[key: string]: any;
|
|
3559
|
+
};
|
|
3560
|
+
constructor(map?: {
|
|
3561
|
+
[key: string]: any;
|
|
3562
|
+
});
|
|
3563
|
+
}
|
|
3564
|
+
export declare class UpgradeClusterNodepoolResponseBody extends $tea.Model {
|
|
3565
|
+
requestId?: string;
|
|
3566
|
+
static names(): {
|
|
3567
|
+
[key: string]: string;
|
|
3568
|
+
};
|
|
3569
|
+
static types(): {
|
|
3570
|
+
[key: string]: any;
|
|
3571
|
+
};
|
|
3572
|
+
constructor(map?: {
|
|
3573
|
+
[key: string]: any;
|
|
3574
|
+
});
|
|
3575
|
+
}
|
|
3576
|
+
export declare class UpgradeClusterNodepoolResponse extends $tea.Model {
|
|
3577
|
+
headers: {
|
|
3578
|
+
[key: string]: string;
|
|
3579
|
+
};
|
|
3580
|
+
statusCode: number;
|
|
3581
|
+
body: UpgradeClusterNodepoolResponseBody;
|
|
3582
|
+
static names(): {
|
|
3583
|
+
[key: string]: string;
|
|
3584
|
+
};
|
|
3585
|
+
static types(): {
|
|
3586
|
+
[key: string]: any;
|
|
3587
|
+
};
|
|
3588
|
+
constructor(map?: {
|
|
3589
|
+
[key: string]: any;
|
|
3590
|
+
});
|
|
3591
|
+
}
|
|
3549
3592
|
export declare class AttachInstancesResponseBodyList extends $tea.Model {
|
|
3550
3593
|
code?: string;
|
|
3551
3594
|
instanceId?: string;
|
|
@@ -4563,6 +4606,7 @@ export declare class DescribeKubernetesVersionMetadataResponseBodyImages extends
|
|
|
4563
4606
|
imageType?: string;
|
|
4564
4607
|
osType?: string;
|
|
4565
4608
|
imageCategory?: string;
|
|
4609
|
+
architecture?: string;
|
|
4566
4610
|
static names(): {
|
|
4567
4611
|
[key: string]: string;
|
|
4568
4612
|
};
|
|
@@ -4951,6 +4995,20 @@ export declare class DescribeUserPermissionResponseBody extends $tea.Model {
|
|
|
4951
4995
|
[key: string]: any;
|
|
4952
4996
|
});
|
|
4953
4997
|
}
|
|
4998
|
+
export declare class DescribeUserQuotaResponseBodyEdgeImprovedNodepoolQuota extends $tea.Model {
|
|
4999
|
+
bandwidth?: number;
|
|
5000
|
+
count?: number;
|
|
5001
|
+
period?: number;
|
|
5002
|
+
static names(): {
|
|
5003
|
+
[key: string]: string;
|
|
5004
|
+
};
|
|
5005
|
+
static types(): {
|
|
5006
|
+
[key: string]: any;
|
|
5007
|
+
};
|
|
5008
|
+
constructor(map?: {
|
|
5009
|
+
[key: string]: any;
|
|
5010
|
+
});
|
|
5011
|
+
}
|
|
4954
5012
|
export declare class DescribeWorkflowsResponseBodyJobs extends $tea.Model {
|
|
4955
5013
|
clusterId?: string;
|
|
4956
5014
|
createTime?: string;
|
|
@@ -5768,4 +5826,8 @@ export default class Client extends OpenApi {
|
|
|
5768
5826
|
upgradeClusterAddonsWithOptions(ClusterId: string, request: UpgradeClusterAddonsRequest, headers: {
|
|
5769
5827
|
[key: string]: string;
|
|
5770
5828
|
}, runtime: $Util.RuntimeOptions): Promise<UpgradeClusterAddonsResponse>;
|
|
5829
|
+
upgradeClusterNodepool(ClusterId: string, NodepoolId: string, request: UpgradeClusterNodepoolRequest): Promise<UpgradeClusterNodepoolResponse>;
|
|
5830
|
+
upgradeClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, request: UpgradeClusterNodepoolRequest, headers: {
|
|
5831
|
+
[key: string]: string;
|
|
5832
|
+
}, runtime: $Util.RuntimeOptions): Promise<UpgradeClusterNodepoolResponse>;
|
|
5771
5833
|
}
|
package/dist/client.js
CHANGED
|
@@ -3013,6 +3013,7 @@ class DescribeUserQuotaResponseBody extends $tea.Model {
|
|
|
3013
3013
|
askClusterQuota: 'ask_cluster_quota',
|
|
3014
3014
|
clusterNodepoolQuota: 'cluster_nodepool_quota',
|
|
3015
3015
|
clusterQuota: 'cluster_quota',
|
|
3016
|
+
edgeImprovedNodepoolQuota: 'edge_improved_nodepool_quota',
|
|
3016
3017
|
nodeQuota: 'node_quota',
|
|
3017
3018
|
};
|
|
3018
3019
|
}
|
|
@@ -3022,6 +3023,7 @@ class DescribeUserQuotaResponseBody extends $tea.Model {
|
|
|
3022
3023
|
askClusterQuota: 'number',
|
|
3023
3024
|
clusterNodepoolQuota: 'number',
|
|
3024
3025
|
clusterQuota: 'number',
|
|
3026
|
+
edgeImprovedNodepoolQuota: DescribeUserQuotaResponseBodyEdgeImprovedNodepoolQuota,
|
|
3025
3027
|
nodeQuota: 'number',
|
|
3026
3028
|
};
|
|
3027
3029
|
}
|
|
@@ -4851,6 +4853,62 @@ class UpgradeClusterAddonsResponse extends $tea.Model {
|
|
|
4851
4853
|
}
|
|
4852
4854
|
}
|
|
4853
4855
|
exports.UpgradeClusterAddonsResponse = UpgradeClusterAddonsResponse;
|
|
4856
|
+
class UpgradeClusterNodepoolRequest extends $tea.Model {
|
|
4857
|
+
constructor(map) {
|
|
4858
|
+
super(map);
|
|
4859
|
+
}
|
|
4860
|
+
static names() {
|
|
4861
|
+
return {
|
|
4862
|
+
imageId: 'image_id',
|
|
4863
|
+
kubernetesVersion: 'kubernetes_version',
|
|
4864
|
+
runtimeVersion: 'runtime_version',
|
|
4865
|
+
};
|
|
4866
|
+
}
|
|
4867
|
+
static types() {
|
|
4868
|
+
return {
|
|
4869
|
+
imageId: 'string',
|
|
4870
|
+
kubernetesVersion: 'string',
|
|
4871
|
+
runtimeVersion: 'string',
|
|
4872
|
+
};
|
|
4873
|
+
}
|
|
4874
|
+
}
|
|
4875
|
+
exports.UpgradeClusterNodepoolRequest = UpgradeClusterNodepoolRequest;
|
|
4876
|
+
class UpgradeClusterNodepoolResponseBody extends $tea.Model {
|
|
4877
|
+
constructor(map) {
|
|
4878
|
+
super(map);
|
|
4879
|
+
}
|
|
4880
|
+
static names() {
|
|
4881
|
+
return {
|
|
4882
|
+
requestId: 'RequestId',
|
|
4883
|
+
};
|
|
4884
|
+
}
|
|
4885
|
+
static types() {
|
|
4886
|
+
return {
|
|
4887
|
+
requestId: 'string',
|
|
4888
|
+
};
|
|
4889
|
+
}
|
|
4890
|
+
}
|
|
4891
|
+
exports.UpgradeClusterNodepoolResponseBody = UpgradeClusterNodepoolResponseBody;
|
|
4892
|
+
class UpgradeClusterNodepoolResponse extends $tea.Model {
|
|
4893
|
+
constructor(map) {
|
|
4894
|
+
super(map);
|
|
4895
|
+
}
|
|
4896
|
+
static names() {
|
|
4897
|
+
return {
|
|
4898
|
+
headers: 'headers',
|
|
4899
|
+
statusCode: 'statusCode',
|
|
4900
|
+
body: 'body',
|
|
4901
|
+
};
|
|
4902
|
+
}
|
|
4903
|
+
static types() {
|
|
4904
|
+
return {
|
|
4905
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4906
|
+
statusCode: 'number',
|
|
4907
|
+
body: UpgradeClusterNodepoolResponseBody,
|
|
4908
|
+
};
|
|
4909
|
+
}
|
|
4910
|
+
}
|
|
4911
|
+
exports.UpgradeClusterNodepoolResponse = UpgradeClusterNodepoolResponse;
|
|
4854
4912
|
class AttachInstancesResponseBodyList extends $tea.Model {
|
|
4855
4913
|
constructor(map) {
|
|
4856
4914
|
super(map);
|
|
@@ -6442,6 +6500,7 @@ class DescribeKubernetesVersionMetadataResponseBodyImages extends $tea.Model {
|
|
|
6442
6500
|
imageType: 'image_type',
|
|
6443
6501
|
osType: 'os_type',
|
|
6444
6502
|
imageCategory: 'image_category',
|
|
6503
|
+
architecture: 'architecture',
|
|
6445
6504
|
};
|
|
6446
6505
|
}
|
|
6447
6506
|
static types() {
|
|
@@ -6453,6 +6512,7 @@ class DescribeKubernetesVersionMetadataResponseBodyImages extends $tea.Model {
|
|
|
6453
6512
|
imageType: 'string',
|
|
6454
6513
|
osType: 'string',
|
|
6455
6514
|
imageCategory: 'string',
|
|
6515
|
+
architecture: 'string',
|
|
6456
6516
|
};
|
|
6457
6517
|
}
|
|
6458
6518
|
}
|
|
@@ -7009,6 +7069,26 @@ class DescribeUserPermissionResponseBody extends $tea.Model {
|
|
|
7009
7069
|
}
|
|
7010
7070
|
}
|
|
7011
7071
|
exports.DescribeUserPermissionResponseBody = DescribeUserPermissionResponseBody;
|
|
7072
|
+
class DescribeUserQuotaResponseBodyEdgeImprovedNodepoolQuota extends $tea.Model {
|
|
7073
|
+
constructor(map) {
|
|
7074
|
+
super(map);
|
|
7075
|
+
}
|
|
7076
|
+
static names() {
|
|
7077
|
+
return {
|
|
7078
|
+
bandwidth: 'bandwidth',
|
|
7079
|
+
count: 'count',
|
|
7080
|
+
period: 'period',
|
|
7081
|
+
};
|
|
7082
|
+
}
|
|
7083
|
+
static types() {
|
|
7084
|
+
return {
|
|
7085
|
+
bandwidth: 'number',
|
|
7086
|
+
count: 'number',
|
|
7087
|
+
period: 'number',
|
|
7088
|
+
};
|
|
7089
|
+
}
|
|
7090
|
+
}
|
|
7091
|
+
exports.DescribeUserQuotaResponseBodyEdgeImprovedNodepoolQuota = DescribeUserQuotaResponseBodyEdgeImprovedNodepoolQuota;
|
|
7012
7092
|
class DescribeWorkflowsResponseBodyJobs extends $tea.Model {
|
|
7013
7093
|
constructor(map) {
|
|
7014
7094
|
super(map);
|
|
@@ -11045,6 +11125,40 @@ class Client extends openapi_client_1.default {
|
|
|
11045
11125
|
});
|
|
11046
11126
|
return $tea.cast(await this.callApi(params, req, runtime), new UpgradeClusterAddonsResponse({}));
|
|
11047
11127
|
}
|
|
11128
|
+
async upgradeClusterNodepool(ClusterId, NodepoolId, request) {
|
|
11129
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
11130
|
+
let headers = {};
|
|
11131
|
+
return await this.upgradeClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
11132
|
+
}
|
|
11133
|
+
async upgradeClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
|
|
11134
|
+
tea_util_1.default.validateModel(request);
|
|
11135
|
+
let body = {};
|
|
11136
|
+
if (!tea_util_1.default.isUnset(request.imageId)) {
|
|
11137
|
+
body["image_id"] = request.imageId;
|
|
11138
|
+
}
|
|
11139
|
+
if (!tea_util_1.default.isUnset(request.kubernetesVersion)) {
|
|
11140
|
+
body["kubernetes_version"] = request.kubernetesVersion;
|
|
11141
|
+
}
|
|
11142
|
+
if (!tea_util_1.default.isUnset(request.runtimeVersion)) {
|
|
11143
|
+
body["runtime_version"] = request.runtimeVersion;
|
|
11144
|
+
}
|
|
11145
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11146
|
+
headers: headers,
|
|
11147
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
11148
|
+
});
|
|
11149
|
+
let params = new $OpenApi.Params({
|
|
11150
|
+
action: "UpgradeClusterNodepool",
|
|
11151
|
+
version: "2015-12-15",
|
|
11152
|
+
protocol: "HTTPS",
|
|
11153
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}/upgrade`,
|
|
11154
|
+
method: "POST",
|
|
11155
|
+
authType: "AK",
|
|
11156
|
+
style: "ROA",
|
|
11157
|
+
reqBodyType: "json",
|
|
11158
|
+
bodyType: "json",
|
|
11159
|
+
});
|
|
11160
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpgradeClusterNodepoolResponse({}));
|
|
11161
|
+
}
|
|
11048
11162
|
}
|
|
11049
11163
|
exports.default = Client;
|
|
11050
11164
|
//# sourceMappingURL=client.js.map
|