@alicloud/cs20151215 4.7.7 → 4.7.8

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": "4.7.7",
3
+ "version": "4.7.8",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -356,7 +356,7 @@ export class MaintenanceWindow extends $tea.Model {
356
356
  enable?: boolean;
357
357
  /**
358
358
  * @example
359
- * 03:00:00Z
359
+ * 2020-10-15T12:31:00.000+08:00
360
360
  */
361
361
  maintenanceTime?: string;
362
362
  /**
@@ -2178,6 +2178,7 @@ export class CreateClusterRequest extends $tea.Model {
2178
2178
  * Hello@1234
2179
2179
  */
2180
2180
  loginPassword?: string;
2181
+ maintenanceWindow?: MaintenanceWindow;
2181
2182
  /**
2182
2183
  * @remarks
2183
2184
  * Specifies whether to enable auto-renewal for master nodes. This parameter takes effect only when `master_instance_charge_type` is set to `PrePaid`. Valid values:
@@ -2375,6 +2376,7 @@ export class CreateClusterRequest extends $tea.Model {
2375
2376
  * @deprecated
2376
2377
  */
2377
2378
  numOfNodes?: number;
2379
+ operationPolicy?: CreateClusterRequestOperationPolicy;
2378
2380
  /**
2379
2381
  * @remarks
2380
2382
  * The type of OS. Valid values:
@@ -2852,6 +2854,7 @@ export class CreateClusterRequest extends $tea.Model {
2852
2854
  loadBalancerSpec: 'load_balancer_spec',
2853
2855
  loggingType: 'logging_type',
2854
2856
  loginPassword: 'login_password',
2857
+ maintenanceWindow: 'maintenance_window',
2855
2858
  masterAutoRenew: 'master_auto_renew',
2856
2859
  masterAutoRenewPeriod: 'master_auto_renew_period',
2857
2860
  masterCount: 'master_count',
@@ -2871,6 +2874,7 @@ export class CreateClusterRequest extends $tea.Model {
2871
2874
  nodePortRange: 'node_port_range',
2872
2875
  nodepools: 'nodepools',
2873
2876
  numOfNodes: 'num_of_nodes',
2877
+ operationPolicy: 'operation_policy',
2874
2878
  osType: 'os_type',
2875
2879
  period: 'period',
2876
2880
  periodUnit: 'period_unit',
@@ -2952,6 +2956,7 @@ export class CreateClusterRequest extends $tea.Model {
2952
2956
  loadBalancerSpec: 'string',
2953
2957
  loggingType: 'string',
2954
2958
  loginPassword: 'string',
2959
+ maintenanceWindow: MaintenanceWindow,
2955
2960
  masterAutoRenew: 'boolean',
2956
2961
  masterAutoRenewPeriod: 'number',
2957
2962
  masterCount: 'number',
@@ -2971,6 +2976,7 @@ export class CreateClusterRequest extends $tea.Model {
2971
2976
  nodePortRange: 'string',
2972
2977
  nodepools: { 'type': 'array', 'itemType': Nodepool },
2973
2978
  numOfNodes: 'number',
2979
+ operationPolicy: CreateClusterRequestOperationPolicy,
2974
2980
  osType: 'string',
2975
2981
  period: 'number',
2976
2982
  periodUnit: 'string',
@@ -5878,6 +5884,7 @@ export class DescribeClusterDetailResponseBody extends $tea.Model {
5878
5884
  * 1.18.8-aliyun.1
5879
5885
  */
5880
5886
  nextVersion?: string;
5887
+ operationPolicy?: DescribeClusterDetailResponseBodyOperationPolicy;
5881
5888
  /**
5882
5889
  * @remarks
5883
5890
  * The ROS parameters of the cluster.
@@ -6029,6 +6036,7 @@ export class DescribeClusterDetailResponseBody extends $tea.Model {
6029
6036
  name: 'name',
6030
6037
  networkMode: 'network_mode',
6031
6038
  nextVersion: 'next_version',
6039
+ operationPolicy: 'operation_policy',
6032
6040
  parameters: 'parameters',
6033
6041
  privateZone: 'private_zone',
6034
6042
  profile: 'profile',
@@ -6064,6 +6072,7 @@ export class DescribeClusterDetailResponseBody extends $tea.Model {
6064
6072
  name: 'string',
6065
6073
  networkMode: 'string',
6066
6074
  nextVersion: 'string',
6075
+ operationPolicy: DescribeClusterDetailResponseBodyOperationPolicy,
6067
6076
  parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6068
6077
  privateZone: 'boolean',
6069
6078
  profile: 'string',
@@ -15916,6 +15925,47 @@ export class CheckServiceRoleResponseBodyRoles extends $tea.Model {
15916
15925
  }
15917
15926
  }
15918
15927
 
15928
+ export class CreateClusterRequestOperationPolicyClusterAutoUpgrade extends $tea.Model {
15929
+ channel?: string;
15930
+ enabled?: boolean;
15931
+ static names(): { [key: string]: string } {
15932
+ return {
15933
+ channel: 'channel',
15934
+ enabled: 'enabled',
15935
+ };
15936
+ }
15937
+
15938
+ static types(): { [key: string]: any } {
15939
+ return {
15940
+ channel: 'string',
15941
+ enabled: 'boolean',
15942
+ };
15943
+ }
15944
+
15945
+ constructor(map?: { [key: string]: any }) {
15946
+ super(map);
15947
+ }
15948
+ }
15949
+
15950
+ export class CreateClusterRequestOperationPolicy extends $tea.Model {
15951
+ clusterAutoUpgrade?: CreateClusterRequestOperationPolicyClusterAutoUpgrade;
15952
+ static names(): { [key: string]: string } {
15953
+ return {
15954
+ clusterAutoUpgrade: 'cluster_auto_upgrade',
15955
+ };
15956
+ }
15957
+
15958
+ static types(): { [key: string]: any } {
15959
+ return {
15960
+ clusterAutoUpgrade: CreateClusterRequestOperationPolicyClusterAutoUpgrade,
15961
+ };
15962
+ }
15963
+
15964
+ constructor(map?: { [key: string]: any }) {
15965
+ super(map);
15966
+ }
15967
+ }
15968
+
15919
15969
  export class CreateClusterRequestWorkerDataDisks extends $tea.Model {
15920
15970
  /**
15921
15971
  * @remarks
@@ -17627,6 +17677,47 @@ export class DescribeAddonsResponseBodyComponentGroups extends $tea.Model {
17627
17677
  }
17628
17678
  }
17629
17679
 
17680
+ export class DescribeClusterDetailResponseBodyOperationPolicyClusterAutoUpgrade extends $tea.Model {
17681
+ channel?: string;
17682
+ enabled?: boolean;
17683
+ static names(): { [key: string]: string } {
17684
+ return {
17685
+ channel: 'channel',
17686
+ enabled: 'enabled',
17687
+ };
17688
+ }
17689
+
17690
+ static types(): { [key: string]: any } {
17691
+ return {
17692
+ channel: 'string',
17693
+ enabled: 'boolean',
17694
+ };
17695
+ }
17696
+
17697
+ constructor(map?: { [key: string]: any }) {
17698
+ super(map);
17699
+ }
17700
+ }
17701
+
17702
+ export class DescribeClusterDetailResponseBodyOperationPolicy extends $tea.Model {
17703
+ clusterAutoUpgrade?: DescribeClusterDetailResponseBodyOperationPolicyClusterAutoUpgrade;
17704
+ static names(): { [key: string]: string } {
17705
+ return {
17706
+ clusterAutoUpgrade: 'cluster_auto_upgrade',
17707
+ };
17708
+ }
17709
+
17710
+ static types(): { [key: string]: any } {
17711
+ return {
17712
+ clusterAutoUpgrade: DescribeClusterDetailResponseBodyOperationPolicyClusterAutoUpgrade,
17713
+ };
17714
+ }
17715
+
17716
+ constructor(map?: { [key: string]: any }) {
17717
+ super(map);
17718
+ }
17719
+ }
17720
+
17630
17721
  export class DescribeClusterEventsResponseBodyEventsData extends $tea.Model {
17631
17722
  /**
17632
17723
  * @remarks
@@ -21714,6 +21805,47 @@ export class DescribeClustersResponseBody extends $tea.Model {
21714
21805
  }
21715
21806
  }
21716
21807
 
21808
+ export class DescribeClustersV1ResponseBodyClustersOperationPolicyClusterAutoUpgrade extends $tea.Model {
21809
+ channel?: string;
21810
+ enabled?: boolean;
21811
+ static names(): { [key: string]: string } {
21812
+ return {
21813
+ channel: 'channel',
21814
+ enabled: 'enabled',
21815
+ };
21816
+ }
21817
+
21818
+ static types(): { [key: string]: any } {
21819
+ return {
21820
+ channel: 'string',
21821
+ enabled: 'boolean',
21822
+ };
21823
+ }
21824
+
21825
+ constructor(map?: { [key: string]: any }) {
21826
+ super(map);
21827
+ }
21828
+ }
21829
+
21830
+ export class DescribeClustersV1ResponseBodyClustersOperationPolicy extends $tea.Model {
21831
+ clusterAutoUpgrade?: DescribeClustersV1ResponseBodyClustersOperationPolicyClusterAutoUpgrade;
21832
+ static names(): { [key: string]: string } {
21833
+ return {
21834
+ clusterAutoUpgrade: 'cluster_auto_upgrade',
21835
+ };
21836
+ }
21837
+
21838
+ static types(): { [key: string]: any } {
21839
+ return {
21840
+ clusterAutoUpgrade: DescribeClustersV1ResponseBodyClustersOperationPolicyClusterAutoUpgrade,
21841
+ };
21842
+ }
21843
+
21844
+ constructor(map?: { [key: string]: any }) {
21845
+ super(map);
21846
+ }
21847
+ }
21848
+
21717
21849
  export class DescribeClustersV1ResponseBodyClusters extends $tea.Model {
21718
21850
  /**
21719
21851
  * @remarks
@@ -21851,6 +21983,7 @@ export class DescribeClustersV1ResponseBodyClusters extends $tea.Model {
21851
21983
  * 1.18.8-aliyun.1
21852
21984
  */
21853
21985
  nextVersion?: string;
21986
+ operationPolicy?: DescribeClustersV1ResponseBodyClustersOperationPolicy;
21854
21987
  /**
21855
21988
  * @remarks
21856
21989
  * Indicates whether Alibaba Cloud DNS PrivateZone is enabled. Valid values:
@@ -22004,6 +22137,7 @@ export class DescribeClustersV1ResponseBodyClusters extends $tea.Model {
22004
22137
  name: 'name',
22005
22138
  networkMode: 'network_mode',
22006
22139
  nextVersion: 'next_version',
22140
+ operationPolicy: 'operation_policy',
22007
22141
  privateZone: 'private_zone',
22008
22142
  profile: 'profile',
22009
22143
  regionId: 'region_id',
@@ -22038,6 +22172,7 @@ export class DescribeClustersV1ResponseBodyClusters extends $tea.Model {
22038
22172
  name: 'string',
22039
22173
  networkMode: 'string',
22040
22174
  nextVersion: 'string',
22175
+ operationPolicy: DescribeClustersV1ResponseBodyClustersOperationPolicy,
22041
22176
  privateZone: 'boolean',
22042
22177
  profile: 'string',
22043
22178
  regionId: 'string',
@@ -28200,6 +28335,10 @@ export default class Client extends OpenApi {
28200
28335
  body["login_password"] = request.loginPassword;
28201
28336
  }
28202
28337
 
28338
+ if (!Util.isUnset(request.maintenanceWindow)) {
28339
+ body["maintenance_window"] = request.maintenanceWindow;
28340
+ }
28341
+
28203
28342
  if (!Util.isUnset(request.masterAutoRenew)) {
28204
28343
  body["master_auto_renew"] = request.masterAutoRenew;
28205
28344
  }
@@ -28276,6 +28415,10 @@ export default class Client extends OpenApi {
28276
28415
  body["num_of_nodes"] = request.numOfNodes;
28277
28416
  }
28278
28417
 
28418
+ if (!Util.isUnset(request.operationPolicy)) {
28419
+ body["operation_policy"] = request.operationPolicy;
28420
+ }
28421
+
28279
28422
  if (!Util.isUnset(request.osType)) {
28280
28423
  body["os_type"] = request.osType;
28281
28424
  }