@alicloud/cs20151215 4.1.1 → 4.2.1
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 +273 -44
- package/dist/client.js +421 -54
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +483 -44
package/src/client.ts
CHANGED
|
@@ -94,6 +94,43 @@ export class DataDisk extends $tea.Model {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
export class InstancePatterns extends $tea.Model {
|
|
98
|
+
architectures?: string[];
|
|
99
|
+
burstPerformanceOption?: string;
|
|
100
|
+
core?: number;
|
|
101
|
+
excludedInstanceTypes?: string[];
|
|
102
|
+
instanceFamilyLevel?: string;
|
|
103
|
+
maxPrice?: number;
|
|
104
|
+
memory?: number;
|
|
105
|
+
static names(): { [key: string]: string } {
|
|
106
|
+
return {
|
|
107
|
+
architectures: 'architectures',
|
|
108
|
+
burstPerformanceOption: 'burst_performance_option',
|
|
109
|
+
core: 'core',
|
|
110
|
+
excludedInstanceTypes: 'excluded_instance_types',
|
|
111
|
+
instanceFamilyLevel: 'instance_family_level',
|
|
112
|
+
maxPrice: 'max_price',
|
|
113
|
+
memory: 'memory',
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
static types(): { [key: string]: any } {
|
|
118
|
+
return {
|
|
119
|
+
architectures: { 'type': 'array', 'itemType': 'string' },
|
|
120
|
+
burstPerformanceOption: 'string',
|
|
121
|
+
core: 'number',
|
|
122
|
+
excludedInstanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
123
|
+
instanceFamilyLevel: 'string',
|
|
124
|
+
maxPrice: 'number',
|
|
125
|
+
memory: 'number',
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
constructor(map?: { [key: string]: any }) {
|
|
130
|
+
super(map);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
97
134
|
export class KubeletConfig extends $tea.Model {
|
|
98
135
|
allowedUnsafeSysctls?: string[];
|
|
99
136
|
containerLogMaxFiles?: number;
|
|
@@ -1235,6 +1272,78 @@ export class CreateClusterResponse extends $tea.Model {
|
|
|
1235
1272
|
}
|
|
1236
1273
|
}
|
|
1237
1274
|
|
|
1275
|
+
export class CreateClusterDiagnosisRequest extends $tea.Model {
|
|
1276
|
+
target?: { [key: string]: any };
|
|
1277
|
+
type?: string;
|
|
1278
|
+
static names(): { [key: string]: string } {
|
|
1279
|
+
return {
|
|
1280
|
+
target: 'target',
|
|
1281
|
+
type: 'type',
|
|
1282
|
+
};
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
static types(): { [key: string]: any } {
|
|
1286
|
+
return {
|
|
1287
|
+
target: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1288
|
+
type: 'string',
|
|
1289
|
+
};
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
constructor(map?: { [key: string]: any }) {
|
|
1293
|
+
super(map);
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
export class CreateClusterDiagnosisResponseBody extends $tea.Model {
|
|
1298
|
+
clusterId?: string;
|
|
1299
|
+
diagnosisId?: string;
|
|
1300
|
+
requestId?: string;
|
|
1301
|
+
static names(): { [key: string]: string } {
|
|
1302
|
+
return {
|
|
1303
|
+
clusterId: 'cluster_id',
|
|
1304
|
+
diagnosisId: 'diagnosis_id',
|
|
1305
|
+
requestId: 'request_id',
|
|
1306
|
+
};
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
static types(): { [key: string]: any } {
|
|
1310
|
+
return {
|
|
1311
|
+
clusterId: 'string',
|
|
1312
|
+
diagnosisId: 'string',
|
|
1313
|
+
requestId: 'string',
|
|
1314
|
+
};
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
constructor(map?: { [key: string]: any }) {
|
|
1318
|
+
super(map);
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
export class CreateClusterDiagnosisResponse extends $tea.Model {
|
|
1323
|
+
headers?: { [key: string]: string };
|
|
1324
|
+
statusCode?: number;
|
|
1325
|
+
body?: CreateClusterDiagnosisResponseBody;
|
|
1326
|
+
static names(): { [key: string]: string } {
|
|
1327
|
+
return {
|
|
1328
|
+
headers: 'headers',
|
|
1329
|
+
statusCode: 'statusCode',
|
|
1330
|
+
body: 'body',
|
|
1331
|
+
};
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
static types(): { [key: string]: any } {
|
|
1335
|
+
return {
|
|
1336
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1337
|
+
statusCode: 'number',
|
|
1338
|
+
body: CreateClusterDiagnosisResponseBody,
|
|
1339
|
+
};
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
constructor(map?: { [key: string]: any }) {
|
|
1343
|
+
super(map);
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1238
1347
|
export class CreateClusterNodePoolRequest extends $tea.Model {
|
|
1239
1348
|
autoScaling?: CreateClusterNodePoolRequestAutoScaling;
|
|
1240
1349
|
count?: number;
|
|
@@ -5166,6 +5275,127 @@ export class GetClusterCheckResponse extends $tea.Model {
|
|
|
5166
5275
|
}
|
|
5167
5276
|
}
|
|
5168
5277
|
|
|
5278
|
+
export class GetClusterDiagnosisCheckItemsResponseBody extends $tea.Model {
|
|
5279
|
+
checkItems?: GetClusterDiagnosisCheckItemsResponseBodyCheckItems[];
|
|
5280
|
+
code?: string;
|
|
5281
|
+
isSuccess?: boolean;
|
|
5282
|
+
requestId?: string;
|
|
5283
|
+
static names(): { [key: string]: string } {
|
|
5284
|
+
return {
|
|
5285
|
+
checkItems: 'check_items',
|
|
5286
|
+
code: 'code',
|
|
5287
|
+
isSuccess: 'is_success',
|
|
5288
|
+
requestId: 'request_id',
|
|
5289
|
+
};
|
|
5290
|
+
}
|
|
5291
|
+
|
|
5292
|
+
static types(): { [key: string]: any } {
|
|
5293
|
+
return {
|
|
5294
|
+
checkItems: { 'type': 'array', 'itemType': GetClusterDiagnosisCheckItemsResponseBodyCheckItems },
|
|
5295
|
+
code: 'string',
|
|
5296
|
+
isSuccess: 'boolean',
|
|
5297
|
+
requestId: 'string',
|
|
5298
|
+
};
|
|
5299
|
+
}
|
|
5300
|
+
|
|
5301
|
+
constructor(map?: { [key: string]: any }) {
|
|
5302
|
+
super(map);
|
|
5303
|
+
}
|
|
5304
|
+
}
|
|
5305
|
+
|
|
5306
|
+
export class GetClusterDiagnosisCheckItemsResponse extends $tea.Model {
|
|
5307
|
+
headers?: { [key: string]: string };
|
|
5308
|
+
statusCode?: number;
|
|
5309
|
+
body?: GetClusterDiagnosisCheckItemsResponseBody;
|
|
5310
|
+
static names(): { [key: string]: string } {
|
|
5311
|
+
return {
|
|
5312
|
+
headers: 'headers',
|
|
5313
|
+
statusCode: 'statusCode',
|
|
5314
|
+
body: 'body',
|
|
5315
|
+
};
|
|
5316
|
+
}
|
|
5317
|
+
|
|
5318
|
+
static types(): { [key: string]: any } {
|
|
5319
|
+
return {
|
|
5320
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5321
|
+
statusCode: 'number',
|
|
5322
|
+
body: GetClusterDiagnosisCheckItemsResponseBody,
|
|
5323
|
+
};
|
|
5324
|
+
}
|
|
5325
|
+
|
|
5326
|
+
constructor(map?: { [key: string]: any }) {
|
|
5327
|
+
super(map);
|
|
5328
|
+
}
|
|
5329
|
+
}
|
|
5330
|
+
|
|
5331
|
+
export class GetClusterDiagnosisResultResponseBody extends $tea.Model {
|
|
5332
|
+
code?: number;
|
|
5333
|
+
created?: string;
|
|
5334
|
+
diagnosisId?: string;
|
|
5335
|
+
finished?: string;
|
|
5336
|
+
message?: string;
|
|
5337
|
+
result?: string;
|
|
5338
|
+
status?: number;
|
|
5339
|
+
target?: string;
|
|
5340
|
+
type?: string;
|
|
5341
|
+
static names(): { [key: string]: string } {
|
|
5342
|
+
return {
|
|
5343
|
+
code: 'code',
|
|
5344
|
+
created: 'created',
|
|
5345
|
+
diagnosisId: 'diagnosis_id',
|
|
5346
|
+
finished: 'finished',
|
|
5347
|
+
message: 'message',
|
|
5348
|
+
result: 'result',
|
|
5349
|
+
status: 'status',
|
|
5350
|
+
target: 'target',
|
|
5351
|
+
type: 'type',
|
|
5352
|
+
};
|
|
5353
|
+
}
|
|
5354
|
+
|
|
5355
|
+
static types(): { [key: string]: any } {
|
|
5356
|
+
return {
|
|
5357
|
+
code: 'number',
|
|
5358
|
+
created: 'string',
|
|
5359
|
+
diagnosisId: 'string',
|
|
5360
|
+
finished: 'string',
|
|
5361
|
+
message: 'string',
|
|
5362
|
+
result: 'string',
|
|
5363
|
+
status: 'number',
|
|
5364
|
+
target: 'string',
|
|
5365
|
+
type: 'string',
|
|
5366
|
+
};
|
|
5367
|
+
}
|
|
5368
|
+
|
|
5369
|
+
constructor(map?: { [key: string]: any }) {
|
|
5370
|
+
super(map);
|
|
5371
|
+
}
|
|
5372
|
+
}
|
|
5373
|
+
|
|
5374
|
+
export class GetClusterDiagnosisResultResponse extends $tea.Model {
|
|
5375
|
+
headers?: { [key: string]: string };
|
|
5376
|
+
statusCode?: number;
|
|
5377
|
+
body?: GetClusterDiagnosisResultResponseBody;
|
|
5378
|
+
static names(): { [key: string]: string } {
|
|
5379
|
+
return {
|
|
5380
|
+
headers: 'headers',
|
|
5381
|
+
statusCode: 'statusCode',
|
|
5382
|
+
body: 'body',
|
|
5383
|
+
};
|
|
5384
|
+
}
|
|
5385
|
+
|
|
5386
|
+
static types(): { [key: string]: any } {
|
|
5387
|
+
return {
|
|
5388
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5389
|
+
statusCode: 'number',
|
|
5390
|
+
body: GetClusterDiagnosisResultResponseBody,
|
|
5391
|
+
};
|
|
5392
|
+
}
|
|
5393
|
+
|
|
5394
|
+
constructor(map?: { [key: string]: any }) {
|
|
5395
|
+
super(map);
|
|
5396
|
+
}
|
|
5397
|
+
}
|
|
5398
|
+
|
|
5169
5399
|
export class GetKubernetesTriggerRequest extends $tea.Model {
|
|
5170
5400
|
name?: string;
|
|
5171
5401
|
namespace?: string;
|
|
@@ -9074,6 +9304,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
9074
9304
|
imageId?: string;
|
|
9075
9305
|
imageType?: string;
|
|
9076
9306
|
instanceChargeType?: string;
|
|
9307
|
+
instancePatterns?: InstancePatterns;
|
|
9077
9308
|
instanceTypes?: string[];
|
|
9078
9309
|
internetChargeType?: string;
|
|
9079
9310
|
internetMaxBandwidthOut?: number;
|
|
@@ -9120,6 +9351,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
9120
9351
|
imageId: 'image_id',
|
|
9121
9352
|
imageType: 'image_type',
|
|
9122
9353
|
instanceChargeType: 'instance_charge_type',
|
|
9354
|
+
instancePatterns: 'instance_patterns',
|
|
9123
9355
|
instanceTypes: 'instance_types',
|
|
9124
9356
|
internetChargeType: 'internet_charge_type',
|
|
9125
9357
|
internetMaxBandwidthOut: 'internet_max_bandwidth_out',
|
|
@@ -9169,6 +9401,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
9169
9401
|
imageId: 'string',
|
|
9170
9402
|
imageType: 'string',
|
|
9171
9403
|
instanceChargeType: 'string',
|
|
9404
|
+
instancePatterns: InstancePatterns,
|
|
9172
9405
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
9173
9406
|
internetChargeType: 'string',
|
|
9174
9407
|
internetMaxBandwidthOut: 'number',
|
|
@@ -9858,6 +10091,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
9858
10091
|
imageId?: string;
|
|
9859
10092
|
imageType?: string;
|
|
9860
10093
|
instanceChargeType?: string;
|
|
10094
|
+
instancePatterns?: InstancePatterns;
|
|
9861
10095
|
instanceTypes?: string[];
|
|
9862
10096
|
internetChargeType?: string;
|
|
9863
10097
|
internetMaxBandwidthOut?: number;
|
|
@@ -9906,6 +10140,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
9906
10140
|
imageId: 'image_id',
|
|
9907
10141
|
imageType: 'image_type',
|
|
9908
10142
|
instanceChargeType: 'instance_charge_type',
|
|
10143
|
+
instancePatterns: 'instance_patterns',
|
|
9909
10144
|
instanceTypes: 'instance_types',
|
|
9910
10145
|
internetChargeType: 'internet_charge_type',
|
|
9911
10146
|
internetMaxBandwidthOut: 'internet_max_bandwidth_out',
|
|
@@ -9957,6 +10192,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
9957
10192
|
imageId: 'string',
|
|
9958
10193
|
imageType: 'string',
|
|
9959
10194
|
instanceChargeType: 'string',
|
|
10195
|
+
instancePatterns: InstancePatterns,
|
|
9960
10196
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
9961
10197
|
internetChargeType: 'string',
|
|
9962
10198
|
internetMaxBandwidthOut: 'number',
|
|
@@ -10413,6 +10649,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
10413
10649
|
imageId?: string;
|
|
10414
10650
|
imageType?: string;
|
|
10415
10651
|
instanceChargeType?: string;
|
|
10652
|
+
instancePatterns?: InstancePatterns;
|
|
10416
10653
|
instanceTypes?: string[];
|
|
10417
10654
|
internetChargeType?: string;
|
|
10418
10655
|
internetMaxBandwidthOut?: number;
|
|
@@ -10461,6 +10698,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
10461
10698
|
imageId: 'image_id',
|
|
10462
10699
|
imageType: 'image_type',
|
|
10463
10700
|
instanceChargeType: 'instance_charge_type',
|
|
10701
|
+
instancePatterns: 'instance_patterns',
|
|
10464
10702
|
instanceTypes: 'instance_types',
|
|
10465
10703
|
internetChargeType: 'internet_charge_type',
|
|
10466
10704
|
internetMaxBandwidthOut: 'internet_max_bandwidth_out',
|
|
@@ -10512,6 +10750,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
10512
10750
|
imageId: 'string',
|
|
10513
10751
|
imageType: 'string',
|
|
10514
10752
|
instanceChargeType: 'string',
|
|
10753
|
+
instancePatterns: InstancePatterns,
|
|
10515
10754
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
10516
10755
|
internetChargeType: 'string',
|
|
10517
10756
|
internetMaxBandwidthOut: 'number',
|
|
@@ -12318,6 +12557,46 @@ export class GetClusterAddonInstanceResponseBodyLogging extends $tea.Model {
|
|
|
12318
12557
|
}
|
|
12319
12558
|
}
|
|
12320
12559
|
|
|
12560
|
+
export class GetClusterDiagnosisCheckItemsResponseBodyCheckItems extends $tea.Model {
|
|
12561
|
+
desc?: string;
|
|
12562
|
+
display?: string;
|
|
12563
|
+
group?: string;
|
|
12564
|
+
level?: string;
|
|
12565
|
+
message?: string;
|
|
12566
|
+
name?: string;
|
|
12567
|
+
refer?: string;
|
|
12568
|
+
value?: string;
|
|
12569
|
+
static names(): { [key: string]: string } {
|
|
12570
|
+
return {
|
|
12571
|
+
desc: 'desc',
|
|
12572
|
+
display: 'display',
|
|
12573
|
+
group: 'group',
|
|
12574
|
+
level: 'level',
|
|
12575
|
+
message: 'message',
|
|
12576
|
+
name: 'name',
|
|
12577
|
+
refer: 'refer',
|
|
12578
|
+
value: 'value',
|
|
12579
|
+
};
|
|
12580
|
+
}
|
|
12581
|
+
|
|
12582
|
+
static types(): { [key: string]: any } {
|
|
12583
|
+
return {
|
|
12584
|
+
desc: 'string',
|
|
12585
|
+
display: 'string',
|
|
12586
|
+
group: 'string',
|
|
12587
|
+
level: 'string',
|
|
12588
|
+
message: 'string',
|
|
12589
|
+
name: 'string',
|
|
12590
|
+
refer: 'string',
|
|
12591
|
+
value: 'string',
|
|
12592
|
+
};
|
|
12593
|
+
}
|
|
12594
|
+
|
|
12595
|
+
constructor(map?: { [key: string]: any }) {
|
|
12596
|
+
super(map);
|
|
12597
|
+
}
|
|
12598
|
+
}
|
|
12599
|
+
|
|
12321
12600
|
export class GetKubernetesTriggerResponseBody extends $tea.Model {
|
|
12322
12601
|
id?: string;
|
|
12323
12602
|
name?: string;
|
|
@@ -13040,6 +13319,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
13040
13319
|
imageId?: string;
|
|
13041
13320
|
imageType?: string;
|
|
13042
13321
|
instanceChargeType?: string;
|
|
13322
|
+
instancePatterns?: InstancePatterns;
|
|
13043
13323
|
instanceTypes?: string[];
|
|
13044
13324
|
internetChargeType?: string;
|
|
13045
13325
|
internetMaxBandwidthOut?: number;
|
|
@@ -13079,6 +13359,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
13079
13359
|
imageId: 'image_id',
|
|
13080
13360
|
imageType: 'image_type',
|
|
13081
13361
|
instanceChargeType: 'instance_charge_type',
|
|
13362
|
+
instancePatterns: 'instance_patterns',
|
|
13082
13363
|
instanceTypes: 'instance_types',
|
|
13083
13364
|
internetChargeType: 'internet_charge_type',
|
|
13084
13365
|
internetMaxBandwidthOut: 'internet_max_bandwidth_out',
|
|
@@ -13121,6 +13402,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
13121
13402
|
imageId: 'string',
|
|
13122
13403
|
imageType: 'string',
|
|
13123
13404
|
instanceChargeType: 'string',
|
|
13405
|
+
instancePatterns: InstancePatterns,
|
|
13124
13406
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
13125
13407
|
internetChargeType: 'string',
|
|
13126
13408
|
internetMaxBandwidthOut: 'number',
|
|
@@ -13596,7 +13878,7 @@ export default class Client extends OpenApi {
|
|
|
13596
13878
|
}
|
|
13597
13879
|
|
|
13598
13880
|
/**
|
|
13599
|
-
* @summary You can
|
|
13881
|
+
* @summary Adds existing nodes to a specific node pool. You can add existing ECS instances to a specific node pool in a Container Service for Kubernetes (ACK) cluster as worker nodes. You can also add removed worker nodes back to the node pool.
|
|
13600
13882
|
*
|
|
13601
13883
|
* @param request AttachInstancesToNodePoolRequest
|
|
13602
13884
|
* @param headers map
|
|
@@ -13641,7 +13923,7 @@ export default class Client extends OpenApi {
|
|
|
13641
13923
|
}
|
|
13642
13924
|
|
|
13643
13925
|
/**
|
|
13644
|
-
* @summary You can
|
|
13926
|
+
* @summary Adds existing nodes to a specific node pool. You can add existing ECS instances to a specific node pool in a Container Service for Kubernetes (ACK) cluster as worker nodes. You can also add removed worker nodes back to the node pool.
|
|
13645
13927
|
*
|
|
13646
13928
|
* @param request AttachInstancesToNodePoolRequest
|
|
13647
13929
|
* @return AttachInstancesToNodePoolResponse
|
|
@@ -13731,7 +14013,7 @@ export default class Client extends OpenApi {
|
|
|
13731
14013
|
}
|
|
13732
14014
|
|
|
13733
14015
|
/**
|
|
13734
|
-
* @summary
|
|
14016
|
+
* @summary You can call the CancelOperationPlan operation to cancel a pending auto O\\\\\\&M plan.
|
|
13735
14017
|
*
|
|
13736
14018
|
* @param headers map
|
|
13737
14019
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -13756,7 +14038,7 @@ export default class Client extends OpenApi {
|
|
|
13756
14038
|
}
|
|
13757
14039
|
|
|
13758
14040
|
/**
|
|
13759
|
-
* @summary
|
|
14041
|
+
* @summary You can call the CancelOperationPlan operation to cancel a pending auto O\\\\\\&M plan.
|
|
13760
14042
|
*
|
|
13761
14043
|
* @return CancelOperationPlanResponse
|
|
13762
14044
|
*/
|
|
@@ -13767,7 +14049,7 @@ export default class Client extends OpenApi {
|
|
|
13767
14049
|
}
|
|
13768
14050
|
|
|
13769
14051
|
/**
|
|
13770
|
-
* @summary
|
|
14052
|
+
* @summary Cancels the execution of a cluster task.
|
|
13771
14053
|
*
|
|
13772
14054
|
* @param headers map
|
|
13773
14055
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -13792,7 +14074,7 @@ export default class Client extends OpenApi {
|
|
|
13792
14074
|
}
|
|
13793
14075
|
|
|
13794
14076
|
/**
|
|
13795
|
-
* @summary
|
|
14077
|
+
* @summary Cancels the execution of a cluster task.
|
|
13796
14078
|
*
|
|
13797
14079
|
* @return CancelTaskResponse
|
|
13798
14080
|
*/
|
|
@@ -13803,6 +14085,8 @@ export default class Client extends OpenApi {
|
|
|
13803
14085
|
}
|
|
13804
14086
|
|
|
13805
14087
|
/**
|
|
14088
|
+
* @deprecated OpenAPI CancelWorkflow is deprecated
|
|
14089
|
+
*
|
|
13806
14090
|
* @summary You can call the CancelWorkflow operation to cancel an ongoing workflow.
|
|
13807
14091
|
*
|
|
13808
14092
|
* @param request CancelWorkflowRequest
|
|
@@ -13810,6 +14094,7 @@ export default class Client extends OpenApi {
|
|
|
13810
14094
|
* @param runtime runtime options for this request RuntimeOptions
|
|
13811
14095
|
* @return CancelWorkflowResponse
|
|
13812
14096
|
*/
|
|
14097
|
+
// Deprecated
|
|
13813
14098
|
async cancelWorkflowWithOptions(workflowName: string, request: CancelWorkflowRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CancelWorkflowResponse> {
|
|
13814
14099
|
Util.validateModel(request);
|
|
13815
14100
|
let body : {[key: string ]: any} = { };
|
|
@@ -13836,11 +14121,14 @@ export default class Client extends OpenApi {
|
|
|
13836
14121
|
}
|
|
13837
14122
|
|
|
13838
14123
|
/**
|
|
14124
|
+
* @deprecated OpenAPI CancelWorkflow is deprecated
|
|
14125
|
+
*
|
|
13839
14126
|
* @summary You can call the CancelWorkflow operation to cancel an ongoing workflow.
|
|
13840
14127
|
*
|
|
13841
14128
|
* @param request CancelWorkflowRequest
|
|
13842
14129
|
* @return CancelWorkflowResponse
|
|
13843
14130
|
*/
|
|
14131
|
+
// Deprecated
|
|
13844
14132
|
async cancelWorkflow(workflowName: string, request: CancelWorkflowRequest): Promise<CancelWorkflowResponse> {
|
|
13845
14133
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13846
14134
|
let headers : {[key: string ]: string} = { };
|
|
@@ -14447,7 +14735,56 @@ export default class Client extends OpenApi {
|
|
|
14447
14735
|
}
|
|
14448
14736
|
|
|
14449
14737
|
/**
|
|
14450
|
-
* @summary
|
|
14738
|
+
* @summary 发起集群诊断
|
|
14739
|
+
*
|
|
14740
|
+
* @param request CreateClusterDiagnosisRequest
|
|
14741
|
+
* @param headers map
|
|
14742
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14743
|
+
* @return CreateClusterDiagnosisResponse
|
|
14744
|
+
*/
|
|
14745
|
+
async createClusterDiagnosisWithOptions(clusterId: string, request: CreateClusterDiagnosisRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateClusterDiagnosisResponse> {
|
|
14746
|
+
Util.validateModel(request);
|
|
14747
|
+
let body : {[key: string ]: any} = { };
|
|
14748
|
+
if (!Util.isUnset(request.target)) {
|
|
14749
|
+
body["target"] = request.target;
|
|
14750
|
+
}
|
|
14751
|
+
|
|
14752
|
+
if (!Util.isUnset(request.type)) {
|
|
14753
|
+
body["type"] = request.type;
|
|
14754
|
+
}
|
|
14755
|
+
|
|
14756
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
14757
|
+
headers: headers,
|
|
14758
|
+
body: OpenApiUtil.parseToMap(body),
|
|
14759
|
+
});
|
|
14760
|
+
let params = new $OpenApi.Params({
|
|
14761
|
+
action: "CreateClusterDiagnosis",
|
|
14762
|
+
version: "2015-12-15",
|
|
14763
|
+
protocol: "HTTPS",
|
|
14764
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterId)}/diagnosis`,
|
|
14765
|
+
method: "POST",
|
|
14766
|
+
authType: "AK",
|
|
14767
|
+
style: "ROA",
|
|
14768
|
+
reqBodyType: "json",
|
|
14769
|
+
bodyType: "json",
|
|
14770
|
+
});
|
|
14771
|
+
return $tea.cast<CreateClusterDiagnosisResponse>(await this.callApi(params, req, runtime), new CreateClusterDiagnosisResponse({}));
|
|
14772
|
+
}
|
|
14773
|
+
|
|
14774
|
+
/**
|
|
14775
|
+
* @summary 发起集群诊断
|
|
14776
|
+
*
|
|
14777
|
+
* @param request CreateClusterDiagnosisRequest
|
|
14778
|
+
* @return CreateClusterDiagnosisResponse
|
|
14779
|
+
*/
|
|
14780
|
+
async createClusterDiagnosis(clusterId: string, request: CreateClusterDiagnosisRequest): Promise<CreateClusterDiagnosisResponse> {
|
|
14781
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
14782
|
+
let headers : {[key: string ]: string} = { };
|
|
14783
|
+
return await this.createClusterDiagnosisWithOptions(clusterId, request, headers, runtime);
|
|
14784
|
+
}
|
|
14785
|
+
|
|
14786
|
+
/**
|
|
14787
|
+
* @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.
|
|
14451
14788
|
*
|
|
14452
14789
|
* @param request CreateClusterNodePoolRequest
|
|
14453
14790
|
* @param headers map
|
|
@@ -14520,7 +14857,7 @@ export default class Client extends OpenApi {
|
|
|
14520
14857
|
}
|
|
14521
14858
|
|
|
14522
14859
|
/**
|
|
14523
|
-
* @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
|
|
14860
|
+
* @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.
|
|
14524
14861
|
*
|
|
14525
14862
|
* @param request CreateClusterNodePoolRequest
|
|
14526
14863
|
* @return CreateClusterNodePoolResponse
|
|
@@ -14854,7 +15191,7 @@ export default class Client extends OpenApi {
|
|
|
14854
15191
|
}
|
|
14855
15192
|
|
|
14856
15193
|
/**
|
|
14857
|
-
* @summary You can call the DeleteCluster operation to delete a cluster
|
|
15194
|
+
* @summary You can call the DeleteCluster operation to delete a cluster and specify whether to delete or retain the relevant cluster resources. Before you delete a cluster, you must manually delete workloads in the cluster, such as Deployments, StatefulSets, Jobs, and CronJobs. Otherwise, you may fail to delete the cluster.
|
|
14858
15195
|
*
|
|
14859
15196
|
* @param tmpReq DeleteClusterRequest
|
|
14860
15197
|
* @param headers map
|
|
@@ -14909,7 +15246,7 @@ export default class Client extends OpenApi {
|
|
|
14909
15246
|
}
|
|
14910
15247
|
|
|
14911
15248
|
/**
|
|
14912
|
-
* @summary You can call the DeleteCluster operation to delete a cluster
|
|
15249
|
+
* @summary You can call the DeleteCluster operation to delete a cluster and specify whether to delete or retain the relevant cluster resources. Before you delete a cluster, you must manually delete workloads in the cluster, such as Deployments, StatefulSets, Jobs, and CronJobs. Otherwise, you may fail to delete the cluster.
|
|
14913
15250
|
*
|
|
14914
15251
|
* @param request DeleteClusterRequest
|
|
14915
15252
|
* @return DeleteClusterResponse
|
|
@@ -15151,7 +15488,7 @@ export default class Client extends OpenApi {
|
|
|
15151
15488
|
}
|
|
15152
15489
|
|
|
15153
15490
|
/**
|
|
15154
|
-
* @summary
|
|
15491
|
+
* @summary Deletes the orchestration templates that you no longer need.
|
|
15155
15492
|
*
|
|
15156
15493
|
* @param headers map
|
|
15157
15494
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -15176,7 +15513,7 @@ export default class Client extends OpenApi {
|
|
|
15176
15513
|
}
|
|
15177
15514
|
|
|
15178
15515
|
/**
|
|
15179
|
-
* @summary
|
|
15516
|
+
* @summary Deletes the orchestration templates that you no longer need.
|
|
15180
15517
|
*
|
|
15181
15518
|
* @return DeleteTemplateResponse
|
|
15182
15519
|
*/
|
|
@@ -15223,7 +15560,7 @@ export default class Client extends OpenApi {
|
|
|
15223
15560
|
}
|
|
15224
15561
|
|
|
15225
15562
|
/**
|
|
15226
|
-
* @summary
|
|
15563
|
+
* @summary Deploys a policy in the specified namespaces of a specific Container Service for Kubernetes (ACK) cluster. You can create and deploy a security policy by specifying the policy type, action of the policy such as alerting or denying, and namespaces to which the policy applies.
|
|
15227
15564
|
*
|
|
15228
15565
|
* @param request DeployPolicyInstanceRequest
|
|
15229
15566
|
* @param headers map
|
|
@@ -15264,7 +15601,7 @@ export default class Client extends OpenApi {
|
|
|
15264
15601
|
}
|
|
15265
15602
|
|
|
15266
15603
|
/**
|
|
15267
|
-
* @summary
|
|
15604
|
+
* @summary Deploys a policy in the specified namespaces of a specific Container Service for Kubernetes (ACK) cluster. You can create and deploy a security policy by specifying the policy type, action of the policy such as alerting or denying, and namespaces to which the policy applies.
|
|
15268
15605
|
*
|
|
15269
15606
|
* @param request DeployPolicyInstanceRequest
|
|
15270
15607
|
* @return DeployPolicyInstanceResponse
|
|
@@ -15276,12 +15613,15 @@ export default class Client extends OpenApi {
|
|
|
15276
15613
|
}
|
|
15277
15614
|
|
|
15278
15615
|
/**
|
|
15616
|
+
* @deprecated OpenAPI DescirbeWorkflow is deprecated
|
|
15617
|
+
*
|
|
15279
15618
|
* @summary You can call the DescirbeWorkflow operation to query detailed information about a workflow.
|
|
15280
15619
|
*
|
|
15281
15620
|
* @param headers map
|
|
15282
15621
|
* @param runtime runtime options for this request RuntimeOptions
|
|
15283
15622
|
* @return DescirbeWorkflowResponse
|
|
15284
15623
|
*/
|
|
15624
|
+
// Deprecated
|
|
15285
15625
|
async descirbeWorkflowWithOptions(workflowName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescirbeWorkflowResponse> {
|
|
15286
15626
|
let req = new $OpenApi.OpenApiRequest({
|
|
15287
15627
|
headers: headers,
|
|
@@ -15301,10 +15641,13 @@ export default class Client extends OpenApi {
|
|
|
15301
15641
|
}
|
|
15302
15642
|
|
|
15303
15643
|
/**
|
|
15644
|
+
* @deprecated OpenAPI DescirbeWorkflow is deprecated
|
|
15645
|
+
*
|
|
15304
15646
|
* @summary You can call the DescirbeWorkflow operation to query detailed information about a workflow.
|
|
15305
15647
|
*
|
|
15306
15648
|
* @return DescirbeWorkflowResponse
|
|
15307
15649
|
*/
|
|
15650
|
+
// Deprecated
|
|
15308
15651
|
async descirbeWorkflow(workflowName: string): Promise<DescirbeWorkflowResponse> {
|
|
15309
15652
|
let runtime = new $Util.RuntimeOptions({ });
|
|
15310
15653
|
let headers : {[key: string ]: string} = { };
|
|
@@ -15908,7 +16251,7 @@ export default class Client extends OpenApi {
|
|
|
15908
16251
|
}
|
|
15909
16252
|
|
|
15910
16253
|
/**
|
|
15911
|
-
* @summary
|
|
16254
|
+
* @summary Queries node pools in a Container Service for Kubernetes (ACK) cluster.
|
|
15912
16255
|
*
|
|
15913
16256
|
* @param request DescribeClusterNodePoolsRequest
|
|
15914
16257
|
* @param headers map
|
|
@@ -15941,7 +16284,7 @@ export default class Client extends OpenApi {
|
|
|
15941
16284
|
}
|
|
15942
16285
|
|
|
15943
16286
|
/**
|
|
15944
|
-
* @summary
|
|
16287
|
+
* @summary Queries node pools in a Container Service for Kubernetes (ACK) cluster.
|
|
15945
16288
|
*
|
|
15946
16289
|
* @param request DescribeClusterNodePoolsRequest
|
|
15947
16290
|
* @return DescribeClusterNodePoolsResponse
|
|
@@ -16214,7 +16557,7 @@ export default class Client extends OpenApi {
|
|
|
16214
16557
|
}
|
|
16215
16558
|
|
|
16216
16559
|
/**
|
|
16217
|
-
* @summary
|
|
16560
|
+
* @summary Queries the security vulnerability details of a cluster by cluster ID. The details include vulnerability name, vulnerability type, and vulnerability severity. We recommend that you scan your cluster on a regular basis to ensure cluster security.
|
|
16218
16561
|
*
|
|
16219
16562
|
* @param headers map
|
|
16220
16563
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -16239,7 +16582,7 @@ export default class Client extends OpenApi {
|
|
|
16239
16582
|
}
|
|
16240
16583
|
|
|
16241
16584
|
/**
|
|
16242
|
-
* @summary
|
|
16585
|
+
* @summary Queries the security vulnerability details of a cluster by cluster ID. The details include vulnerability name, vulnerability type, and vulnerability severity. We recommend that you scan your cluster on a regular basis to ensure cluster security.
|
|
16243
16586
|
*
|
|
16244
16587
|
* @return DescribeClusterVulsResponse
|
|
16245
16588
|
*/
|
|
@@ -16775,7 +17118,7 @@ export default class Client extends OpenApi {
|
|
|
16775
17118
|
}
|
|
16776
17119
|
|
|
16777
17120
|
/**
|
|
16778
|
-
* @summary
|
|
17121
|
+
* @summary Queries the policies for a Container Service for Kubernetes (ACK) cluster. Container security policies for ACK clusters offer a variety of built-in policies, including cis-k8s, infra, k8s-general, and PodSecurityPolicy. You can use these policies to ensure the security of containers running in a production environment.
|
|
16779
17122
|
*
|
|
16780
17123
|
* @param headers map
|
|
16781
17124
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -16800,7 +17143,7 @@ export default class Client extends OpenApi {
|
|
|
16800
17143
|
}
|
|
16801
17144
|
|
|
16802
17145
|
/**
|
|
16803
|
-
* @summary
|
|
17146
|
+
* @summary Queries the policies for a Container Service for Kubernetes (ACK) cluster. Container security policies for ACK clusters offer a variety of built-in policies, including cis-k8s, infra, k8s-general, and PodSecurityPolicy. You can use these policies to ensure the security of containers running in a production environment.
|
|
16804
17147
|
*
|
|
16805
17148
|
* @return DescribePoliciesResponse
|
|
16806
17149
|
*/
|
|
@@ -16847,7 +17190,7 @@ export default class Client extends OpenApi {
|
|
|
16847
17190
|
}
|
|
16848
17191
|
|
|
16849
17192
|
/**
|
|
16850
|
-
* @summary
|
|
17193
|
+
* @summary Queries the details of policies for a Container Service for Kubernetes (ACK) cluster. For example, you can query the number of multi-level policies that are enabled for the cluster, audit logs of the policies, and denying and alerting information. Container security policies for ACK clusters offer a variety of built-in policies, such as cis-k8s, infra, k8s-general, and PodSecurityPolicy. You can use these policies to ensure the security of containers running in a production environment.
|
|
16851
17194
|
*
|
|
16852
17195
|
* @param headers map
|
|
16853
17196
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -16872,7 +17215,7 @@ export default class Client extends OpenApi {
|
|
|
16872
17215
|
}
|
|
16873
17216
|
|
|
16874
17217
|
/**
|
|
16875
|
-
* @summary
|
|
17218
|
+
* @summary Queries the details of policies for a Container Service for Kubernetes (ACK) cluster. For example, you can query the number of multi-level policies that are enabled for the cluster, audit logs of the policies, and denying and alerting information. Container security policies for ACK clusters offer a variety of built-in policies, such as cis-k8s, infra, k8s-general, and PodSecurityPolicy. You can use these policies to ensure the security of containers running in a production environment.
|
|
16876
17219
|
*
|
|
16877
17220
|
* @return DescribePolicyGovernanceInClusterResponse
|
|
16878
17221
|
*/
|
|
@@ -16968,7 +17311,7 @@ export default class Client extends OpenApi {
|
|
|
16968
17311
|
}
|
|
16969
17312
|
|
|
16970
17313
|
/**
|
|
16971
|
-
* @summary
|
|
17314
|
+
* @summary Queries or issues the kubeconfig credentials of a Resource Access Management (RAM) user or RAM role of the account. If you are the permission manager of a Container Service for Kubernetes (ACK) cluster, you can issue the kubeconfig credentials to a specific RAM user or RAM role of the account by using the Alibaba Cloud account. The kubeconfig credentials, which are used to connect to the ACK cluster, contain the identity information about the RAM user or RAM role.
|
|
16972
17315
|
*
|
|
16973
17316
|
* @description **
|
|
16974
17317
|
* ****Only Alibaba Cloud accounts can call this API operation.
|
|
@@ -17008,7 +17351,7 @@ export default class Client extends OpenApi {
|
|
|
17008
17351
|
}
|
|
17009
17352
|
|
|
17010
17353
|
/**
|
|
17011
|
-
* @summary
|
|
17354
|
+
* @summary Queries or issues the kubeconfig credentials of a Resource Access Management (RAM) user or RAM role of the account. If you are the permission manager of a Container Service for Kubernetes (ACK) cluster, you can issue the kubeconfig credentials to a specific RAM user or RAM role of the account by using the Alibaba Cloud account. The kubeconfig credentials, which are used to connect to the ACK cluster, contain the identity information about the RAM user or RAM role.
|
|
17012
17355
|
*
|
|
17013
17356
|
* @description **
|
|
17014
17357
|
* ****Only Alibaba Cloud accounts can call this API operation.
|
|
@@ -17322,12 +17665,15 @@ export default class Client extends OpenApi {
|
|
|
17322
17665
|
}
|
|
17323
17666
|
|
|
17324
17667
|
/**
|
|
17668
|
+
* @deprecated OpenAPI DescribeWorkflows is deprecated
|
|
17669
|
+
*
|
|
17325
17670
|
* @summary You can call the DescribeWorkflows operation to query all workflows.
|
|
17326
17671
|
*
|
|
17327
17672
|
* @param headers map
|
|
17328
17673
|
* @param runtime runtime options for this request RuntimeOptions
|
|
17329
17674
|
* @return DescribeWorkflowsResponse
|
|
17330
17675
|
*/
|
|
17676
|
+
// Deprecated
|
|
17331
17677
|
async describeWorkflowsWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeWorkflowsResponse> {
|
|
17332
17678
|
let req = new $OpenApi.OpenApiRequest({
|
|
17333
17679
|
headers: headers,
|
|
@@ -17347,10 +17693,13 @@ export default class Client extends OpenApi {
|
|
|
17347
17693
|
}
|
|
17348
17694
|
|
|
17349
17695
|
/**
|
|
17696
|
+
* @deprecated OpenAPI DescribeWorkflows is deprecated
|
|
17697
|
+
*
|
|
17350
17698
|
* @summary You can call the DescribeWorkflows operation to query all workflows.
|
|
17351
17699
|
*
|
|
17352
17700
|
* @return DescribeWorkflowsResponse
|
|
17353
17701
|
*/
|
|
17702
|
+
// Deprecated
|
|
17354
17703
|
async describeWorkflows(): Promise<DescribeWorkflowsResponse> {
|
|
17355
17704
|
let runtime = new $Util.RuntimeOptions({ });
|
|
17356
17705
|
let headers : {[key: string ]: string} = { };
|
|
@@ -17549,6 +17898,78 @@ export default class Client extends OpenApi {
|
|
|
17549
17898
|
return await this.getClusterCheckWithOptions(clusterId, checkId, headers, runtime);
|
|
17550
17899
|
}
|
|
17551
17900
|
|
|
17901
|
+
/**
|
|
17902
|
+
* @summary 获取集群诊断检查项
|
|
17903
|
+
*
|
|
17904
|
+
* @param headers map
|
|
17905
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
17906
|
+
* @return GetClusterDiagnosisCheckItemsResponse
|
|
17907
|
+
*/
|
|
17908
|
+
async getClusterDiagnosisCheckItemsWithOptions(clusterId: string, diagnosisId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetClusterDiagnosisCheckItemsResponse> {
|
|
17909
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
17910
|
+
headers: headers,
|
|
17911
|
+
});
|
|
17912
|
+
let params = new $OpenApi.Params({
|
|
17913
|
+
action: "GetClusterDiagnosisCheckItems",
|
|
17914
|
+
version: "2015-12-15",
|
|
17915
|
+
protocol: "HTTPS",
|
|
17916
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterId)}/diagnosis/${OpenApiUtil.getEncodeParam(diagnosisId)}/check_items`,
|
|
17917
|
+
method: "GET",
|
|
17918
|
+
authType: "AK",
|
|
17919
|
+
style: "ROA",
|
|
17920
|
+
reqBodyType: "json",
|
|
17921
|
+
bodyType: "json",
|
|
17922
|
+
});
|
|
17923
|
+
return $tea.cast<GetClusterDiagnosisCheckItemsResponse>(await this.callApi(params, req, runtime), new GetClusterDiagnosisCheckItemsResponse({}));
|
|
17924
|
+
}
|
|
17925
|
+
|
|
17926
|
+
/**
|
|
17927
|
+
* @summary 获取集群诊断检查项
|
|
17928
|
+
*
|
|
17929
|
+
* @return GetClusterDiagnosisCheckItemsResponse
|
|
17930
|
+
*/
|
|
17931
|
+
async getClusterDiagnosisCheckItems(clusterId: string, diagnosisId: string): Promise<GetClusterDiagnosisCheckItemsResponse> {
|
|
17932
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
17933
|
+
let headers : {[key: string ]: string} = { };
|
|
17934
|
+
return await this.getClusterDiagnosisCheckItemsWithOptions(clusterId, diagnosisId, headers, runtime);
|
|
17935
|
+
}
|
|
17936
|
+
|
|
17937
|
+
/**
|
|
17938
|
+
* @summary 获取集群诊断结果
|
|
17939
|
+
*
|
|
17940
|
+
* @param headers map
|
|
17941
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
17942
|
+
* @return GetClusterDiagnosisResultResponse
|
|
17943
|
+
*/
|
|
17944
|
+
async getClusterDiagnosisResultWithOptions(clusterId: string, diagnosisId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetClusterDiagnosisResultResponse> {
|
|
17945
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
17946
|
+
headers: headers,
|
|
17947
|
+
});
|
|
17948
|
+
let params = new $OpenApi.Params({
|
|
17949
|
+
action: "GetClusterDiagnosisResult",
|
|
17950
|
+
version: "2015-12-15",
|
|
17951
|
+
protocol: "HTTPS",
|
|
17952
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterId)}/diagnosis/${OpenApiUtil.getEncodeParam(diagnosisId)}/result`,
|
|
17953
|
+
method: "GET",
|
|
17954
|
+
authType: "AK",
|
|
17955
|
+
style: "ROA",
|
|
17956
|
+
reqBodyType: "json",
|
|
17957
|
+
bodyType: "json",
|
|
17958
|
+
});
|
|
17959
|
+
return $tea.cast<GetClusterDiagnosisResultResponse>(await this.callApi(params, req, runtime), new GetClusterDiagnosisResultResponse({}));
|
|
17960
|
+
}
|
|
17961
|
+
|
|
17962
|
+
/**
|
|
17963
|
+
* @summary 获取集群诊断结果
|
|
17964
|
+
*
|
|
17965
|
+
* @return GetClusterDiagnosisResultResponse
|
|
17966
|
+
*/
|
|
17967
|
+
async getClusterDiagnosisResult(clusterId: string, diagnosisId: string): Promise<GetClusterDiagnosisResultResponse> {
|
|
17968
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
17969
|
+
let headers : {[key: string ]: string} = { };
|
|
17970
|
+
return await this.getClusterDiagnosisResultWithOptions(clusterId, diagnosisId, headers, runtime);
|
|
17971
|
+
}
|
|
17972
|
+
|
|
17552
17973
|
/**
|
|
17553
17974
|
* @summary You can call the GetKubernetesTrigger operationto query the triggers of an application by application name.
|
|
17554
17975
|
*
|
|
@@ -17643,12 +18064,12 @@ export default class Client extends OpenApi {
|
|
|
17643
18064
|
}
|
|
17644
18065
|
|
|
17645
18066
|
/**
|
|
17646
|
-
* @summary
|
|
18067
|
+
* @summary Updates the role-based access control (RBAC) permissions of a Resource Access Management (RAM) user or RAM role. By default, you do not have the RBAC permissions on a Container Service for Kubernetes (ACK) cluster if you are not the cluster owner or you are not using an Alibaba Cloud account. You can call this operation to specify the resources that can be accessed, permission scope, and predefined roles. This helps you better manage the access control on resources in ACK clusters.
|
|
17647
18068
|
*
|
|
17648
|
-
* @description
|
|
17649
|
-
* * Make sure that you have
|
|
17650
|
-
* * If you use a RAM user to call
|
|
17651
|
-
* *
|
|
18069
|
+
* @description **Precautions**:
|
|
18070
|
+
* * Make sure that you have attached a RAM policy that has at least the read-only permissions on the cluster to the RAM user or RAM role in the RAM console. Otherwise, the `ErrorRamPolicyConfig` error code is returned when you call the operation. For more information about how to authorize a RAM user by attaching RAM policies, see [Create a custom RAM policy](https://help.aliyun.com/document_detail/86485.html).
|
|
18071
|
+
* * If you use a RAM user to call the operation, make sure that the RAM user has the permissions to modify the permissions of other RAM users or RAM roles. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` error code is returned when you call the operation. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](https://help.aliyun.com/document_detail/119035.html).
|
|
18072
|
+
* * If you update full permissions, the existing permissions of the RAM user or RAM role on the cluster are overwritten. You must specify all the permissions that you want to grant to the RAM user or RAM role in the request parameters when you call the operation.
|
|
17652
18073
|
*
|
|
17653
18074
|
* @param request GrantPermissionsRequest
|
|
17654
18075
|
* @param headers map
|
|
@@ -17676,12 +18097,12 @@ export default class Client extends OpenApi {
|
|
|
17676
18097
|
}
|
|
17677
18098
|
|
|
17678
18099
|
/**
|
|
17679
|
-
* @summary
|
|
18100
|
+
* @summary Updates the role-based access control (RBAC) permissions of a Resource Access Management (RAM) user or RAM role. By default, you do not have the RBAC permissions on a Container Service for Kubernetes (ACK) cluster if you are not the cluster owner or you are not using an Alibaba Cloud account. You can call this operation to specify the resources that can be accessed, permission scope, and predefined roles. This helps you better manage the access control on resources in ACK clusters.
|
|
17680
18101
|
*
|
|
17681
|
-
* @description
|
|
17682
|
-
* * Make sure that you have
|
|
17683
|
-
* * If you use a RAM user to call
|
|
17684
|
-
* *
|
|
18102
|
+
* @description **Precautions**:
|
|
18103
|
+
* * Make sure that you have attached a RAM policy that has at least the read-only permissions on the cluster to the RAM user or RAM role in the RAM console. Otherwise, the `ErrorRamPolicyConfig` error code is returned when you call the operation. For more information about how to authorize a RAM user by attaching RAM policies, see [Create a custom RAM policy](https://help.aliyun.com/document_detail/86485.html).
|
|
18104
|
+
* * If you use a RAM user to call the operation, make sure that the RAM user has the permissions to modify the permissions of other RAM users or RAM roles. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` error code is returned when you call the operation. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](https://help.aliyun.com/document_detail/119035.html).
|
|
18105
|
+
* * If you update full permissions, the existing permissions of the RAM user or RAM role on the cluster are overwritten. You must specify all the permissions that you want to grant to the RAM user or RAM role in the request parameters when you call the operation.
|
|
17685
18106
|
*
|
|
17686
18107
|
* @param request GrantPermissionsRequest
|
|
17687
18108
|
* @return GrantPermissionsResponse
|
|
@@ -18419,7 +18840,7 @@ export default class Client extends OpenApi {
|
|
|
18419
18840
|
}
|
|
18420
18841
|
|
|
18421
18842
|
/**
|
|
18422
|
-
* @summary
|
|
18843
|
+
* @summary Updates a policy in a specific Container Service for Kubernetes (ACK) cluster. You can modify the action of the policy such as alerting or denying and namespaces to which the policy applies.
|
|
18423
18844
|
*
|
|
18424
18845
|
* @param request ModifyPolicyInstanceRequest
|
|
18425
18846
|
* @param headers map
|
|
@@ -18464,7 +18885,7 @@ export default class Client extends OpenApi {
|
|
|
18464
18885
|
}
|
|
18465
18886
|
|
|
18466
18887
|
/**
|
|
18467
|
-
* @summary
|
|
18888
|
+
* @summary Updates a policy in a specific Container Service for Kubernetes (ACK) cluster. You can modify the action of the policy such as alerting or denying and namespaces to which the policy applies.
|
|
18468
18889
|
*
|
|
18469
18890
|
* @param request ModifyPolicyInstanceRequest
|
|
18470
18891
|
* @return ModifyPolicyInstanceResponse
|
|
@@ -18791,12 +19212,15 @@ export default class Client extends OpenApi {
|
|
|
18791
19212
|
}
|
|
18792
19213
|
|
|
18793
19214
|
/**
|
|
19215
|
+
* @deprecated OpenAPI RemoveWorkflow is deprecated
|
|
19216
|
+
*
|
|
18794
19217
|
* @summary You can call the RemoveWorkflow operation to delete a workflow.
|
|
18795
19218
|
*
|
|
18796
19219
|
* @param headers map
|
|
18797
19220
|
* @param runtime runtime options for this request RuntimeOptions
|
|
18798
19221
|
* @return RemoveWorkflowResponse
|
|
18799
19222
|
*/
|
|
19223
|
+
// Deprecated
|
|
18800
19224
|
async removeWorkflowWithOptions(workflowName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RemoveWorkflowResponse> {
|
|
18801
19225
|
let req = new $OpenApi.OpenApiRequest({
|
|
18802
19226
|
headers: headers,
|
|
@@ -18816,10 +19240,13 @@ export default class Client extends OpenApi {
|
|
|
18816
19240
|
}
|
|
18817
19241
|
|
|
18818
19242
|
/**
|
|
19243
|
+
* @deprecated OpenAPI RemoveWorkflow is deprecated
|
|
19244
|
+
*
|
|
18819
19245
|
* @summary You can call the RemoveWorkflow operation to delete a workflow.
|
|
18820
19246
|
*
|
|
18821
19247
|
* @return RemoveWorkflowResponse
|
|
18822
19248
|
*/
|
|
19249
|
+
// Deprecated
|
|
18823
19250
|
async removeWorkflow(workflowName: string): Promise<RemoveWorkflowResponse> {
|
|
18824
19251
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18825
19252
|
let headers : {[key: string ]: string} = { };
|
|
@@ -18994,7 +19421,7 @@ export default class Client extends OpenApi {
|
|
|
18994
19421
|
}
|
|
18995
19422
|
|
|
18996
19423
|
/**
|
|
18997
|
-
* @summary
|
|
19424
|
+
* @summary Initiates cluster checks such as cluster update checks.
|
|
18998
19425
|
*
|
|
18999
19426
|
* @param request RunClusterCheckRequest
|
|
19000
19427
|
* @param headers map
|
|
@@ -19035,7 +19462,7 @@ export default class Client extends OpenApi {
|
|
|
19035
19462
|
}
|
|
19036
19463
|
|
|
19037
19464
|
/**
|
|
19038
|
-
* @summary
|
|
19465
|
+
* @summary Initiates cluster checks such as cluster update checks.
|
|
19039
19466
|
*
|
|
19040
19467
|
* @param request RunClusterCheckRequest
|
|
19041
19468
|
* @return RunClusterCheckResponse
|
|
@@ -19427,6 +19854,8 @@ export default class Client extends OpenApi {
|
|
|
19427
19854
|
}
|
|
19428
19855
|
|
|
19429
19856
|
/**
|
|
19857
|
+
* @deprecated OpenAPI StartWorkflow is deprecated
|
|
19858
|
+
*
|
|
19430
19859
|
* @summary You can call the StartWorkflow operation to create a workflow.
|
|
19431
19860
|
*
|
|
19432
19861
|
* @param request StartWorkflowRequest
|
|
@@ -19434,6 +19863,7 @@ export default class Client extends OpenApi {
|
|
|
19434
19863
|
* @param runtime runtime options for this request RuntimeOptions
|
|
19435
19864
|
* @return StartWorkflowResponse
|
|
19436
19865
|
*/
|
|
19866
|
+
// Deprecated
|
|
19437
19867
|
async startWorkflowWithOptions(request: StartWorkflowRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartWorkflowResponse> {
|
|
19438
19868
|
Util.validateModel(request);
|
|
19439
19869
|
let body : {[key: string ]: any} = { };
|
|
@@ -19532,11 +19962,14 @@ export default class Client extends OpenApi {
|
|
|
19532
19962
|
}
|
|
19533
19963
|
|
|
19534
19964
|
/**
|
|
19965
|
+
* @deprecated OpenAPI StartWorkflow is deprecated
|
|
19966
|
+
*
|
|
19535
19967
|
* @summary You can call the StartWorkflow operation to create a workflow.
|
|
19536
19968
|
*
|
|
19537
19969
|
* @param request StartWorkflowRequest
|
|
19538
19970
|
* @return StartWorkflowResponse
|
|
19539
19971
|
*/
|
|
19972
|
+
// Deprecated
|
|
19540
19973
|
async startWorkflow(request: StartWorkflowRequest): Promise<StartWorkflowResponse> {
|
|
19541
19974
|
let runtime = new $Util.RuntimeOptions({ });
|
|
19542
19975
|
let headers : {[key: string ]: string} = { };
|
|
@@ -19686,7 +20119,7 @@ export default class Client extends OpenApi {
|
|
|
19686
20119
|
}
|
|
19687
20120
|
|
|
19688
20121
|
/**
|
|
19689
|
-
* @summary You
|
|
20122
|
+
* @summary Uninstalls components that you no longer need from a cluster. You must specify the name of the components and specify whether to release associated Alibaba Cloud resources from the cluster.
|
|
19690
20123
|
*
|
|
19691
20124
|
* @param request UnInstallClusterAddonsRequest
|
|
19692
20125
|
* @param headers map
|
|
@@ -19714,7 +20147,7 @@ export default class Client extends OpenApi {
|
|
|
19714
20147
|
}
|
|
19715
20148
|
|
|
19716
20149
|
/**
|
|
19717
|
-
* @summary You
|
|
20150
|
+
* @summary Uninstalls components that you no longer need from a cluster. You must specify the name of the components and specify whether to release associated Alibaba Cloud resources from the cluster.
|
|
19718
20151
|
*
|
|
19719
20152
|
* @param request UnInstallClusterAddonsRequest
|
|
19720
20153
|
* @return UnInstallClusterAddonsResponse
|
|
@@ -19941,7 +20374,7 @@ export default class Client extends OpenApi {
|
|
|
19941
20374
|
}
|
|
19942
20375
|
|
|
19943
20376
|
/**
|
|
19944
|
-
* @summary
|
|
20377
|
+
* @summary Updates the configurations of an orchestration template. An orchestration template defines and describes a group of Container Service for Kubernetes (ACK) resources. An orchestration template describes the configurations of an application or how an application runs in a declarative manner.
|
|
19945
20378
|
*
|
|
19946
20379
|
* @param request UpdateTemplateRequest
|
|
19947
20380
|
* @param headers map
|
|
@@ -19990,7 +20423,7 @@ export default class Client extends OpenApi {
|
|
|
19990
20423
|
}
|
|
19991
20424
|
|
|
19992
20425
|
/**
|
|
19993
|
-
* @summary
|
|
20426
|
+
* @summary Updates the configurations of an orchestration template. An orchestration template defines and describes a group of Container Service for Kubernetes (ACK) resources. An orchestration template describes the configurations of an application or how an application runs in a declarative manner.
|
|
19994
20427
|
*
|
|
19995
20428
|
* @param request UpdateTemplateRequest
|
|
19996
20429
|
* @return UpdateTemplateResponse
|
|
@@ -20002,7 +20435,10 @@ export default class Client extends OpenApi {
|
|
|
20002
20435
|
}
|
|
20003
20436
|
|
|
20004
20437
|
/**
|
|
20005
|
-
* @summary
|
|
20438
|
+
* @summary Updates the role-based access control (RBAC) permissions of a Resource Access Management (RAM) user or RAM role. By default, you do not have the RBAC permissions on a Container Service for Kubernetes (ACK) cluster if you are not the cluster owner or you are not using an Alibaba Cloud account. You can call this operation to specify the resources that can be accessed, permission scope, and predefined roles. This helps you better manage the access control on resources in ACK clusters.
|
|
20439
|
+
*
|
|
20440
|
+
* @description **Precautions**:
|
|
20441
|
+
* * You can update the permissions of a RAM user or RAM role on a cluster by using full update or incremental update. If you use full update, the existing permissions of the RAM user or RAM role on the cluster are overwritten. You must specify all the permissions that you want to grant to the RAM user or RAM role in the request parameters when you call the operation. If you use incremental update, you can grant permissions to or revoke permissions from the RAM user or RAM role on the cluster. In this case, only the permissions that you specify in the request parameters when you call the operation are granted or revoked, other permissions of the RAM user or RAM role on the cluster are not affected.
|
|
20006
20442
|
*
|
|
20007
20443
|
* @param request UpdateUserPermissionsRequest
|
|
20008
20444
|
* @param headers map
|
|
@@ -20036,7 +20472,10 @@ export default class Client extends OpenApi {
|
|
|
20036
20472
|
}
|
|
20037
20473
|
|
|
20038
20474
|
/**
|
|
20039
|
-
* @summary
|
|
20475
|
+
* @summary Updates the role-based access control (RBAC) permissions of a Resource Access Management (RAM) user or RAM role. By default, you do not have the RBAC permissions on a Container Service for Kubernetes (ACK) cluster if you are not the cluster owner or you are not using an Alibaba Cloud account. You can call this operation to specify the resources that can be accessed, permission scope, and predefined roles. This helps you better manage the access control on resources in ACK clusters.
|
|
20476
|
+
*
|
|
20477
|
+
* @description **Precautions**:
|
|
20478
|
+
* * You can update the permissions of a RAM user or RAM role on a cluster by using full update or incremental update. If you use full update, the existing permissions of the RAM user or RAM role on the cluster are overwritten. You must specify all the permissions that you want to grant to the RAM user or RAM role in the request parameters when you call the operation. If you use incremental update, you can grant permissions to or revoke permissions from the RAM user or RAM role on the cluster. In this case, only the permissions that you specify in the request parameters when you call the operation are granted or revoked, other permissions of the RAM user or RAM role on the cluster are not affected.
|
|
20040
20479
|
*
|
|
20041
20480
|
* @param request UpdateUserPermissionsRequest
|
|
20042
20481
|
* @return UpdateUserPermissionsResponse
|