@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/dist/client.d.ts CHANGED
@@ -2001,7 +2001,15 @@ export declare class DescribePolicyInstancesStatusResponse extends $tea.Model {
2001
2001
  export declare class DescribeTaskInfoResponseBody extends $tea.Model {
2002
2002
  clusterId?: string;
2003
2003
  created?: string;
2004
+ currentStage?: string;
2005
+ error?: DescribeTaskInfoResponseBodyError;
2006
+ events?: DescribeTaskInfoResponseBodyEvents[];
2007
+ parameters?: {
2008
+ [key: string]: any;
2009
+ };
2010
+ stages?: DescribeTaskInfoResponseBodyStages[];
2004
2011
  state?: string;
2012
+ target?: DescribeTaskInfoResponseBodyTarget;
2005
2013
  taskId?: string;
2006
2014
  taskResult?: DescribeTaskInfoResponseBodyTaskResult[];
2007
2015
  taskType?: string;
@@ -2625,7 +2633,6 @@ export declare class ModifyClusterNodePoolRequest extends $tea.Model {
2625
2633
  autoScaling?: ModifyClusterNodePoolRequestAutoScaling;
2626
2634
  kubernetesConfig?: ModifyClusterNodePoolRequestKubernetesConfig;
2627
2635
  management?: ModifyClusterNodePoolRequestManagement;
2628
- nodeConfig?: ModifyClusterNodePoolRequestNodeConfig;
2629
2636
  nodepoolInfo?: ModifyClusterNodePoolRequestNodepoolInfo;
2630
2637
  scalingGroup?: ModifyClusterNodePoolRequestScalingGroup;
2631
2638
  teeConfig?: ModifyClusterNodePoolRequestTeeConfig;
@@ -2696,6 +2703,49 @@ export declare class ModifyClusterTagsResponse extends $tea.Model {
2696
2703
  [key: string]: any;
2697
2704
  });
2698
2705
  }
2706
+ export declare class ModifyNodePoolNodeConfigRequest extends $tea.Model {
2707
+ kubeletConfig?: ModifyNodePoolNodeConfigRequestKubeletConfig;
2708
+ rollingPolicy?: ModifyNodePoolNodeConfigRequestRollingPolicy;
2709
+ static names(): {
2710
+ [key: string]: string;
2711
+ };
2712
+ static types(): {
2713
+ [key: string]: any;
2714
+ };
2715
+ constructor(map?: {
2716
+ [key: string]: any;
2717
+ });
2718
+ }
2719
+ export declare class ModifyNodePoolNodeConfigResponseBody extends $tea.Model {
2720
+ nodepoolId?: string;
2721
+ requestId?: string;
2722
+ taskId?: string;
2723
+ static names(): {
2724
+ [key: string]: string;
2725
+ };
2726
+ static types(): {
2727
+ [key: string]: any;
2728
+ };
2729
+ constructor(map?: {
2730
+ [key: string]: any;
2731
+ });
2732
+ }
2733
+ export declare class ModifyNodePoolNodeConfigResponse extends $tea.Model {
2734
+ headers: {
2735
+ [key: string]: string;
2736
+ };
2737
+ statusCode: number;
2738
+ body: ModifyNodePoolNodeConfigResponseBody;
2739
+ static names(): {
2740
+ [key: string]: string;
2741
+ };
2742
+ static types(): {
2743
+ [key: string]: any;
2744
+ };
2745
+ constructor(map?: {
2746
+ [key: string]: any;
2747
+ });
2748
+ }
2699
2749
  export declare class ModifyPolicyInstanceRequest extends $tea.Model {
2700
2750
  action?: string;
2701
2751
  instanceName?: string;
@@ -4677,6 +4727,67 @@ export declare class DescribePolicyInstancesStatusResponseBodyPolicyInstances ex
4677
4727
  [key: string]: any;
4678
4728
  });
4679
4729
  }
