@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/cs20151215",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alicloud/tea-typescript": "^1.7.1",
|
|
23
|
-
"@alicloud/tea-util": "^1.4.
|
|
24
|
-
"@alicloud/openapi-client": "^0.4.
|
|
25
|
-
"@alicloud/openapi-util": "^0.
|
|
23
|
+
"@alicloud/tea-util": "^1.4.5",
|
|
24
|
+
"@alicloud/openapi-client": "^0.4.4",
|
|
25
|
+
"@alicloud/openapi-util": "^0.3.0",
|
|
26
26
|
"@alicloud/endpoint-util": "^0.0.1"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
package/src/client.ts
CHANGED
|
@@ -3809,6 +3809,7 @@ export class DescribeUserQuotaResponseBody extends $tea.Model {
|
|
|
3809
3809
|
askClusterQuota?: number;
|
|
3810
3810
|
clusterNodepoolQuota?: number;
|
|
3811
3811
|
clusterQuota?: number;
|
|
3812
|
+
edgeImprovedNodepoolQuota?: DescribeUserQuotaResponseBodyEdgeImprovedNodepoolQuota;
|
|
3812
3813
|
nodeQuota?: number;
|
|
3813
3814
|
static names(): { [key: string]: string } {
|
|
3814
3815
|
return {
|
|
@@ -3816,6 +3817,7 @@ export class DescribeUserQuotaResponseBody extends $tea.Model {
|
|
|
3816
3817
|
askClusterQuota: 'ask_cluster_quota',
|
|
3817
3818
|
clusterNodepoolQuota: 'cluster_nodepool_quota',
|
|
3818
3819
|
clusterQuota: 'cluster_quota',
|
|
3820
|
+
edgeImprovedNodepoolQuota: 'edge_improved_nodepool_quota',
|
|
3819
3821
|
nodeQuota: 'node_quota',
|
|
3820
3822
|
};
|
|
3821
3823
|
}
|
|
@@ -3826,6 +3828,7 @@ export class DescribeUserQuotaResponseBody extends $tea.Model {
|
|
|
3826
3828
|
askClusterQuota: 'number',
|
|
3827
3829
|
clusterNodepoolQuota: 'number',
|
|
3828
3830
|
clusterQuota: 'number',
|
|
3831
|
+
edgeImprovedNodepoolQuota: DescribeUserQuotaResponseBodyEdgeImprovedNodepoolQuota,
|
|
3829
3832
|
nodeQuota: 'number',
|
|
3830
3833
|
};
|
|
3831
3834
|
}
|
|
@@ -6121,6 +6124,75 @@ export class UpgradeClusterAddonsResponse extends $tea.Model {
|
|
|
6121
6124
|
}
|
|
6122
6125
|
}
|
|
6123
6126
|
|
|
6127
|
+
export class UpgradeClusterNodepoolRequest extends $tea.Model {
|
|
6128
|
+
imageId?: string;
|
|
6129
|
+
kubernetesVersion?: string;
|
|
6130
|
+
runtimeVersion?: string;
|
|
6131
|
+
static names(): { [key: string]: string } {
|
|
6132
|
+
return {
|
|
6133
|
+
imageId: 'image_id',
|
|
6134
|
+
kubernetesVersion: 'kubernetes_version',
|
|
6135
|
+
runtimeVersion: 'runtime_version',
|
|
6136
|
+
};
|
|
6137
|
+
}
|
|
6138
|
+
|
|
6139
|
+
static types(): { [key: string]: any } {
|
|
6140
|
+
return {
|
|
6141
|
+
imageId: 'string',
|
|
6142
|
+
kubernetesVersion: 'string',
|
|
6143
|
+
runtimeVersion: 'string',
|
|
6144
|
+
};
|
|
6145
|
+
}
|
|
6146
|
+
|
|
6147
|
+
constructor(map?: { [key: string]: any }) {
|
|
6148
|
+
super(map);
|
|
6149
|
+
}
|
|
6150
|
+
}
|
|
6151
|
+
|
|
6152
|
+
export class UpgradeClusterNodepoolResponseBody extends $tea.Model {
|
|
6153
|
+
requestId?: string;
|
|
6154
|
+
static names(): { [key: string]: string } {
|
|
6155
|
+
return {
|
|
6156
|
+
requestId: 'RequestId',
|
|
6157
|
+
};
|
|
6158
|
+
}
|
|
6159
|
+
|
|
6160
|
+
static types(): { [key: string]: any } {
|
|
6161
|
+
return {
|
|
6162
|
+
requestId: 'string',
|
|
6163
|
+
};
|
|
6164
|
+
}
|
|
6165
|
+
|
|
6166
|
+
constructor(map?: { [key: string]: any }) {
|
|
6167
|
+
super(map);
|
|
6168
|
+
}
|
|
6169
|
+
}
|
|
6170
|
+
|
|
6171
|
+
export class UpgradeClusterNodepoolResponse extends $tea.Model {
|
|
6172
|
+
headers: { [key: string]: string };
|
|
6173
|
+
statusCode: number;
|
|
6174
|
+
body: UpgradeClusterNodepoolResponseBody;
|
|
6175
|
+
static names(): { [key: string]: string } {
|
|
6176
|
+
return {
|
|
6177
|
+
headers: 'headers',
|
|
6178
|
+
statusCode: 'statusCode',
|
|
6179
|
+
body: 'body',
|
|
6180
|
+
};
|
|
6181
|
+
}
|
|
6182
|
+
|
|
6183
|
+
static types(): { [key: string]: any } {
|
|
6184
|
+
return {
|
|
6185
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6186
|
+
statusCode: 'number',
|
|
6187
|
+
body: UpgradeClusterNodepoolResponseBody,
|
|
6188
|
+
};
|
|
6189
|
+
}
|
|
6190
|
+
|
|
6191
|
+
constructor(map?: { [key: string]: any }) {
|
|
6192
|
+
super(map);
|
|
6193
|
+
}
|
|
6194
|
+
}
|
|
6195
|
+
|
|
6124
6196
|
export class AttachInstancesResponseBodyList extends $tea.Model {
|
|
6125
6197
|
code?: string;
|
|
6126
6198
|
instanceId?: string;
|
|
@@ -8221,6 +8293,7 @@ export class DescribeKubernetesVersionMetadataResponseBodyImages extends $tea.Mo
|
|
|
8221
8293
|
imageType?: string;
|
|
8222
8294
|
osType?: string;
|
|
8223
8295
|
imageCategory?: string;
|
|
8296
|
+
architecture?: string;
|
|
8224
8297
|
static names(): { [key: string]: string } {
|
|
8225
8298
|
return {
|
|
8226
8299
|
imageId: 'image_id',
|
|
@@ -8230,6 +8303,7 @@ export class DescribeKubernetesVersionMetadataResponseBodyImages extends $tea.Mo
|
|
|
8230
8303
|
imageType: 'image_type',
|
|
8231
8304
|
osType: 'os_type',
|
|
8232
8305
|
imageCategory: 'image_category',
|
|
8306
|
+
architecture: 'architecture',
|
|
8233
8307
|
};
|
|
8234
8308
|
}
|
|
8235
8309
|
|
|
@@ -8242,6 +8316,7 @@ export class DescribeKubernetesVersionMetadataResponseBodyImages extends $tea.Mo
|
|
|
8242
8316
|
imageType: 'string',
|
|
8243
8317
|
osType: 'string',
|
|
8244
8318
|
imageCategory: 'string',
|
|
8319
|
+
architecture: 'string',
|
|
8245
8320
|
};
|
|
8246
8321
|
}
|
|
8247
8322
|
|
|
@@ -8958,6 +9033,31 @@ export class DescribeUserPermissionResponseBody extends $tea.Model {
|
|
|
8958
9033
|
}
|
|
8959
9034
|
}
|
|
8960
9035
|
|
|
9036
|
+
export class DescribeUserQuotaResponseBodyEdgeImprovedNodepoolQuota extends $tea.Model {
|
|
9037
|
+
bandwidth?: number;
|
|
9038
|
+
count?: number;
|
|
9039
|
+
period?: number;
|
|
9040
|
+
static names(): { [key: string]: string } {
|
|
9041
|
+
return {
|
|
9042
|
+
bandwidth: 'bandwidth',
|
|
9043
|
+
count: 'count',
|
|
9044
|
+
period: 'period',
|
|
9045
|
+
};
|
|
9046
|
+
}
|
|
9047
|
+
|
|
9048
|
+
static types(): { [key: string]: any } {
|
|
9049
|
+
return {
|
|
9050
|
+
bandwidth: 'number',
|
|
9051
|
+
count: 'number',
|
|
9052
|
+
period: 'number',
|
|
9053
|
+
};
|
|
9054
|
+
}
|
|
9055
|
+
|
|
9056
|
+
constructor(map?: { [key: string]: any }) {
|
|
9057
|
+
super(map);
|
|
9058
|
+
}
|
|
9059
|
+
}
|
|
9060
|
+
|
|
8961
9061
|
export class DescribeWorkflowsResponseBodyJobs extends $tea.Model {
|
|
8962
9062
|
clusterId?: string;
|
|
8963
9063
|
createTime?: string;
|
|
@@ -13704,4 +13804,43 @@ export default class Client extends OpenApi {
|
|
|
13704
13804
|
return $tea.cast<UpgradeClusterAddonsResponse>(await this.callApi(params, req, runtime), new UpgradeClusterAddonsResponse({}));
|
|
13705
13805
|
}
|
|
13706
13806
|
|
|
13807
|
+
async upgradeClusterNodepool(ClusterId: string, NodepoolId: string, request: UpgradeClusterNodepoolRequest): Promise<UpgradeClusterNodepoolResponse> {
|
|
13808
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
13809
|
+
let headers : {[key: string ]: string} = { };
|
|
13810
|
+
return await this.upgradeClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
13811
|
+
}
|
|
13812
|
+
|
|
13813
|
+
async upgradeClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, request: UpgradeClusterNodepoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpgradeClusterNodepoolResponse> {
|
|
13814
|
+
Util.validateModel(request);
|
|
13815
|
+
let body : {[key: string ]: any} = { };
|
|
13816
|
+
if (!Util.isUnset(request.imageId)) {
|
|
13817
|
+
body["image_id"] = request.imageId;
|
|
13818
|
+
}
|
|
13819
|
+
|
|
13820
|
+
if (!Util.isUnset(request.kubernetesVersion)) {
|
|
13821
|
+
body["kubernetes_version"] = request.kubernetesVersion;
|
|
13822
|
+
}
|
|
13823
|
+
|
|
13824
|
+
if (!Util.isUnset(request.runtimeVersion)) {
|
|
13825
|
+
body["runtime_version"] = request.runtimeVersion;
|
|
13826
|
+
}
|
|
13827
|
+
|
|
13828
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
13829
|
+
headers: headers,
|
|
13830
|
+
body: OpenApiUtil.parseToMap(body),
|
|
13831
|
+
});
|
|
13832
|
+
let params = new $OpenApi.Params({
|
|
13833
|
+
action: "UpgradeClusterNodepool",
|
|
13834
|
+
version: "2015-12-15",
|
|
13835
|
+
protocol: "HTTPS",
|
|
13836
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(ClusterId)}/nodepools/${OpenApiUtil.getEncodeParam(NodepoolId)}/upgrade`,
|
|
13837
|
+
method: "POST",
|
|
13838
|
+
authType: "AK",
|
|
13839
|
+
style: "ROA",
|
|
13840
|
+
reqBodyType: "json",
|
|
13841
|
+
bodyType: "json",
|
|
13842
|
+
});
|
|
13843
|
+
return $tea.cast<UpgradeClusterNodepoolResponse>(await this.callApi(params, req, runtime), new UpgradeClusterNodepoolResponse({}));
|
|
13844
|
+
}
|
|
13845
|
+
|
|
13707
13846
|
}
|