@alicloud/cs20151215 3.0.8 → 3.0.11
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 +16 -3
- package/dist/client.js +32 -5
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +39 -6
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -1198,6 +1198,25 @@ export class DeleteClusterResponse extends $tea.Model {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
1200
|
|
|
1201
|
+
export class DeleteClusterNodepoolRequest extends $tea.Model {
|
|
1202
|
+
force?: boolean;
|
|
1203
|
+
static names(): { [key: string]: string } {
|
|
1204
|
+
return {
|
|
1205
|
+
force: 'force',
|
|
1206
|
+
};
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
static types(): { [key: string]: any } {
|
|
1210
|
+
return {
|
|
1211
|
+
force: 'boolean',
|
|
1212
|
+
};
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
constructor(map?: { [key: string]: any }) {
|
|
1216
|
+
super(map);
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1201
1220
|
export class DeleteClusterNodepoolResponseBody extends $tea.Model {
|
|
1202
1221
|
requestId?: string;
|
|
1203
1222
|
static names(): { [key: string]: string } {
|
|
@@ -2428,6 +2447,7 @@ export class DescribeClustersV1Request extends $tea.Model {
|
|
|
2428
2447
|
pageNumber?: number;
|
|
2429
2448
|
pageSize?: number;
|
|
2430
2449
|
profile?: string;
|
|
2450
|
+
regionId?: string;
|
|
2431
2451
|
static names(): { [key: string]: string } {
|
|
2432
2452
|
return {
|
|
2433
2453
|
clusterSpec: 'cluster_spec',
|
|
@@ -2436,6 +2456,7 @@ export class DescribeClustersV1Request extends $tea.Model {
|
|
|
2436
2456
|
pageNumber: 'page_number',
|
|
2437
2457
|
pageSize: 'page_size',
|
|
2438
2458
|
profile: 'profile',
|
|
2459
|
+
regionId: 'region_id',
|
|
2439
2460
|
};
|
|
2440
2461
|
}
|
|
2441
2462
|
|
|
@@ -2447,6 +2468,7 @@ export class DescribeClustersV1Request extends $tea.Model {
|
|
|
2447
2468
|
pageNumber: 'number',
|
|
2448
2469
|
pageSize: 'number',
|
|
2449
2470
|
profile: 'string',
|
|
2471
|
+
regionId: 'string',
|
|
2450
2472
|
};
|
|
2451
2473
|
}
|
|
2452
2474
|
|
|
@@ -5751,7 +5773,6 @@ export class DescribeClusterLogsResponseBody extends $tea.Model {
|
|
|
5751
5773
|
ID?: number;
|
|
5752
5774
|
clusterId?: string;
|
|
5753
5775
|
clusterLog?: string;
|
|
5754
|
-
logLevel?: string;
|
|
5755
5776
|
created?: string;
|
|
5756
5777
|
updated?: string;
|
|
5757
5778
|
static names(): { [key: string]: string } {
|
|
@@ -5759,7 +5780,6 @@ export class DescribeClusterLogsResponseBody extends $tea.Model {
|
|
|
5759
5780
|
ID: 'ID',
|
|
5760
5781
|
clusterId: 'cluster_id',
|
|
5761
5782
|
clusterLog: 'cluster_log',
|
|
5762
|
-
logLevel: 'log_level',
|
|
5763
5783
|
created: 'created',
|
|
5764
5784
|
updated: 'updated',
|
|
5765
5785
|
};
|
|
@@ -5770,7 +5790,6 @@ export class DescribeClusterLogsResponseBody extends $tea.Model {
|
|
|
5770
5790
|
ID: 'number',
|
|
5771
5791
|
clusterId: 'string',
|
|
5772
5792
|
clusterLog: 'string',
|
|
5773
|
-
logLevel: 'string',
|
|
5774
5793
|
created: 'string',
|
|
5775
5794
|
updated: 'string',
|
|
5776
5795
|
};
|
|
@@ -8444,11 +8463,13 @@ export class UnInstallClusterAddonsRequestAddons extends $tea.Model {
|
|
|
8444
8463
|
|
|
8445
8464
|
export class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
8446
8465
|
componentName?: string;
|
|
8466
|
+
config?: string;
|
|
8447
8467
|
nextVersion?: string;
|
|
8448
8468
|
version?: string;
|
|
8449
8469
|
static names(): { [key: string]: string } {
|
|
8450
8470
|
return {
|
|
8451
8471
|
componentName: 'component_name',
|
|
8472
|
+
config: 'config',
|
|
8452
8473
|
nextVersion: 'next_version',
|
|
8453
8474
|
version: 'version',
|
|
8454
8475
|
};
|
|
@@ -8457,6 +8478,7 @@ export class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
|
8457
8478
|
static types(): { [key: string]: any } {
|
|
8458
8479
|
return {
|
|
8459
8480
|
componentName: 'string',
|
|
8481
|
+
config: 'string',
|
|
8460
8482
|
nextVersion: 'string',
|
|
8461
8483
|
version: 'string',
|
|
8462
8484
|
};
|
|
@@ -9436,17 +9458,24 @@ export default class Client extends OpenApi {
|
|
|
9436
9458
|
return $tea.cast<DeleteClusterResponse>(await this.callApi(params, req, runtime), new DeleteClusterResponse({}));
|
|
9437
9459
|
}
|
|
9438
9460
|
|
|
9439
|
-
async deleteClusterNodepool(ClusterId: string, NodepoolId: string): Promise<DeleteClusterNodepoolResponse> {
|
|
9461
|
+
async deleteClusterNodepool(ClusterId: string, NodepoolId: string, request: DeleteClusterNodepoolRequest): Promise<DeleteClusterNodepoolResponse> {
|
|
9440
9462
|
let runtime = new $Util.RuntimeOptions({ });
|
|
9441
9463
|
let headers : {[key: string ]: string} = { };
|
|
9442
|
-
return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, headers, runtime);
|
|
9464
|
+
return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
9443
9465
|
}
|
|
9444
9466
|
|
|
9445
|
-
async deleteClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterNodepoolResponse> {
|
|
9467
|
+
async deleteClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, request: DeleteClusterNodepoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterNodepoolResponse> {
|
|
9468
|
+
Util.validateModel(request);
|
|
9446
9469
|
ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
|
|
9447
9470
|
NodepoolId = OpenApiUtil.getEncodeParam(NodepoolId);
|
|
9471
|
+
let query : {[key: string ]: any} = { };
|
|
9472
|
+
if (!Util.isUnset(request.force)) {
|
|
9473
|
+
query["force"] = request.force;
|
|
9474
|
+
}
|
|
9475
|
+
|
|
9448
9476
|
let req = new $OpenApi.OpenApiRequest({
|
|
9449
9477
|
headers: headers,
|
|
9478
|
+
query: OpenApiUtil.query(query),
|
|
9450
9479
|
});
|
|
9451
9480
|
let params = new $OpenApi.Params({
|
|
9452
9481
|
action: "DeleteClusterNodepool",
|
|
@@ -10247,6 +10276,10 @@ export default class Client extends OpenApi {
|
|
|
10247
10276
|
query["profile"] = request.profile;
|
|
10248
10277
|
}
|
|
10249
10278
|
|
|
10279
|
+
if (!Util.isUnset(request.regionId)) {
|
|
10280
|
+
query["region_id"] = request.regionId;
|
|
10281
|
+
}
|
|
10282
|
+
|
|
10250
10283
|
let req = new $OpenApi.OpenApiRequest({
|
|
10251
10284
|
headers: headers,
|
|
10252
10285
|
query: OpenApiUtil.query(query),
|