4730
+ export declare class DescribeTaskInfoResponseBodyError extends $tea.Model {
4731
+ code?: string;
4732
+ message?: string;
4733
+ static names(): {
4734
+ [key: string]: string;
4735
+ };
4736
+ static types(): {
4737
+ [key: string]: any;
4738
+ };
4739
+ constructor(map?: {
4740
+ [key: string]: any;
4741
+ });
4742
+ }
4743
+ export declare class DescribeTaskInfoResponseBodyEvents extends $tea.Model {
4744
+ action?: string;
4745
+ level?: string;
4746
+ message?: string;
4747
+ reason?: string;
4748
+ source?: string;
4749
+ timestamp?: string;
4750
+ static names(): {
4751
+ [key: string]: string;
4752
+ };
4753
+ static types(): {
4754
+ [key: string]: any;
4755
+ };
4756
+ constructor(map?: {
4757
+ [key: string]: any;
4758
+ });
4759
+ }
4760
+ export declare class DescribeTaskInfoResponseBodyStages extends $tea.Model {
4761
+ endTime?: string;
4762
+ message?: string;
4763
+ outputs?: {
4764
+ [key: string]: any;
4765
+ };
4766
+ startTime?: string;
4767
+ state?: string;
4768
+ static names(): {
4769
+ [key: string]: string;
4770
+ };
4771
+ static types(): {
4772
+ [key: string]: any;
4773
+ };
4774
+ constructor(map?: {
4775
+ [key: string]: any;
4776
+ });
4777
+ }
4778
+ export declare class DescribeTaskInfoResponseBodyTarget extends $tea.Model {
4779
+ id?: string;
4780
+ type?: string;
4781
+ static names(): {
4782
+ [key: string]: string;
4783
+ };
4784
+ static types(): {
4785
+ [key: string]: any;
4786
+ };
4787
+ constructor(map?: {
4788
+ [key: string]: any;
4789
+ });
4790
+ }
4680
4791
  export declare class DescribeTaskInfoResponseBodyTaskResult extends $tea.Model {
4681
4792
  data?: string;
4682
4793
  status?: string;
@@ -4987,65 +5098,6 @@ export declare class ModifyClusterNodePoolRequestManagement extends $tea.Model {
4987
5098
  [key: string]: any;
4988
5099
  });
4989
5100
  }
4990
- export declare class ModifyClusterNodePoolRequestNodeConfigKubeletConfiguration extends $tea.Model {
4991
- cpuManagerPolicy?: string;
4992
- eventBurst?: number;
4993
- eventRecordQPS?: number;
4994
- evictionHard?: {
4995
- [key: string]: any;
4996
- };
4997
- evictionSoft?: {
4998
- [key: string]: any;
4999
- };
5000
- evictionSoftGracePeriod?: {
5001
- [key: string]: any;
5002
- };
5003
- kubeAPIBurst?: number;
5004
- kubeAPIQPS?: number;
5005
- kubeReserved?: {
5006
- [key: string]: any;
5007
- };
5008
- registryBurst?: number;
5009
- registryPullQPS?: number;
5010
- serializeImagePulls?: boolean;
5011
- systemReserved?: {
5012
- [key: string]: any;
5013
- };
5014
- static names(): {
5015
- [key: string]: string;
5016
- };
5017
- static types(): {
5018
- [key: string]: any;
5019
- };
5020
- constructor(map?: {
5021
- [key: string]: any;
5022
- });
5023
- }
5024
- export declare class ModifyClusterNodePoolRequestNodeConfigRolloutPolicy extends $tea.Model {
5025
- maxUnavailable?: number;
5026
- static names(): {
5027
- [key: string]: string;
5028
- };
5029
- static types(): {
5030
- [key: string]: any;
5031
- };
5032
- constructor(map?: {
5033
- [key: string]: any;
5034
- });
5035
- }
5036
- export declare class ModifyClusterNodePoolRequestNodeConfig extends $tea.Model {
5037
- kubeletConfiguration?: ModifyClusterNodePoolRequestNodeConfigKubeletConfiguration;
5038
- rolloutPolicy?: ModifyClusterNodePoolRequestNodeConfigRolloutPolicy;
5039
- static names(): {
5040
- [key: string]: string;
5041
- };
5042
- static types(): {
5043
- [key: string]: any;
5044
- };
5045
- constructor(map?: {
5046
- [key: string]: any;
5047
- });
5048
- }
5049
5101
  export declare class ModifyClusterNodePoolRequestNodepoolInfo extends $tea.Model {
5050
5102
  name?: string;
5051
5103
  resourceGroupId?: string;
@@ -5124,6 +5176,52 @@ export declare class ModifyClusterNodePoolRequestTeeConfig extends $tea.Model {
5124
5176
  [key: string]: any;
5125
5177
  });
