@alicloud/cs20151215 4.1.0 → 4.2.0
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 +199 -4
- package/dist/client.js +332 -14
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +387 -4
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -1235,6 +1235,78 @@ export class CreateClusterResponse extends $tea.Model {
|
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
1237
|
|
|
1238
|
+
export class CreateClusterDiagnosisRequest extends $tea.Model {
|
|
1239
|
+
target?: { [key: string]: any };
|
|
1240
|
+
type?: string;
|
|
1241
|
+
static names(): { [key: string]: string } {
|
|
1242
|
+
return {
|
|
1243
|
+
target: 'target',
|
|
1244
|
+
type: 'type',
|
|
1245
|
+
};
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
static types(): { [key: string]: any } {
|
|
1249
|
+
return {
|
|
1250
|
+
target: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1251
|
+
type: 'string',
|
|
1252
|
+
};
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
constructor(map?: { [key: string]: any }) {
|
|
1256
|
+
super(map);
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
export class CreateClusterDiagnosisResponseBody extends $tea.Model {
|
|
1261
|
+
clusterId?: string;
|
|
1262
|
+
diagnosisId?: string;
|
|
1263
|
+
requestId?: string;
|
|
1264
|
+
static names(): { [key: string]: string } {
|
|
1265
|
+
return {
|
|
1266
|
+
clusterId: 'cluster_id',
|
|
1267
|
+
diagnosisId: 'diagnosis_id',
|
|
1268
|
+
requestId: 'request_id',
|
|
1269
|
+
};
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
static types(): { [key: string]: any } {
|
|
1273
|
+
return {
|
|
1274
|
+
clusterId: 'string',
|
|
1275
|
+
diagnosisId: 'string',
|
|
1276
|
+
requestId: 'string',
|
|
1277
|
+
};
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
constructor(map?: { [key: string]: any }) {
|
|
1281
|
+
super(map);
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
export class CreateClusterDiagnosisResponse extends $tea.Model {
|
|
1286
|
+
headers?: { [key: string]: string };
|
|
1287
|
+
statusCode?: number;
|
|
1288
|
+
body?: CreateClusterDiagnosisResponseBody;
|
|
1289
|
+
static names(): { [key: string]: string } {
|
|
1290
|
+
return {
|
|
1291
|
+
headers: 'headers',
|
|
1292
|
+
statusCode: 'statusCode',
|
|
1293
|
+
body: 'body',
|
|
1294
|
+
};
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
static types(): { [key: string]: any } {
|
|
1298
|
+
return {
|
|
1299
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1300
|
+
statusCode: 'number',
|
|
1301
|
+
body: CreateClusterDiagnosisResponseBody,
|
|
1302
|
+
};
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
constructor(map?: { [key: string]: any }) {
|
|
1306
|
+
super(map);
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1238
1310
|
export class CreateClusterNodePoolRequest extends $tea.Model {
|
|
1239
1311
|
autoScaling?: CreateClusterNodePoolRequestAutoScaling;
|
|
1240
1312
|
count?: number;
|
|
@@ -5166,6 +5238,127 @@ export class GetClusterCheckResponse extends $tea.Model {
|
|
|
5166
5238
|
}
|
|
5167
5239
|
}
|
|
5168
5240
|
|
|
5241
|
+
export class GetClusterDiagnosisCheckItemsResponseBody extends $tea.Model {
|
|
5242
|
+
checkItems?: GetClusterDiagnosisCheckItemsResponseBodyCheckItems[];
|
|
5243
|
+
code?: string;
|
|
5244
|
+
isSuccess?: boolean;
|
|
5245
|
+
requestId?: string;
|
|
5246
|
+
static names(): { [key: string]: string } {
|
|
5247
|
+
return {
|
|
5248
|
+
checkItems: 'check_items',
|
|
5249
|
+
code: 'code',
|
|
5250
|
+
isSuccess: 'is_success',
|
|
5251
|
+
requestId: 'request_id',
|
|
5252
|
+
};
|
|
5253
|
+
}
|
|
5254
|
+
|
|
5255
|
+
static types(): { [key: string]: any } {
|
|
5256
|
+
return {
|
|
5257
|
+
checkItems: { 'type': 'array', 'itemType': GetClusterDiagnosisCheckItemsResponseBodyCheckItems },
|
|
5258
|
+
code: 'string',
|
|
5259
|
+
isSuccess: 'boolean',
|
|
5260
|
+
requestId: 'string',
|
|
5261
|
+
};
|
|
5262
|
+
}
|
|
5263
|
+
|
|
5264
|
+
constructor(map?: { [key: string]: any }) {
|
|
5265
|
+
super(map);
|
|
5266
|
+
}
|
|
5267
|
+
}
|
|
5268
|
+
|
|
5269
|
+
export class GetClusterDiagnosisCheckItemsResponse extends $tea.Model {
|
|
5270
|
+
headers?: { [key: string]: string };
|
|
5271
|
+
statusCode?: number;
|
|
5272
|
+
body?: GetClusterDiagnosisCheckItemsResponseBody;
|
|
5273
|
+
static names(): { [key: string]: string } {
|
|
5274
|
+
return {
|
|
5275
|
+
headers: 'headers',
|
|
5276
|
+
statusCode: 'statusCode',
|
|
5277
|
+
body: 'body',
|
|
5278
|
+
};
|
|
5279
|
+
}
|
|
5280
|
+
|
|
5281
|
+
static types(): { [key: string]: any } {
|
|
5282
|
+
return {
|
|
5283
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5284
|
+
statusCode: 'number',
|
|
5285
|
+
body: GetClusterDiagnosisCheckItemsResponseBody,
|
|
5286
|
+
};
|
|
5287
|
+
}
|
|
5288
|
+
|
|
5289
|
+
constructor(map?: { [key: string]: any }) {
|
|
5290
|
+
super(map);
|
|
5291
|
+
}
|
|
5292
|
+
}
|
|
5293
|
+
|
|
5294
|
+
export class GetClusterDiagnosisResultResponseBody extends $tea.Model {
|
|
5295
|
+
code?: number;
|
|
5296
|
+
created?: string;
|
|
5297
|
+
diagnosisId?: string;
|
|
5298
|
+
finished?: string;
|
|
5299
|
+
message?: string;
|
|
5300
|
+
result?: string;
|
|
5301
|
+
status?: number;
|
|
5302
|
+
target?: string;
|
|
5303
|
+
type?: string;
|
|
5304
|
+
static names(): { [key: string]: string } {
|
|
5305
|
+
return {
|
|
5306
|
+
code: 'code',
|
|
5307
|
+
created: 'created',
|
|
5308
|
+
diagnosisId: 'diagnosis_id',
|
|
5309
|
+
finished: 'finished',
|
|
5310
|
+
message: 'message',
|
|
5311
|
+
result: 'result',
|
|
5312
|
+
status: 'status',
|
|
5313
|
+
target: 'target',
|
|
5314
|
+
type: 'type',
|
|
5315
|
+
};
|
|
5316
|
+
}
|
|
5317
|
+
|
|
5318
|
+
static types(): { [key: string]: any } {
|
|
5319
|
+
return {
|
|
5320
|
+
code: 'number',
|
|
5321
|
+
created: 'string',
|
|
5322
|
+
diagnosisId: 'string',
|
|
5323
|
+
finished: 'string',
|
|
5324
|
+
message: 'string',
|
|
5325
|
+
result: 'string',
|
|
5326
|
+
status: 'number',
|
|
5327
|
+
target: 'string',
|
|
5328
|
+
type: 'string',
|
|
5329
|
+
};
|
|
5330
|
+
}
|
|
5331
|
+
|
|
5332
|
+
constructor(map?: { [key: string]: any }) {
|
|
5333
|
+
super(map);
|
|
5334
|
+
}
|
|
5335
|
+
}
|
|
5336
|
+
|
|
5337
|
+
export class GetClusterDiagnosisResultResponse extends $tea.Model {
|
|
5338
|
+
headers?: { [key: string]: string };
|
|
5339
|
+
statusCode?: number;
|
|
5340
|
+
body?: GetClusterDiagnosisResultResponseBody;
|
|
5341
|
+
static names(): { [key: string]: string } {
|
|
5342
|
+
return {
|
|
5343
|
+
headers: 'headers',
|
|
5344
|
+
statusCode: 'statusCode',
|
|
5345
|
+
body: 'body',
|
|
5346
|
+
};
|
|
5347
|
+
}
|
|
5348
|
+
|
|
5349
|
+
static types(): { [key: string]: any } {
|
|
5350
|
+
return {
|
|
5351
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5352
|
+
statusCode: 'number',
|
|
5353
|
+
body: GetClusterDiagnosisResultResponseBody,
|
|
5354
|
+
};
|
|
5355
|
+
}
|
|
5356
|
+
|
|
5357
|
+
constructor(map?: { [key: string]: any }) {
|
|
5358
|
+
super(map);
|
|
5359
|
+
}
|
|
5360
|
+
}
|
|
5361
|
+
|
|
5169
5362
|
export class GetKubernetesTriggerRequest extends $tea.Model {
|
|
5170
5363
|
name?: string;
|
|
5171
5364
|
namespace?: string;
|
|
@@ -6576,10 +6769,12 @@ export class RemoveWorkflowResponse extends $tea.Model {
|
|
|
6576
6769
|
export class RepairClusterNodePoolRequest extends $tea.Model {
|
|
6577
6770
|
autoRestart?: boolean;
|
|
6578
6771
|
nodes?: string[];
|
|
6772
|
+
operations?: RepairClusterNodePoolRequestOperations[];
|
|
6579
6773
|
static names(): { [key: string]: string } {
|
|
6580
6774
|
return {
|
|
6581
6775
|
autoRestart: 'auto_restart',
|
|
6582
6776
|
nodes: 'nodes',
|
|
6777
|
+
operations: 'operations',
|
|
6583
6778
|
};
|
|
6584
6779
|
}
|
|
6585
6780
|
|
|
@@ -6587,6 +6782,7 @@ export class RepairClusterNodePoolRequest extends $tea.Model {
|
|
|
6587
6782
|
return {
|
|
6588
6783
|
autoRestart: 'boolean',
|
|
6589
6784
|
nodes: { 'type': 'array', 'itemType': 'string' },
|
|
6785
|
+
operations: { 'type': 'array', 'itemType': RepairClusterNodePoolRequestOperations },
|
|
6590
6786
|
};
|
|
6591
6787
|
}
|
|
6592
6788
|
|
|
@@ -12315,6 +12511,46 @@ export class GetClusterAddonInstanceResponseBodyLogging extends $tea.Model {
|
|
|
12315
12511
|
}
|
|
12316
12512
|
}
|
|
12317
12513
|
|
|
12514
|
+
export class GetClusterDiagnosisCheckItemsResponseBodyCheckItems extends $tea.Model {
|
|
12515
|
+
desc?: string;
|
|
12516
|
+
display?: string;
|
|
12517
|
+
group?: string;
|
|
12518
|
+
level?: string;
|
|
12519
|
+
message?: string;
|
|
12520
|
+
name?: string;
|
|
12521
|
+
refer?: string;
|
|
12522
|
+
value?: string;
|
|
12523
|
+
static names(): { [key: string]: string } {
|
|
12524
|
+
return {
|
|
12525
|
+
desc: 'desc',
|
|
12526
|
+
display: 'display',
|
|
12527
|
+
group: 'group',
|
|
12528
|
+
level: 'level',
|
|
12529
|
+
message: 'message',
|
|
12530
|
+
name: 'name',
|
|
12531
|
+
refer: 'refer',
|
|
12532
|
+
value: 'value',
|
|
12533
|
+
};
|
|
12534
|
+
}
|
|
12535
|
+
|
|
12536
|
+
static types(): { [key: string]: any } {
|
|
12537
|
+
return {
|
|
12538
|
+
desc: 'string',
|
|
12539
|
+
display: 'string',
|
|
12540
|
+
group: 'string',
|
|
12541
|
+
level: 'string',
|
|
12542
|
+
message: 'string',
|
|
12543
|
+
name: 'string',
|
|
12544
|
+
refer: 'string',
|
|
12545
|
+
value: 'string',
|
|
12546
|
+
};
|
|
12547
|
+
}
|
|
12548
|
+
|
|
12549
|
+
constructor(map?: { [key: string]: any }) {
|
|
12550
|
+
super(map);
|
|
12551
|
+
}
|
|
12552
|
+
}
|
|
12553
|
+
|
|
12318
12554
|
export class GetKubernetesTriggerResponseBody extends $tea.Model {
|
|
12319
12555
|
id?: string;
|
|
12320
12556
|
name?: string;
|
|
@@ -13212,6 +13448,28 @@ export class ModifyNodePoolNodeConfigRequestRollingPolicy extends $tea.Model {
|
|
|
13212
13448
|
}
|
|
13213
13449
|
}
|
|
13214
13450
|
|
|
13451
|
+
export class RepairClusterNodePoolRequestOperations extends $tea.Model {
|
|
13452
|
+
args?: string[];
|
|
13453
|
+
operationId?: string;
|
|
13454
|
+
static names(): { [key: string]: string } {
|
|
13455
|
+
return {
|
|
13456
|
+
args: 'args',
|
|
13457
|
+
operationId: 'operation_id',
|
|
13458
|
+
};
|
|
13459
|
+
}
|
|
13460
|
+
|
|
13461
|
+
static types(): { [key: string]: any } {
|
|
13462
|
+
return {
|
|
13463
|
+
args: { 'type': 'array', 'itemType': 'string' },
|
|
13464
|
+
operationId: 'string',
|
|
13465
|
+
};
|
|
13466
|
+
}
|
|
13467
|
+
|
|
13468
|
+
constructor(map?: { [key: string]: any }) {
|
|
13469
|
+
super(map);
|
|
13470
|
+
}
|
|
13471
|
+
}
|
|
13472
|
+
|
|
13215
13473
|
export class ScaleClusterRequestTags extends $tea.Model {
|
|
13216
13474
|
key?: string;
|
|
13217
13475
|
static names(): { [key: string]: string } {
|
|
@@ -14422,7 +14680,56 @@ export default class Client extends OpenApi {
|
|
|
14422
14680
|
}
|
|
14423
14681
|
|
|
14424
14682
|
/**
|
|
14425
|
-
* @summary
|
|
14683
|
+
* @summary 发起集群诊断
|
|
14684
|
+
*
|
|
14685
|
+
* @param request CreateClusterDiagnosisRequest
|
|
14686
|
+
* @param headers map
|
|
14687
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14688
|
+
* @return CreateClusterDiagnosisResponse
|
|
14689
|
+
*/
|
|
14690
|
+
async createClusterDiagnosisWithOptions(clusterId: string, request: CreateClusterDiagnosisRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateClusterDiagnosisResponse> {
|
|
14691
|
+
Util.validateModel(request);
|
|
14692
|
+
let body : {[key: string ]: any} = { };
|
|
14693
|
+
if (!Util.isUnset(request.target)) {
|
|
14694
|
+
body["target"] = request.target;
|
|
14695
|
+
}
|
|
14696
|
+
|
|
14697
|
+
if (!Util.isUnset(request.type)) {
|
|
14698
|
+
body["type"] = request.type;
|
|
14699
|
+
}
|
|
14700
|
+
|
|
14701
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
14702
|
+
headers: headers,
|
|
14703
|
+
body: OpenApiUtil.parseToMap(body),
|
|
14704
|
+
});
|
|
14705
|
+
let params = new $OpenApi.Params({
|
|
14706
|
+
action: "CreateClusterDiagnosis",
|
|
14707
|
+
version: "2015-12-15",
|
|
14708
|
+
protocol: "HTTPS",
|
|
14709
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterId)}/diagnosis`,
|
|
14710
|
+
method: "POST",
|
|
14711
|
+
authType: "AK",
|
|
14712
|
+
style: "ROA",
|
|
14713
|
+
reqBodyType: "json",
|
|
14714
|
+
bodyType: "json",
|
|
14715
|
+
});
|
|
14716
|
+
return $tea.cast<CreateClusterDiagnosisResponse>(await this.callApi(params, req, runtime), new CreateClusterDiagnosisResponse({}));
|
|
14717
|
+
}
|
|
14718
|
+
|
|
14719
|
+
/**
|
|
14720
|
+
* @summary 发起集群诊断
|
|
14721
|
+
*
|
|
14722
|
+
* @param request CreateClusterDiagnosisRequest
|
|
14723
|
+
* @return CreateClusterDiagnosisResponse
|
|
14724
|
+
*/
|
|
14725
|
+
async createClusterDiagnosis(clusterId: string, request: CreateClusterDiagnosisRequest): Promise<CreateClusterDiagnosisResponse> {
|
|
14726
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
14727
|
+
let headers : {[key: string ]: string} = { };
|
|
14728
|
+
return await this.createClusterDiagnosisWithOptions(clusterId, request, headers, runtime);
|
|
14729
|
+
}
|
|
14730
|
+
|
|
14731
|
+
/**
|
|
14732
|
+
* @summary Creates a node pool for a Container Service for Kubernetes (ACK) cluster. You can use node pools to facilitate node management. For example, you can schedule, configure, or maintain nodes by node pool, and enable auto scaling for a node pool. We recommend that you use a managed node pool, which can help automate specific O\\&M tasks for nodes, such as Common Vulnerabilities and Exposures (CVE) patching and node repair. This reduces your O\\&M workload.
|
|
14426
14733
|
*
|
|
14427
14734
|
* @param request CreateClusterNodePoolRequest
|
|
14428
14735
|
* @param headers map
|
|
@@ -14495,7 +14802,7 @@ export default class Client extends OpenApi {
|
|
|
14495
14802
|
}
|
|
14496
14803
|
|
|
14497
14804
|
/**
|
|
14498
|
-
* @summary Creates a node pool for a Container Service for Kubernetes (ACK) cluster. You can use node pools to facilitate node management. For example, you can schedule, configure, or maintain nodes by node pool, and enable auto scaling for a node pool. We recommend that you use a managed node pool, which can help automate specific O
|
|
14805
|
+
* @summary Creates a node pool for a Container Service for Kubernetes (ACK) cluster. You can use node pools to facilitate node management. For example, you can schedule, configure, or maintain nodes by node pool, and enable auto scaling for a node pool. We recommend that you use a managed node pool, which can help automate specific O\\&M tasks for nodes, such as Common Vulnerabilities and Exposures (CVE) patching and node repair. This reduces your O\\&M workload.
|
|
14499
14806
|
*
|
|
14500
14807
|
* @param request CreateClusterNodePoolRequest
|
|
14501
14808
|
* @return CreateClusterNodePoolResponse
|
|
@@ -15883,7 +16190,7 @@ export default class Client extends OpenApi {
|
|
|
15883
16190
|
}
|
|
15884
16191
|
|
|
15885
16192
|
/**
|
|
15886
|
-
* @summary
|
|
16193
|
+
* @summary Queries node pools in a Container Service for Kubernetes (ACK) cluster.
|
|
15887
16194
|
*
|
|
15888
16195
|
* @param request DescribeClusterNodePoolsRequest
|
|
15889
16196
|
* @param headers map
|
|
@@ -15916,7 +16223,7 @@ export default class Client extends OpenApi {
|
|
|
15916
16223
|
}
|
|
15917
16224
|
|
|
15918
16225
|
/**
|
|
15919
|
-
* @summary
|
|
16226
|
+
* @summary Queries node pools in a Container Service for Kubernetes (ACK) cluster.
|
|
15920
16227
|
*
|
|
15921
16228
|
* @param request DescribeClusterNodePoolsRequest
|
|
15922
16229
|
* @return DescribeClusterNodePoolsResponse
|
|
@@ -17524,6 +17831,78 @@ export default class Client extends OpenApi {
|
|
|
17524
17831
|
return await this.getClusterCheckWithOptions(clusterId, checkId, headers, runtime);
|
|
17525
17832
|
}
|
|
17526
17833
|
|
|
17834
|
+
/**
|
|
17835
|
+
* @summary 获取集群诊断检查项
|
|
17836
|
+
*
|
|
17837
|
+
* @param headers map
|
|
17838
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
17839
|
+
* @return GetClusterDiagnosisCheckItemsResponse
|
|
17840
|
+
*/
|
|
17841
|
+
async getClusterDiagnosisCheckItemsWithOptions(clusterId: string, diagnosisId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetClusterDiagnosisCheckItemsResponse> {
|
|
17842
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
17843
|
+
headers: headers,
|
|
17844
|
+
});
|
|
17845
|
+
let params = new $OpenApi.Params({
|
|
17846
|
+
action: "GetClusterDiagnosisCheckItems",
|
|
17847
|
+
version: "2015-12-15",
|
|
17848
|
+
protocol: "HTTPS",
|
|
17849
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterId)}/diagnosis/${OpenApiUtil.getEncodeParam(diagnosisId)}/check_items`,
|
|
17850
|
+
method: "GET",
|
|
17851
|
+
authType: "AK",
|
|
17852
|
+
style: "ROA",
|
|
17853
|
+
reqBodyType: "json",
|
|
17854
|
+
bodyType: "json",
|
|
17855
|
+
});
|
|
17856
|
+
return $tea.cast<GetClusterDiagnosisCheckItemsResponse>(await this.callApi(params, req, runtime), new GetClusterDiagnosisCheckItemsResponse({}));
|
|
17857
|
+
}
|
|
17858
|
+
|
|
17859
|
+
/**
|
|
17860
|
+
* @summary 获取集群诊断检查项
|
|
17861
|
+
*
|
|
17862
|
+
* @return GetClusterDiagnosisCheckItemsResponse
|
|
17863
|
+
*/
|
|
17864
|
+
async getClusterDiagnosisCheckItems(clusterId: string, diagnosisId: string): Promise<GetClusterDiagnosisCheckItemsResponse> {
|
|
17865
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
17866
|
+
let headers : {[key: string ]: string} = { };
|
|
17867
|
+
return await this.getClusterDiagnosisCheckItemsWithOptions(clusterId, diagnosisId, headers, runtime);
|
|
17868
|
+
}
|
|
17869
|
+
|
|
17870
|
+
/**
|
|
17871
|
+
* @summary 获取集群诊断结果
|
|
17872
|
+
*
|
|
17873
|
+
* @param headers map
|
|
17874
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
17875
|
+
* @return GetClusterDiagnosisResultResponse
|
|
17876
|
+
*/
|
|
17877
|
+
async getClusterDiagnosisResultWithOptions(clusterId: string, diagnosisId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetClusterDiagnosisResultResponse> {
|
|
17878
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
17879
|
+
headers: headers,
|
|
17880
|
+
});
|
|
17881
|
+
let params = new $OpenApi.Params({
|
|
17882
|
+
action: "GetClusterDiagnosisResult",
|
|
17883
|
+
version: "2015-12-15",
|
|
17884
|
+
protocol: "HTTPS",
|
|
17885
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterId)}/diagnosis/${OpenApiUtil.getEncodeParam(diagnosisId)}/result`,
|
|
17886
|
+
method: "GET",
|
|
17887
|
+
authType: "AK",
|
|
17888
|
+
style: "ROA",
|
|
17889
|
+
reqBodyType: "json",
|
|
17890
|
+
bodyType: "json",
|
|
17891
|
+
});
|
|
17892
|
+
return $tea.cast<GetClusterDiagnosisResultResponse>(await this.callApi(params, req, runtime), new GetClusterDiagnosisResultResponse({}));
|
|
17893
|
+
}
|
|
17894
|
+
|
|
17895
|
+
/**
|
|
17896
|
+
* @summary 获取集群诊断结果
|
|
17897
|
+
*
|
|
17898
|
+
* @return GetClusterDiagnosisResultResponse
|
|
17899
|
+
*/
|
|
17900
|
+
async getClusterDiagnosisResult(clusterId: string, diagnosisId: string): Promise<GetClusterDiagnosisResultResponse> {
|
|
17901
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
17902
|
+
let headers : {[key: string ]: string} = { };
|
|
17903
|
+
return await this.getClusterDiagnosisResultWithOptions(clusterId, diagnosisId, headers, runtime);
|
|
17904
|
+
}
|
|
17905
|
+
|
|
17527
17906
|
/**
|
|
17528
17907
|
* @summary You can call the GetKubernetesTrigger operationto query the triggers of an application by application name.
|
|
17529
17908
|
*
|
|
@@ -18820,6 +19199,10 @@ export default class Client extends OpenApi {
|
|
|
18820
19199
|
body["nodes"] = request.nodes;
|
|
18821
19200
|
}
|
|
18822
19201
|
|
|
19202
|
+
if (!Util.isUnset(request.operations)) {
|
|
19203
|
+
body["operations"] = request.operations;
|
|
19204
|
+
}
|
|
19205
|
+
|
|
18823
19206
|
let req = new $OpenApi.OpenApiRequest({
|
|
18824
19207
|
headers: headers,
|
|
18825
19208
|
body: OpenApiUtil.parseToMap(body),
|