@alicloud/cs20151215 3.0.13 → 3.0.14
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 +264 -2
- package/dist/client.js +435 -4
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +544 -4
package/src/client.ts
CHANGED
|
@@ -432,6 +432,7 @@ export class CreateAutoscalingConfigResponse extends $tea.Model {
|
|
|
432
432
|
export class CreateClusterRequest extends $tea.Model {
|
|
433
433
|
addons?: Addon[];
|
|
434
434
|
apiAudiences?: string;
|
|
435
|
+
chargeType?: string;
|
|
435
436
|
cisEnabled?: boolean;
|
|
436
437
|
cloudMonitorFlags?: boolean;
|
|
437
438
|
clusterDomain?: string;
|
|
@@ -478,6 +479,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
478
479
|
nodePortRange?: string;
|
|
479
480
|
numOfNodes?: number;
|
|
480
481
|
osType?: string;
|
|
482
|
+
period?: number;
|
|
483
|
+
periodUnit?: string;
|
|
481
484
|
platform?: string;
|
|
482
485
|
podVswitchIds?: string[];
|
|
483
486
|
profile?: string;
|
|
@@ -518,6 +521,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
518
521
|
return {
|
|
519
522
|
addons: 'addons',
|
|
520
523
|
apiAudiences: 'api_audiences',
|
|
524
|
+
chargeType: 'charge_type',
|
|
521
525
|
cisEnabled: 'cis_enabled',
|
|
522
526
|
cloudMonitorFlags: 'cloud_monitor_flags',
|
|
523
527
|
clusterDomain: 'cluster_domain',
|
|
@@ -564,6 +568,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
564
568
|
nodePortRange: 'node_port_range',
|
|
565
569
|
numOfNodes: 'num_of_nodes',
|
|
566
570
|
osType: 'os_type',
|
|
571
|
+
period: 'period',
|
|
572
|
+
periodUnit: 'period_unit',
|
|
567
573
|
platform: 'platform',
|
|
568
574
|
podVswitchIds: 'pod_vswitch_ids',
|
|
569
575
|
profile: 'profile',
|
|
@@ -607,6 +613,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
607
613
|
return {
|
|
608
614
|
addons: { 'type': 'array', 'itemType': Addon },
|
|
609
615
|
apiAudiences: 'string',
|
|
616
|
+
chargeType: 'string',
|
|
610
617
|
cisEnabled: 'boolean',
|
|
611
618
|
cloudMonitorFlags: 'boolean',
|
|
612
619
|
clusterDomain: 'string',
|
|
@@ -653,6 +660,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
653
660
|
nodePortRange: 'string',
|
|
654
661
|
numOfNodes: 'number',
|
|
655
662
|
osType: 'string',
|
|
663
|
+
period: 'number',
|
|
664
|
+
periodUnit: 'string',
|
|
656
665
|
platform: 'string',
|
|
657
666
|
podVswitchIds: { 'type': 'array', 'itemType': 'string' },
|
|
658
667
|
profile: 'string',
|
|
@@ -2138,6 +2147,78 @@ export class DescribeClusterDetailResponse extends $tea.Model {
|
|
|
2138
2147
|
}
|
|
2139
2148
|
}
|
|
2140
2149
|
|
|
2150
|
+
export class DescribeClusterEventsRequest extends $tea.Model {
|
|
2151
|
+
pageNumber?: number;
|
|
2152
|
+
pageSize?: number;
|
|
2153
|
+
taskId?: number;
|
|
2154
|
+
static names(): { [key: string]: string } {
|
|
2155
|
+
return {
|
|
2156
|
+
pageNumber: 'page_number',
|
|
2157
|
+
pageSize: 'page_size',
|
|
2158
|
+
taskId: 'task_id',
|
|
2159
|
+
};
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
static types(): { [key: string]: any } {
|
|
2163
|
+
return {
|
|
2164
|
+
pageNumber: 'number',
|
|
2165
|
+
pageSize: 'number',
|
|
2166
|
+
taskId: 'number',
|
|
2167
|
+
};
|
|
2168
|
+
}
|
|
2169
|
+
|
|
2170
|
+
constructor(map?: { [key: string]: any }) {
|
|
2171
|
+
super(map);
|
|
2172
|
+
}
|
|
2173
|
+
}
|
|
2174
|
+
|
|
2175
|
+
export class DescribeClusterEventsResponseBody extends $tea.Model {
|
|
2176
|
+
events?: DescribeClusterEventsResponseBodyEvents[];
|
|
2177
|
+
pageInfo?: DescribeClusterEventsResponseBodyPageInfo;
|
|
2178
|
+
static names(): { [key: string]: string } {
|
|
2179
|
+
return {
|
|
2180
|
+
events: 'events',
|
|
2181
|
+
pageInfo: 'page_info',
|
|
2182
|
+
};
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
static types(): { [key: string]: any } {
|
|
2186
|
+
return {
|
|
2187
|
+
events: { 'type': 'array', 'itemType': DescribeClusterEventsResponseBodyEvents },
|
|
2188
|
+
pageInfo: DescribeClusterEventsResponseBodyPageInfo,
|
|
2189
|
+
};
|
|
2190
|
+
}
|
|
2191
|
+
|
|
2192
|
+
constructor(map?: { [key: string]: any }) {
|
|
2193
|
+
super(map);
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
|
|
2197
|
+
export class DescribeClusterEventsResponse extends $tea.Model {
|
|
2198
|
+
headers: { [key: string]: string };
|
|
2199
|
+
statusCode: number;
|
|
2200
|
+
body: DescribeClusterEventsResponseBody;
|
|
2201
|
+
static names(): { [key: string]: string } {
|
|
2202
|
+
return {
|
|
2203
|
+
headers: 'headers',
|
|
2204
|
+
statusCode: 'statusCode',
|
|
2205
|
+
body: 'body',
|
|
2206
|
+
};
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2209
|
+
static types(): { [key: string]: any } {
|
|
2210
|
+
return {
|
|
2211
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2212
|
+
statusCode: 'number',
|
|
2213
|
+
body: DescribeClusterEventsResponseBody,
|
|
2214
|
+
};
|
|
2215
|
+
}
|
|
2216
|
+
|
|
2217
|
+
constructor(map?: { [key: string]: any }) {
|
|
2218
|
+
super(map);
|
|
2219
|
+
}
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2141
2222
|
export class DescribeClusterLogsResponse extends $tea.Model {
|
|
2142
2223
|
headers: { [key: string]: string };
|
|
2143
2224
|
statusCode: number;
|
|
@@ -2381,6 +2462,56 @@ export class DescribeClusterResourcesResponse extends $tea.Model {
|
|
|
2381
2462
|
}
|
|
2382
2463
|
}
|
|
2383
2464
|
|
|
2465
|
+
export class DescribeClusterTasksResponseBody extends $tea.Model {
|
|
2466
|
+
pageInfo?: DescribeClusterTasksResponseBodyPageInfo;
|
|
2467
|
+
requestId?: string;
|
|
2468
|
+
tasks?: DescribeClusterTasksResponseBodyTasks[];
|
|
2469
|
+
static names(): { [key: string]: string } {
|
|
2470
|
+
return {
|
|
2471
|
+
pageInfo: 'page_info',
|
|
2472
|
+
requestId: 'requestId',
|
|
2473
|
+
tasks: 'tasks',
|
|
2474
|
+
};
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
static types(): { [key: string]: any } {
|
|
2478
|
+
return {
|
|
2479
|
+
pageInfo: DescribeClusterTasksResponseBodyPageInfo,
|
|
2480
|
+
requestId: 'string',
|
|
2481
|
+
tasks: { 'type': 'array', 'itemType': DescribeClusterTasksResponseBodyTasks },
|
|
2482
|
+
};
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2485
|
+
constructor(map?: { [key: string]: any }) {
|
|
2486
|
+
super(map);
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
|
|
2490
|
+
export class DescribeClusterTasksResponse extends $tea.Model {
|
|
2491
|
+
headers: { [key: string]: string };
|
|
2492
|
+
statusCode: number;
|
|
2493
|
+
body: DescribeClusterTasksResponseBody;
|
|
2494
|
+
static names(): { [key: string]: string } {
|
|
2495
|
+
return {
|
|
2496
|
+
headers: 'headers',
|
|
2497
|
+
statusCode: 'statusCode',
|
|
2498
|
+
body: 'body',
|
|
2499
|
+
};
|
|
2500
|
+
}
|
|
2501
|
+
|
|
2502
|
+
static types(): { [key: string]: any } {
|
|
2503
|
+
return {
|
|
2504
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2505
|
+
statusCode: 'number',
|
|
2506
|
+
body: DescribeClusterTasksResponseBody,
|
|
2507
|
+
};
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2510
|
+
constructor(map?: { [key: string]: any }) {
|
|
2511
|
+
super(map);
|
|
2512
|
+
}
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2384
2515
|
export class DescribeClusterUserKubeconfigRequest extends $tea.Model {
|
|
2385
2516
|
privateIpAddress?: boolean;
|
|
2386
2517
|
temporaryDurationMinutes?: number;
|
|
@@ -4162,13 +4293,62 @@ export class ListTagResourcesResponse extends $tea.Model {
|
|
|
4162
4293
|
}
|
|
4163
4294
|
}
|
|
4164
4295
|
|
|
4296
|
+
export class MigrateClusterRequest extends $tea.Model {
|
|
4297
|
+
ossBucketEndpoint?: string;
|
|
4298
|
+
ossBucketName?: string;
|
|
4299
|
+
static names(): { [key: string]: string } {
|
|
4300
|
+
return {
|
|
4301
|
+
ossBucketEndpoint: 'oss_bucket_endpoint',
|
|
4302
|
+
ossBucketName: 'oss_bucket_name',
|
|
4303
|
+
};
|
|
4304
|
+
}
|
|
4305
|
+
|
|
4306
|
+
static types(): { [key: string]: any } {
|
|
4307
|
+
return {
|
|
4308
|
+
ossBucketEndpoint: 'string',
|
|
4309
|
+
ossBucketName: 'string',
|
|
4310
|
+
};
|
|
4311
|
+
}
|
|
4312
|
+
|
|
4313
|
+
constructor(map?: { [key: string]: any }) {
|
|
4314
|
+
super(map);
|
|
4315
|
+
}
|
|
4316
|
+
}
|
|
4317
|
+
|
|
4318
|
+
export class MigrateClusterResponseBody extends $tea.Model {
|
|
4319
|
+
clusterId?: string;
|
|
4320
|
+
requestId?: string;
|
|
4321
|
+
taskId?: string;
|
|
4322
|
+
static names(): { [key: string]: string } {
|
|
4323
|
+
return {
|
|
4324
|
+
clusterId: 'cluster_id',
|
|
4325
|
+
requestId: 'request_id',
|
|
4326
|
+
taskId: 'task_id',
|
|
4327
|
+
};
|
|
4328
|
+
}
|
|
4329
|
+
|
|
4330
|
+
static types(): { [key: string]: any } {
|
|
4331
|
+
return {
|
|
4332
|
+
clusterId: 'string',
|
|
4333
|
+
requestId: 'string',
|
|
4334
|
+
taskId: 'string',
|
|
4335
|
+
};
|
|
4336
|
+
}
|
|
4337
|
+
|
|
4338
|
+
constructor(map?: { [key: string]: any }) {
|
|
4339
|
+
super(map);
|
|
4340
|
+
}
|
|
4341
|
+
}
|
|
4342
|
+
|
|
4165
4343
|
export class MigrateClusterResponse extends $tea.Model {
|
|
4166
4344
|
headers: { [key: string]: string };
|
|
4167
4345
|
statusCode: number;
|
|
4346
|
+
body: MigrateClusterResponseBody;
|
|
4168
4347
|
static names(): { [key: string]: string } {
|
|
4169
4348
|
return {
|
|
4170
4349
|
headers: 'headers',
|
|
4171
4350
|
statusCode: 'statusCode',
|
|
4351
|
+
body: 'body',
|
|
4172
4352
|
};
|
|
4173
4353
|
}
|
|
4174
4354
|
|
|
@@ -4176,6 +4356,7 @@ export class MigrateClusterResponse extends $tea.Model {
|
|
|
4176
4356
|
return {
|
|
4177
4357
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4178
4358
|
statusCode: 'number',
|
|
4359
|
+
body: MigrateClusterResponseBody,
|
|
4179
4360
|
};
|
|
4180
4361
|
}
|
|
4181
4362
|
|
|
@@ -4363,6 +4544,7 @@ export class ModifyClusterNodePoolRequest extends $tea.Model {
|
|
|
4363
4544
|
autoScaling?: ModifyClusterNodePoolRequestAutoScaling;
|
|
4364
4545
|
kubernetesConfig?: ModifyClusterNodePoolRequestKubernetesConfig;
|
|
4365
4546
|
management?: ModifyClusterNodePoolRequestManagement;
|
|
4547
|
+
nodeConfig?: ModifyClusterNodePoolRequestNodeConfig;
|
|
4366
4548
|
nodepoolInfo?: ModifyClusterNodePoolRequestNodepoolInfo;
|
|
4367
4549
|
scalingGroup?: ModifyClusterNodePoolRequestScalingGroup;
|
|
4368
4550
|
teeConfig?: ModifyClusterNodePoolRequestTeeConfig;
|
|
@@ -4372,6 +4554,7 @@ export class ModifyClusterNodePoolRequest extends $tea.Model {
|
|
|
4372
4554
|
autoScaling: 'auto_scaling',
|
|
4373
4555
|
kubernetesConfig: 'kubernetes_config',
|
|
4374
4556
|
management: 'management',
|
|
4557
|
+
nodeConfig: 'node_config',
|
|
4375
4558
|
nodepoolInfo: 'nodepool_info',
|
|
4376
4559
|
scalingGroup: 'scaling_group',
|
|
4377
4560
|
teeConfig: 'tee_config',
|
|
@@ -4384,6 +4567,7 @@ export class ModifyClusterNodePoolRequest extends $tea.Model {
|
|
|
4384
4567
|
autoScaling: ModifyClusterNodePoolRequestAutoScaling,
|
|
4385
4568
|
kubernetesConfig: ModifyClusterNodePoolRequestKubernetesConfig,
|
|
4386
4569
|
management: ModifyClusterNodePoolRequestManagement,
|
|
4570
|
+
nodeConfig: ModifyClusterNodePoolRequestNodeConfig,
|
|
4387
4571
|
nodepoolInfo: ModifyClusterNodePoolRequestNodepoolInfo,
|
|
4388
4572
|
scalingGroup: ModifyClusterNodePoolRequestScalingGroup,
|
|
4389
4573
|
teeConfig: ModifyClusterNodePoolRequestTeeConfig,
|
|
@@ -6205,6 +6389,93 @@ export class DescribeAddonsResponseBodyComponentGroups extends $tea.Model {
|
|
|
6205
6389
|
}
|
|
6206
6390
|
}
|
|
6207
6391
|
|
|
6392
|
+
export class DescribeClusterEventsResponseBodyEventsData extends $tea.Model {
|
|
6393
|
+
level?: string;
|
|
6394
|
+
message?: string;
|
|
6395
|
+
reason?: string;
|
|
6396
|
+
static names(): { [key: string]: string } {
|
|
6397
|
+
return {
|
|
6398
|
+
level: 'level',
|
|
6399
|
+
message: 'message',
|
|
6400
|
+
reason: 'reason',
|
|
6401
|
+
};
|
|
6402
|
+
}
|
|
6403
|
+
|
|
6404
|
+
static types(): { [key: string]: any } {
|
|
6405
|
+
return {
|
|
6406
|
+
level: 'string',
|
|
6407
|
+
message: 'string',
|
|
6408
|
+
reason: 'string',
|
|
6409
|
+
};
|
|
6410
|
+
}
|
|
6411
|
+
|
|
6412
|
+
constructor(map?: { [key: string]: any }) {
|
|
6413
|
+
super(map);
|
|
6414
|
+
}
|
|
6415
|
+
}
|
|
6416
|
+
|
|
6417
|
+
export class DescribeClusterEventsResponseBodyEvents extends $tea.Model {
|
|
6418
|
+
clusterId?: string;
|
|
6419
|
+
data?: DescribeClusterEventsResponseBodyEventsData;
|
|
6420
|
+
eventId?: string;
|
|
6421
|
+
source?: string;
|
|
6422
|
+
subject?: string;
|
|
6423
|
+
time?: string;
|
|
6424
|
+
type?: string;
|
|
6425
|
+
static names(): { [key: string]: string } {
|
|
6426
|
+
return {
|
|
6427
|
+
clusterId: 'cluster_id',
|
|
6428
|
+
data: 'data',
|
|
6429
|
+
eventId: 'event_id',
|
|
6430
|
+
source: 'source',
|
|
6431
|
+
subject: 'subject',
|
|
6432
|
+
time: 'time',
|
|
6433
|
+
type: 'type',
|
|
6434
|
+
};
|
|
6435
|
+
}
|
|
6436
|
+
|
|
6437
|
+
static types(): { [key: string]: any } {
|
|
6438
|
+
return {
|
|
6439
|
+
clusterId: 'string',
|
|
6440
|
+
data: DescribeClusterEventsResponseBodyEventsData,
|
|
6441
|
+
eventId: 'string',
|
|
6442
|
+
source: 'string',
|
|
6443
|
+
subject: 'string',
|
|
6444
|
+
time: 'string',
|
|
6445
|
+
type: 'string',
|
|
6446
|
+
};
|
|
6447
|
+
}
|
|
6448
|
+
|
|
6449
|
+
constructor(map?: { [key: string]: any }) {
|
|
6450
|
+
super(map);
|
|
6451
|
+
}
|
|
6452
|
+
}
|
|
6453
|
+
|
|
6454
|
+
export class DescribeClusterEventsResponseBodyPageInfo extends $tea.Model {
|
|
6455
|
+
pageNumber?: number;
|
|
6456
|
+
pageSize?: number;
|
|
6457
|
+
totalCount?: number;
|
|
6458
|
+
static names(): { [key: string]: string } {
|
|
6459
|
+
return {
|
|
6460
|
+
pageNumber: 'page_number',
|
|
6461
|
+
pageSize: 'page_size',
|
|
6462
|
+
totalCount: 'total_count',
|
|
6463
|
+
};
|
|
6464
|
+
}
|
|
6465
|
+
|
|
6466
|
+
static types(): { [key: string]: any } {
|
|
6467
|
+
return {
|
|
6468
|
+
pageNumber: 'number',
|
|
6469
|
+
pageSize: 'number',
|
|
6470
|
+
totalCount: 'number',
|
|
6471
|
+
};
|
|
6472
|
+
}
|
|
6473
|
+
|
|
6474
|
+
constructor(map?: { [key: string]: any }) {
|
|
6475
|
+
super(map);
|
|
6476
|
+
}
|
|
6477
|
+
}
|
|
6478
|
+
|
|
6208
6479
|
export class DescribeClusterLogsResponseBody extends $tea.Model {
|
|
6209
6480
|
ID?: number;
|
|
6210
6481
|
clusterId?: string;
|
|
@@ -7220,6 +7491,87 @@ export class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
|
7220
7491
|
}
|
|
7221
7492
|
}
|
|
7222
7493
|
|
|
7494
|
+
export class DescribeClusterTasksResponseBodyPageInfo extends $tea.Model {
|
|
7495
|
+
pageNumber?: number;
|
|
7496
|
+
pageSize?: number;
|
|
7497
|
+
totalCount?: number;
|
|
7498
|
+
static names(): { [key: string]: string } {
|
|
7499
|
+
return {
|
|
7500
|
+
pageNumber: 'page_number',
|
|
7501
|
+
pageSize: 'page_size',
|
|
7502
|
+
totalCount: 'total_count',
|
|
7503
|
+
};
|
|
7504
|
+
}
|
|
7505
|
+
|
|
7506
|
+
static types(): { [key: string]: any } {
|
|
7507
|
+
return {
|
|
7508
|
+
pageNumber: 'number',
|
|
7509
|
+
pageSize: 'number',
|
|
7510
|
+
totalCount: 'number',
|
|
7511
|
+
};
|
|
7512
|
+
}
|
|
7513
|
+
|
|
7514
|
+
constructor(map?: { [key: string]: any }) {
|
|
7515
|
+
super(map);
|
|
7516
|
+
}
|
|
7517
|
+
}
|
|
7518
|
+
|
|
7519
|
+
export class DescribeClusterTasksResponseBodyTasksError extends $tea.Model {
|
|
7520
|
+
code?: string;
|
|
7521
|
+
message?: string;
|
|
7522
|
+
static names(): { [key: string]: string } {
|
|
7523
|
+
return {
|
|
7524
|
+
code: 'code',
|
|
7525
|
+
message: 'message',
|
|
7526
|
+
};
|
|
7527
|
+
}
|
|
7528
|
+
|
|
7529
|
+
static types(): { [key: string]: any } {
|
|
7530
|
+
return {
|
|
7531
|
+
code: 'string',
|
|
7532
|
+
message: 'string',
|
|
7533
|
+
};
|
|
7534
|
+
}
|
|
7535
|
+
|
|
7536
|
+
constructor(map?: { [key: string]: any }) {
|
|
7537
|
+
super(map);
|
|
7538
|
+
}
|
|
7539
|
+
}
|
|
7540
|
+
|
|
7541
|
+
export class DescribeClusterTasksResponseBodyTasks extends $tea.Model {
|
|
7542
|
+
created?: string;
|
|
7543
|
+
error?: DescribeClusterTasksResponseBodyTasksError;
|
|
7544
|
+
state?: string;
|
|
7545
|
+
taskId?: string;
|
|
7546
|
+
taskType?: string;
|
|
7547
|
+
updated?: string;
|
|
7548
|
+
static names(): { [key: string]: string } {
|
|
7549
|
+
return {
|
|
7550
|
+
created: 'created',
|
|
7551
|
+
error: 'error',
|
|
7552
|
+
state: 'state',
|
|
7553
|
+
taskId: 'task_id',
|
|
7554
|
+
taskType: 'task_type',
|
|
7555
|
+
updated: 'updated',
|
|
7556
|
+
};
|
|
7557
|
+
}
|
|
7558
|
+
|
|
7559
|
+
static types(): { [key: string]: any } {
|
|
7560
|
+
return {
|
|
7561
|
+
created: 'string',
|
|
7562
|
+
error: DescribeClusterTasksResponseBodyTasksError,
|
|
7563
|
+
state: 'string',
|
|
7564
|
+
taskId: 'string',
|
|
7565
|
+
taskType: 'string',
|
|
7566
|
+
updated: 'string',
|
|
7567
|
+
};
|
|
7568
|
+
}
|
|
7569
|
+
|
|
7570
|
+
constructor(map?: { [key: string]: any }) {
|
|
7571
|
+
super(map);
|
|
7572
|
+
}
|
|
7573
|
+
}
|
|
7574
|
+
|
|
7223
7575
|
export class DescribeClustersResponseBodyTags extends $tea.Model {
|
|
7224
7576
|
key?: string;
|
|
7225
7577
|
value?: string;
|
|
@@ -8687,6 +9039,102 @@ export class ModifyClusterNodePoolRequestManagement extends $tea.Model {
|
|
|
8687
9039
|
}
|
|
8688
9040
|
}
|
|
8689
9041
|
|
|
9042
|
+
export class ModifyClusterNodePoolRequestNodeConfigKubeletConfiguration extends $tea.Model {
|
|
9043
|
+
cpuManagerPolicy?: string;
|
|
9044
|
+
eventBurst?: number;
|
|
9045
|
+
eventRecordQPS?: number;
|
|
9046
|
+
evictionHard?: { [key: string]: any };
|
|
9047
|
+
evictionSoft?: { [key: string]: any };
|
|
9048
|
+
evictionSoftGracePeriod?: { [key: string]: any };
|
|
9049
|
+
kubeAPIBurst?: number;
|
|
9050
|
+
kubeAPIQPS?: number;
|
|
9051
|
+
kubeReserved?: { [key: string]: any };
|
|
9052
|
+
registryBurst?: number;
|
|
9053
|
+
registryPullQPS?: number;
|
|
9054
|
+
serializeImagePulls?: boolean;
|
|
9055
|
+
systemReserved?: { [key: string]: any };
|
|
9056
|
+
static names(): { [key: string]: string } {
|
|
9057
|
+
return {
|
|
9058
|
+
cpuManagerPolicy: 'cpuManagerPolicy',
|
|
9059
|
+
eventBurst: 'eventBurst',
|
|
9060
|
+
eventRecordQPS: 'eventRecordQPS',
|
|
9061
|
+
evictionHard: 'evictionHard',
|
|
9062
|
+
evictionSoft: 'evictionSoft',
|
|
9063
|
+
evictionSoftGracePeriod: 'evictionSoftGracePeriod',
|
|
9064
|
+
kubeAPIBurst: 'kubeAPIBurst',
|
|
9065
|
+
kubeAPIQPS: 'kubeAPIQPS',
|
|
9066
|
+
kubeReserved: 'kubeReserved',
|
|
9067
|
+
registryBurst: 'registryBurst',
|
|
9068
|
+
registryPullQPS: 'registryPullQPS',
|
|
9069
|
+
serializeImagePulls: 'serializeImagePulls',
|
|
9070
|
+
systemReserved: 'systemReserved',
|
|
9071
|
+
};
|
|
9072
|
+
}
|
|
9073
|
+
|
|
9074
|
+
static types(): { [key: string]: any } {
|
|
9075
|
+
return {
|
|
9076
|
+
cpuManagerPolicy: 'string',
|
|
9077
|
+
eventBurst: 'number',
|
|
9078
|
+
eventRecordQPS: 'number',
|
|
9079
|
+
evictionHard: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
9080
|
+
evictionSoft: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
9081
|
+
evictionSoftGracePeriod: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
9082
|
+
kubeAPIBurst: 'number',
|
|
9083
|
+
kubeAPIQPS: 'number',
|
|
9084
|
+
kubeReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
9085
|
+
registryBurst: 'number',
|
|
9086
|
+
registryPullQPS: 'number',
|
|
9087
|
+
serializeImagePulls: 'boolean',
|
|
9088
|
+
systemReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
9089
|
+
};
|
|
9090
|
+
}
|
|
9091
|
+
|
|
9092
|
+
constructor(map?: { [key: string]: any }) {
|
|
9093
|
+
super(map);
|
|
9094
|
+
}
|
|
9095
|
+
}
|
|
9096
|
+
|
|
9097
|
+
export class ModifyClusterNodePoolRequestNodeConfigRolloutPolicy extends $tea.Model {
|
|
9098
|
+
maxUnavailable?: number;
|
|
9099
|
+
static names(): { [key: string]: string } {
|
|
9100
|
+
return {
|
|
9101
|
+
maxUnavailable: 'max_unavailable',
|
|
9102
|
+
};
|
|
9103
|
+
}
|
|
9104
|
+
|
|
9105
|
+
static types(): { [key: string]: any } {
|
|
9106
|
+
return {
|
|
9107
|
+
maxUnavailable: 'number',
|
|
9108
|
+
};
|
|
9109
|
+
}
|
|
9110
|
+
|
|
9111
|
+
constructor(map?: { [key: string]: any }) {
|
|
9112
|
+
super(map);
|
|
9113
|
+
}
|
|
9114
|
+
}
|
|
9115
|
+
|
|
9116
|
+
export class ModifyClusterNodePoolRequestNodeConfig extends $tea.Model {
|
|
9117
|
+
kubeletConfiguration?: ModifyClusterNodePoolRequestNodeConfigKubeletConfiguration;
|
|
9118
|
+
rolloutPolicy?: ModifyClusterNodePoolRequestNodeConfigRolloutPolicy;
|
|
9119
|
+
static names(): { [key: string]: string } {
|
|
9120
|
+
return {
|
|
9121
|
+
kubeletConfiguration: 'kubelet_configuration',
|
|
9122
|
+
rolloutPolicy: 'rollout_policy',
|
|
9123
|
+
};
|
|
9124
|
+
}
|
|
9125
|
+
|
|
9126
|
+
static types(): { [key: string]: any } {
|
|
9127
|
+
return {
|
|
9128
|
+
kubeletConfiguration: ModifyClusterNodePoolRequestNodeConfigKubeletConfiguration,
|
|
9129
|
+
rolloutPolicy: ModifyClusterNodePoolRequestNodeConfigRolloutPolicy,
|
|
9130
|
+
};
|
|
9131
|
+
}
|
|
9132
|
+
|
|
9133
|
+
constructor(map?: { [key: string]: any }) {
|
|
9134
|
+
super(map);
|
|
9135
|
+
}
|
|
9136
|
+
}
|
|
9137
|
+
|
|
8690
9138
|
export class ModifyClusterNodePoolRequestNodepoolInfo extends $tea.Model {
|
|
8691
9139
|
name?: string;
|
|
8692
9140
|
resourceGroupId?: string;
|
|
@@ -9318,6 +9766,10 @@ export default class Client extends OpenApi {
|
|
|
9318
9766
|
body["api_audiences"] = request.apiAudiences;
|
|
9319
9767
|
}
|
|
9320
9768
|
|
|
9769
|
+
if (!Util.isUnset(request.chargeType)) {
|
|
9770
|
+
body["charge_type"] = request.chargeType;
|
|
9771
|
+
}
|
|
9772
|
+
|
|
9321
9773
|
if (!Util.isUnset(request.cisEnabled)) {
|
|
9322
9774
|
body["cis_enabled"] = request.cisEnabled;
|
|
9323
9775
|
}
|
|
@@ -9502,6 +9954,14 @@ export default class Client extends OpenApi {
|
|
|
9502
9954
|
body["os_type"] = request.osType;
|
|
9503
9955
|
}
|
|
9504
9956
|
|
|
9957
|
+
if (!Util.isUnset(request.period)) {
|
|
9958
|
+
body["period"] = request.period;
|
|
9959
|
+
}
|
|
9960
|
+
|
|
9961
|
+
if (!Util.isUnset(request.periodUnit)) {
|
|
9962
|
+
body["period_unit"] = request.periodUnit;
|
|
9963
|
+
}
|
|
9964
|
+
|
|
9505
9965
|
if (!Util.isUnset(request.platform)) {
|
|
9506
9966
|
body["platform"] = request.platform;
|
|
9507
9967
|
}
|
|
@@ -10507,6 +10967,46 @@ export default class Client extends OpenApi {
|
|
|
10507
10967
|
return $tea.cast<DescribeClusterDetailResponse>(await this.callApi(params, req, runtime), new DescribeClusterDetailResponse({}));
|
|
10508
10968
|
}
|
|
10509
10969
|
|
|
10970
|
+
async describeClusterEvents(ClusterId: string, request: DescribeClusterEventsRequest): Promise<DescribeClusterEventsResponse> {
|
|
10971
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
10972
|
+
let headers : {[key: string ]: string} = { };
|
|
10973
|
+
return await this.describeClusterEventsWithOptions(ClusterId, request, headers, runtime);
|
|
10974
|
+
}
|
|
10975
|
+
|
|
10976
|
+
async describeClusterEventsWithOptions(ClusterId: string, request: DescribeClusterEventsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterEventsResponse> {
|
|
10977
|
+
Util.validateModel(request);
|
|
10978
|
+
ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
|
|
10979
|
+
let query : {[key: string ]: any} = { };
|
|
10980
|
+
if (!Util.isUnset(request.pageNumber)) {
|
|
10981
|
+
query["page_number"] = request.pageNumber;
|
|
10982
|
+
}
|
|
10983
|
+
|
|
10984
|
+
if (!Util.isUnset(request.pageSize)) {
|
|
10985
|
+
query["page_size"] = request.pageSize;
|
|
10986
|
+
}
|
|
10987
|
+
|
|
10988
|
+
if (!Util.isUnset(request.taskId)) {
|
|
10989
|
+
query["task_id"] = request.taskId;
|
|
10990
|
+
}
|
|
10991
|
+
|
|
10992
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
10993
|
+
headers: headers,
|
|
10994
|
+
query: OpenApiUtil.query(query),
|
|
10995
|
+
});
|
|
10996
|
+
let params = new $OpenApi.Params({
|
|
10997
|
+
action: "DescribeClusterEvents",
|
|
10998
|
+
version: "2015-12-15",
|
|
10999
|
+
protocol: "HTTPS",
|
|
11000
|
+
pathname: `/clusters/${ClusterId}/events`,
|
|
11001
|
+
method: "GET",
|
|
11002
|
+
authType: "AK",
|
|
11003
|
+
style: "ROA",
|
|
11004
|
+
reqBodyType: "json",
|
|
11005
|
+
bodyType: "json",
|
|
11006
|
+
});
|
|
11007
|
+
return $tea.cast<DescribeClusterEventsResponse>(await this.callApi(params, req, runtime), new DescribeClusterEventsResponse({}));
|
|
11008
|
+
}
|
|
11009
|
+
|
|
10510
11010
|
async describeClusterLogs(ClusterId: string): Promise<DescribeClusterLogsResponse> {
|
|
10511
11011
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10512
11012
|
let headers : {[key: string ]: string} = { };
|
|
@@ -10656,6 +11156,31 @@ export default class Client extends OpenApi {
|
|
|
10656
11156
|
return $tea.cast<DescribeClusterResourcesResponse>(await this.callApi(params, req, runtime), new DescribeClusterResourcesResponse({}));
|
|
10657
11157
|
}
|
|
10658
11158
|
|
|
11159
|
+
async describeClusterTasks(clusterId: string): Promise<DescribeClusterTasksResponse> {
|
|
11160
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
11161
|
+
let headers : {[key: string ]: string} = { };
|
|
11162
|
+
return await this.describeClusterTasksWithOptions(clusterId, headers, runtime);
|
|
11163
|
+
}
|
|
11164
|
+
|
|
11165
|
+
async describeClusterTasksWithOptions(clusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterTasksResponse> {
|
|
11166
|
+
clusterId = OpenApiUtil.getEncodeParam(clusterId);
|
|
11167
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11168
|
+
headers: headers,
|
|
11169
|
+
});
|
|
11170
|
+
let params = new $OpenApi.Params({
|
|
11171
|
+
action: "DescribeClusterTasks",
|
|
11172
|
+
version: "2015-12-15",
|
|
11173
|
+
protocol: "HTTPS",
|
|
11174
|
+
pathname: `/clusters/${clusterId}/tasks`,
|
|
11175
|
+
method: "GET",
|
|
11176
|
+
authType: "AK",
|
|
11177
|
+
style: "ROA",
|
|
11178
|
+
reqBodyType: "json",
|
|
11179
|
+
bodyType: "json",
|
|
11180
|
+
});
|
|
11181
|
+
return $tea.cast<DescribeClusterTasksResponse>(await this.callApi(params, req, runtime), new DescribeClusterTasksResponse({}));
|
|
11182
|
+
}
|
|
11183
|
+
|
|
10659
11184
|
async describeClusterUserKubeconfig(ClusterId: string, request: DescribeClusterUserKubeconfigRequest): Promise<DescribeClusterUserKubeconfigResponse> {
|
|
10660
11185
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10661
11186
|
let headers : {[key: string ]: string} = { };
|
|
@@ -11697,16 +12222,27 @@ export default class Client extends OpenApi {
|
|
|
11697
12222
|
return $tea.cast<ListTagResourcesResponse>(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
|
|
11698
12223
|
}
|
|
11699
12224
|
|
|
11700
|
-
async migrateCluster(clusterId: string): Promise<MigrateClusterResponse> {
|
|
12225
|
+
async migrateCluster(clusterId: string, request: MigrateClusterRequest): Promise<MigrateClusterResponse> {
|
|
11701
12226
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11702
12227
|
let headers : {[key: string ]: string} = { };
|
|
11703
|
-
return await this.migrateClusterWithOptions(clusterId, headers, runtime);
|
|
12228
|
+
return await this.migrateClusterWithOptions(clusterId, request, headers, runtime);
|
|
11704
12229
|
}
|
|
11705
12230
|
|
|
11706
|
-
async migrateClusterWithOptions(clusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<MigrateClusterResponse> {
|
|
12231
|
+
async migrateClusterWithOptions(clusterId: string, request: MigrateClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<MigrateClusterResponse> {
|
|
12232
|
+
Util.validateModel(request);
|
|
11707
12233
|
clusterId = OpenApiUtil.getEncodeParam(clusterId);
|
|
12234
|
+
let body : {[key: string ]: any} = { };
|
|
12235
|
+
if (!Util.isUnset(request.ossBucketEndpoint)) {
|
|
12236
|
+
body["oss_bucket_endpoint"] = request.ossBucketEndpoint;
|
|
12237
|
+
}
|
|
12238
|
+
|
|
12239
|
+
if (!Util.isUnset(request.ossBucketName)) {
|
|
12240
|
+
body["oss_bucket_name"] = request.ossBucketName;
|
|
12241
|
+
}
|
|
12242
|
+
|
|
11708
12243
|
let req = new $OpenApi.OpenApiRequest({
|
|
11709
12244
|
headers: headers,
|
|
12245
|
+
body: OpenApiUtil.parseToMap(body),
|
|
11710
12246
|
});
|
|
11711
12247
|
let params = new $OpenApi.Params({
|
|
11712
12248
|
action: "MigrateCluster",
|
|
@@ -11717,7 +12253,7 @@ export default class Client extends OpenApi {
|
|
|
11717
12253
|
authType: "AK",
|
|
11718
12254
|
style: "ROA",
|
|
11719
12255
|
reqBodyType: "json",
|
|
11720
|
-
bodyType: "
|
|
12256
|
+
bodyType: "json",
|
|
11721
12257
|
});
|
|
11722
12258
|
return $tea.cast<MigrateClusterResponse>(await this.callApi(params, req, runtime), new MigrateClusterResponse({}));
|
|
11723
12259
|
}
|
|
@@ -11874,6 +12410,10 @@ export default class Client extends OpenApi {
|
|
|
11874
12410
|
body["management"] = request.management;
|
|
11875
12411
|
}
|
|
11876
12412
|
|
|
12413
|
+
if (!Util.isUnset($tea.toMap(request.nodeConfig))) {
|
|
12414
|
+
body["node_config"] = request.nodeConfig;
|
|
12415
|
+
}
|
|
12416
|
+
|
|
11877
12417
|
if (!Util.isUnset($tea.toMap(request.nodepoolInfo))) {
|
|
11878
12418
|
body["nodepool_info"] = request.nodepoolInfo;
|
|
11879
12419
|
}
|