@alicloud/cs20151215 3.0.14 → 3.0.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/cs20151215",
3
- "version": "3.0.14",
3
+ "version": "3.0.15",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -3496,7 +3496,13 @@ export class DescribePolicyInstancesStatusResponse extends $tea.Model {
3496
3496
  export class DescribeTaskInfoResponseBody extends $tea.Model {
3497
3497
  clusterId?: string;
3498
3498
  created?: string;
3499
+ currentStage?: string;
3500
+ error?: DescribeTaskInfoResponseBodyError;
3501
+ events?: DescribeTaskInfoResponseBodyEvents[];
3502
+ parameters?: { [key: string]: any };
3503
+ stages?: DescribeTaskInfoResponseBodyStages[];
3499
3504
  state?: string;
3505
+ target?: DescribeTaskInfoResponseBodyTarget;
3500
3506
  taskId?: string;
3501
3507
  taskResult?: DescribeTaskInfoResponseBodyTaskResult[];
3502
3508
  taskType?: string;
@@ -3505,7 +3511,13 @@ export class DescribeTaskInfoResponseBody extends $tea.Model {
3505
3511
  return {
3506
3512
  clusterId: 'cluster_id',
3507
3513
  created: 'created',
3514
+ currentStage: 'current_stage',
3515
+ error: 'error',
3516
+ events: 'events',
3517
+ parameters: 'parameters',
3518
+ stages: 'stages',
3508
3519
  state: 'state',
3520
+ target: 'target',
3509
3521
  taskId: 'task_id',
3510
3522
  taskResult: 'task_result',
3511
3523
  taskType: 'task_type',
@@ -3517,7 +3529,13 @@ export class DescribeTaskInfoResponseBody extends $tea.Model {
3517
3529
  return {
3518
3530
  clusterId: 'string',
3519
3531
  created: 'string',
3532
+ currentStage: 'string',
3533
+ error: DescribeTaskInfoResponseBodyError,
3534
+ events: { 'type': 'array', 'itemType': DescribeTaskInfoResponseBodyEvents },
3535
+ parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
3536
+ stages: { 'type': 'array', 'itemType': DescribeTaskInfoResponseBodyStages },
3520
3537
  state: 'string',
3538
+ target: DescribeTaskInfoResponseBodyTarget,
3521
3539
  taskId: 'string',
3522
3540
  taskResult: { 'type': 'array', 'itemType': DescribeTaskInfoResponseBodyTaskResult },
3523
3541
  taskType: 'string',
@@ -4544,7 +4562,6 @@ export class ModifyClusterNodePoolRequest extends $tea.Model {
4544
4562
  autoScaling?: ModifyClusterNodePoolRequestAutoScaling;
4545
4563
  kubernetesConfig?: ModifyClusterNodePoolRequestKubernetesConfig;
4546
4564
  management?: ModifyClusterNodePoolRequestManagement;
4547
- nodeConfig?: ModifyClusterNodePoolRequestNodeConfig;
4548
4565
  nodepoolInfo?: ModifyClusterNodePoolRequestNodepoolInfo;
4549
4566
  scalingGroup?: ModifyClusterNodePoolRequestScalingGroup;
4550
4567
  teeConfig?: ModifyClusterNodePoolRequestTeeConfig;
@@ -4554,7 +4571,6 @@ export class ModifyClusterNodePoolRequest extends $tea.Model {
4554
4571
  autoScaling: 'auto_scaling',
4555
4572
  kubernetesConfig: 'kubernetes_config',
4556
4573
  management: 'management',
4557
- nodeConfig: 'node_config',
4558
4574
  nodepoolInfo: 'nodepool_info',
4559
4575
  scalingGroup: 'scaling_group',
4560
4576
  teeConfig: 'tee_config',
@@ -4567,7 +4583,6 @@ export class ModifyClusterNodePoolRequest extends $tea.Model {
4567
4583
  autoScaling: ModifyClusterNodePoolRequestAutoScaling,
4568
4584
  kubernetesConfig: ModifyClusterNodePoolRequestKubernetesConfig,
4569
4585
  management: ModifyClusterNodePoolRequestManagement,
4570
- nodeConfig: ModifyClusterNodePoolRequestNodeConfig,
4571
4586
  nodepoolInfo: ModifyClusterNodePoolRequestNodepoolInfo,
4572
4587
  scalingGroup: ModifyClusterNodePoolRequestScalingGroup,
4573
4588
  teeConfig: ModifyClusterNodePoolRequestTeeConfig,
@@ -4668,6 +4683,78 @@ export class ModifyClusterTagsResponse extends $tea.Model {
4668
4683
  }
4669
4684
  }
4670
4685
 
4686
+ export class ModifyNodePoolNodeConfigRequest extends $tea.Model {
4687
+ kubeletConfig?: ModifyNodePoolNodeConfigRequestKubeletConfig;
4688
+ rollingPolicy?: ModifyNodePoolNodeConfigRequestRollingPolicy;
4689
+ static names(): { [key: string]: string } {
4690
+ return {
4691
+ kubeletConfig: 'kubelet_config',
4692
+ rollingPolicy: 'rolling_policy',
4693
+ };
4694
+ }
4695
+
4696
+ static types(): { [key: string]: any } {
4697
+ return {
4698
+ kubeletConfig: ModifyNodePoolNodeConfigRequestKubeletConfig,
4699
+ rollingPolicy: ModifyNodePoolNodeConfigRequestRollingPolicy,
4700
+ };
4701
+ }
4702
+
4703
+ constructor(map?: { [key: string]: any }) {
4704
+ super(map);
4705
+ }
4706
+ }
4707
+
4708
+ export class ModifyNodePoolNodeConfigResponseBody extends $tea.Model {
4709
+ nodepoolId?: string;
4710
+ requestId?: string;
4711
+ taskId?: string;
4712
+ static names(): { [key: string]: string } {
4713
+ return {
4714
+ nodepoolId: 'nodepool_id',
4715
+ requestId: 'request_id',
4716
+ taskId: 'task_id',
4717
+ };
4718
+ }
4719
+
4720
+ static types(): { [key: string]: any } {
4721
+ return {
4722
+ nodepoolId: 'string',
4723
+ requestId: 'string',
4724
+ taskId: 'string',
4725
+ };
4726
+ }
4727
+
4728
+ constructor(map?: { [key: string]: any }) {
4729
+ super(map);
4730
+ }
4731
+ }
4732
+
4733
+ export class ModifyNodePoolNodeConfigResponse extends $tea.Model {
4734
+ headers: { [key: string]: string };
4735
+ statusCode: number;
4736
+ body: ModifyNodePoolNodeConfigResponseBody;
4737
+ static names(): { [key: string]: string } {
4738
+ return {
4739
+ headers: 'headers',
4740
+ statusCode: 'statusCode',
4741
+ body: 'body',
4742
+ };
4743
+ }
4744
+
4745
+ static types(): { [key: string]: any } {
4746
+ return {
4747
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4748
+ statusCode: 'number',
4749
+ body: ModifyNodePoolNodeConfigResponseBody,
4750
+ };
4751
+ }
4752
+
4753
+ constructor(map?: { [key: string]: any }) {
4754
+ super(map);
4755
+ }
4756
+ }
4757
+
4671
4758
  export class ModifyPolicyInstanceRequest extends $tea.Model {
4672
4759
  action?: string;
4673
4760
  instanceName?: string;
@@ -8449,6 +8536,115 @@ export class DescribePolicyInstancesStatusResponseBodyPolicyInstances extends $t
8449
8536
  }
8450
8537
  }
8451
8538
 
8539
+ export class DescribeTaskInfoResponseBodyError extends $tea.Model {
8540
+ code?: string;
8541
+ message?: string;
8542
+ static names(): { [key: string]: string } {
8543
+ return {
8544
+ code: 'code',
8545
+ message: 'message',
8546
+ };
8547
+ }
8548
+
8549
+ static types(): { [key: string]: any } {
8550
+ return {
8551
+ code: 'string',
8552
+ message: 'string',
8553
+ };
8554
+ }
8555
+
8556
+ constructor(map?: { [key: string]: any }) {
8557
+ super(map);
8558
+ }
8559
+ }
8560
+
8561
+ export class DescribeTaskInfoResponseBodyEvents extends $tea.Model {
8562
+ action?: string;
8563
+ level?: string;
8564
+ message?: string;
8565
+ reason?: string;
8566
+ source?: string;
8567
+ timestamp?: string;
8568
+ static names(): { [key: string]: string } {
8569
+ return {
8570
+ action: 'action',
8571
+ level: 'level',
8572
+ message: 'message',
8573
+ reason: 'reason',
8574
+ source: 'source',
8575
+ timestamp: 'timestamp',
8576
+ };
8577
+ }
8578
+
8579
+ static types(): { [key: string]: any } {
8580
+ return {
8581
+ action: 'string',
8582
+ level: 'string',
8583
+ message: 'string',
8584
+ reason: 'string',
8585
+ source: 'string',
8586
+ timestamp: 'string',
8587
+ };
8588
+ }
8589
+
8590
+ constructor(map?: { [key: string]: any }) {
8591
+ super(map);
8592
+ }
8593
+ }
8594
+
8595
+ export class DescribeTaskInfoResponseBodyStages extends $tea.Model {
8596
+ endTime?: string;
8597
+ message?: string;
8598
+ outputs?: { [key: string]: any };
8599
+ startTime?: string;
8600
+ state?: string;
8601
+ static names(): { [key: string]: string } {
8602
+ return {
8603
+ endTime: 'end_time',
8604
+ message: 'message',
8605
+ outputs: 'outputs',
8606
+ startTime: 'start_time',
8607
+ state: 'state',
8608
+ };
8609
+ }
8610
+
8611
+ static types(): { [key: string]: any } {
8612
+ return {
8613
+ endTime: 'string',
8614
+ message: 'string',
8615
+ outputs: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
8616
+ startTime: 'string',
8617
+ state: 'string',
8618
+ };
8619
+ }
8620
+
8621
+ constructor(map?: { [key: string]: any }) {
8622
+ super(map);
8623
+ }
8624
+ }
8625
+
8626
+ export class DescribeTaskInfoResponseBodyTarget extends $tea.Model {
8627
+ id?: string;
8628
+ type?: string;
8629
+ static names(): { [key: string]: string } {
8630
+ return {
8631
+ id: 'id',
8632
+ type: 'type',
8633
+ };
8634
+ }
8635
+
8636
+ static types(): { [key: string]: any } {
8637
+ return {
8638
+ id: 'string',
8639
+ type: 'string',
8640
+ };
8641
+ }
8642
+
8643
+ constructor(map?: { [key: string]: any }) {
8644
+ super(map);
8645
+ }
8646
+ }
8647
+
8452
8648
  export class DescribeTaskInfoResponseBodyTaskResult extends $tea.Model {
8453
8649
  data?: string;
8454
8650
  status?: string;
@@ -9039,102 +9235,6 @@ export class ModifyClusterNodePoolRequestManagement extends $tea.Model {
9039
9235
  }
9040
9236
  }
9041
9237
 
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
-
9138
9238
  export class ModifyClusterNodePoolRequestNodepoolInfo extends $tea.Model {
9139
9239
  name?: string;
9140
9240
  resourceGroupId?: string;
@@ -9301,6 +9401,80 @@ export class ModifyClusterNodePoolRequestTeeConfig extends $tea.Model {
9301
9401
  }
9302
9402
  }
9303
9403
 
9404
+ export class ModifyNodePoolNodeConfigRequestKubeletConfig extends $tea.Model {
9405
+ cpuManagerPolicy?: string;
9406
+ eventBurst?: number;
9407
+ eventRecordQPS?: number;
9408
+ evictionHard?: { [key: string]: any };
9409
+ evictionSoft?: { [key: string]: any };
9410
+ evictionSoftGracePeriod?: { [key: string]: any };
9411
+ kubeAPIBurst?: number;
9412
+ kubeAPIQPS?: number;
9413
+ kubeReserved?: { [key: string]: any };
9414
+ registryBurst?: number;
9415
+ registryPullQPS?: number;
9416
+ serializeImagePulls?: boolean;
9417
+ systemReserved?: { [key: string]: any };
9418
+ static names(): { [key: string]: string } {
9419
+ return {
9420
+ cpuManagerPolicy: 'cpuManagerPolicy',
9421
+ eventBurst: 'eventBurst',
9422
+ eventRecordQPS: 'eventRecordQPS',
9423
+ evictionHard: 'evictionHard',
9424
+ evictionSoft: 'evictionSoft',
9425
+ evictionSoftGracePeriod: 'evictionSoftGracePeriod',
9426
+ kubeAPIBurst: 'kubeAPIBurst',
9427
+ kubeAPIQPS: 'kubeAPIQPS',
9428
+ kubeReserved: 'kubeReserved',
9429
+ registryBurst: 'registryBurst',
9430
+ registryPullQPS: 'registryPullQPS',
9431
+ serializeImagePulls: 'serializeImagePulls',
9432
+ systemReserved: 'systemReserved',
9433
+ };
9434
+ }
9435
+
9436
+ static types(): { [key: string]: any } {
9437
+ return {
9438
+ cpuManagerPolicy: 'string',
9439
+ eventBurst: 'number',
9440
+ eventRecordQPS: 'number',
9441
+ evictionHard: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
9442
+ evictionSoft: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
9443
+ evictionSoftGracePeriod: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
9444
+ kubeAPIBurst: 'number',
9445
+ kubeAPIQPS: 'number',
9446
+ kubeReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
9447
+ registryBurst: 'number',
9448
+ registryPullQPS: 'number',
9449
+ serializeImagePulls: 'boolean',
9450
+ systemReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
9451
+ };
9452
+ }
9453
+
9454
+ constructor(map?: { [key: string]: any }) {
9455
+ super(map);
9456
+ }
9457
+ }
9458
+
9459
+ export class ModifyNodePoolNodeConfigRequestRollingPolicy extends $tea.Model {
9460
+ maxParallelism?: number;
9461
+ static names(): { [key: string]: string } {
9462
+ return {
9463
+ maxParallelism: 'max_parallelism',
9464
+ };
9465
+ }
9466
+
9467
+ static types(): { [key: string]: any } {
9468
+ return {
9469
+ maxParallelism: 'number',
9470
+ };
9471
+ }
9472
+
9473
+ constructor(map?: { [key: string]: any }) {
9474
+ super(map);
9475
+ }
9476
+ }
9477
+
9304
9478
  export class ScaleClusterRequestTags extends $tea.Model {
9305
9479
  key?: string;
9306
9480
  static names(): { [key: string]: string } {
@@ -12410,10 +12584,6 @@ export default class Client extends OpenApi {
12410
12584
  body["management"] = request.management;
12411
12585
  }
12412
12586
 
12413
- if (!Util.isUnset($tea.toMap(request.nodeConfig))) {
12414
- body["node_config"] = request.nodeConfig;
12415
- }
12416
-
12417
12587
  if (!Util.isUnset($tea.toMap(request.nodepoolInfo))) {
12418
12588
  body["nodepool_info"] = request.nodepoolInfo;
12419
12589
  }
@@ -12475,6 +12645,43 @@ export default class Client extends OpenApi {
12475
12645
  return $tea.cast<ModifyClusterTagsResponse>(await this.callApi(params, req, runtime), new ModifyClusterTagsResponse({}));
12476
12646
  }
12477
12647
 
12648
+ async modifyNodePoolNodeConfig(ClusterId: string, NodepoolId: string, request: ModifyNodePoolNodeConfigRequest): Promise<ModifyNodePoolNodeConfigResponse> {
12649
+ let runtime = new $Util.RuntimeOptions({ });
12650
+ let headers : {[key: string ]: string} = { };
12651
+ return await this.modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime);
12652
+ }
12653
+
12654
+ async modifyNodePoolNodeConfigWithOptions(ClusterId: string, NodepoolId: string, request: ModifyNodePoolNodeConfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyNodePoolNodeConfigResponse> {
12655
+ Util.validateModel(request);
12656
+ ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
12657
+ NodepoolId = OpenApiUtil.getEncodeParam(NodepoolId);
12658
+ let body : {[key: string ]: any} = { };
12659
+ if (!Util.isUnset($tea.toMap(request.kubeletConfig))) {
12660
+ body["kubelet_config"] = request.kubeletConfig;
12661
+ }
12662
+
12663
+ if (!Util.isUnset($tea.toMap(request.rollingPolicy))) {
12664
+ body["rolling_policy"] = request.rollingPolicy;
12665
+ }
12666
+
12667
+ let req = new $OpenApi.OpenApiRequest({
12668
+ headers: headers,
12669
+ body: OpenApiUtil.parseToMap(body),
12670
+ });
12671
+ let params = new $OpenApi.Params({
12672
+ action: "ModifyNodePoolNodeConfig",
12673
+ version: "2015-12-15",
12674
+ protocol: "HTTPS",
12675
+ pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}/node_config`,
12676
+ method: "PUT",
12677
+ authType: "AK",
12678
+ style: "ROA",
12679
+ reqBodyType: "json",
12680
+ bodyType: "json",
12681
+ });
12682
+ return $tea.cast<ModifyNodePoolNodeConfigResponse>(await this.callApi(params, req, runtime), new ModifyNodePoolNodeConfigResponse({}));
12683
+ }
12684
+
12478
12685
  async modifyPolicyInstance(clusterId: string, policyName: string, request: ModifyPolicyInstanceRequest): Promise<ModifyPolicyInstanceResponse> {
12479
12686
  let runtime = new $Util.RuntimeOptions({ });
12480
12687
  let headers : {[key: string ]: string} = { };