5126
5178
  }
5179
+ export declare class ModifyNodePoolNodeConfigRequestKubeletConfig extends $tea.Model {
5180
+ cpuManagerPolicy?: string;
5181
+ eventBurst?: number;
5182
+ eventRecordQPS?: number;
5183
+ evictionHard?: {
5184
+ [key: string]: any;
5185
+ };
5186
+ evictionSoft?: {
5187
+ [key: string]: any;
5188
+ };
5189
+ evictionSoftGracePeriod?: {
5190
+ [key: string]: any;
5191
+ };
5192
+ kubeAPIBurst?: number;
5193
+ kubeAPIQPS?: number;
5194
+ kubeReserved?: {
5195
+ [key: string]: any;
5196
+ };
5197
+ registryBurst?: number;
5198
+ registryPullQPS?: number;
5199
+ serializeImagePulls?: boolean;
5200
+ systemReserved?: {
5201
+ [key: string]: any;
5202
+ };
5203
+ static names(): {
5204
+ [key: string]: string;
5205
+ };
5206
+ static types(): {
5207
+ [key: string]: any;
5208
+ };
5209
+ constructor(map?: {
5210
+ [key: string]: any;
5211
+ });
5212
+ }
5213
+ export declare class ModifyNodePoolNodeConfigRequestRollingPolicy extends $tea.Model {
5214
+ maxParallelism?: number;
5215
+ static names(): {
5216
+ [key: string]: string;
5217
+ };
5218
+ static types(): {
5219
+ [key: string]: any;
5220
+ };
5221
+ constructor(map?: {
5222
+ [key: string]: any;
5223
+ });
5224
+ }
5127
5225
  export declare class ScaleClusterRequestTags extends $tea.Model {
5128
5226
  key?: string;
5129
5227
  static names(): {
@@ -5511,6 +5609,10 @@ export default class Client extends OpenApi {
5511
5609
  modifyClusterTagsWithOptions(ClusterId: string, request: ModifyClusterTagsRequest, headers: {
5512
5610
  [key: string]: string;
5513
5611
  }, runtime: $Util.RuntimeOptions): Promise<ModifyClusterTagsResponse>;
5612
+ modifyNodePoolNodeConfig(ClusterId: string, NodepoolId: string, request: ModifyNodePoolNodeConfigRequest): Promise<ModifyNodePoolNodeConfigResponse>;
5613
+ modifyNodePoolNodeConfigWithOptions(ClusterId: string, NodepoolId: string, request: ModifyNodePoolNodeConfigRequest, headers: {
5614
+ [key: string]: string;
5615
+ }, runtime: $Util.RuntimeOptions): Promise<ModifyNodePoolNodeConfigResponse>;
5514
5616
  modifyPolicyInstance(clusterId: string, policyName: string, request: ModifyPolicyInstanceRequest): Promise<ModifyPolicyInstanceResponse>;
5515
5617
  modifyPolicyInstanceWithOptions(clusterId: string, policyName: string, request: ModifyPolicyInstanceRequest, headers: {
5516
5618
  [key: string]: string;
package/dist/client.js CHANGED
@@ -2767,7 +2767,13 @@ class DescribeTaskInfoResponseBody extends $tea.Model {
2767
2767
  return {
2768
2768
  clusterId: 'cluster_id',
2769
2769
  created: 'created',
2770
+ currentStage: 'current_stage',
2771
+ error: 'error',
2772
+ events: 'events',
2773
+ parameters: 'parameters',
2774
+ stages: 'stages',
2770
2775
  state: 'state',
2776
+ target: 'target',
2771
2777
  taskId: 'task_id',
2772
2778
  taskResult: 'task_result',
2773
2779
  taskType: 'task_type',
@@ -2778,7 +2784,13 @@ class DescribeTaskInfoResponseBody extends $tea.Model {
2778
2784
  return {
2779
2785
  clusterId: 'string',
2780
2786
  created: 'string',
2787
+ currentStage: 'string',
2788
+ error: DescribeTaskInfoResponseBodyError,
2789
+ events: { 'type': 'array', 'itemType': DescribeTaskInfoResponseBodyEvents },
2790
+ parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
2791
+ stages: { 'type': 'array', 'itemType': DescribeTaskInfoResponseBodyStages },
2781
2792
  state: 'string',
2793
+ target: DescribeTaskInfoResponseBodyTarget,
2782
2794
  taskId: 'string',
2783
2795
  taskResult: { 'type': 'array', 'itemType': DescribeTaskInfoResponseBodyTaskResult },
2784
2796
  taskType: 'string',
@@ -3606,7 +3618,6 @@ class ModifyClusterNodePoolRequest extends $tea.Model {
3606
3618
  autoScaling: 'auto_scaling',
3607
3619
  kubernetesConfig: 'kubernetes_config',
3608
3620
  management: 'management',
3609
- nodeConfig: 'node_config',
3610
3621
  nodepoolInfo: 'nodepool_info',
3611
3622
  scalingGroup: 'scaling_group',
3612
3623
  teeConfig: 'tee_config',
@@ -3618,7 +3629,6 @@ class ModifyClusterNodePoolRequest extends $tea.Model {
3618
3629
  autoScaling: ModifyClusterNodePoolRequestAutoScaling,
3619
3630
  kubernetesConfig: ModifyClusterNodePoolRequestKubernetesConfig,
3620
3631
  management: ModifyClusterNodePoolRequestManagement,
3621
- nodeConfig: ModifyClusterNodePoolRequestNodeConfig,
3622
3632
  nodepoolInfo: ModifyClusterNodePoolRequestNodepoolInfo,
3623
3633
  scalingGroup: ModifyClusterNodePoolRequestScalingGroup,
3624
3634
  teeConfig: ModifyClusterNodePoolRequestTeeConfig,
@@ -3699,6 +3709,64 @@ class ModifyClusterTagsResponse extends $tea.Model {
3699
3709
  }
3700
3710
  }
3701
3711
  exports.ModifyClusterTagsResponse = ModifyClusterTagsResponse;
3712
+ class ModifyNodePoolNodeConfigRequest extends $tea.Model {
3713
+ constructor(map) {
3714
+ super(map);
3715
+ }
3716
+ static names() {
3717
+ return {
3718
+ kubeletConfig: 'kubelet_config',
3719
+ rollingPolicy: 'rolling_policy',
3720
+ };
3721
+ }
3722
+ static types() {
3723
+ return {
3724
+ kubeletConfig: ModifyNodePoolNodeConfigRequestKubeletConfig,
3725
+ rollingPolicy: ModifyNodePoolNodeConfigRequestRollingPolicy,
3726
+ };
3727
+ }
3728
+ }
3729
+ exports.ModifyNodePoolNodeConfigRequest = ModifyNodePoolNodeConfigRequest;
3730
+ class ModifyNodePoolNodeConfigResponseBody extends $tea.Model {
3731
+ constructor(map) {
3732
+ super(map);
3733
+ }
3734
+ static names() {
3735
+ return {
3736
+ nodepoolId: 'nodepool_id',
3737
+ requestId: 'request_id',
3738
+ taskId: 'task_id',
3739
+ };
3740
+ }
3741
+ static types() {
3742
+ return {
3743
+ nodepoolId: 'string',
3744
+ requestId: 'string',
3745
+ taskId: 'string',
3746
+ };
3747
+ }
3748
+ }
3749
+ exports.ModifyNodePoolNodeConfigResponseBody = ModifyNodePoolNodeConfigResponseBody;
3750
+ class ModifyNodePoolNodeConfigResponse extends $tea.Model {
3751
+ constructor(map) {
3752
+ super(map);
3753
+ }
3754
+ static names() {
3755
+ return {
3756
+ headers: 'headers',
3757
+ statusCode: 'statusCode',
3758
+ body: 'body',
3759
+ };
3760
+ }
3761
+ static types() {
3762
+ return {
3763
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3764
+ statusCode: 'number',
3765
+ body: ModifyNodePoolNodeConfigResponseBody,
3766
+ };
3767
+ }
3768
+ }
3769
+ exports.ModifyNodePoolNodeConfigResponse = ModifyNodePoolNodeConfigResponse;
3702
3770
  class ModifyPolicyInstanceRequest extends $tea.Model {
3703
3771
  constructor(map) {
3704
3772
  super(map);
@@ -6613,6 +6681,92 @@ class DescribePolicyInstancesStatusResponseBodyPolicyInstances extends $tea.Mode
6613
6681
  }
6614
6682
  }
6615
6683
  exports.DescribePolicyInstancesStatusResponseBodyPolicyInstances = DescribePolicyInstancesStatusResponseBodyPolicyInstances;
6684
+ class DescribeTaskInfoResponseBodyError extends $tea.Model {
6685
+ constructor(map) {
6686
+ super(map);
6687
+ }
6688
+ static names() {
6689
+ return {
6690
+ code: 'code',
6691
+ message: 'message',
6692
+ };
6693
+ }
6694
+ static types() {
6695
+ return {
6696
+ code: 'string',
6697
+ message: 'string',
6698
+ };
6699
+ }
6700
+ }
6701
+ exports.DescribeTaskInfoResponseBodyError = DescribeTaskInfoResponseBodyError;
6702
+ class DescribeTaskInfoResponseBodyEvents extends $tea.Model {
6703
+ constructor(map) {
6704
+ super(map);
6705
+ }
6706
+ static names() {
6707
+ return {
6708
+ action: 'action',
6709
+ level: 'level',
6710
+ message: 'message',
6711
+ reason: 'reason',
6712
+ source: 'source',
6713
+ timestamp: 'timestamp',
6714
+ };
6715
+ }
6716
+ static types() {
6717
+ return {
6718
+ action: 'string',
6719
+ level: 'string',
6720
+ message: 'string',
6721
+ reason: 'string',
6722
+ source: 'string',
6723
+ timestamp: 'string',
6724
+ };
6725
+ }
6726
+ }
6727
+ exports.DescribeTaskInfoResponseBodyEvents = DescribeTaskInfoResponseBodyEvents;
6728
+ class DescribeTaskInfoResponseBodyStages extends $tea.Model {
6729
+ constructor(map) {
6730
+ super(map);
6731
+ }
6732
+ static names() {
6733
+ return {
6734
+ endTime: 'end_time',
6735
+ message: 'message',
6736
+ outputs: 'outputs',
6737
+ startTime: 'start_time',
6738
+ state: 'state',
6739
+ };
6740
+ }
6741
+ static types() {
6742
+ return {
6743
+ endTime: 'string',
6744
+ message: 'string',
6745
+ outputs: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
6746
+ startTime: 'string',
6747
+ state: 'string',
6748
+ };
6749
+ }
6750
+ }
6751
+ exports.DescribeTaskInfoResponseBodyStages = DescribeTaskInfoResponseBodyStages;
6752
+ class DescribeTaskInfoResponseBodyTarget extends $tea.Model {
6753
+ constructor(map) {
6754
+ super(map);
6755
+ }
6756
+ static names() {
6757
+ return {
6758
+ id: 'id',
6759
+ type: 'type',
6760
+ };
6761
+ }
6762
+ static types() {
6763
+ return {
6764
+ id: 'string',
6765
+ type: 'string',
6766
+ };
6767
+ }
6768
+ }
6769
+ exports.DescribeTaskInfoResponseBodyTarget = DescribeTaskInfoResponseBodyTarget;
6616
6770
  class DescribeTaskInfoResponseBodyTaskResult extends $tea.Model {
6617
6771
  constructor(map) {
6618
6772
  super(map);
@@ -7073,80 +7227,6 @@ class ModifyClusterNodePoolRequestManagement extends $tea.Model {
7073
7227
  }
7074
7228
  }
7075
7229
  exports.ModifyClusterNodePoolRequestManagement = ModifyClusterNodePoolRequestManagement;
7076
- class ModifyClusterNodePoolRequestNodeConfigKubeletConfiguration extends $tea.Model {
7077
- constructor(map) {
7078
- super(map);
7079
- }
7080
- static names() {
7081
- return {
7082
- cpuManagerPolicy: 'cpuManagerPolicy',
7083
- eventBurst: 'eventBurst',
7084
- eventRecordQPS: 'eventRecordQPS',
7085
- evictionHard: 'evictionHard',
7086
- evictionSoft: 'evictionSoft',
7087
- evictionSoftGracePeriod: 'evictionSoftGracePeriod',
7088
- kubeAPIBurst: 'kubeAPIBurst',
7089
- kubeAPIQPS: 'kubeAPIQPS',
7090
- kubeReserved: 'kubeReserved',
7091
- registryBurst: 'registryBurst',
7092
- registryPullQPS: 'registryPullQPS',
7093
- serializeImagePulls: 'serializeImagePulls',
7094
- systemReserved: 'systemReserved',
7095
- };
7096
- }
7097
- static types() {
7098
- return {
7099
- cpuManagerPolicy: 'string',
7100
- eventBurst: 'number',
7101
- eventRecordQPS: 'number',
7102
- evictionHard: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
7103
- evictionSoft: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
7104
- evictionSoftGracePeriod: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
7105
- kubeAPIBurst: 'number',
7106
- kubeAPIQPS: 'number',
7107
- kubeReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
7108
- registryBurst: 'number',
7109
- registryPullQPS: 'number',
7110
- serializeImagePulls: 'boolean',
7111
- systemReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
7112
- };
7113
- }
7114
- }
7115
- exports.ModifyClusterNodePoolRequestNodeConfigKubeletConfiguration = ModifyClusterNodePoolRequestNodeConfigKubeletConfiguration;
7116
- class ModifyClusterNodePoolRequestNodeConfigRolloutPolicy extends $tea.Model {
7117
- constructor(map) {
7118
- super(map);
7119
- }
7120
- static names() {
7121
- return {
7122
- maxUnavailable: 'max_unavailable',
7123
- };
7124
- }
7125
- static types() {
7126
- return {
7127
- maxUnavailable: 'number',
7128
- };
7129
- }
7130
- }
7131
- exports.ModifyClusterNodePoolRequestNodeConfigRolloutPolicy = ModifyClusterNodePoolRequestNodeConfigRolloutPolicy;
7132
- class ModifyClusterNodePoolRequestNodeConfig extends $tea.Model {
7133
- constructor(map) {
7134
- super(map);
7135
- }
7136
- static names() {
7137
- return {
7138
- kubeletConfiguration: 'kubelet_configuration',
7139
- rolloutPolicy: 'rollout_policy',
7140
- };
7141
- }
7142
- static types() {
7143
- return {
7144
- kubeletConfiguration: ModifyClusterNodePoolRequestNodeConfigKubeletConfiguration,
7145
- rolloutPolicy: ModifyClusterNodePoolRequestNodeConfigRolloutPolicy,
7146
- };
7147
- }
7148
- }
7149
- exports.ModifyClusterNodePoolRequestNodeConfig = ModifyClusterNodePoolRequestNodeConfig;
7150
7230
  class ModifyClusterNodePoolRequestNodepoolInfo extends $tea.Model {
7151
7231
  constructor(map) {
7152
7232
  super(map);
@@ -7271,6 +7351,62 @@ class ModifyClusterNodePoolRequestTeeConfig extends $tea.Model {
7271
7351
  }
7272
7352
  }
7273
7353
  exports.ModifyClusterNodePoolRequestTeeConfig = ModifyClusterNodePoolRequestTeeConfig;
7354
+ class ModifyNodePoolNodeConfigRequestKubeletConfig extends $tea.Model {
7355
+ constructor(map) {
7356
+ super(map);
7357
+ }
7358
+ static names() {
7359
+ return {
7360
+ cpuManagerPolicy: 'cpuManagerPolicy',
7361
+ eventBurst: 'eventBurst',
7362
+ eventRecordQPS: 'eventRecordQPS',
7363
+ evictionHard: 'evictionHard',
7364
+ evictionSoft: 'evictionSoft',
7365
+ evictionSoftGracePeriod: 'evictionSoftGracePeriod',
7366
+ kubeAPIBurst: 'kubeAPIBurst',
7367
+ kubeAPIQPS: 'kubeAPIQPS',
7368
+ kubeReserved: 'kubeReserved',
7369
+ registryBurst: 'registryBurst',
7370
+ registryPullQPS: 'registryPullQPS',
7371
+ serializeImagePulls: 'serializeImagePulls',
7372
+ systemReserved: 'systemReserved',
7373
+ };
7374
+ }
7375
+ static types() {
7376
+ return {
7377
+ cpuManagerPolicy: 'string',
7378
+ eventBurst: 'number',
7379
+ eventRecordQPS: 'number',
7380
+ evictionHard: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
7381
+ evictionSoft: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
7382
+ evictionSoftGracePeriod: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
7383
+ kubeAPIBurst: 'number',
7384
+ kubeAPIQPS: 'number',
7385
+ kubeReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
7386
+ registryBurst: 'number',
7387
+ registryPullQPS: 'number',
7388
+ serializeImagePulls: 'boolean',
7389
+ systemReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
7390
+ };
7391
+ }
7392
+ }
7393
+ exports.ModifyNodePoolNodeConfigRequestKubeletConfig = ModifyNodePoolNodeConfigRequestKubeletConfig;
7394
+ class ModifyNodePoolNodeConfigRequestRollingPolicy extends $tea.Model {
7395
+ constructor(map) {
7396
+ super(map);
7397
+ }
7398
+ static names() {
7399
+ return {
7400
+ maxParallelism: 'max_parallelism',
7401
+ };
7402
+ }
7403
+ static types() {
7404
+ return {
7405
+ maxParallelism: 'number',
7406
+ };
7407
+ }
7408
+ }
7409
+ exports.ModifyNodePoolNodeConfigRequestRollingPolicy = ModifyNodePoolNodeConfigRequestRollingPolicy;
7274
7410
  class ScaleClusterRequestTags extends $tea.Model {
7275
7411
  constructor(map) {
7276
7412
  super(map);
@@ -9962,9 +10098,6 @@ class Client extends openapi_client_1.default {
9962
10098
  if (!tea_util_1.default.isUnset($tea.toMap(request.management))) {
9963
10099
  body["management"] = request.management;
9964
10100
  }
9965
- if (!tea_util_1.default.isUnset($tea.toMap(request.nodeConfig))) {
9966
- body["node_config"] = request.nodeConfig;
9967
- }
9968
10101
  if (!tea_util_1.default.isUnset($tea.toMap(request.nodepoolInfo))) {
9969
10102
  body["nodepool_info"] = request.nodepoolInfo;
9970
10103
  }
@@ -10019,6 +10152,39 @@ class Client extends openapi_client_1.default {
10019
10152
  });
10020
10153
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterTagsResponse({}));
10021
10154
  }
10155
+ async modifyNodePoolNodeConfig(ClusterId, NodepoolId, request) {
10156
+ let runtime = new $Util.RuntimeOptions({});
10157
+ let headers = {};
10158
+ return await this.modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime);
10159
+ }
10160
+ async modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
10161
+ tea_util_1.default.validateModel(request);
10162
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10163
+ NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
10164
+ let body = {};
10165
+ if (!tea_util_1.default.isUnset($tea.toMap(request.kubeletConfig))) {
10166
+ body["kubelet_config"] = request.kubeletConfig;
10167
+ }
10168
+ if (!tea_util_1.default.isUnset($tea.toMap(request.rollingPolicy))) {
10169
+ body["rolling_policy"] = request.rollingPolicy;
10170
+ }
10171
+ let req = new $OpenApi.OpenApiRequest({
10172
+ headers: headers,
10173
+ body: openapi_util_1.default.parseToMap(body),
10174
+ });
10175
+ let params = new $OpenApi.Params({
10176
+ action: "ModifyNodePoolNodeConfig",
10177
+ version: "2015-12-15",
10178
+ protocol: "HTTPS",
10179
+ pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}/node_config`,
10180
+ method: "PUT",
10181
+ authType: "AK",
10182
+ style: "ROA",
10183
+ reqBodyType: "json",
10184
+ bodyType: "json",
10185
+ });
10186
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyNodePoolNodeConfigResponse({}));
10187
+ }
10022
10188
  async modifyPolicyInstance(clusterId, policyName, request) {
10023
10189
  let runtime = new $Util.RuntimeOptions({});
10024
10190
  let headers = {};