@alicloud/cs20151215 3.0.13 → 3.0.16
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 +367 -2
- package/dist/client.js +604 -9
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +785 -39
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;
|
|
@@ -3083,15 +3214,18 @@ export class DescribeKubernetesVersionMetadataResponse extends $tea.Model {
|
|
|
3083
3214
|
|
|
3084
3215
|
export class DescribeNodePoolVulsResponseBody extends $tea.Model {
|
|
3085
3216
|
vulRecords?: DescribeNodePoolVulsResponseBodyVulRecords[];
|
|
3217
|
+
vulsFixServicePurchased?: boolean;
|
|
3086
3218
|
static names(): { [key: string]: string } {
|
|
3087
3219
|
return {
|
|
3088
3220
|
vulRecords: 'vul_records',
|
|
3221
|
+
vulsFixServicePurchased: 'vuls_fix_service_purchased',
|
|
3089
3222
|
};
|
|
3090
3223
|
}
|
|
3091
3224
|
|
|
3092
3225
|
static types(): { [key: string]: any } {
|
|
3093
3226
|
return {
|
|
3094
3227
|
vulRecords: { 'type': 'array', 'itemType': DescribeNodePoolVulsResponseBodyVulRecords },
|
|
3228
|
+
vulsFixServicePurchased: 'boolean',
|
|
3095
3229
|
};
|
|
3096
3230
|
}
|
|
3097
3231
|
|
|
@@ -3365,7 +3499,13 @@ export class DescribePolicyInstancesStatusResponse extends $tea.Model {
|
|
|
3365
3499
|
export class DescribeTaskInfoResponseBody extends $tea.Model {
|
|
3366
3500
|
clusterId?: string;
|
|
3367
3501
|
created?: string;
|
|
3502
|
+
currentStage?: string;
|
|
3503
|
+
error?: DescribeTaskInfoResponseBodyError;
|
|
3504
|
+
events?: DescribeTaskInfoResponseBodyEvents[];
|
|
3505
|
+
parameters?: { [key: string]: any };
|
|
3506
|
+
stages?: DescribeTaskInfoResponseBodyStages[];
|
|
3368
3507
|
state?: string;
|
|
3508
|
+
target?: DescribeTaskInfoResponseBodyTarget;
|
|
3369
3509
|
taskId?: string;
|
|
3370
3510
|
taskResult?: DescribeTaskInfoResponseBodyTaskResult[];
|
|
3371
3511
|
taskType?: string;
|
|
@@ -3374,7 +3514,13 @@ export class DescribeTaskInfoResponseBody extends $tea.Model {
|
|
|
3374
3514
|
return {
|
|
3375
3515
|
clusterId: 'cluster_id',
|
|
3376
3516
|
created: 'created',
|
|
3517
|
+
currentStage: 'current_stage',
|
|
3518
|
+
error: 'error',
|
|
3519
|
+
events: 'events',
|
|
3520
|
+
parameters: 'parameters',
|
|
3521
|
+
stages: 'stages',
|
|
3377
3522
|
state: 'state',
|
|
3523
|
+
target: 'target',
|
|
3378
3524
|
taskId: 'task_id',
|
|
3379
3525
|
taskResult: 'task_result',
|
|
3380
3526
|
taskType: 'task_type',
|
|
@@ -3386,7 +3532,13 @@ export class DescribeTaskInfoResponseBody extends $tea.Model {
|
|
|
3386
3532
|
return {
|
|
3387
3533
|
clusterId: 'string',
|
|
3388
3534
|
created: 'string',
|
|
3535
|
+
currentStage: 'string',
|
|
3536
|
+
error: DescribeTaskInfoResponseBodyError,
|
|
3537
|
+
events: { 'type': 'array', 'itemType': DescribeTaskInfoResponseBodyEvents },
|
|
3538
|
+
parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
3539
|
+
stages: { 'type': 'array', 'itemType': DescribeTaskInfoResponseBodyStages },
|
|
3389
3540
|
state: 'string',
|
|
3541
|
+
target: DescribeTaskInfoResponseBodyTarget,
|
|
3390
3542
|
taskId: 'string',
|
|
3391
3543
|
taskResult: { 'type': 'array', 'itemType': DescribeTaskInfoResponseBodyTaskResult },
|
|
3392
3544
|
taskType: 'string',
|
|
@@ -4162,13 +4314,62 @@ export class ListTagResourcesResponse extends $tea.Model {
|
|
|
4162
4314
|
}
|
|
4163
4315
|
}
|
|
4164
4316
|
|
|
4317
|
+
export class MigrateClusterRequest extends $tea.Model {
|
|
4318
|
+
ossBucketEndpoint?: string;
|
|
4319
|
+
ossBucketName?: string;
|
|
4320
|
+
static names(): { [key: string]: string } {
|
|
4321
|
+
return {
|
|
4322
|
+
ossBucketEndpoint: 'oss_bucket_endpoint',
|
|
4323
|
+
ossBucketName: 'oss_bucket_name',
|
|
4324
|
+
};
|
|
4325
|
+
}
|
|
4326
|
+
|
|
4327
|
+
static types(): { [key: string]: any } {
|
|
4328
|
+
return {
|
|
4329
|
+
ossBucketEndpoint: 'string',
|
|
4330
|
+
ossBucketName: 'string',
|
|
4331
|
+
};
|
|
4332
|
+
}
|
|
4333
|
+
|
|
4334
|
+
constructor(map?: { [key: string]: any }) {
|
|
4335
|
+
super(map);
|
|
4336
|
+
}
|
|
4337
|
+
}
|
|
4338
|
+
|
|
4339
|
+
export class MigrateClusterResponseBody extends $tea.Model {
|
|
4340
|
+
clusterId?: string;
|
|
4341
|
+
requestId?: string;
|
|
4342
|
+
taskId?: string;
|
|
4343
|
+
static names(): { [key: string]: string } {
|
|
4344
|
+
return {
|
|
4345
|
+
clusterId: 'cluster_id',
|
|
4346
|
+
requestId: 'request_id',
|
|
4347
|
+
taskId: 'task_id',
|
|
4348
|
+
};
|
|
4349
|
+
}
|
|
4350
|
+
|
|
4351
|
+
static types(): { [key: string]: any } {
|
|
4352
|
+
return {
|
|
4353
|
+
clusterId: 'string',
|
|
4354
|
+
requestId: 'string',
|
|
4355
|
+
taskId: 'string',
|
|
4356
|
+
};
|
|
4357
|
+
}
|
|
4358
|
+
|
|
4359
|
+
constructor(map?: { [key: string]: any }) {
|
|
4360
|
+
super(map);
|
|
4361
|
+
}
|
|
4362
|
+
}
|
|
4363
|
+
|
|
4165
4364
|
export class MigrateClusterResponse extends $tea.Model {
|
|
4166
4365
|
headers: { [key: string]: string };
|
|
4167
4366
|
statusCode: number;
|
|
4367
|
+
body: MigrateClusterResponseBody;
|
|
4168
4368
|
static names(): { [key: string]: string } {
|
|
4169
4369
|
return {
|
|
4170
4370
|
headers: 'headers',
|
|
4171
4371
|
statusCode: 'statusCode',
|
|
4372
|
+
body: 'body',
|
|
4172
4373
|
};
|
|
4173
4374
|
}
|
|
4174
4375
|
|
|
@@ -4176,6 +4377,7 @@ export class MigrateClusterResponse extends $tea.Model {
|
|
|
4176
4377
|
return {
|
|
4177
4378
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4178
4379
|
statusCode: 'number',
|
|
4380
|
+
body: MigrateClusterResponseBody,
|
|
4179
4381
|
};
|
|
4180
4382
|
}
|
|
4181
4383
|
|
|
@@ -4484,6 +4686,78 @@ export class ModifyClusterTagsResponse extends $tea.Model {
|
|
|
4484
4686
|
}
|
|
4485
4687
|
}
|
|
4486
4688
|
|
|
4689
|
+
export class ModifyNodePoolNodeConfigRequest extends $tea.Model {
|
|
4690
|
+
kubeletConfig?: ModifyNodePoolNodeConfigRequestKubeletConfig;
|
|
4691
|
+
rollingPolicy?: ModifyNodePoolNodeConfigRequestRollingPolicy;
|
|
4692
|
+
static names(): { [key: string]: string } {
|
|
4693
|
+
return {
|
|
4694
|
+
kubeletConfig: 'kubelet_config',
|
|
4695
|
+
rollingPolicy: 'rolling_policy',
|
|
4696
|
+
};
|
|
4697
|
+
}
|
|
4698
|
+
|
|
4699
|
+
static types(): { [key: string]: any } {
|
|
4700
|
+
return {
|
|
4701
|
+
kubeletConfig: ModifyNodePoolNodeConfigRequestKubeletConfig,
|
|
4702
|
+
rollingPolicy: ModifyNodePoolNodeConfigRequestRollingPolicy,
|
|
4703
|
+
};
|
|
4704
|
+
}
|
|
4705
|
+
|
|
4706
|
+
constructor(map?: { [key: string]: any }) {
|
|
4707
|
+
super(map);
|
|
4708
|
+
}
|
|
4709
|
+
}
|
|
4710
|
+
|
|
4711
|
+
export class ModifyNodePoolNodeConfigResponseBody extends $tea.Model {
|
|
4712
|
+
nodepoolId?: string;
|
|
4713
|
+
requestId?: string;
|
|
4714
|
+
taskId?: string;
|
|
4715
|
+
static names(): { [key: string]: string } {
|
|
4716
|
+
return {
|
|
4717
|
+
nodepoolId: 'nodepool_id',
|
|
4718
|
+
requestId: 'request_id',
|
|
4719
|
+
taskId: 'task_id',
|
|
4720
|
+
};
|
|
4721
|
+
}
|
|
4722
|
+
|
|
4723
|
+
static types(): { [key: string]: any } {
|
|
4724
|
+
return {
|
|
4725
|
+
nodepoolId: 'string',
|
|
4726
|
+
requestId: 'string',
|
|
4727
|
+
taskId: 'string',
|
|
4728
|
+
};
|
|
4729
|
+
}
|
|
4730
|
+
|
|
4731
|
+
constructor(map?: { [key: string]: any }) {
|
|
4732
|
+
super(map);
|
|
4733
|
+
}
|
|
4734
|
+
}
|
|
4735
|
+
|
|
4736
|
+
export class ModifyNodePoolNodeConfigResponse extends $tea.Model {
|
|
4737
|
+
headers: { [key: string]: string };
|
|
4738
|
+
statusCode: number;
|
|
4739
|
+
body: ModifyNodePoolNodeConfigResponseBody;
|
|
4740
|
+
static names(): { [key: string]: string } {
|
|
4741
|
+
return {
|
|
4742
|
+
headers: 'headers',
|
|
4743
|
+
statusCode: 'statusCode',
|
|
4744
|
+
body: 'body',
|
|
4745
|
+
};
|
|
4746
|
+
}
|
|
4747
|
+
|
|
4748
|
+
static types(): { [key: string]: any } {
|
|
4749
|
+
return {
|
|
4750
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4751
|
+
statusCode: 'number',
|
|
4752
|
+
body: ModifyNodePoolNodeConfigResponseBody,
|
|
4753
|
+
};
|
|
4754
|
+
}
|
|
4755
|
+
|
|
4756
|
+
constructor(map?: { [key: string]: any }) {
|
|
4757
|
+
super(map);
|
|
4758
|
+
}
|
|
4759
|
+
}
|
|
4760
|
+
|
|
4487
4761
|
export class ModifyPolicyInstanceRequest extends $tea.Model {
|
|
4488
4762
|
action?: string;
|
|
4489
4763
|
instanceName?: string;
|
|
@@ -6205,29 +6479,23 @@ export class DescribeAddonsResponseBodyComponentGroups extends $tea.Model {
|
|
|
6205
6479
|
}
|
|
6206
6480
|
}
|
|
6207
6481
|
|
|
6208
|
-
export class
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
created?: string;
|
|
6213
|
-
updated?: string;
|
|
6482
|
+
export class DescribeClusterEventsResponseBodyEventsData extends $tea.Model {
|
|
6483
|
+
level?: string;
|
|
6484
|
+
message?: string;
|
|
6485
|
+
reason?: string;
|
|
6214
6486
|
static names(): { [key: string]: string } {
|
|
6215
6487
|
return {
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
created: 'created',
|
|
6220
|
-
updated: 'updated',
|
|
6488
|
+
level: 'level',
|
|
6489
|
+
message: 'message',
|
|
6490
|
+
reason: 'reason',
|
|
6221
6491
|
};
|
|
6222
6492
|
}
|
|
6223
6493
|
|
|
6224
6494
|
static types(): { [key: string]: any } {
|
|
6225
6495
|
return {
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
created: 'string',
|
|
6230
|
-
updated: 'string',
|
|
6496
|
+
level: 'string',
|
|
6497
|
+
message: 'string',
|
|
6498
|
+
reason: 'string',
|
|
6231
6499
|
};
|
|
6232
6500
|
}
|
|
6233
6501
|
|
|
@@ -6236,23 +6504,116 @@ export class DescribeClusterLogsResponseBody extends $tea.Model {
|
|
|
6236
6504
|
}
|
|
6237
6505
|
}
|
|
6238
6506
|
|
|
6239
|
-
export class
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6507
|
+
export class DescribeClusterEventsResponseBodyEvents extends $tea.Model {
|
|
6508
|
+
clusterId?: string;
|
|
6509
|
+
data?: DescribeClusterEventsResponseBodyEventsData;
|
|
6510
|
+
eventId?: string;
|
|
6511
|
+
source?: string;
|
|
6512
|
+
subject?: string;
|
|
6513
|
+
time?: string;
|
|
6246
6514
|
type?: string;
|
|
6247
6515
|
static names(): { [key: string]: string } {
|
|
6248
6516
|
return {
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
type: 'type',
|
|
6517
|
+
clusterId: 'cluster_id',
|
|
6518
|
+
data: 'data',
|
|
6519
|
+
eventId: 'event_id',
|
|
6520
|
+
source: 'source',
|
|
6521
|
+
subject: 'subject',
|
|
6522
|
+
time: 'time',
|
|
6523
|
+
type: 'type',
|
|
6524
|
+
};
|
|
6525
|
+
}
|
|
6526
|
+
|
|
6527
|
+
static types(): { [key: string]: any } {
|
|
6528
|
+
return {
|
|
6529
|
+
clusterId: 'string',
|
|
6530
|
+
data: DescribeClusterEventsResponseBodyEventsData,
|
|
6531
|
+
eventId: 'string',
|
|
6532
|
+
source: 'string',
|
|
6533
|
+
subject: 'string',
|
|
6534
|
+
time: 'string',
|
|
6535
|
+
type: 'string',
|
|
6536
|
+
};
|
|
6537
|
+
}
|
|
6538
|
+
|
|
6539
|
+
constructor(map?: { [key: string]: any }) {
|
|
6540
|
+
super(map);
|
|
6541
|
+
}
|
|
6542
|
+
}
|
|
6543
|
+
|
|
6544
|
+
export class DescribeClusterEventsResponseBodyPageInfo extends $tea.Model {
|
|
6545
|
+
pageNumber?: number;
|
|
6546
|
+
pageSize?: number;
|
|
6547
|
+
totalCount?: number;
|
|
6548
|
+
static names(): { [key: string]: string } {
|
|
6549
|
+
return {
|
|
6550
|
+
pageNumber: 'page_number',
|
|
6551
|
+
pageSize: 'page_size',
|
|
6552
|
+
totalCount: 'total_count',
|
|
6553
|
+
};
|
|
6554
|
+
}
|
|
6555
|
+
|
|
6556
|
+
static types(): { [key: string]: any } {
|
|
6557
|
+
return {
|
|
6558
|
+
pageNumber: 'number',
|
|
6559
|
+
pageSize: 'number',
|
|
6560
|
+
totalCount: 'number',
|
|
6561
|
+
};
|
|
6562
|
+
}
|
|
6563
|
+
|
|
6564
|
+
constructor(map?: { [key: string]: any }) {
|
|
6565
|
+
super(map);
|
|
6566
|
+
}
|
|
6567
|
+
}
|
|
6568
|
+
|
|
6569
|
+
export class DescribeClusterLogsResponseBody extends $tea.Model {
|
|
6570
|
+
ID?: number;
|
|
6571
|
+
clusterId?: string;
|
|
6572
|
+
clusterLog?: string;
|
|
6573
|
+
created?: string;
|
|
6574
|
+
updated?: string;
|
|
6575
|
+
static names(): { [key: string]: string } {
|
|
6576
|
+
return {
|
|
6577
|
+
ID: 'ID',
|
|
6578
|
+
clusterId: 'cluster_id',
|
|
6579
|
+
clusterLog: 'cluster_log',
|
|
6580
|
+
created: 'created',
|
|
6581
|
+
updated: 'updated',
|
|
6582
|
+
};
|
|
6583
|
+
}
|
|
6584
|
+
|
|
6585
|
+
static types(): { [key: string]: any } {
|
|
6586
|
+
return {
|
|
6587
|
+
ID: 'number',
|
|
6588
|
+
clusterId: 'string',
|
|
6589
|
+
clusterLog: 'string',
|
|
6590
|
+
created: 'string',
|
|
6591
|
+
updated: 'string',
|
|
6592
|
+
};
|
|
6593
|
+
}
|
|
6594
|
+
|
|
6595
|
+
constructor(map?: { [key: string]: any }) {
|
|
6596
|
+
super(map);
|
|
6597
|
+
}
|
|
6598
|
+
}
|
|
6599
|
+
|
|
6600
|
+
export class DescribeClusterNodePoolDetailResponseBodyAutoScaling extends $tea.Model {
|
|
6601
|
+
eipBandwidth?: number;
|
|
6602
|
+
eipInternetChargeType?: string;
|
|
6603
|
+
enable?: boolean;
|
|
6604
|
+
isBondEip?: boolean;
|
|
6605
|
+
maxInstances?: number;
|
|
6606
|
+
minInstances?: number;
|
|
6607
|
+
type?: string;
|
|
6608
|
+
static names(): { [key: string]: string } {
|
|
6609
|
+
return {
|
|
6610
|
+
eipBandwidth: 'eip_bandwidth',
|
|
6611
|
+
eipInternetChargeType: 'eip_internet_charge_type',
|
|
6612
|
+
enable: 'enable',
|
|
6613
|
+
isBondEip: 'is_bond_eip',
|
|
6614
|
+
maxInstances: 'max_instances',
|
|
6615
|
+
minInstances: 'min_instances',
|
|
6616
|
+
type: 'type',
|
|
6256
6617
|
};
|
|
6257
6618
|
}
|
|
6258
6619
|
|
|
@@ -7220,6 +7581,87 @@ export class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
|
7220
7581
|
}
|
|
7221
7582
|
}
|
|
7222
7583
|
|
|
7584
|
+
export class DescribeClusterTasksResponseBodyPageInfo extends $tea.Model {
|
|
7585
|
+
pageNumber?: number;
|
|
7586
|
+
pageSize?: number;
|
|
7587
|
+
totalCount?: number;
|
|
7588
|
+
static names(): { [key: string]: string } {
|
|
7589
|
+
return {
|
|
7590
|
+
pageNumber: 'page_number',
|
|
7591
|
+
pageSize: 'page_size',
|
|
7592
|
+
totalCount: 'total_count',
|
|
7593
|
+
};
|
|
7594
|
+
}
|
|
7595
|
+
|
|
7596
|
+
static types(): { [key: string]: any } {
|
|
7597
|
+
return {
|
|
7598
|
+
pageNumber: 'number',
|
|
7599
|
+
pageSize: 'number',
|
|
7600
|
+
totalCount: 'number',
|
|
7601
|
+
};
|
|
7602
|
+
}
|
|
7603
|
+
|
|
7604
|
+
constructor(map?: { [key: string]: any }) {
|
|
7605
|
+
super(map);
|
|
7606
|
+
}
|
|
7607
|
+
}
|
|
7608
|
+
|
|
7609
|
+
export class DescribeClusterTasksResponseBodyTasksError extends $tea.Model {
|
|
7610
|
+
code?: string;
|
|
7611
|
+
message?: string;
|
|
7612
|
+
static names(): { [key: string]: string } {
|
|
7613
|
+
return {
|
|
7614
|
+
code: 'code',
|
|
7615
|
+
message: 'message',
|
|
7616
|
+
};
|
|
7617
|
+
}
|
|
7618
|
+
|
|
7619
|
+
static types(): { [key: string]: any } {
|
|
7620
|
+
return {
|
|
7621
|
+
code: 'string',
|
|
7622
|
+
message: 'string',
|
|
7623
|
+
};
|
|
7624
|
+
}
|
|
7625
|
+
|
|
7626
|
+
constructor(map?: { [key: string]: any }) {
|
|
7627
|
+
super(map);
|
|
7628
|
+
}
|
|
7629
|
+
}
|
|
7630
|
+
|
|
7631
|
+
export class DescribeClusterTasksResponseBodyTasks extends $tea.Model {
|
|
7632
|
+
created?: string;
|
|
7633
|
+
error?: DescribeClusterTasksResponseBodyTasksError;
|
|
7634
|
+
state?: string;
|
|
7635
|
+
taskId?: string;
|
|
7636
|
+
taskType?: string;
|
|
7637
|
+
updated?: string;
|
|
7638
|
+
static names(): { [key: string]: string } {
|
|
7639
|
+
return {
|
|
7640
|
+
created: 'created',
|
|
7641
|
+
error: 'error',
|
|
7642
|
+
state: 'state',
|
|
7643
|
+
taskId: 'task_id',
|
|
7644
|
+
taskType: 'task_type',
|
|
7645
|
+
updated: 'updated',
|
|
7646
|
+
};
|
|
7647
|
+
}
|
|
7648
|
+
|
|
7649
|
+
static types(): { [key: string]: any } {
|
|
7650
|
+
return {
|
|
7651
|
+
created: 'string',
|
|
7652
|
+
error: DescribeClusterTasksResponseBodyTasksError,
|
|
7653
|
+
state: 'string',
|
|
7654
|
+
taskId: 'string',
|
|
7655
|
+
taskType: 'string',
|
|
7656
|
+
updated: 'string',
|
|
7657
|
+
};
|
|
7658
|
+
}
|
|
7659
|
+
|
|
7660
|
+
constructor(map?: { [key: string]: any }) {
|
|
7661
|
+
super(map);
|
|
7662
|
+
}
|
|
7663
|
+
}
|
|
7664
|
+
|
|
7223
7665
|
export class DescribeClustersResponseBodyTags extends $tea.Model {
|
|
7224
7666
|
key?: string;
|
|
7225
7667
|
value?: string;
|
|
@@ -8097,6 +8539,115 @@ export class DescribePolicyInstancesStatusResponseBodyPolicyInstances extends $t
|
|
|
8097
8539
|
}
|
|
8098
8540
|
}
|
|
8099
8541
|
|
|
8542
|
+
export class DescribeTaskInfoResponseBodyError extends $tea.Model {
|
|
8543
|
+
code?: string;
|
|
8544
|
+
message?: string;
|
|
8545
|
+
static names(): { [key: string]: string } {
|
|
8546
|
+
return {
|
|
8547
|
+
code: 'code',
|
|
8548
|
+
message: 'message',
|
|
8549
|
+
};
|
|
8550
|
+
}
|
|
8551
|
+
|
|
8552
|
+
static types(): { [key: string]: any } {
|
|
8553
|
+
return {
|
|
8554
|
+
code: 'string',
|
|
8555
|
+
message: 'string',
|
|
8556
|
+
};
|
|
8557
|
+
}
|
|
8558
|
+
|
|
8559
|
+
constructor(map?: { [key: string]: any }) {
|
|
8560
|
+
super(map);
|
|
8561
|
+
}
|
|
8562
|
+
}
|
|
8563
|
+
|
|
8564
|
+
export class DescribeTaskInfoResponseBodyEvents extends $tea.Model {
|
|
8565
|
+
action?: string;
|
|
8566
|
+
level?: string;
|
|
8567
|
+
message?: string;
|
|
8568
|
+
reason?: string;
|
|
8569
|
+
source?: string;
|
|
8570
|
+
timestamp?: string;
|
|
8571
|
+
static names(): { [key: string]: string } {
|
|
8572
|
+
return {
|
|
8573
|
+
action: 'action',
|
|
8574
|
+
level: 'level',
|
|
8575
|
+
message: 'message',
|
|
8576
|
+
reason: 'reason',
|
|
8577
|
+
source: 'source',
|
|
8578
|
+
timestamp: 'timestamp',
|
|
8579
|
+
};
|
|
8580
|
+
}
|
|
8581
|
+
|
|
8582
|
+
static types(): { [key: string]: any } {
|
|
8583
|
+
return {
|
|
8584
|
+
action: 'string',
|
|
8585
|
+
level: 'string',
|
|
8586
|
+
message: 'string',
|
|
8587
|
+
reason: 'string',
|
|
8588
|
+
source: 'string',
|
|
8589
|
+
timestamp: 'string',
|
|
8590
|
+
};
|
|
8591
|
+
}
|
|
8592
|
+
|
|
8593
|
+
constructor(map?: { [key: string]: any }) {
|
|
8594
|
+
super(map);
|
|
8595
|
+
}
|
|
8596
|
+
}
|
|
8597
|
+
|
|
8598
|
+
export class DescribeTaskInfoResponseBodyStages extends $tea.Model {
|
|
8599
|
+
endTime?: string;
|
|
8600
|
+
message?: string;
|
|
8601
|
+
outputs?: { [key: string]: any };
|
|
8602
|
+
startTime?: string;
|
|
8603
|
+
state?: string;
|
|
8604
|
+
static names(): { [key: string]: string } {
|
|
8605
|
+
return {
|
|
8606
|
+
endTime: 'end_time',
|
|
8607
|
+
message: 'message',
|
|
8608
|
+
outputs: 'outputs',
|
|
8609
|
+
startTime: 'start_time',
|
|
8610
|
+
state: 'state',
|
|
8611
|
+
};
|
|
8612
|
+
}
|
|
8613
|
+
|
|
8614
|
+
static types(): { [key: string]: any } {
|
|
8615
|
+
return {
|
|
8616
|
+
endTime: 'string',
|
|
8617
|
+
message: 'string',
|
|
8618
|
+
outputs: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
8619
|
+
startTime: 'string',
|
|
8620
|
+
state: 'string',
|
|
8621
|
+
};
|
|
8622
|
+
}
|
|
8623
|
+
|
|
8624
|
+
constructor(map?: { [key: string]: any }) {
|
|
8625
|
+
super(map);
|
|
8626
|
+
}
|
|
8627
|
+
}
|
|
8628
|
+
|
|
8629
|
+
export class DescribeTaskInfoResponseBodyTarget extends $tea.Model {
|
|
8630
|
+
id?: string;
|
|
8631
|
+
type?: string;
|
|
8632
|
+
static names(): { [key: string]: string } {
|
|
8633
|
+
return {
|
|
8634
|
+
id: 'id',
|
|
8635
|
+
type: 'type',
|
|
8636
|
+
};
|
|
8637
|
+
}
|
|
8638
|
+
|
|
8639
|
+
static types(): { [key: string]: any } {
|
|
8640
|
+
return {
|
|
8641
|
+
id: 'string',
|
|
8642
|
+
type: 'string',
|
|
8643
|
+
};
|
|
8644
|
+
}
|
|
8645
|
+
|
|
8646
|
+
constructor(map?: { [key: string]: any }) {
|
|
8647
|
+
super(map);
|
|
8648
|
+
}
|
|
8649
|
+
}
|
|
8650
|
+
|
|
8100
8651
|
export class DescribeTaskInfoResponseBodyTaskResult extends $tea.Model {
|
|
8101
8652
|
data?: string;
|
|
8102
8653
|
status?: string;
|
|
@@ -8853,6 +9404,80 @@ export class ModifyClusterNodePoolRequestTeeConfig extends $tea.Model {
|
|
|
8853
9404
|
}
|
|
8854
9405
|
}
|
|
8855
9406
|
|
|
9407
|
+
export class ModifyNodePoolNodeConfigRequestKubeletConfig extends $tea.Model {
|
|
9408
|
+
cpuManagerPolicy?: string;
|
|
9409
|
+
eventBurst?: number;
|
|
9410
|
+
eventRecordQPS?: number;
|
|
9411
|
+
evictionHard?: { [key: string]: any };
|
|
9412
|
+
evictionSoft?: { [key: string]: any };
|
|
9413
|
+
evictionSoftGracePeriod?: { [key: string]: any };
|
|
9414
|
+
kubeAPIBurst?: number;
|
|
9415
|
+
kubeAPIQPS?: number;
|
|
9416
|
+
kubeReserved?: { [key: string]: any };
|
|
9417
|
+
registryBurst?: number;
|
|
9418
|
+
registryPullQPS?: number;
|
|
9419
|
+
serializeImagePulls?: boolean;
|
|
9420
|
+
systemReserved?: { [key: string]: any };
|
|
9421
|
+
static names(): { [key: string]: string } {
|
|
9422
|
+
return {
|
|
9423
|
+
cpuManagerPolicy: 'cpuManagerPolicy',
|
|
9424
|
+
eventBurst: 'eventBurst',
|
|
9425
|
+
eventRecordQPS: 'eventRecordQPS',
|
|
9426
|
+
evictionHard: 'evictionHard',
|
|
9427
|
+
evictionSoft: 'evictionSoft',
|
|
9428
|
+
evictionSoftGracePeriod: 'evictionSoftGracePeriod',
|
|
9429
|
+
kubeAPIBurst: 'kubeAPIBurst',
|
|
9430
|
+
kubeAPIQPS: 'kubeAPIQPS',
|
|
9431
|
+
kubeReserved: 'kubeReserved',
|
|
9432
|
+
registryBurst: 'registryBurst',
|
|
9433
|
+
registryPullQPS: 'registryPullQPS',
|
|
9434
|
+
serializeImagePulls: 'serializeImagePulls',
|
|
9435
|
+
systemReserved: 'systemReserved',
|
|
9436
|
+
};
|
|
9437
|
+
}
|
|
9438
|
+
|
|
9439
|
+
static types(): { [key: string]: any } {
|
|
9440
|
+
return {
|
|
9441
|
+
cpuManagerPolicy: 'string',
|
|
9442
|
+
eventBurst: 'number',
|
|
9443
|
+
eventRecordQPS: 'number',
|
|
9444
|
+
evictionHard: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
9445
|
+
evictionSoft: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
9446
|
+
evictionSoftGracePeriod: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
9447
|
+
kubeAPIBurst: 'number',
|
|
9448
|
+
kubeAPIQPS: 'number',
|
|
9449
|
+
kubeReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
9450
|
+
registryBurst: 'number',
|
|
9451
|
+
registryPullQPS: 'number',
|
|
9452
|
+
serializeImagePulls: 'boolean',
|
|
9453
|
+
systemReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
9454
|
+
};
|
|
9455
|
+
}
|
|
9456
|
+
|
|
9457
|
+
constructor(map?: { [key: string]: any }) {
|
|
9458
|
+
super(map);
|
|
9459
|
+
}
|
|
9460
|
+
}
|
|
9461
|
+
|
|
9462
|
+
export class ModifyNodePoolNodeConfigRequestRollingPolicy extends $tea.Model {
|
|
9463
|
+
maxParallelism?: number;
|
|
9464
|
+
static names(): { [key: string]: string } {
|
|
9465
|
+
return {
|
|
9466
|
+
maxParallelism: 'max_parallelism',
|
|
9467
|
+
};
|
|
9468
|
+
}
|
|
9469
|
+
|
|
9470
|
+
static types(): { [key: string]: any } {
|
|
9471
|
+
return {
|
|
9472
|
+
maxParallelism: 'number',
|
|
9473
|
+
};
|
|
9474
|
+
}
|
|
9475
|
+
|
|
9476
|
+
constructor(map?: { [key: string]: any }) {
|
|
9477
|
+
super(map);
|
|
9478
|
+
}
|
|
9479
|
+
}
|
|
9480
|
+
|
|
8856
9481
|
export class ScaleClusterRequestTags extends $tea.Model {
|
|
8857
9482
|
key?: string;
|
|
8858
9483
|
static names(): { [key: string]: string } {
|
|
@@ -9002,10 +9627,10 @@ export default class Client extends OpenApi {
|
|
|
9002
9627
|
|
|
9003
9628
|
constructor(config: $OpenApi.Config) {
|
|
9004
9629
|
super(config);
|
|
9630
|
+
this._signatureAlgorithm = "v2";
|
|
9005
9631
|
this._endpointRule = "regional";
|
|
9006
9632
|
this._endpointMap = {
|
|
9007
9633
|
'ap-northeast-2-pop': "cs.aliyuncs.com",
|
|
9008
|
-
'cn-beijing-finance-1': "cs.aliyuncs.com",
|
|
9009
9634
|
'cn-beijing-finance-pop': "cs.aliyuncs.com",
|
|
9010
9635
|
'cn-beijing-gov-1': "cs.aliyuncs.com",
|
|
9011
9636
|
'cn-beijing-nu16-b01': "cs.aliyuncs.com",
|
|
@@ -9013,21 +9638,17 @@ export default class Client extends OpenApi {
|
|
|
9013
9638
|
'cn-fujian': "cs.aliyuncs.com",
|
|
9014
9639
|
'cn-haidian-cm12-c01': "cs.aliyuncs.com",
|
|
9015
9640
|
'cn-hangzhou-bj-b01': "cs.aliyuncs.com",
|
|
9016
|
-
'cn-hangzhou-finance': "cs-vpc.cn-hangzhou-finance.aliyuncs.com",
|
|
9017
9641
|
'cn-hangzhou-internal-prod-1': "cs.aliyuncs.com",
|
|
9018
9642
|
'cn-hangzhou-internal-test-1': "cs.aliyuncs.com",
|
|
9019
9643
|
'cn-hangzhou-internal-test-2': "cs.aliyuncs.com",
|
|
9020
9644
|
'cn-hangzhou-internal-test-3': "cs.aliyuncs.com",
|
|
9021
9645
|
'cn-hangzhou-test-306': "cs.aliyuncs.com",
|
|
9022
9646
|
'cn-hongkong-finance-pop': "cs.aliyuncs.com",
|
|
9023
|
-
'cn-huhehaote-nebula-1': "cs.aliyuncs.com",
|
|
9024
9647
|
'cn-qingdao-nebula': "cs.aliyuncs.com",
|
|
9025
9648
|
'cn-shanghai-et15-b01': "cs.aliyuncs.com",
|
|
9026
9649
|
'cn-shanghai-et2-b01': "cs.aliyuncs.com",
|
|
9027
|
-
'cn-shanghai-finance-1': "cs-vpc.cn-shanghai-finance-1.aliyuncs.com",
|
|
9028
9650
|
'cn-shanghai-inner': "cs.aliyuncs.com",
|
|
9029
9651
|
'cn-shanghai-internal-test-1': "cs.aliyuncs.com",
|
|
9030
|
-
'cn-shenzhen-finance-1': "cs-vpc.cn-shenzhen-finance-1.aliyuncs.com",
|
|
9031
9652
|
'cn-shenzhen-inner': "cs.aliyuncs.com",
|
|
9032
9653
|
'cn-shenzhen-st4-d01': "cs.aliyuncs.com",
|
|
9033
9654
|
'cn-shenzhen-su18-b01': "cs.aliyuncs.com",
|
|
@@ -9318,6 +9939,10 @@ export default class Client extends OpenApi {
|
|
|
9318
9939
|
body["api_audiences"] = request.apiAudiences;
|
|
9319
9940
|
}
|
|
9320
9941
|
|
|
9942
|
+
if (!Util.isUnset(request.chargeType)) {
|
|
9943
|
+
body["charge_type"] = request.chargeType;
|
|
9944
|
+
}
|
|
9945
|
+
|
|
9321
9946
|
if (!Util.isUnset(request.cisEnabled)) {
|
|
9322
9947
|
body["cis_enabled"] = request.cisEnabled;
|
|
9323
9948
|
}
|
|
@@ -9502,6 +10127,14 @@ export default class Client extends OpenApi {
|
|
|
9502
10127
|
body["os_type"] = request.osType;
|
|
9503
10128
|
}
|
|
9504
10129
|
|
|
10130
|
+
if (!Util.isUnset(request.period)) {
|
|
10131
|
+
body["period"] = request.period;
|
|
10132
|
+
}
|
|
10133
|
+
|
|
10134
|
+
if (!Util.isUnset(request.periodUnit)) {
|
|
10135
|
+
body["period_unit"] = request.periodUnit;
|
|
10136
|
+
}
|
|
10137
|
+
|
|
9505
10138
|
if (!Util.isUnset(request.platform)) {
|
|
9506
10139
|
body["platform"] = request.platform;
|
|
9507
10140
|
}
|
|
@@ -10507,6 +11140,46 @@ export default class Client extends OpenApi {
|
|
|
10507
11140
|
return $tea.cast<DescribeClusterDetailResponse>(await this.callApi(params, req, runtime), new DescribeClusterDetailResponse({}));
|
|
10508
11141
|
}
|
|
10509
11142
|
|
|
11143
|
+
async describeClusterEvents(ClusterId: string, request: DescribeClusterEventsRequest): Promise<DescribeClusterEventsResponse> {
|
|
11144
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
11145
|
+
let headers : {[key: string ]: string} = { };
|
|
11146
|
+
return await this.describeClusterEventsWithOptions(ClusterId, request, headers, runtime);
|
|
11147
|
+
}
|
|
11148
|
+
|
|
11149
|
+
async describeClusterEventsWithOptions(ClusterId: string, request: DescribeClusterEventsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterEventsResponse> {
|
|
11150
|
+
Util.validateModel(request);
|
|
11151
|
+
ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
|
|
11152
|
+
let query : {[key: string ]: any} = { };
|
|
11153
|
+
if (!Util.isUnset(request.pageNumber)) {
|
|
11154
|
+
query["page_number"] = request.pageNumber;
|
|
11155
|
+
}
|
|
11156
|
+
|
|
11157
|
+
if (!Util.isUnset(request.pageSize)) {
|
|
11158
|
+
query["page_size"] = request.pageSize;
|
|
11159
|
+
}
|
|
11160
|
+
|
|
11161
|
+
if (!Util.isUnset(request.taskId)) {
|
|
11162
|
+
query["task_id"] = request.taskId;
|
|
11163
|
+
}
|
|
11164
|
+
|
|
11165
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11166
|
+
headers: headers,
|
|
11167
|
+
query: OpenApiUtil.query(query),
|
|
11168
|
+
});
|
|
11169
|
+
let params = new $OpenApi.Params({
|
|
11170
|
+
action: "DescribeClusterEvents",
|
|
11171
|
+
version: "2015-12-15",
|
|
11172
|
+
protocol: "HTTPS",
|
|
11173
|
+
pathname: `/clusters/${ClusterId}/events`,
|
|
11174
|
+
method: "GET",
|
|
11175
|
+
authType: "AK",
|
|
11176
|
+
style: "ROA",
|
|
11177
|
+
reqBodyType: "json",
|
|
11178
|
+
bodyType: "json",
|
|
11179
|
+
});
|
|
11180
|
+
return $tea.cast<DescribeClusterEventsResponse>(await this.callApi(params, req, runtime), new DescribeClusterEventsResponse({}));
|
|
11181
|
+
}
|
|
11182
|
+
|
|
10510
11183
|
async describeClusterLogs(ClusterId: string): Promise<DescribeClusterLogsResponse> {
|
|
10511
11184
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10512
11185
|
let headers : {[key: string ]: string} = { };
|
|
@@ -10656,6 +11329,31 @@ export default class Client extends OpenApi {
|
|
|
10656
11329
|
return $tea.cast<DescribeClusterResourcesResponse>(await this.callApi(params, req, runtime), new DescribeClusterResourcesResponse({}));
|
|
10657
11330
|
}
|
|
10658
11331
|
|
|
11332
|
+
async describeClusterTasks(clusterId: string): Promise<DescribeClusterTasksResponse> {
|
|
11333
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
11334
|
+
let headers : {[key: string ]: string} = { };
|
|
11335
|
+
return await this.describeClusterTasksWithOptions(clusterId, headers, runtime);
|
|
11336
|
+
}
|
|
11337
|
+
|
|
11338
|
+
async describeClusterTasksWithOptions(clusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterTasksResponse> {
|
|
11339
|
+
clusterId = OpenApiUtil.getEncodeParam(clusterId);
|
|
11340
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11341
|
+
headers: headers,
|
|
11342
|
+
});
|
|
11343
|
+
let params = new $OpenApi.Params({
|
|
11344
|
+
action: "DescribeClusterTasks",
|
|
11345
|
+
version: "2015-12-15",
|
|
11346
|
+
protocol: "HTTPS",
|
|
11347
|
+
pathname: `/clusters/${clusterId}/tasks`,
|
|
11348
|
+
method: "GET",
|
|
11349
|
+
authType: "AK",
|
|
11350
|
+
style: "ROA",
|
|
11351
|
+
reqBodyType: "json",
|
|
11352
|
+
bodyType: "json",
|
|
11353
|
+
});
|
|
11354
|
+
return $tea.cast<DescribeClusterTasksResponse>(await this.callApi(params, req, runtime), new DescribeClusterTasksResponse({}));
|
|
11355
|
+
}
|
|
11356
|
+
|
|
10659
11357
|
async describeClusterUserKubeconfig(ClusterId: string, request: DescribeClusterUserKubeconfigRequest): Promise<DescribeClusterUserKubeconfigResponse> {
|
|
10660
11358
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10661
11359
|
let headers : {[key: string ]: string} = { };
|
|
@@ -11697,16 +12395,27 @@ export default class Client extends OpenApi {
|
|
|
11697
12395
|
return $tea.cast<ListTagResourcesResponse>(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
|
|
11698
12396
|
}
|
|
11699
12397
|
|
|
11700
|
-
async migrateCluster(clusterId: string): Promise<MigrateClusterResponse> {
|
|
12398
|
+
async migrateCluster(clusterId: string, request: MigrateClusterRequest): Promise<MigrateClusterResponse> {
|
|
11701
12399
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11702
12400
|
let headers : {[key: string ]: string} = { };
|
|
11703
|
-
return await this.migrateClusterWithOptions(clusterId, headers, runtime);
|
|
12401
|
+
return await this.migrateClusterWithOptions(clusterId, request, headers, runtime);
|
|
11704
12402
|
}
|
|
11705
12403
|
|
|
11706
|
-
async migrateClusterWithOptions(clusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<MigrateClusterResponse> {
|
|
12404
|
+
async migrateClusterWithOptions(clusterId: string, request: MigrateClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<MigrateClusterResponse> {
|
|
12405
|
+
Util.validateModel(request);
|
|
11707
12406
|
clusterId = OpenApiUtil.getEncodeParam(clusterId);
|
|
12407
|
+
let body : {[key: string ]: any} = { };
|
|
12408
|
+
if (!Util.isUnset(request.ossBucketEndpoint)) {
|
|
12409
|
+
body["oss_bucket_endpoint"] = request.ossBucketEndpoint;
|
|
12410
|
+
}
|
|
12411
|
+
|
|
12412
|
+
if (!Util.isUnset(request.ossBucketName)) {
|
|
12413
|
+
body["oss_bucket_name"] = request.ossBucketName;
|
|
12414
|
+
}
|
|
12415
|
+
|
|
11708
12416
|
let req = new $OpenApi.OpenApiRequest({
|
|
11709
12417
|
headers: headers,
|
|
12418
|
+
body: OpenApiUtil.parseToMap(body),
|
|
11710
12419
|
});
|
|
11711
12420
|
let params = new $OpenApi.Params({
|
|
11712
12421
|
action: "MigrateCluster",
|
|
@@ -11717,7 +12426,7 @@ export default class Client extends OpenApi {
|
|
|
11717
12426
|
authType: "AK",
|
|
11718
12427
|
style: "ROA",
|
|
11719
12428
|
reqBodyType: "json",
|
|
11720
|
-
bodyType: "
|
|
12429
|
+
bodyType: "json",
|
|
11721
12430
|
});
|
|
11722
12431
|
return $tea.cast<MigrateClusterResponse>(await this.callApi(params, req, runtime), new MigrateClusterResponse({}));
|
|
11723
12432
|
}
|
|
@@ -11935,6 +12644,43 @@ export default class Client extends OpenApi {
|
|
|
11935
12644
|
return $tea.cast<ModifyClusterTagsResponse>(await this.callApi(params, req, runtime), new ModifyClusterTagsResponse({}));
|
|
11936
12645
|
}
|
|
11937
12646
|
|
|
12647
|
+
async modifyNodePoolNodeConfig(ClusterId: string, NodepoolId: string, request: ModifyNodePoolNodeConfigRequest): Promise<ModifyNodePoolNodeConfigResponse> {
|
|
12648
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
12649
|
+
let headers : {[key: string ]: string} = { };
|
|
12650
|
+
return await this.modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
12651
|
+
}
|
|
12652
|
+
|
|
12653
|
+
async modifyNodePoolNodeConfigWithOptions(ClusterId: string, NodepoolId: string, request: ModifyNodePoolNodeConfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyNodePoolNodeConfigResponse> {
|
|
12654
|
+
Util.validateModel(request);
|
|
12655
|
+
ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
|
|
12656
|
+
NodepoolId = OpenApiUtil.getEncodeParam(NodepoolId);
|
|
12657
|
+
let body : {[key: string ]: any} = { };
|
|
12658
|
+
if (!Util.isUnset($tea.toMap(request.kubeletConfig))) {
|
|
12659
|
+
body["kubelet_config"] = request.kubeletConfig;
|
|
12660
|
+
}
|
|
12661
|
+
|
|
12662
|
+
if (!Util.isUnset($tea.toMap(request.rollingPolicy))) {
|
|
12663
|
+
body["rolling_policy"] = request.rollingPolicy;
|
|
12664
|
+
}
|
|
12665
|
+
|
|
12666
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
12667
|
+
headers: headers,
|
|
12668
|
+
body: OpenApiUtil.parseToMap(body),
|
|
12669
|
+
});
|
|
12670
|
+
let params = new $OpenApi.Params({
|
|
12671
|
+
action: "ModifyNodePoolNodeConfig",
|
|
12672
|
+
version: "2015-12-15",
|
|
12673
|
+
protocol: "HTTPS",
|
|
12674
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}/node_config`,
|
|
12675
|
+
method: "PUT",
|
|
12676
|
+
authType: "AK",
|
|
12677
|
+
style: "ROA",
|
|
12678
|
+
reqBodyType: "json",
|
|
12679
|
+
bodyType: "json",
|
|
12680
|
+
});
|
|
12681
|
+
return $tea.cast<ModifyNodePoolNodeConfigResponse>(await this.callApi(params, req, runtime), new ModifyNodePoolNodeConfigResponse({}));
|
|
12682
|
+
}
|
|
12683
|
+
|
|
11938
12684
|
async modifyPolicyInstance(clusterId: string, policyName: string, request: ModifyPolicyInstanceRequest): Promise<ModifyPolicyInstanceResponse> {
|
|
11939
12685
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11940
12686
|
let headers : {[key: string ]: string} = { };
|