@alicloud/cs20151215 4.8.0 → 4.8.1
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 +197 -0
- package/dist/client.js +201 -5
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +368 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -1836,6 +1836,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
1836
1836
|
*
|
|
1837
1837
|
* @example
|
|
1838
1838
|
* true
|
|
1839
|
+
*
|
|
1840
|
+
* @deprecated
|
|
1839
1841
|
*/
|
|
1840
1842
|
cloudMonitorFlags?: boolean;
|
|
1841
1843
|
/**
|
|
@@ -1883,6 +1885,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
1883
1885
|
* 172.20.0.0/16
|
|
1884
1886
|
*/
|
|
1885
1887
|
containerCidr?: string;
|
|
1888
|
+
controlPlaneConfig?: CreateClusterRequestControlPlaneConfig;
|
|
1886
1889
|
/**
|
|
1887
1890
|
* @remarks
|
|
1888
1891
|
* The control plane component for which you want to enable log collection.
|
|
@@ -1917,6 +1920,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
1917
1920
|
*
|
|
1918
1921
|
* @example
|
|
1919
1922
|
* none
|
|
1923
|
+
*
|
|
1924
|
+
* @deprecated
|
|
1920
1925
|
*/
|
|
1921
1926
|
cpuPolicy?: string;
|
|
1922
1927
|
/**
|
|
@@ -2002,6 +2007,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2002
2007
|
*
|
|
2003
2008
|
* @example
|
|
2004
2009
|
* false
|
|
2010
|
+
*
|
|
2011
|
+
* @deprecated
|
|
2005
2012
|
*/
|
|
2006
2013
|
formatDisk?: boolean;
|
|
2007
2014
|
/**
|
|
@@ -2010,6 +2017,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2010
2017
|
*
|
|
2011
2018
|
* @example
|
|
2012
2019
|
* m-bp16z7xko3vvv8gt****
|
|
2020
|
+
*
|
|
2021
|
+
* @deprecated
|
|
2013
2022
|
*/
|
|
2014
2023
|
imageId?: string;
|
|
2015
2024
|
/**
|
|
@@ -2030,6 +2039,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2030
2039
|
*
|
|
2031
2040
|
* @example
|
|
2032
2041
|
* AliyunLinux
|
|
2042
|
+
*
|
|
2043
|
+
* @deprecated
|
|
2033
2044
|
*/
|
|
2034
2045
|
imageType?: string;
|
|
2035
2046
|
/**
|
|
@@ -2037,6 +2048,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2037
2048
|
* The existing Elastic Compute Service (ECS) instances that are specified as worker nodes for the cluster.
|
|
2038
2049
|
*
|
|
2039
2050
|
* > This parameter is required if you create worker nodes on existing ECS instances.
|
|
2051
|
+
*
|
|
2052
|
+
* @deprecated
|
|
2040
2053
|
*/
|
|
2041
2054
|
instances?: string[];
|
|
2042
2055
|
/**
|
|
@@ -2074,6 +2087,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2074
2087
|
*
|
|
2075
2088
|
* @example
|
|
2076
2089
|
* true
|
|
2090
|
+
*
|
|
2091
|
+
* @deprecated
|
|
2077
2092
|
*/
|
|
2078
2093
|
keepInstanceName?: boolean;
|
|
2079
2094
|
/**
|
|
@@ -2082,6 +2097,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2082
2097
|
*
|
|
2083
2098
|
* @example
|
|
2084
2099
|
* secrity-key
|
|
2100
|
+
*
|
|
2101
|
+
* @deprecated
|
|
2085
2102
|
*/
|
|
2086
2103
|
keyPair?: string;
|
|
2087
2104
|
/**
|
|
@@ -2117,6 +2134,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2117
2134
|
*
|
|
2118
2135
|
* @example
|
|
2119
2136
|
* slb.s2.small
|
|
2137
|
+
*
|
|
2138
|
+
* @deprecated
|
|
2120
2139
|
*/
|
|
2121
2140
|
loadBalancerSpec?: string;
|
|
2122
2141
|
/**
|
|
@@ -2133,6 +2152,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2133
2152
|
*
|
|
2134
2153
|
* @example
|
|
2135
2154
|
* Hello@1234
|
|
2155
|
+
*
|
|
2156
|
+
* @deprecated
|
|
2136
2157
|
*/
|
|
2137
2158
|
loginPassword?: string;
|
|
2138
2159
|
/**
|
|
@@ -2151,6 +2172,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2151
2172
|
*
|
|
2152
2173
|
* @example
|
|
2153
2174
|
* true
|
|
2175
|
+
*
|
|
2176
|
+
* @deprecated
|
|
2154
2177
|
*/
|
|
2155
2178
|
masterAutoRenew?: boolean;
|
|
2156
2179
|
/**
|
|
@@ -2163,6 +2186,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2163
2186
|
*
|
|
2164
2187
|
* @example
|
|
2165
2188
|
* 1
|
|
2189
|
+
*
|
|
2190
|
+
* @deprecated
|
|
2166
2191
|
*/
|
|
2167
2192
|
masterAutoRenewPeriod?: number;
|
|
2168
2193
|
/**
|
|
@@ -2173,6 +2198,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2173
2198
|
*
|
|
2174
2199
|
* @example
|
|
2175
2200
|
* 3
|
|
2201
|
+
*
|
|
2202
|
+
* @deprecated
|
|
2176
2203
|
*/
|
|
2177
2204
|
masterCount?: number;
|
|
2178
2205
|
/**
|
|
@@ -2186,11 +2213,15 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2186
2213
|
*
|
|
2187
2214
|
* @example
|
|
2188
2215
|
* PrePaid
|
|
2216
|
+
*
|
|
2217
|
+
* @deprecated
|
|
2189
2218
|
*/
|
|
2190
2219
|
masterInstanceChargeType?: string;
|
|
2191
2220
|
/**
|
|
2192
2221
|
* @remarks
|
|
2193
2222
|
* The instance types of master nodes. For more information, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html).
|
|
2223
|
+
*
|
|
2224
|
+
* @deprecated
|
|
2194
2225
|
*/
|
|
2195
2226
|
masterInstanceTypes?: string[];
|
|
2196
2227
|
/**
|
|
@@ -2203,6 +2234,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2203
2234
|
*
|
|
2204
2235
|
* @example
|
|
2205
2236
|
* 1
|
|
2237
|
+
*
|
|
2238
|
+
* @deprecated
|
|
2206
2239
|
*/
|
|
2207
2240
|
masterPeriod?: number;
|
|
2208
2241
|
/**
|
|
@@ -2213,6 +2246,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2213
2246
|
*
|
|
2214
2247
|
* @example
|
|
2215
2248
|
* Month
|
|
2249
|
+
*
|
|
2250
|
+
* @deprecated
|
|
2216
2251
|
*/
|
|
2217
2252
|
masterPeriodUnit?: string;
|
|
2218
2253
|
/**
|
|
@@ -2227,6 +2262,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2227
2262
|
*
|
|
2228
2263
|
* @example
|
|
2229
2264
|
* cloud_ssd
|
|
2265
|
+
*
|
|
2266
|
+
* @deprecated
|
|
2230
2267
|
*/
|
|
2231
2268
|
masterSystemDiskCategory?: string;
|
|
2232
2269
|
/**
|
|
@@ -2235,6 +2272,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2235
2272
|
*
|
|
2236
2273
|
* @example
|
|
2237
2274
|
* PL1
|
|
2275
|
+
*
|
|
2276
|
+
* @deprecated
|
|
2238
2277
|
*/
|
|
2239
2278
|
masterSystemDiskPerformanceLevel?: string;
|
|
2240
2279
|
/**
|
|
@@ -2245,6 +2284,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2245
2284
|
*
|
|
2246
2285
|
* @example
|
|
2247
2286
|
* 120
|
|
2287
|
+
*
|
|
2288
|
+
* @deprecated
|
|
2248
2289
|
*/
|
|
2249
2290
|
masterSystemDiskSize?: number;
|
|
2250
2291
|
/**
|
|
@@ -2253,6 +2294,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2253
2294
|
*
|
|
2254
2295
|
* @example
|
|
2255
2296
|
* sp-2zej1nogjvovnz4z****
|
|
2297
|
+
*
|
|
2298
|
+
* @deprecated
|
|
2256
2299
|
*/
|
|
2257
2300
|
masterSystemDiskSnapshotPolicyId?: string;
|
|
2258
2301
|
/**
|
|
@@ -2260,6 +2303,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2260
2303
|
* The IDs of the vSwitches that are specified for master nodes. You can specify up to three vSwitches. We recommend that you specify three vSwitches in different zones to ensure high availability.
|
|
2261
2304
|
*
|
|
2262
2305
|
* The number of vSwitches must be the same as that specified in `master_count` and the same as those specified in `master_vswitch_ids`.
|
|
2306
|
+
*
|
|
2307
|
+
* @deprecated
|
|
2263
2308
|
*/
|
|
2264
2309
|
masterVswitchIds?: string[];
|
|
2265
2310
|
/**
|
|
@@ -2305,6 +2350,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2305
2350
|
*
|
|
2306
2351
|
* @example
|
|
2307
2352
|
* aliyun.com00055test
|
|
2353
|
+
*
|
|
2354
|
+
* @deprecated
|
|
2308
2355
|
*/
|
|
2309
2356
|
nodeNameMode?: string;
|
|
2310
2357
|
/**
|
|
@@ -2348,6 +2395,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2348
2395
|
*
|
|
2349
2396
|
* @example
|
|
2350
2397
|
* Linux
|
|
2398
|
+
*
|
|
2399
|
+
* @deprecated
|
|
2351
2400
|
*/
|
|
2352
2401
|
osType?: string;
|
|
2353
2402
|
/**
|
|
@@ -2391,6 +2440,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2391
2440
|
*
|
|
2392
2441
|
* @example
|
|
2393
2442
|
* CentOS
|
|
2443
|
+
*
|
|
2444
|
+
* @deprecated
|
|
2394
2445
|
*/
|
|
2395
2446
|
platform?: string;
|
|
2396
2447
|
/**
|
|
@@ -2429,6 +2480,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2429
2480
|
/**
|
|
2430
2481
|
* @remarks
|
|
2431
2482
|
* The ApsaraDB RDS instances. Select the ApsaraDB RDS instances that you want to add to the whitelist. We recommend that you add the pod CIDR block and node CIDR block to the ApsaraDB RDS instances in the ApsaraDB RDS console. When you configure the ApsaraDB RDS instances, you cannot scale out the number of nodes because the instances are not in the Running state.
|
|
2483
|
+
*
|
|
2484
|
+
* @deprecated
|
|
2432
2485
|
*/
|
|
2433
2486
|
rdsInstances?: string[];
|
|
2434
2487
|
/**
|
|
@@ -2475,6 +2528,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2475
2528
|
*
|
|
2476
2529
|
* @example
|
|
2477
2530
|
* false
|
|
2531
|
+
*
|
|
2532
|
+
* @deprecated
|
|
2478
2533
|
*/
|
|
2479
2534
|
securityHardeningOs?: boolean;
|
|
2480
2535
|
/**
|
|
@@ -2537,6 +2592,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2537
2592
|
*
|
|
2538
2593
|
* @example
|
|
2539
2594
|
* false
|
|
2595
|
+
*
|
|
2596
|
+
* @deprecated
|
|
2540
2597
|
*/
|
|
2541
2598
|
socEnabled?: boolean;
|
|
2542
2599
|
/**
|
|
@@ -2563,6 +2620,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2563
2620
|
/**
|
|
2564
2621
|
* @remarks
|
|
2565
2622
|
* The taint. Taints can be used together with tolerations to avoid scheduling pods to specified nodes. For more information, see [taint-and-toleration](https://kubernetes.io/zh/docs/concepts/scheduling-eviction/taint-and-toleration/).
|
|
2623
|
+
*
|
|
2624
|
+
* @deprecated
|
|
2566
2625
|
*/
|
|
2567
2626
|
taints?: Taint[];
|
|
2568
2627
|
/**
|
|
@@ -2573,6 +2632,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2573
2632
|
*
|
|
2574
2633
|
* @example
|
|
2575
2634
|
* 60
|
|
2635
|
+
*
|
|
2636
|
+
* @deprecated
|
|
2576
2637
|
*/
|
|
2577
2638
|
timeoutMins?: number;
|
|
2578
2639
|
/**
|
|
@@ -2798,6 +2859,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2798
2859
|
clusterSpec: 'cluster_spec',
|
|
2799
2860
|
clusterType: 'cluster_type',
|
|
2800
2861
|
containerCidr: 'container_cidr',
|
|
2862
|
+
controlPlaneConfig: 'control_plane_config',
|
|
2801
2863
|
controlplaneLogComponents: 'controlplane_log_components',
|
|
2802
2864
|
controlplaneLogProject: 'controlplane_log_project',
|
|
2803
2865
|
controlplaneLogTtl: 'controlplane_log_ttl',
|
|
@@ -2900,6 +2962,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2900
2962
|
clusterSpec: 'string',
|
|
2901
2963
|
clusterType: 'string',
|
|
2902
2964
|
containerCidr: 'string',
|
|
2965
|
+
controlPlaneConfig: CreateClusterRequestControlPlaneConfig,
|
|
2903
2966
|
controlplaneLogComponents: { 'type': 'array', 'itemType': 'string' },
|
|
2904
2967
|
controlplaneLogProject: 'string',
|
|
2905
2968
|
controlplaneLogTtl: 'string',
|
|
@@ -5636,6 +5699,7 @@ export class DescribeClusterDetailResponseBody extends $tea.Model {
|
|
|
5636
5699
|
* 172.20.0.0/16
|
|
5637
5700
|
*/
|
|
5638
5701
|
containerCidr?: string;
|
|
5702
|
+
controlPlaneConfig?: DescribeClusterDetailResponseBodyControlPlaneConfig;
|
|
5639
5703
|
/**
|
|
5640
5704
|
* @remarks
|
|
5641
5705
|
* The time when the cluster was created.
|
|
@@ -5945,6 +6009,7 @@ export class DescribeClusterDetailResponseBody extends $tea.Model {
|
|
|
5945
6009
|
clusterSpec: 'cluster_spec',
|
|
5946
6010
|
clusterType: 'cluster_type',
|
|
5947
6011
|
containerCidr: 'container_cidr',
|
|
6012
|
+
controlPlaneConfig: 'control_plane_config',
|
|
5948
6013
|
created: 'created',
|
|
5949
6014
|
currentVersion: 'current_version',
|
|
5950
6015
|
deletionProtection: 'deletion_protection',
|
|
@@ -5989,6 +6054,7 @@ export class DescribeClusterDetailResponseBody extends $tea.Model {
|
|
|
5989
6054
|
clusterSpec: 'string',
|
|
5990
6055
|
clusterType: 'string',
|
|
5991
6056
|
containerCidr: 'string',
|
|
6057
|
+
controlPlaneConfig: DescribeClusterDetailResponseBodyControlPlaneConfig,
|
|
5992
6058
|
created: 'string',
|
|
5993
6059
|
currentVersion: 'string',
|
|
5994
6060
|
deletionProtection: 'boolean',
|
|
@@ -11114,6 +11180,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
11114
11180
|
* cluster-new-name
|
|
11115
11181
|
*/
|
|
11116
11182
|
clusterName?: string;
|
|
11183
|
+
controlPlaneConfig?: ModifyClusterRequestControlPlaneConfig;
|
|
11117
11184
|
/**
|
|
11118
11185
|
* @remarks
|
|
11119
11186
|
* Specifies whether to enable cluster deletion protection. If you enable this option, the cluster cannot be deleted in the console or by calling API operations. Valid values:
|
|
@@ -11203,6 +11270,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
11203
11270
|
apiServerEip: 'api_server_eip',
|
|
11204
11271
|
apiServerEipId: 'api_server_eip_id',
|
|
11205
11272
|
clusterName: 'cluster_name',
|
|
11273
|
+
controlPlaneConfig: 'control_plane_config',
|
|
11206
11274
|
deletionProtection: 'deletion_protection',
|
|
11207
11275
|
enableRrsa: 'enable_rrsa',
|
|
11208
11276
|
ingressDomainRebinding: 'ingress_domain_rebinding',
|
|
@@ -11223,6 +11291,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
11223
11291
|
apiServerEip: 'boolean',
|
|
11224
11292
|
apiServerEipId: 'string',
|
|
11225
11293
|
clusterName: 'string',
|
|
11294
|
+
controlPlaneConfig: ModifyClusterRequestControlPlaneConfig,
|
|
11226
11295
|
deletionProtection: 'boolean',
|
|
11227
11296
|
enableRrsa: 'boolean',
|
|
11228
11297
|
ingressDomainRebinding: 'boolean',
|
|
@@ -15739,6 +15808,94 @@ export class CheckServiceRoleResponseBodyRoles extends $tea.Model {
|
|
|
15739
15808
|
}
|
|
15740
15809
|
}
|
|
15741
15810
|
|
|
15811
|
+
export class CreateClusterRequestControlPlaneConfig extends $tea.Model {
|
|
15812
|
+
autoRenew?: boolean;
|
|
15813
|
+
autoRenewPeriod?: number;
|
|
15814
|
+
chargeType?: string;
|
|
15815
|
+
cloudMonitorFlags?: boolean;
|
|
15816
|
+
cpuPolicy?: string;
|
|
15817
|
+
deploymentsetId?: string;
|
|
15818
|
+
imageId?: string;
|
|
15819
|
+
imageType?: string;
|
|
15820
|
+
instanceTypes?: string[];
|
|
15821
|
+
keyPair?: string;
|
|
15822
|
+
loginPassword?: string;
|
|
15823
|
+
nodePortRange?: string;
|
|
15824
|
+
period?: number;
|
|
15825
|
+
periodUnit?: string;
|
|
15826
|
+
runtime?: string;
|
|
15827
|
+
securityHardeningOs?: boolean;
|
|
15828
|
+
size?: number;
|
|
15829
|
+
socEnabled?: boolean;
|
|
15830
|
+
systemDiskBurstingEnabled?: boolean;
|
|
15831
|
+
systemDiskCategory?: string;
|
|
15832
|
+
systemDiskPerformanceLevel?: string;
|
|
15833
|
+
systemDiskProvisionedIops?: number;
|
|
15834
|
+
systemDiskSize?: number;
|
|
15835
|
+
systemDiskSnapshotPolicyId?: string;
|
|
15836
|
+
static names(): { [key: string]: string } {
|
|
15837
|
+
return {
|
|
15838
|
+
autoRenew: 'auto_renew',
|
|
15839
|
+
autoRenewPeriod: 'auto_renew_period',
|
|
15840
|
+
chargeType: 'charge_type',
|
|
15841
|
+
cloudMonitorFlags: 'cloud_monitor_flags',
|
|
15842
|
+
cpuPolicy: 'cpu_policy',
|
|
15843
|
+
deploymentsetId: 'deploymentset_id',
|
|
15844
|
+
imageId: 'image_id',
|
|
15845
|
+
imageType: 'image_type',
|
|
15846
|
+
instanceTypes: 'instance_types',
|
|
15847
|
+
keyPair: 'key_pair',
|
|
15848
|
+
loginPassword: 'login_password',
|
|
15849
|
+
nodePortRange: 'node_port_range',
|
|
15850
|
+
period: 'period',
|
|
15851
|
+
periodUnit: 'period_unit',
|
|
15852
|
+
runtime: 'runtime',
|
|
15853
|
+
securityHardeningOs: 'security_hardening_os',
|
|
15854
|
+
size: 'size',
|
|
15855
|
+
socEnabled: 'soc_enabled',
|
|
15856
|
+
systemDiskBurstingEnabled: 'system_disk_bursting_enabled',
|
|
15857
|
+
systemDiskCategory: 'system_disk_category',
|
|
15858
|
+
systemDiskPerformanceLevel: 'system_disk_performance_level',
|
|
15859
|
+
systemDiskProvisionedIops: 'system_disk_provisioned_iops',
|
|
15860
|
+
systemDiskSize: 'system_disk_size',
|
|
15861
|
+
systemDiskSnapshotPolicyId: 'system_disk_snapshot_policy_id',
|
|
15862
|
+
};
|
|
15863
|
+
}
|
|
15864
|
+
|
|
15865
|
+
static types(): { [key: string]: any } {
|
|
15866
|
+
return {
|
|
15867
|
+
autoRenew: 'boolean',
|
|
15868
|
+
autoRenewPeriod: 'number',
|
|
15869
|
+
chargeType: 'string',
|
|
15870
|
+
cloudMonitorFlags: 'boolean',
|
|
15871
|
+
cpuPolicy: 'string',
|
|
15872
|
+
deploymentsetId: 'string',
|
|
15873
|
+
imageId: 'string',
|
|
15874
|
+
imageType: 'string',
|
|
15875
|
+
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
15876
|
+
keyPair: 'string',
|
|
15877
|
+
loginPassword: 'string',
|
|
15878
|
+
nodePortRange: 'string',
|
|
15879
|
+
period: 'number',
|
|
15880
|
+
periodUnit: 'string',
|
|
15881
|
+
runtime: 'string',
|
|
15882
|
+
securityHardeningOs: 'boolean',
|
|
15883
|
+
size: 'number',
|
|
15884
|
+
socEnabled: 'boolean',
|
|
15885
|
+
systemDiskBurstingEnabled: 'boolean',
|
|
15886
|
+
systemDiskCategory: 'string',
|
|
15887
|
+
systemDiskPerformanceLevel: 'string',
|
|
15888
|
+
systemDiskProvisionedIops: 'number',
|
|
15889
|
+
systemDiskSize: 'number',
|
|
15890
|
+
systemDiskSnapshotPolicyId: 'string',
|
|
15891
|
+
};
|
|
15892
|
+
}
|
|
15893
|
+
|
|
15894
|
+
constructor(map?: { [key: string]: any }) {
|
|
15895
|
+
super(map);
|
|
15896
|
+
}
|
|
15897
|
+
}
|
|
15898
|
+
|
|
15742
15899
|
export class CreateClusterRequestOperationPolicyClusterAutoUpgrade extends $tea.Model {
|
|
15743
15900
|
/**
|
|
15744
15901
|
* @remarks
|
|
@@ -17520,6 +17677,91 @@ export class DescribeAddonsResponseBodyComponentGroups extends $tea.Model {
|
|
|
17520
17677
|
}
|
|
17521
17678
|
}
|
|
17522
17679
|
|
|
17680
|
+
export class DescribeClusterDetailResponseBodyControlPlaneConfig extends $tea.Model {
|
|
17681
|
+
autoRenew?: boolean;
|
|
17682
|
+
autoRenewPeriod?: number;
|
|
17683
|
+
chargeType?: string;
|
|
17684
|
+
cloudMonitorFlags?: boolean;
|
|
17685
|
+
cpuPolicy?: string;
|
|
17686
|
+
deploymentsetId?: string;
|
|
17687
|
+
imageId?: string;
|
|
17688
|
+
imageType?: string;
|
|
17689
|
+
instanceTypes?: string[];
|
|
17690
|
+
keyPair?: string;
|
|
17691
|
+
nodePortRange?: string;
|
|
17692
|
+
period?: number;
|
|
17693
|
+
periodUnit?: string;
|
|
17694
|
+
runtime?: string;
|
|
17695
|
+
securityHardeningOs?: boolean;
|
|
17696
|
+
size?: number;
|
|
17697
|
+
socEnabled?: boolean;
|
|
17698
|
+
systemDiskBurstingEnabled?: boolean;
|
|
17699
|
+
systemDiskCategory?: string;
|
|
17700
|
+
systemDiskPerformanceLevel?: string;
|
|
17701
|
+
systemDiskProvisionedIops?: number;
|
|
17702
|
+
systemDiskSize?: number;
|
|
17703
|
+
systemDiskSnapshotPolicyId?: string;
|
|
17704
|
+
static names(): { [key: string]: string } {
|
|
17705
|
+
return {
|
|
17706
|
+
autoRenew: 'auto_renew',
|
|
17707
|
+
autoRenewPeriod: 'auto_renew_period',
|
|
17708
|
+
chargeType: 'charge_type',
|
|
17709
|
+
cloudMonitorFlags: 'cloud_monitor_flags',
|
|
17710
|
+
cpuPolicy: 'cpu_policy',
|
|
17711
|
+
deploymentsetId: 'deploymentset_id',
|
|
17712
|
+
imageId: 'image_id',
|
|
17713
|
+
imageType: 'image_type',
|
|
17714
|
+
instanceTypes: 'instance_types',
|
|
17715
|
+
keyPair: 'key_pair',
|
|
17716
|
+
nodePortRange: 'node_port_range',
|
|
17717
|
+
period: 'period',
|
|
17718
|
+
periodUnit: 'period_unit',
|
|
17719
|
+
runtime: 'runtime',
|
|
17720
|
+
securityHardeningOs: 'security_hardening_os',
|
|
17721
|
+
size: 'size',
|
|
17722
|
+
socEnabled: 'soc_enabled',
|
|
17723
|
+
systemDiskBurstingEnabled: 'system_disk_bursting_enabled',
|
|
17724
|
+
systemDiskCategory: 'system_disk_category',
|
|
17725
|
+
systemDiskPerformanceLevel: 'system_disk_performance_level',
|
|
17726
|
+
systemDiskProvisionedIops: 'system_disk_provisioned_iops',
|
|
17727
|
+
systemDiskSize: 'system_disk_size',
|
|
17728
|
+
systemDiskSnapshotPolicyId: 'system_disk_snapshot_policy_id',
|
|
17729
|
+
};
|
|
17730
|
+
}
|
|
17731
|
+
|
|
17732
|
+
static types(): { [key: string]: any } {
|
|
17733
|
+
return {
|
|
17734
|
+
autoRenew: 'boolean',
|
|
17735
|
+
autoRenewPeriod: 'number',
|
|
17736
|
+
chargeType: 'string',
|
|
17737
|
+
cloudMonitorFlags: 'boolean',
|
|
17738
|
+
cpuPolicy: 'string',
|
|
17739
|
+
deploymentsetId: 'string',
|
|
17740
|
+
imageId: 'string',
|
|
17741
|
+
imageType: 'string',
|
|
17742
|
+
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
17743
|
+
keyPair: 'string',
|
|
17744
|
+
nodePortRange: 'string',
|
|
17745
|
+
period: 'number',
|
|
17746
|
+
periodUnit: 'string',
|
|
17747
|
+
runtime: 'string',
|
|
17748
|
+
securityHardeningOs: 'boolean',
|
|
17749
|
+
size: 'number',
|
|
17750
|
+
socEnabled: 'boolean',
|
|
17751
|
+
systemDiskBurstingEnabled: 'boolean',
|
|
17752
|
+
systemDiskCategory: 'string',
|
|
17753
|
+
systemDiskPerformanceLevel: 'string',
|
|
17754
|
+
systemDiskProvisionedIops: 'number',
|
|
17755
|
+
systemDiskSize: 'number',
|
|
17756
|
+
systemDiskSnapshotPolicyId: 'string',
|
|
17757
|
+
};
|
|
17758
|
+
}
|
|
17759
|
+
|
|
17760
|
+
constructor(map?: { [key: string]: any }) {
|
|
17761
|
+
super(map);
|
|
17762
|
+
}
|
|
17763
|
+
}
|
|
17764
|
+
|
|
17523
17765
|
export class DescribeClusterDetailResponseBodyOperationPolicyClusterAutoUpgrade extends $tea.Model {
|
|
17524
17766
|
/**
|
|
17525
17767
|
* @remarks
|
|
@@ -23855,22 +24097,52 @@ export class DescribePolicyInstancesResponseBody extends $tea.Model {
|
|
|
23855
24097
|
*/
|
|
23856
24098
|
policyAction?: string;
|
|
23857
24099
|
/**
|
|
24100
|
+
* @remarks
|
|
24101
|
+
* Creation time (deprecated, do not use).
|
|
24102
|
+
*
|
|
24103
|
+
* @example
|
|
24104
|
+
* 2024-10-29T18:09:12+08:00
|
|
24105
|
+
*
|
|
23858
24106
|
* @deprecated
|
|
23859
24107
|
*/
|
|
23860
24108
|
created?: string;
|
|
23861
24109
|
/**
|
|
24110
|
+
* @remarks
|
|
24111
|
+
* Update time (deprecated, do not use).
|
|
24112
|
+
*
|
|
24113
|
+
* @example
|
|
24114
|
+
* 2024-10-29T18:09:12+08:00
|
|
24115
|
+
*
|
|
23862
24116
|
* @deprecated
|
|
23863
24117
|
*/
|
|
23864
24118
|
updated?: string;
|
|
23865
24119
|
/**
|
|
24120
|
+
* @remarks
|
|
24121
|
+
* Resource ID (deprecated, do not use).
|
|
24122
|
+
*
|
|
24123
|
+
* @example
|
|
24124
|
+
* 123456***
|
|
24125
|
+
*
|
|
23866
24126
|
* @deprecated
|
|
23867
24127
|
*/
|
|
23868
24128
|
resourceId?: string;
|
|
23869
24129
|
/**
|
|
24130
|
+
* @remarks
|
|
24131
|
+
* Violation count processing in the cluster (deprecated, do not use).
|
|
24132
|
+
*
|
|
24133
|
+
* @example
|
|
24134
|
+
* 0
|
|
24135
|
+
*
|
|
23870
24136
|
* @deprecated
|
|
23871
24137
|
*/
|
|
23872
24138
|
totalViolations?: number;
|
|
23873
24139
|
/**
|
|
24140
|
+
* @remarks
|
|
24141
|
+
* Deletion status (deprecated, do not use).
|
|
24142
|
+
*
|
|
24143
|
+
* @example
|
|
24144
|
+
* 0
|
|
24145
|
+
*
|
|
23874
24146
|
* @deprecated
|
|
23875
24147
|
*/
|
|
23876
24148
|
isDeleted?: number;
|
|
@@ -26042,6 +26314,94 @@ export class ModifyClusterRequestApiServerCustomCertSans extends $tea.Model {
|
|
|
26042
26314
|
}
|
|
26043
26315
|
}
|
|
26044
26316
|
|
|
26317
|
+
export class ModifyClusterRequestControlPlaneConfig extends $tea.Model {
|
|
26318
|
+
autoRenew?: boolean;
|
|
26319
|
+
autoRenewPeriod?: number;
|
|
26320
|
+
chargeType?: string;
|
|
26321
|
+
cloudMonitorFlags?: boolean;
|
|
26322
|
+
cpuPolicy?: string;
|
|
26323
|
+
deploymentsetId?: string;
|
|
26324
|
+
imageId?: string;
|
|
26325
|
+
imageType?: string;
|
|
26326
|
+
instanceTypes?: string[];
|
|
26327
|
+
keyPair?: string;
|
|
26328
|
+
loginPassword?: string;
|
|
26329
|
+
nodePortRange?: string;
|
|
26330
|
+
period?: number;
|
|
26331
|
+
periodUnit?: string;
|
|
26332
|
+
runtime?: string;
|
|
26333
|
+
securityHardeningOs?: boolean;
|
|
26334
|
+
size?: number;
|
|
26335
|
+
socEnabled?: boolean;
|
|
26336
|
+
systemDiskBurstingEnabled?: boolean;
|
|
26337
|
+
systemDiskCategory?: string;
|
|
26338
|
+
systemDiskPerformanceLevel?: string;
|
|
26339
|
+
systemDiskProvisionedIops?: number;
|
|
26340
|
+
systemDiskSize?: number;
|
|
26341
|
+
systemDiskSnapshotPolicyId?: string;
|
|
26342
|
+
static names(): { [key: string]: string } {
|
|
26343
|
+
return {
|
|
26344
|
+
autoRenew: 'auto_renew',
|
|
26345
|
+
autoRenewPeriod: 'auto_renew_period',
|
|
26346
|
+
chargeType: 'charge_type',
|
|
26347
|
+
cloudMonitorFlags: 'cloud_monitor_flags',
|
|
26348
|
+
cpuPolicy: 'cpu_policy',
|
|
26349
|
+
deploymentsetId: 'deploymentset_id',
|
|
26350
|
+
imageId: 'image_id',
|
|
26351
|
+
imageType: 'image_type',
|
|
26352
|
+
instanceTypes: 'instance_types',
|
|
26353
|
+
keyPair: 'key_pair',
|
|
26354
|
+
loginPassword: 'login_password',
|
|
26355
|
+
nodePortRange: 'node_port_range',
|
|
26356
|
+
period: 'period',
|
|
26357
|
+
periodUnit: 'period_unit',
|
|
26358
|
+
runtime: 'runtime',
|
|
26359
|
+
securityHardeningOs: 'security_hardening_os',
|
|
26360
|
+
size: 'size',
|
|
26361
|
+
socEnabled: 'soc_enabled',
|
|
26362
|
+
systemDiskBurstingEnabled: 'system_disk_bursting_enabled',
|
|
26363
|
+
systemDiskCategory: 'system_disk_category',
|
|
26364
|
+
systemDiskPerformanceLevel: 'system_disk_performance_level',
|
|
26365
|
+
systemDiskProvisionedIops: 'system_disk_provisioned_iops',
|
|
26366
|
+
systemDiskSize: 'system_disk_size',
|
|
26367
|
+
systemDiskSnapshotPolicyId: 'system_disk_snapshot_policy_id',
|
|
26368
|
+
};
|
|
26369
|
+
}
|
|
26370
|
+
|
|
26371
|
+
static types(): { [key: string]: any } {
|
|
26372
|
+
return {
|
|
26373
|
+
autoRenew: 'boolean',
|
|
26374
|
+
autoRenewPeriod: 'number',
|
|
26375
|
+
chargeType: 'string',
|
|
26376
|
+
cloudMonitorFlags: 'boolean',
|
|
26377
|
+
cpuPolicy: 'string',
|
|
26378
|
+
deploymentsetId: 'string',
|
|
26379
|
+
imageId: 'string',
|
|
26380
|
+
imageType: 'string',
|
|
26381
|
+
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
26382
|
+
keyPair: 'string',
|
|
26383
|
+
loginPassword: 'string',
|
|
26384
|
+
nodePortRange: 'string',
|
|
26385
|
+
period: 'number',
|
|
26386
|
+
periodUnit: 'string',
|
|
26387
|
+
runtime: 'string',
|
|
26388
|
+
securityHardeningOs: 'boolean',
|
|
26389
|
+
size: 'number',
|
|
26390
|
+
socEnabled: 'boolean',
|
|
26391
|
+
systemDiskBurstingEnabled: 'boolean',
|
|
26392
|
+
systemDiskCategory: 'string',
|
|
26393
|
+
systemDiskPerformanceLevel: 'string',
|
|
26394
|
+
systemDiskProvisionedIops: 'number',
|
|
26395
|
+
systemDiskSize: 'number',
|
|
26396
|
+
systemDiskSnapshotPolicyId: 'string',
|
|
26397
|
+
};
|
|
26398
|
+
}
|
|
26399
|
+
|
|
26400
|
+
constructor(map?: { [key: string]: any }) {
|
|
26401
|
+
super(map);
|
|
26402
|
+
}
|
|
26403
|
+
}
|
|
26404
|
+
|
|
26045
26405
|
export class ModifyClusterRequestOperationPolicyClusterAutoUpgrade extends $tea.Model {
|
|
26046
26406
|
/**
|
|
26047
26407
|
* @remarks
|
|
@@ -28528,6 +28888,10 @@ export default class Client extends OpenApi {
|
|
|
28528
28888
|
body["container_cidr"] = request.containerCidr;
|
|
28529
28889
|
}
|
|
28530
28890
|
|
|
28891
|
+
if (!Util.isUnset(request.controlPlaneConfig)) {
|
|
28892
|
+
body["control_plane_config"] = request.controlPlaneConfig;
|
|
28893
|
+
}
|
|
28894
|
+
|
|
28531
28895
|
if (!Util.isUnset(request.controlplaneLogComponents)) {
|
|
28532
28896
|
body["controlplane_log_components"] = request.controlplaneLogComponents;
|
|
28533
28897
|
}
|
|
@@ -32929,6 +33293,10 @@ export default class Client extends OpenApi {
|
|
|
32929
33293
|
body["cluster_name"] = request.clusterName;
|
|
32930
33294
|
}
|
|
32931
33295
|
|
|
33296
|
+
if (!Util.isUnset(request.controlPlaneConfig)) {
|
|
33297
|
+
body["control_plane_config"] = request.controlPlaneConfig;
|
|
33298
|
+
}
|
|
33299
|
+
|
|
32932
33300
|
if (!Util.isUnset(request.deletionProtection)) {
|
|
32933
33301
|
body["deletion_protection"] = request.deletionProtection;
|
|
32934
33302
|
}
|