@alicloud/cs20151215 4.8.0 → 4.8.2
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 +536 -51
- package/dist/client.js +264 -29
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +727 -52
package/src/client.ts
CHANGED
|
@@ -1609,6 +1609,11 @@ export class CreateAutoscalingConfigRequest extends $tea.Model {
|
|
|
1609
1609
|
* true
|
|
1610
1610
|
*/
|
|
1611
1611
|
scaleUpFromZero?: boolean;
|
|
1612
|
+
/**
|
|
1613
|
+
* @example
|
|
1614
|
+
* cluster-autoscaler
|
|
1615
|
+
*/
|
|
1616
|
+
scalerType?: string;
|
|
1612
1617
|
/**
|
|
1613
1618
|
* @remarks
|
|
1614
1619
|
* The interval at which the system scans for events that trigger scaling activities. Unit: seconds. Default value: 60.
|
|
@@ -1668,6 +1673,7 @@ export class CreateAutoscalingConfigRequest extends $tea.Model {
|
|
|
1668
1673
|
recycleNodeDeletionEnabled: 'recycle_node_deletion_enabled',
|
|
1669
1674
|
scaleDownEnabled: 'scale_down_enabled',
|
|
1670
1675
|
scaleUpFromZero: 'scale_up_from_zero',
|
|
1676
|
+
scalerType: 'scaler_type',
|
|
1671
1677
|
scanInterval: 'scan_interval',
|
|
1672
1678
|
skipNodesWithLocalStorage: 'skip_nodes_with_local_storage',
|
|
1673
1679
|
skipNodesWithSystemPods: 'skip_nodes_with_system_pods',
|
|
@@ -1687,6 +1693,7 @@ export class CreateAutoscalingConfigRequest extends $tea.Model {
|
|
|
1687
1693
|
recycleNodeDeletionEnabled: 'boolean',
|
|
1688
1694
|
scaleDownEnabled: 'boolean',
|
|
1689
1695
|
scaleUpFromZero: 'boolean',
|
|
1696
|
+
scalerType: 'string',
|
|
1690
1697
|
scanInterval: 'string',
|
|
1691
1698
|
skipNodesWithLocalStorage: 'boolean',
|
|
1692
1699
|
skipNodesWithSystemPods: 'boolean',
|
|
@@ -1700,13 +1707,52 @@ export class CreateAutoscalingConfigRequest extends $tea.Model {
|
|
|
1700
1707
|
}
|
|
1701
1708
|
}
|
|
1702
1709
|
|
|
1710
|
+
export class CreateAutoscalingConfigResponseBody extends $tea.Model {
|
|
1711
|
+
/**
|
|
1712
|
+
* @example
|
|
1713
|
+
* cc212d04dfe184547bffaa596********
|
|
1714
|
+
*/
|
|
1715
|
+
clusterId?: string;
|
|
1716
|
+
/**
|
|
1717
|
+
* @example
|
|
1718
|
+
* AF8BE105-C32B-1269-9774-5510********
|
|
1719
|
+
*/
|
|
1720
|
+
requestId?: string;
|
|
1721
|
+
/**
|
|
1722
|
+
* @example
|
|
1723
|
+
* T-5fd211e924e1d007********
|
|
1724
|
+
*/
|
|
1725
|
+
taskId?: string;
|
|
1726
|
+
static names(): { [key: string]: string } {
|
|
1727
|
+
return {
|
|
1728
|
+
clusterId: 'cluster_id',
|
|
1729
|
+
requestId: 'request_id',
|
|
1730
|
+
taskId: 'task_id',
|
|
1731
|
+
};
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
static types(): { [key: string]: any } {
|
|
1735
|
+
return {
|
|
1736
|
+
clusterId: 'string',
|
|
1737
|
+
requestId: 'string',
|
|
1738
|
+
taskId: 'string',
|
|
1739
|
+
};
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
constructor(map?: { [key: string]: any }) {
|
|
1743
|
+
super(map);
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1703
1747
|
export class CreateAutoscalingConfigResponse extends $tea.Model {
|
|
1704
1748
|
headers?: { [key: string]: string };
|
|
1705
1749
|
statusCode?: number;
|
|
1750
|
+
body?: CreateAutoscalingConfigResponseBody;
|
|
1706
1751
|
static names(): { [key: string]: string } {
|
|
1707
1752
|
return {
|
|
1708
1753
|
headers: 'headers',
|
|
1709
1754
|
statusCode: 'statusCode',
|
|
1755
|
+
body: 'body',
|
|
1710
1756
|
};
|
|
1711
1757
|
}
|
|
1712
1758
|
|
|
@@ -1714,6 +1760,7 @@ export class CreateAutoscalingConfigResponse extends $tea.Model {
|
|
|
1714
1760
|
return {
|
|
1715
1761
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1716
1762
|
statusCode: 'number',
|
|
1763
|
+
body: CreateAutoscalingConfigResponseBody,
|
|
1717
1764
|
};
|
|
1718
1765
|
}
|
|
1719
1766
|
|
|
@@ -1781,6 +1828,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
1781
1828
|
*
|
|
1782
1829
|
* @example
|
|
1783
1830
|
* true
|
|
1831
|
+
*
|
|
1832
|
+
* @deprecated
|
|
1784
1833
|
*/
|
|
1785
1834
|
autoRenew?: boolean;
|
|
1786
1835
|
/**
|
|
@@ -1793,6 +1842,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
1793
1842
|
*
|
|
1794
1843
|
* @example
|
|
1795
1844
|
* 1
|
|
1845
|
+
*
|
|
1846
|
+
* @deprecated
|
|
1796
1847
|
*/
|
|
1797
1848
|
autoRenewPeriod?: number;
|
|
1798
1849
|
/**
|
|
@@ -1813,6 +1864,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
1813
1864
|
*
|
|
1814
1865
|
* @example
|
|
1815
1866
|
* 1
|
|
1867
|
+
*
|
|
1868
|
+
* @deprecated
|
|
1816
1869
|
*/
|
|
1817
1870
|
chargeType?: string;
|
|
1818
1871
|
/**
|
|
@@ -1836,6 +1889,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
1836
1889
|
*
|
|
1837
1890
|
* @example
|
|
1838
1891
|
* true
|
|
1892
|
+
*
|
|
1893
|
+
* @deprecated
|
|
1839
1894
|
*/
|
|
1840
1895
|
cloudMonitorFlags?: boolean;
|
|
1841
1896
|
/**
|
|
@@ -1883,6 +1938,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
1883
1938
|
* 172.20.0.0/16
|
|
1884
1939
|
*/
|
|
1885
1940
|
containerCidr?: string;
|
|
1941
|
+
controlPlaneConfig?: CreateClusterRequestControlPlaneConfig;
|
|
1886
1942
|
/**
|
|
1887
1943
|
* @remarks
|
|
1888
1944
|
* The control plane component for which you want to enable log collection.
|
|
@@ -1917,6 +1973,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
1917
1973
|
*
|
|
1918
1974
|
* @example
|
|
1919
1975
|
* none
|
|
1976
|
+
*
|
|
1977
|
+
* @deprecated
|
|
1920
1978
|
*/
|
|
1921
1979
|
cpuPolicy?: string;
|
|
1922
1980
|
/**
|
|
@@ -2002,6 +2060,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2002
2060
|
*
|
|
2003
2061
|
* @example
|
|
2004
2062
|
* false
|
|
2063
|
+
*
|
|
2064
|
+
* @deprecated
|
|
2005
2065
|
*/
|
|
2006
2066
|
formatDisk?: boolean;
|
|
2007
2067
|
/**
|
|
@@ -2010,6 +2070,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2010
2070
|
*
|
|
2011
2071
|
* @example
|
|
2012
2072
|
* m-bp16z7xko3vvv8gt****
|
|
2073
|
+
*
|
|
2074
|
+
* @deprecated
|
|
2013
2075
|
*/
|
|
2014
2076
|
imageId?: string;
|
|
2015
2077
|
/**
|
|
@@ -2030,6 +2092,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2030
2092
|
*
|
|
2031
2093
|
* @example
|
|
2032
2094
|
* AliyunLinux
|
|
2095
|
+
*
|
|
2096
|
+
* @deprecated
|
|
2033
2097
|
*/
|
|
2034
2098
|
imageType?: string;
|
|
2035
2099
|
/**
|
|
@@ -2037,6 +2101,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2037
2101
|
* The existing Elastic Compute Service (ECS) instances that are specified as worker nodes for the cluster.
|
|
2038
2102
|
*
|
|
2039
2103
|
* > This parameter is required if you create worker nodes on existing ECS instances.
|
|
2104
|
+
*
|
|
2105
|
+
* @deprecated
|
|
2040
2106
|
*/
|
|
2041
2107
|
instances?: string[];
|
|
2042
2108
|
/**
|
|
@@ -2074,6 +2140,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2074
2140
|
*
|
|
2075
2141
|
* @example
|
|
2076
2142
|
* true
|
|
2143
|
+
*
|
|
2144
|
+
* @deprecated
|
|
2077
2145
|
*/
|
|
2078
2146
|
keepInstanceName?: boolean;
|
|
2079
2147
|
/**
|
|
@@ -2082,6 +2150,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2082
2150
|
*
|
|
2083
2151
|
* @example
|
|
2084
2152
|
* secrity-key
|
|
2153
|
+
*
|
|
2154
|
+
* @deprecated
|
|
2085
2155
|
*/
|
|
2086
2156
|
keyPair?: string;
|
|
2087
2157
|
/**
|
|
@@ -2117,6 +2187,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2117
2187
|
*
|
|
2118
2188
|
* @example
|
|
2119
2189
|
* slb.s2.small
|
|
2190
|
+
*
|
|
2191
|
+
* @deprecated
|
|
2120
2192
|
*/
|
|
2121
2193
|
loadBalancerSpec?: string;
|
|
2122
2194
|
/**
|
|
@@ -2133,6 +2205,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2133
2205
|
*
|
|
2134
2206
|
* @example
|
|
2135
2207
|
* Hello@1234
|
|
2208
|
+
*
|
|
2209
|
+
* @deprecated
|
|
2136
2210
|
*/
|
|
2137
2211
|
loginPassword?: string;
|
|
2138
2212
|
/**
|
|
@@ -2151,6 +2225,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2151
2225
|
*
|
|
2152
2226
|
* @example
|
|
2153
2227
|
* true
|
|
2228
|
+
*
|
|
2229
|
+
* @deprecated
|
|
2154
2230
|
*/
|
|
2155
2231
|
masterAutoRenew?: boolean;
|
|
2156
2232
|
/**
|
|
@@ -2163,6 +2239,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2163
2239
|
*
|
|
2164
2240
|
* @example
|
|
2165
2241
|
* 1
|
|
2242
|
+
*
|
|
2243
|
+
* @deprecated
|
|
2166
2244
|
*/
|
|
2167
2245
|
masterAutoRenewPeriod?: number;
|
|
2168
2246
|
/**
|
|
@@ -2173,6 +2251,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2173
2251
|
*
|
|
2174
2252
|
* @example
|
|
2175
2253
|
* 3
|
|
2254
|
+
*
|
|
2255
|
+
* @deprecated
|
|
2176
2256
|
*/
|
|
2177
2257
|
masterCount?: number;
|
|
2178
2258
|
/**
|
|
@@ -2186,11 +2266,15 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2186
2266
|
*
|
|
2187
2267
|
* @example
|
|
2188
2268
|
* PrePaid
|
|
2269
|
+
*
|
|
2270
|
+
* @deprecated
|
|
2189
2271
|
*/
|
|
2190
2272
|
masterInstanceChargeType?: string;
|
|
2191
2273
|
/**
|
|
2192
2274
|
* @remarks
|
|
2193
2275
|
* The instance types of master nodes. For more information, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html).
|
|
2276
|
+
*
|
|
2277
|
+
* @deprecated
|
|
2194
2278
|
*/
|
|
2195
2279
|
masterInstanceTypes?: string[];
|
|
2196
2280
|
/**
|
|
@@ -2203,6 +2287,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2203
2287
|
*
|
|
2204
2288
|
* @example
|
|
2205
2289
|
* 1
|
|
2290
|
+
*
|
|
2291
|
+
* @deprecated
|
|
2206
2292
|
*/
|
|
2207
2293
|
masterPeriod?: number;
|
|
2208
2294
|
/**
|
|
@@ -2213,6 +2299,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2213
2299
|
*
|
|
2214
2300
|
* @example
|
|
2215
2301
|
* Month
|
|
2302
|
+
*
|
|
2303
|
+
* @deprecated
|
|
2216
2304
|
*/
|
|
2217
2305
|
masterPeriodUnit?: string;
|
|
2218
2306
|
/**
|
|
@@ -2227,6 +2315,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2227
2315
|
*
|
|
2228
2316
|
* @example
|
|
2229
2317
|
* cloud_ssd
|
|
2318
|
+
*
|
|
2319
|
+
* @deprecated
|
|
2230
2320
|
*/
|
|
2231
2321
|
masterSystemDiskCategory?: string;
|
|
2232
2322
|
/**
|
|
@@ -2235,6 +2325,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2235
2325
|
*
|
|
2236
2326
|
* @example
|
|
2237
2327
|
* PL1
|
|
2328
|
+
*
|
|
2329
|
+
* @deprecated
|
|
2238
2330
|
*/
|
|
2239
2331
|
masterSystemDiskPerformanceLevel?: string;
|
|
2240
2332
|
/**
|
|
@@ -2245,6 +2337,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2245
2337
|
*
|
|
2246
2338
|
* @example
|
|
2247
2339
|
* 120
|
|
2340
|
+
*
|
|
2341
|
+
* @deprecated
|
|
2248
2342
|
*/
|
|
2249
2343
|
masterSystemDiskSize?: number;
|
|
2250
2344
|
/**
|
|
@@ -2253,6 +2347,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2253
2347
|
*
|
|
2254
2348
|
* @example
|
|
2255
2349
|
* sp-2zej1nogjvovnz4z****
|
|
2350
|
+
*
|
|
2351
|
+
* @deprecated
|
|
2256
2352
|
*/
|
|
2257
2353
|
masterSystemDiskSnapshotPolicyId?: string;
|
|
2258
2354
|
/**
|
|
@@ -2260,6 +2356,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2260
2356
|
* 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
2357
|
*
|
|
2262
2358
|
* The number of vSwitches must be the same as that specified in `master_count` and the same as those specified in `master_vswitch_ids`.
|
|
2359
|
+
*
|
|
2360
|
+
* @deprecated
|
|
2263
2361
|
*/
|
|
2264
2362
|
masterVswitchIds?: string[];
|
|
2265
2363
|
/**
|
|
@@ -2305,6 +2403,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2305
2403
|
*
|
|
2306
2404
|
* @example
|
|
2307
2405
|
* aliyun.com00055test
|
|
2406
|
+
*
|
|
2407
|
+
* @deprecated
|
|
2308
2408
|
*/
|
|
2309
2409
|
nodeNameMode?: string;
|
|
2310
2410
|
/**
|
|
@@ -2348,6 +2448,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2348
2448
|
*
|
|
2349
2449
|
* @example
|
|
2350
2450
|
* Linux
|
|
2451
|
+
*
|
|
2452
|
+
* @deprecated
|
|
2351
2453
|
*/
|
|
2352
2454
|
osType?: string;
|
|
2353
2455
|
/**
|
|
@@ -2362,6 +2464,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2362
2464
|
*
|
|
2363
2465
|
* @example
|
|
2364
2466
|
* FY2023
|
|
2467
|
+
*
|
|
2468
|
+
* @deprecated
|
|
2365
2469
|
*/
|
|
2366
2470
|
period?: number;
|
|
2367
2471
|
/**
|
|
@@ -2374,6 +2478,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2374
2478
|
*
|
|
2375
2479
|
* @example
|
|
2376
2480
|
* Month
|
|
2481
|
+
*
|
|
2482
|
+
* @deprecated
|
|
2377
2483
|
*/
|
|
2378
2484
|
periodUnit?: string;
|
|
2379
2485
|
/**
|
|
@@ -2391,6 +2497,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2391
2497
|
*
|
|
2392
2498
|
* @example
|
|
2393
2499
|
* CentOS
|
|
2500
|
+
*
|
|
2501
|
+
* @deprecated
|
|
2394
2502
|
*/
|
|
2395
2503
|
platform?: string;
|
|
2396
2504
|
/**
|
|
@@ -2429,6 +2537,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2429
2537
|
/**
|
|
2430
2538
|
* @remarks
|
|
2431
2539
|
* 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.
|
|
2540
|
+
*
|
|
2541
|
+
* @deprecated
|
|
2432
2542
|
*/
|
|
2433
2543
|
rdsInstances?: string[];
|
|
2434
2544
|
/**
|
|
@@ -2475,6 +2585,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2475
2585
|
*
|
|
2476
2586
|
* @example
|
|
2477
2587
|
* false
|
|
2588
|
+
*
|
|
2589
|
+
* @deprecated
|
|
2478
2590
|
*/
|
|
2479
2591
|
securityHardeningOs?: boolean;
|
|
2480
2592
|
/**
|
|
@@ -2537,6 +2649,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2537
2649
|
*
|
|
2538
2650
|
* @example
|
|
2539
2651
|
* false
|
|
2652
|
+
*
|
|
2653
|
+
* @deprecated
|
|
2540
2654
|
*/
|
|
2541
2655
|
socEnabled?: boolean;
|
|
2542
2656
|
/**
|
|
@@ -2563,6 +2677,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2563
2677
|
/**
|
|
2564
2678
|
* @remarks
|
|
2565
2679
|
* 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/).
|
|
2680
|
+
*
|
|
2681
|
+
* @deprecated
|
|
2566
2682
|
*/
|
|
2567
2683
|
taints?: Taint[];
|
|
2568
2684
|
/**
|
|
@@ -2573,6 +2689,8 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2573
2689
|
*
|
|
2574
2690
|
* @example
|
|
2575
2691
|
* 60
|
|
2692
|
+
*
|
|
2693
|
+
* @deprecated
|
|
2576
2694
|
*/
|
|
2577
2695
|
timeoutMins?: number;
|
|
2578
2696
|
/**
|
|
@@ -2798,6 +2916,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2798
2916
|
clusterSpec: 'cluster_spec',
|
|
2799
2917
|
clusterType: 'cluster_type',
|
|
2800
2918
|
containerCidr: 'container_cidr',
|
|
2919
|
+
controlPlaneConfig: 'control_plane_config',
|
|
2801
2920
|
controlplaneLogComponents: 'controlplane_log_components',
|
|
2802
2921
|
controlplaneLogProject: 'controlplane_log_project',
|
|
2803
2922
|
controlplaneLogTtl: 'controlplane_log_ttl',
|
|
@@ -2900,6 +3019,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
2900
3019
|
clusterSpec: 'string',
|
|
2901
3020
|
clusterType: 'string',
|
|
2902
3021
|
containerCidr: 'string',
|
|
3022
|
+
controlPlaneConfig: CreateClusterRequestControlPlaneConfig,
|
|
2903
3023
|
controlplaneLogComponents: { 'type': 'array', 'itemType': 'string' },
|
|
2904
3024
|
controlplaneLogProject: 'string',
|
|
2905
3025
|
controlplaneLogTtl: 'string',
|
|
@@ -3223,6 +3343,16 @@ export class CreateClusterNodePoolRequest extends $tea.Model {
|
|
|
3223
3343
|
* @deprecated
|
|
3224
3344
|
*/
|
|
3225
3345
|
count?: number;
|
|
3346
|
+
/**
|
|
3347
|
+
* @remarks
|
|
3348
|
+
* Specifies whether set the network type of the pod to host network.
|
|
3349
|
+
*
|
|
3350
|
+
* * `true`: sets to host network.
|
|
3351
|
+
* * `false`: sets to container network.
|
|
3352
|
+
*
|
|
3353
|
+
* @example
|
|
3354
|
+
* true
|
|
3355
|
+
*/
|
|
3226
3356
|
hostNetwork?: boolean;
|
|
3227
3357
|
/**
|
|
3228
3358
|
* @remarks
|
|
@@ -3237,13 +3367,23 @@ export class CreateClusterNodePoolRequest extends $tea.Model {
|
|
|
3237
3367
|
* @remarks
|
|
3238
3368
|
* The network type of the edge node pool. This parameter takes effect only when the `type` of the node pool is set to `edge`. Valid values:
|
|
3239
3369
|
*
|
|
3240
|
-
* * `basic`:
|
|
3241
|
-
* * `private`:
|
|
3370
|
+
* * `basic`: Internet.
|
|
3371
|
+
* * `private`: private network.
|
|
3242
3372
|
*
|
|
3243
3373
|
* @example
|
|
3244
3374
|
* basic
|
|
3245
3375
|
*/
|
|
3246
3376
|
interconnectMode?: string;
|
|
3377
|
+
/**
|
|
3378
|
+
* @remarks
|
|
3379
|
+
* Specifies whether all nodes in the edge node pool can communicate with each other at Layer 3.
|
|
3380
|
+
*
|
|
3381
|
+
* * `true`: The nodes in the edge node pool can communicate with each other at Layer 3.
|
|
3382
|
+
* * `false`: The nodes in the edge node pool cannot communicate with each other at Layer 3.
|
|
3383
|
+
*
|
|
3384
|
+
* @example
|
|
3385
|
+
* true
|
|
3386
|
+
*/
|
|
3247
3387
|
intranet?: boolean;
|
|
3248
3388
|
/**
|
|
3249
3389
|
* @remarks
|
|
@@ -3257,10 +3397,9 @@ export class CreateClusterNodePoolRequest extends $tea.Model {
|
|
|
3257
3397
|
management?: CreateClusterNodePoolRequestManagement;
|
|
3258
3398
|
/**
|
|
3259
3399
|
* @remarks
|
|
3260
|
-
*
|
|
3400
|
+
* This parameter is deprecated.
|
|
3261
3401
|
*
|
|
3262
|
-
*
|
|
3263
|
-
* * This parameter is set to 0 for node pools whose types are ess or default edge node pools.
|
|
3402
|
+
* The maximum number of nodes that can be contained in the edge node pool.
|
|
3264
3403
|
*
|
|
3265
3404
|
* @example
|
|
3266
3405
|
* 10
|
|
@@ -5507,7 +5646,7 @@ export class DescribeClusterAttachScriptsRequest extends $tea.Model {
|
|
|
5507
5646
|
* * `true`: retains the instance name.
|
|
5508
5647
|
* * `false`: does not retain the instance name.
|
|
5509
5648
|
*
|
|
5510
|
-
* Default value: `true
|
|
5649
|
+
* Default value: `true`.
|
|
5511
5650
|
*
|
|
5512
5651
|
* @example
|
|
5513
5652
|
* true
|
|
@@ -5515,9 +5654,9 @@ export class DescribeClusterAttachScriptsRequest extends $tea.Model {
|
|
|
5515
5654
|
keepInstanceName?: boolean;
|
|
5516
5655
|
/**
|
|
5517
5656
|
* @remarks
|
|
5518
|
-
* The ID of the node pool to which you want to add an existing node.
|
|
5657
|
+
* The ID of the node pool to which you want to add an existing node.
|
|
5519
5658
|
*
|
|
5520
|
-
* > If you do not specify a node pool ID, the node is added to
|
|
5659
|
+
* > If you do not specify a node pool ID, the node is added to a default node pool.
|
|
5521
5660
|
*
|
|
5522
5661
|
* @example
|
|
5523
5662
|
* np1c9229d9be2d432c93f77a88fca0****
|
|
@@ -5535,7 +5674,7 @@ export class DescribeClusterAttachScriptsRequest extends $tea.Model {
|
|
|
5535
5674
|
options?: string;
|
|
5536
5675
|
/**
|
|
5537
5676
|
* @remarks
|
|
5538
|
-
*
|
|
5677
|
+
* The ApsaraDB RDS instances. If you specify a list of ApsaraDB RDS instances, ECS instances in the cluster are automatically added to the whitelist of the ApsaraDB RDS instances.
|
|
5539
5678
|
*/
|
|
5540
5679
|
rdsInstances?: string[];
|
|
5541
5680
|
static names(): { [key: string]: string } {
|
|
@@ -5636,6 +5775,7 @@ export class DescribeClusterDetailResponseBody extends $tea.Model {
|
|
|
5636
5775
|
* 172.20.0.0/16
|
|
5637
5776
|
*/
|
|
5638
5777
|
containerCidr?: string;
|
|
5778
|
+
controlPlaneConfig?: DescribeClusterDetailResponseBodyControlPlaneConfig;
|
|
5639
5779
|
/**
|
|
5640
5780
|
* @remarks
|
|
5641
5781
|
* The time when the cluster was created.
|
|
@@ -5945,6 +6085,7 @@ export class DescribeClusterDetailResponseBody extends $tea.Model {
|
|
|
5945
6085
|
clusterSpec: 'cluster_spec',
|
|
5946
6086
|
clusterType: 'cluster_type',
|
|
5947
6087
|
containerCidr: 'container_cidr',
|
|
6088
|
+
controlPlaneConfig: 'control_plane_config',
|
|
5948
6089
|
created: 'created',
|
|
5949
6090
|
currentVersion: 'current_version',
|
|
5950
6091
|
deletionProtection: 'deletion_protection',
|
|
@@ -5989,6 +6130,7 @@ export class DescribeClusterDetailResponseBody extends $tea.Model {
|
|
|
5989
6130
|
clusterSpec: 'string',
|
|
5990
6131
|
clusterType: 'string',
|
|
5991
6132
|
containerCidr: 'string',
|
|
6133
|
+
controlPlaneConfig: DescribeClusterDetailResponseBodyControlPlaneConfig,
|
|
5992
6134
|
created: 'string',
|
|
5993
6135
|
currentVersion: 'string',
|
|
5994
6136
|
deletionProtection: 'boolean',
|
|
@@ -6188,6 +6330,13 @@ export class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
|
|
|
6188
6330
|
* The auto scaling configuration of the node pool.
|
|
6189
6331
|
*/
|
|
6190
6332
|
autoScaling?: DescribeClusterNodePoolDetailResponseBodyAutoScaling;
|
|
6333
|
+
/**
|
|
6334
|
+
* @remarks
|
|
6335
|
+
* Indicates whether the pods in the edge node pool can use the host network.
|
|
6336
|
+
*
|
|
6337
|
+
* @example
|
|
6338
|
+
* true
|
|
6339
|
+
*/
|
|
6191
6340
|
hostNetwork?: boolean;
|
|
6192
6341
|
/**
|
|
6193
6342
|
* @remarks
|
|
@@ -6202,10 +6351,17 @@ export class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
|
|
|
6202
6351
|
* improved
|
|
6203
6352
|
*/
|
|
6204
6353
|
interconnectMode?: string;
|
|
6354
|
+
/**
|
|
6355
|
+
* @remarks
|
|
6356
|
+
* Indicates whether all nodes in the edge node pool can communicate with each other at Layer 3.
|
|
6357
|
+
*
|
|
6358
|
+
* @example
|
|
6359
|
+
* true
|
|
6360
|
+
*/
|
|
6205
6361
|
intranet?: boolean;
|
|
6206
6362
|
/**
|
|
6207
6363
|
* @remarks
|
|
6208
|
-
* The configurations of the cluster
|
|
6364
|
+
* The configurations of the cluster.
|
|
6209
6365
|
*/
|
|
6210
6366
|
kubernetesConfig?: DescribeClusterNodePoolDetailResponseBodyKubernetesConfig;
|
|
6211
6367
|
/**
|
|
@@ -6223,7 +6379,7 @@ export class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
|
|
|
6223
6379
|
maxNodes?: number;
|
|
6224
6380
|
/**
|
|
6225
6381
|
* @remarks
|
|
6226
|
-
*
|
|
6382
|
+
* The node configurations.
|
|
6227
6383
|
*/
|
|
6228
6384
|
nodeConfig?: DescribeClusterNodePoolDetailResponseBodyNodeConfig;
|
|
6229
6385
|
/**
|
|
@@ -6233,7 +6389,7 @@ export class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
|
|
|
6233
6389
|
nodepoolInfo?: DescribeClusterNodePoolDetailResponseBodyNodepoolInfo;
|
|
6234
6390
|
/**
|
|
6235
6391
|
* @remarks
|
|
6236
|
-
* The configurations of the scaling group.
|
|
6392
|
+
* The configurations of the scaling group used by the node pool.
|
|
6237
6393
|
*/
|
|
6238
6394
|
scalingGroup?: DescribeClusterNodePoolDetailResponseBodyScalingGroup;
|
|
6239
6395
|
/**
|
|
@@ -6949,36 +7105,57 @@ export class DescribeClustersResponse extends $tea.Model {
|
|
|
6949
7105
|
|
|
6950
7106
|
export class DescribeClustersForRegionRequest extends $tea.Model {
|
|
6951
7107
|
/**
|
|
7108
|
+
* @remarks
|
|
7109
|
+
* The cluster ID.
|
|
7110
|
+
*
|
|
6952
7111
|
* @example
|
|
6953
7112
|
* c8155823d057948c69a****
|
|
6954
7113
|
*/
|
|
6955
7114
|
clusterId?: string;
|
|
6956
7115
|
/**
|
|
7116
|
+
* @remarks
|
|
7117
|
+
* The specification of the cluster.
|
|
7118
|
+
*
|
|
6957
7119
|
* @example
|
|
6958
7120
|
* ack.standard
|
|
6959
7121
|
*/
|
|
6960
7122
|
clusterSpec?: string;
|
|
6961
7123
|
/**
|
|
7124
|
+
* @remarks
|
|
7125
|
+
* The type of the cluster.
|
|
7126
|
+
*
|
|
6962
7127
|
* @example
|
|
6963
7128
|
* Kubernetes
|
|
6964
7129
|
*/
|
|
6965
7130
|
clusterType?: string;
|
|
6966
7131
|
/**
|
|
7132
|
+
* @remarks
|
|
7133
|
+
* Perform a fuzzy search by using the cluster name.
|
|
7134
|
+
*
|
|
6967
7135
|
* @example
|
|
6968
7136
|
* test-cluster
|
|
6969
7137
|
*/
|
|
6970
7138
|
name?: string;
|
|
6971
7139
|
/**
|
|
7140
|
+
* @remarks
|
|
7141
|
+
* The number of pages.
|
|
7142
|
+
*
|
|
6972
7143
|
* @example
|
|
6973
7144
|
* 10
|
|
6974
7145
|
*/
|
|
6975
7146
|
pageNumber?: number;
|
|
6976
7147
|
/**
|
|
7148
|
+
* @remarks
|
|
7149
|
+
* The number of records on each page.
|
|
7150
|
+
*
|
|
6977
7151
|
* @example
|
|
6978
7152
|
* 3
|
|
6979
7153
|
*/
|
|
6980
7154
|
pageSize?: number;
|
|
6981
7155
|
/**
|
|
7156
|
+
* @remarks
|
|
7157
|
+
* The identifier of the cluster.
|
|
7158
|
+
*
|
|
6982
7159
|
* @example
|
|
6983
7160
|
* Serverless
|
|
6984
7161
|
*/
|
|
@@ -7013,7 +7190,15 @@ export class DescribeClustersForRegionRequest extends $tea.Model {
|
|
|
7013
7190
|
}
|
|
7014
7191
|
|
|
7015
7192
|
export class DescribeClustersForRegionResponseBody extends $tea.Model {
|
|
7193
|
+
/**
|
|
7194
|
+
* @remarks
|
|
7195
|
+
* The details of the clusters.
|
|
7196
|
+
*/
|
|
7016
7197
|
clusters?: DescribeClustersForRegionResponseBodyClusters[];
|
|
7198
|
+
/**
|
|
7199
|
+
* @remarks
|
|
7200
|
+
* The pagination details.
|
|
7201
|
+
*/
|
|
7017
7202
|
pageInfo?: DescribeClustersForRegionResponseBodyPageInfo;
|
|
7018
7203
|
static names(): { [key: string]: string } {
|
|
7019
7204
|
return {
|
|
@@ -7736,16 +7921,25 @@ export class DescribeEventsResponse extends $tea.Model {
|
|
|
7736
7921
|
|
|
7737
7922
|
export class DescribeEventsForRegionRequest extends $tea.Model {
|
|
7738
7923
|
/**
|
|
7924
|
+
* @remarks
|
|
7925
|
+
* The cluster ID.
|
|
7926
|
+
*
|
|
7739
7927
|
* @example
|
|
7740
7928
|
* cf62854ac2130470897be7a27ed1f****
|
|
7741
7929
|
*/
|
|
7742
7930
|
clusterId?: string;
|
|
7743
7931
|
/**
|
|
7932
|
+
* @remarks
|
|
7933
|
+
* The number of pages.
|
|
7934
|
+
*
|
|
7744
7935
|
* @example
|
|
7745
7936
|
* 1
|
|
7746
7937
|
*/
|
|
7747
7938
|
pageNumber?: number;
|
|
7748
7939
|
/**
|
|
7940
|
+
* @remarks
|
|
7941
|
+
* The number of records on each page.
|
|
7942
|
+
*
|
|
7749
7943
|
* @example
|
|
7750
7944
|
* 50
|
|
7751
7945
|
*/
|
|
@@ -7772,7 +7966,15 @@ export class DescribeEventsForRegionRequest extends $tea.Model {
|
|
|
7772
7966
|
}
|
|
7773
7967
|
|
|
7774
7968
|
export class DescribeEventsForRegionResponseBody extends $tea.Model {
|
|
7969
|
+
/**
|
|
7970
|
+
* @remarks
|
|
7971
|
+
* The events.
|
|
7972
|
+
*/
|
|
7775
7973
|
events?: DescribeEventsForRegionResponseBodyEvents[];
|
|
7974
|
+
/**
|
|
7975
|
+
* @remarks
|
|
7976
|
+
* The pagination details.
|
|
7977
|
+
*/
|
|
7776
7978
|
pageInfo?: DescribeEventsForRegionResponseBodyPageInfo;
|
|
7777
7979
|
static names(): { [key: string]: string } {
|
|
7778
7980
|
return {
|
|
@@ -11114,6 +11316,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
11114
11316
|
* cluster-new-name
|
|
11115
11317
|
*/
|
|
11116
11318
|
clusterName?: string;
|
|
11319
|
+
controlPlaneConfig?: ModifyClusterRequestControlPlaneConfig;
|
|
11117
11320
|
/**
|
|
11118
11321
|
* @remarks
|
|
11119
11322
|
* 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 +11406,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
11203
11406
|
apiServerEip: 'api_server_eip',
|
|
11204
11407
|
apiServerEipId: 'api_server_eip_id',
|
|
11205
11408
|
clusterName: 'cluster_name',
|
|
11409
|
+
controlPlaneConfig: 'control_plane_config',
|
|
11206
11410
|
deletionProtection: 'deletion_protection',
|
|
11207
11411
|
enableRrsa: 'enable_rrsa',
|
|
11208
11412
|
ingressDomainRebinding: 'ingress_domain_rebinding',
|
|
@@ -11223,6 +11427,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
11223
11427
|
apiServerEip: 'boolean',
|
|
11224
11428
|
apiServerEipId: 'string',
|
|
11225
11429
|
clusterName: 'string',
|
|
11430
|
+
controlPlaneConfig: ModifyClusterRequestControlPlaneConfig,
|
|
11226
11431
|
deletionProtection: 'boolean',
|
|
11227
11432
|
enableRrsa: 'boolean',
|
|
11228
11433
|
ingressDomainRebinding: 'boolean',
|
|
@@ -11602,17 +11807,17 @@ export class ModifyClusterTagsResponse extends $tea.Model {
|
|
|
11602
11807
|
export class ModifyNodePoolNodeConfigRequest extends $tea.Model {
|
|
11603
11808
|
/**
|
|
11604
11809
|
* @remarks
|
|
11605
|
-
* The
|
|
11810
|
+
* The kubelet configuration.
|
|
11606
11811
|
*/
|
|
11607
11812
|
kubeletConfig?: KubeletConfig;
|
|
11608
11813
|
/**
|
|
11609
11814
|
* @remarks
|
|
11610
|
-
*
|
|
11815
|
+
* The OS configuration.
|
|
11611
11816
|
*/
|
|
11612
11817
|
osConfig?: ModifyNodePoolNodeConfigRequestOsConfig;
|
|
11613
11818
|
/**
|
|
11614
11819
|
* @remarks
|
|
11615
|
-
* The rotation
|
|
11820
|
+
* The rotation configuration.
|
|
11616
11821
|
*/
|
|
11617
11822
|
rollingPolicy?: ModifyNodePoolNodeConfigRequestRollingPolicy;
|
|
11618
11823
|
static names(): { [key: string]: string } {
|
|
@@ -15739,6 +15944,94 @@ export class CheckServiceRoleResponseBodyRoles extends $tea.Model {
|
|
|
15739
15944
|
}
|
|
15740
15945
|
}
|
|
15741
15946
|
|
|
15947
|
+
export class CreateClusterRequestControlPlaneConfig extends $tea.Model {
|
|
15948
|
+
autoRenew?: boolean;
|
|
15949
|
+
autoRenewPeriod?: number;
|
|
15950
|
+
chargeType?: string;
|
|
15951
|
+
cloudMonitorFlags?: boolean;
|
|
15952
|
+
cpuPolicy?: string;
|
|
15953
|
+
deploymentsetId?: string;
|
|
15954
|
+
imageId?: string;
|
|
15955
|
+
imageType?: string;
|
|
15956
|
+
instanceTypes?: string[];
|
|
15957
|
+
keyPair?: string;
|
|
15958
|
+
loginPassword?: string;
|
|
15959
|
+
nodePortRange?: string;
|
|
15960
|
+
period?: number;
|
|
15961
|
+
periodUnit?: string;
|
|
15962
|
+
runtime?: string;
|
|
15963
|
+
securityHardeningOs?: boolean;
|
|
15964
|
+
size?: number;
|
|
15965
|
+
socEnabled?: boolean;
|
|
15966
|
+
systemDiskBurstingEnabled?: boolean;
|
|
15967
|
+
systemDiskCategory?: string;
|
|
15968
|
+
systemDiskPerformanceLevel?: string;
|
|
15969
|
+
systemDiskProvisionedIops?: number;
|
|
15970
|
+
systemDiskSize?: number;
|
|
15971
|
+
systemDiskSnapshotPolicyId?: string;
|
|
15972
|
+
static names(): { [key: string]: string } {
|
|
15973
|
+
return {
|
|
15974
|
+
autoRenew: 'auto_renew',
|
|
15975
|
+
autoRenewPeriod: 'auto_renew_period',
|
|
15976
|
+
chargeType: 'charge_type',
|
|
15977
|
+
cloudMonitorFlags: 'cloud_monitor_flags',
|
|
15978
|
+
cpuPolicy: 'cpu_policy',
|
|
15979
|
+
deploymentsetId: 'deploymentset_id',
|
|
15980
|
+
imageId: 'image_id',
|
|
15981
|
+
imageType: 'image_type',
|
|
15982
|
+
instanceTypes: 'instance_types',
|
|
15983
|
+
keyPair: 'key_pair',
|
|
15984
|
+
loginPassword: 'login_password',
|
|
15985
|
+
nodePortRange: 'node_port_range',
|
|
15986
|
+
period: 'period',
|
|
15987
|
+
periodUnit: 'period_unit',
|
|
15988
|
+
runtime: 'runtime',
|
|
15989
|
+
securityHardeningOs: 'security_hardening_os',
|
|
15990
|
+
size: 'size',
|
|
15991
|
+
socEnabled: 'soc_enabled',
|
|
15992
|
+
systemDiskBurstingEnabled: 'system_disk_bursting_enabled',
|
|
15993
|
+
systemDiskCategory: 'system_disk_category',
|
|
15994
|
+
systemDiskPerformanceLevel: 'system_disk_performance_level',
|
|
15995
|
+
systemDiskProvisionedIops: 'system_disk_provisioned_iops',
|
|
15996
|
+
systemDiskSize: 'system_disk_size',
|
|
15997
|
+
systemDiskSnapshotPolicyId: 'system_disk_snapshot_policy_id',
|
|
15998
|
+
};
|
|
15999
|
+
}
|
|
16000
|
+
|
|
16001
|
+
static types(): { [key: string]: any } {
|
|
16002
|
+
return {
|
|
16003
|
+
autoRenew: 'boolean',
|
|
16004
|
+
autoRenewPeriod: 'number',
|
|
16005
|
+
chargeType: 'string',
|
|
16006
|
+
cloudMonitorFlags: 'boolean',
|
|
16007
|
+
cpuPolicy: 'string',
|
|
16008
|
+
deploymentsetId: 'string',
|
|
16009
|
+
imageId: 'string',
|
|
16010
|
+
imageType: 'string',
|
|
16011
|
+
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
16012
|
+
keyPair: 'string',
|
|
16013
|
+
loginPassword: 'string',
|
|
16014
|
+
nodePortRange: 'string',
|
|
16015
|
+
period: 'number',
|
|
16016
|
+
periodUnit: 'string',
|
|
16017
|
+
runtime: 'string',
|
|
16018
|
+
securityHardeningOs: 'boolean',
|
|
16019
|
+
size: 'number',
|
|
16020
|
+
socEnabled: 'boolean',
|
|
16021
|
+
systemDiskBurstingEnabled: 'boolean',
|
|
16022
|
+
systemDiskCategory: 'string',
|
|
16023
|
+
systemDiskPerformanceLevel: 'string',
|
|
16024
|
+
systemDiskProvisionedIops: 'number',
|
|
16025
|
+
systemDiskSize: 'number',
|
|
16026
|
+
systemDiskSnapshotPolicyId: 'string',
|
|
16027
|
+
};
|
|
16028
|
+
}
|
|
16029
|
+
|
|
16030
|
+
constructor(map?: { [key: string]: any }) {
|
|
16031
|
+
super(map);
|
|
16032
|
+
}
|
|
16033
|
+
}
|
|
16034
|
+
|
|
15742
16035
|
export class CreateClusterRequestOperationPolicyClusterAutoUpgrade extends $tea.Model {
|
|
15743
16036
|
/**
|
|
15744
16037
|
* @remarks
|
|
@@ -16085,7 +16378,7 @@ export class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
|
|
|
16085
16378
|
* * `true`: installs the CloudMonitor agent on ECS nodes.
|
|
16086
16379
|
* * `false`: does not install the CloudMonitor agent on ECS nodes.
|
|
16087
16380
|
*
|
|
16088
|
-
* Default value: `false
|
|
16381
|
+
* Default value: `false`
|
|
16089
16382
|
*
|
|
16090
16383
|
* @example
|
|
16091
16384
|
* true
|
|
@@ -16154,7 +16447,7 @@ export class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
|
|
|
16154
16447
|
runtimeVersion?: string;
|
|
16155
16448
|
/**
|
|
16156
16449
|
* @remarks
|
|
16157
|
-
* The
|
|
16450
|
+
* The configuration of the taint.
|
|
16158
16451
|
*/
|
|
16159
16452
|
taints?: Taint[];
|
|
16160
16453
|
/**
|
|
@@ -16361,7 +16654,7 @@ export class CreateClusterNodePoolRequestManagementUpgradeConfig extends $tea.Mo
|
|
|
16361
16654
|
* @remarks
|
|
16362
16655
|
* The maximum number of nodes that can be in the Unavailable state. Valid values: 1 to 1000.
|
|
16363
16656
|
*
|
|
16364
|
-
* Default value: 1
|
|
16657
|
+
* Default value: 1
|
|
16365
16658
|
*
|
|
16366
16659
|
* @example
|
|
16367
16660
|
* 1
|
|
@@ -16666,7 +16959,7 @@ export class CreateClusterNodePoolRequestScalingGroupSpotPriceLimit extends $tea
|
|
|
16666
16959
|
export class CreateClusterNodePoolRequestScalingGroupTags extends $tea.Model {
|
|
16667
16960
|
/**
|
|
16668
16961
|
* @remarks
|
|
16669
|
-
* The
|
|
16962
|
+
* The tag key.
|
|
16670
16963
|
*
|
|
16671
16964
|
* @example
|
|
16672
16965
|
* node-k-1
|
|
@@ -16674,7 +16967,7 @@ export class CreateClusterNodePoolRequestScalingGroupTags extends $tea.Model {
|
|
|
16674
16967
|
key?: string;
|
|
16675
16968
|
/**
|
|
16676
16969
|
* @remarks
|
|
16677
|
-
* The
|
|
16970
|
+
* The tag value.
|
|
16678
16971
|
*
|
|
16679
16972
|
* @example
|
|
16680
16973
|
* node-v-1
|
|
@@ -16707,7 +17000,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
16707
17000
|
* * `true`: enables auto-renewal.
|
|
16708
17001
|
* * `false`: disables auto-renewal.
|
|
16709
17002
|
*
|
|
16710
|
-
* Default value: `false
|
|
17003
|
+
* Default value: `false`
|
|
16711
17004
|
*
|
|
16712
17005
|
* @example
|
|
16713
17006
|
* true
|
|
@@ -16715,9 +17008,12 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
16715
17008
|
autoRenew?: boolean;
|
|
16716
17009
|
/**
|
|
16717
17010
|
* @remarks
|
|
16718
|
-
* The auto-renewal
|
|
17011
|
+
* The auto-renewal period. Valid values:
|
|
16719
17012
|
*
|
|
16720
|
-
*
|
|
17013
|
+
* * Valid values when PeriodUnit is set to Week: 1, 2, and 3
|
|
17014
|
+
* * Valid values when PeriodUnit is set to Month: 1, 2, 3, 6, 12, 24, 36, 48, and 60
|
|
17015
|
+
*
|
|
17016
|
+
* Default value: 1
|
|
16721
17017
|
*
|
|
16722
17018
|
* @example
|
|
16723
17019
|
* 1
|
|
@@ -17520,6 +17816,91 @@ export class DescribeAddonsResponseBodyComponentGroups extends $tea.Model {
|
|
|
17520
17816
|
}
|
|
17521
17817
|
}
|
|
17522
17818
|
|
|
17819
|
+
export class DescribeClusterDetailResponseBodyControlPlaneConfig extends $tea.Model {
|
|
17820
|
+
autoRenew?: boolean;
|
|
17821
|
+
autoRenewPeriod?: number;
|
|
17822
|
+
chargeType?: string;
|
|
17823
|
+
cloudMonitorFlags?: boolean;
|
|
17824
|
+
cpuPolicy?: string;
|
|
17825
|
+
deploymentsetId?: string;
|
|
17826
|
+
imageId?: string;
|
|
17827
|
+
imageType?: string;
|
|
17828
|
+
instanceTypes?: string[];
|
|
17829
|
+
keyPair?: string;
|
|
17830
|
+
nodePortRange?: string;
|
|
17831
|
+
period?: number;
|
|
17832
|
+
periodUnit?: string;
|
|
17833
|
+
runtime?: string;
|
|
17834
|
+
securityHardeningOs?: boolean;
|
|
17835
|
+
size?: number;
|
|
17836
|
+
socEnabled?: boolean;
|
|
17837
|
+
systemDiskBurstingEnabled?: boolean;
|
|
17838
|
+
systemDiskCategory?: string;
|
|
17839
|
+
systemDiskPerformanceLevel?: string;
|
|
17840
|
+
systemDiskProvisionedIops?: number;
|
|
17841
|
+
systemDiskSize?: number;
|
|
17842
|
+
systemDiskSnapshotPolicyId?: string;
|
|
17843
|
+
static names(): { [key: string]: string } {
|
|
17844
|
+
return {
|
|
17845
|
+
autoRenew: 'auto_renew',
|
|
17846
|
+
autoRenewPeriod: 'auto_renew_period',
|
|
17847
|
+
chargeType: 'charge_type',
|
|
17848
|
+
cloudMonitorFlags: 'cloud_monitor_flags',
|
|
17849
|
+
cpuPolicy: 'cpu_policy',
|
|
17850
|
+
deploymentsetId: 'deploymentset_id',
|
|
17851
|
+
imageId: 'image_id',
|
|
17852
|
+
imageType: 'image_type',
|
|
17853
|
+
instanceTypes: 'instance_types',
|
|
17854
|
+
keyPair: 'key_pair',
|
|
17855
|
+
nodePortRange: 'node_port_range',
|
|
17856
|
+
period: 'period',
|
|
17857
|
+
periodUnit: 'period_unit',
|
|
17858
|
+
runtime: 'runtime',
|
|
17859
|
+
securityHardeningOs: 'security_hardening_os',
|
|
17860
|
+
size: 'size',
|
|
17861
|
+
socEnabled: 'soc_enabled',
|
|
17862
|
+
systemDiskBurstingEnabled: 'system_disk_bursting_enabled',
|
|
17863
|
+
systemDiskCategory: 'system_disk_category',
|
|
17864
|
+
systemDiskPerformanceLevel: 'system_disk_performance_level',
|
|
17865
|
+
systemDiskProvisionedIops: 'system_disk_provisioned_iops',
|
|
17866
|
+
systemDiskSize: 'system_disk_size',
|
|
17867
|
+
systemDiskSnapshotPolicyId: 'system_disk_snapshot_policy_id',
|
|
17868
|
+
};
|
|
17869
|
+
}
|
|
17870
|
+
|
|
17871
|
+
static types(): { [key: string]: any } {
|
|
17872
|
+
return {
|
|
17873
|
+
autoRenew: 'boolean',
|
|
17874
|
+
autoRenewPeriod: 'number',
|
|
17875
|
+
chargeType: 'string',
|
|
17876
|
+
cloudMonitorFlags: 'boolean',
|
|
17877
|
+
cpuPolicy: 'string',
|
|
17878
|
+
deploymentsetId: 'string',
|
|
17879
|
+
imageId: 'string',
|
|
17880
|
+
imageType: 'string',
|
|
17881
|
+
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
17882
|
+
keyPair: 'string',
|
|
17883
|
+
nodePortRange: 'string',
|
|
17884
|
+
period: 'number',
|
|
17885
|
+
periodUnit: 'string',
|
|
17886
|
+
runtime: 'string',
|
|
17887
|
+
securityHardeningOs: 'boolean',
|
|
17888
|
+
size: 'number',
|
|
17889
|
+
socEnabled: 'boolean',
|
|
17890
|
+
systemDiskBurstingEnabled: 'boolean',
|
|
17891
|
+
systemDiskCategory: 'string',
|
|
17892
|
+
systemDiskPerformanceLevel: 'string',
|
|
17893
|
+
systemDiskProvisionedIops: 'number',
|
|
17894
|
+
systemDiskSize: 'number',
|
|
17895
|
+
systemDiskSnapshotPolicyId: 'string',
|
|
17896
|
+
};
|
|
17897
|
+
}
|
|
17898
|
+
|
|
17899
|
+
constructor(map?: { [key: string]: any }) {
|
|
17900
|
+
super(map);
|
|
17901
|
+
}
|
|
17902
|
+
}
|
|
17903
|
+
|
|
17523
17904
|
export class DescribeClusterDetailResponseBodyOperationPolicyClusterAutoUpgrade extends $tea.Model {
|
|
17524
17905
|
/**
|
|
17525
17906
|
* @remarks
|
|
@@ -18043,10 +18424,10 @@ export class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $
|
|
|
18043
18424
|
cpuPolicy?: string;
|
|
18044
18425
|
/**
|
|
18045
18426
|
* @remarks
|
|
18046
|
-
* The labels
|
|
18427
|
+
* The labels that you want to add to the nodes in the cluster. You must add labels based on the following rules:
|
|
18047
18428
|
*
|
|
18048
|
-
* *
|
|
18049
|
-
* *
|
|
18429
|
+
* * A label is a case-sensitive key-value pair. You can add up to 20 labels.
|
|
18430
|
+
* * The key must be unique and cannot exceed 64 characters in length. The value can be empty and cannot exceed 128 characters in length. Keys and values cannot start with `aliyun`, `acs:`, `https://`, or `http://`. For more information, see [Labels and Selectors](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set).
|
|
18050
18431
|
*/
|
|
18051
18432
|
labels?: Tag[];
|
|
18052
18433
|
/**
|
|
@@ -18065,6 +18446,9 @@ export class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $
|
|
|
18065
18446
|
/**
|
|
18066
18447
|
* @remarks
|
|
18067
18448
|
* The custom script to be executed before nodes in the node pool are initialized. For more information, see [Generate user-defined data](https://help.aliyun.com/document_detail/49121.html).
|
|
18449
|
+
*
|
|
18450
|
+
* @example
|
|
18451
|
+
* dGhpcyBpcyBhIGV4YW1wbGU
|
|
18068
18452
|
*/
|
|
18069
18453
|
preUserData?: string;
|
|
18070
18454
|
/**
|
|
@@ -18085,7 +18469,7 @@ export class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $
|
|
|
18085
18469
|
runtimeVersion?: string;
|
|
18086
18470
|
/**
|
|
18087
18471
|
* @remarks
|
|
18088
|
-
* The taints
|
|
18472
|
+
* The taints that you want to add to nodes. Taints can be used together with tolerations to prevent pods from being scheduled to specific nodes. For more information, see [taint-and-toleration](https://kubernetes.io/zh/docs/concepts/scheduling-eviction/taint-and-toleration/).
|
|
18089
18473
|
*/
|
|
18090
18474
|
taints?: Taint[];
|
|
18091
18475
|
/**
|
|
@@ -18381,7 +18765,7 @@ export class DescribeClusterNodePoolDetailResponseBodyManagement extends $tea.Mo
|
|
|
18381
18765
|
export class DescribeClusterNodePoolDetailResponseBodyNodeConfig extends $tea.Model {
|
|
18382
18766
|
/**
|
|
18383
18767
|
* @remarks
|
|
18384
|
-
*
|
|
18768
|
+
* The configurations of the kubelet.
|
|
18385
18769
|
*/
|
|
18386
18770
|
kubeletConfiguration?: KubeletConfig;
|
|
18387
18771
|
static names(): { [key: string]: string } {
|
|
@@ -18622,7 +19006,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
18622
19006
|
compensateWithOnDemand?: boolean;
|
|
18623
19007
|
/**
|
|
18624
19008
|
* @remarks
|
|
18625
|
-
* The configurations of the data disks that are attached to the nodes in the node pool. The configurations include the disk
|
|
19009
|
+
* The configurations of the data disks that are attached to the nodes in the node pool. The configurations include the disk category and disk size.
|
|
18626
19010
|
*/
|
|
18627
19011
|
dataDisks?: DataDisk[];
|
|
18628
19012
|
/**
|
|
@@ -18670,7 +19054,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
18670
19054
|
instanceChargeType?: string;
|
|
18671
19055
|
/**
|
|
18672
19056
|
* @remarks
|
|
18673
|
-
*
|
|
19057
|
+
* The instance properties.
|
|
18674
19058
|
*/
|
|
18675
19059
|
instancePatterns?: InstancePatterns[];
|
|
18676
19060
|
/**
|
|
@@ -18915,14 +19299,14 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
18915
19299
|
systemDiskBurstingEnabled?: boolean;
|
|
18916
19300
|
/**
|
|
18917
19301
|
* @remarks
|
|
18918
|
-
* The system disk
|
|
19302
|
+
* The categories of the system disk for nodes. The system attempts to create system disks of a disk category with a lower priority if the disk category with a higher priority is unavailable. Valid values: Valid values:
|
|
18919
19303
|
*
|
|
18920
|
-
* * `cloud`: basic disk
|
|
18921
|
-
* * `cloud_efficiency`: ultra disk
|
|
18922
|
-
* * `cloud_ssd`: standard SSD
|
|
18923
|
-
* * `cloud_essd`: ESSD
|
|
18924
|
-
* * `cloud_auto`: ESSD AutoPL disk
|
|
18925
|
-
* * `cloud_essd_entry`: ESSD Entry disk
|
|
19304
|
+
* * `cloud`: basic disk.
|
|
19305
|
+
* * `cloud_efficiency`: ultra disk.
|
|
19306
|
+
* * `cloud_ssd`: standard SSD.
|
|
19307
|
+
* * `cloud_essd`: Enterprise SSD (ESSD).
|
|
19308
|
+
* * `cloud_auto`: ESSD AutoPL disk.
|
|
19309
|
+
* * `cloud_essd_entry`: ESSD Entry disk.
|
|
18926
19310
|
*
|
|
18927
19311
|
* Default value: `cloud_efficiency`.
|
|
18928
19312
|
*/
|
|
@@ -18946,7 +19330,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
18946
19330
|
systemDiskCategory?: string;
|
|
18947
19331
|
/**
|
|
18948
19332
|
* @remarks
|
|
18949
|
-
*
|
|
19333
|
+
* The encryption algorithm that is used to encrypt the system disk. Set the value to aes-256.
|
|
18950
19334
|
*
|
|
18951
19335
|
* @example
|
|
18952
19336
|
* aes-256
|
|
@@ -18999,9 +19383,9 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
18999
19383
|
systemDiskSize?: number;
|
|
19000
19384
|
/**
|
|
19001
19385
|
* @remarks
|
|
19002
|
-
* The labels that you want to add to
|
|
19386
|
+
* The labels that you want to add only to ECS instances.
|
|
19003
19387
|
*
|
|
19004
|
-
*
|
|
19388
|
+
* The label key must be unique and cannot exceed 128 characters in length. The label key and value cannot start with aliyun or acs: or contain https:// or http://.
|
|
19005
19389
|
*/
|
|
19006
19390
|
tags?: Tag[];
|
|
19007
19391
|
/**
|
|
@@ -21685,92 +22069,165 @@ export class DescribeClustersResponseBody extends $tea.Model {
|
|
|
21685
22069
|
|
|
21686
22070
|
export class DescribeClustersForRegionResponseBodyClusters extends $tea.Model {
|
|
21687
22071
|
/**
|
|
22072
|
+
* @remarks
|
|
22073
|
+
* The domain name of the cluster.
|
|
22074
|
+
*
|
|
21688
22075
|
* @example
|
|
21689
22076
|
* cluster.local
|
|
21690
22077
|
*/
|
|
21691
22078
|
clusterDomain?: string;
|
|
21692
22079
|
/**
|
|
22080
|
+
* @remarks
|
|
22081
|
+
* The cluster ID.
|
|
22082
|
+
*
|
|
21693
22083
|
* @example
|
|
21694
22084
|
* c905d1364c2dd4b6284a3f41790c4****
|
|
21695
22085
|
*/
|
|
21696
22086
|
clusterId?: string;
|
|
21697
22087
|
/**
|
|
22088
|
+
* @remarks
|
|
22089
|
+
* The types of ACK managed clusters:
|
|
22090
|
+
*
|
|
22091
|
+
* * ack.pro.small: ACK Pro cluster
|
|
22092
|
+
* * ack.standard: ACK Basic cluster
|
|
22093
|
+
*
|
|
21698
22094
|
* @example
|
|
21699
22095
|
* ack.standard
|
|
21700
22096
|
*/
|
|
21701
22097
|
clusterSpec?: string;
|
|
21702
22098
|
/**
|
|
22099
|
+
* @remarks
|
|
22100
|
+
* The type of the cluster. Valid values:
|
|
22101
|
+
*
|
|
22102
|
+
* * Kubernetes: ACK dedicated cluster
|
|
22103
|
+
* * ManagedKubernetes: ACK managed clusters. ACK managed clusters include ACK Basic clusters, ACK Pro clusters, ACK Serverless Basic clusters, ACK Serverless Pro clusters, ACK Edge Basic clusters, ACK Edge Pro clusters, and ACK Lingjun Pro clusters.
|
|
22104
|
+
* * ExternalKubernetes: registered cluster
|
|
22105
|
+
*
|
|
21703
22106
|
* @example
|
|
21704
22107
|
* ManagedKubernetes
|
|
21705
22108
|
*/
|
|
21706
22109
|
clusterType?: string;
|
|
21707
22110
|
/**
|
|
22111
|
+
* @remarks
|
|
22112
|
+
* The CIDR block of pods in the cluster.
|
|
22113
|
+
*
|
|
21708
22114
|
* @example
|
|
21709
22115
|
* 172.20.0.0/16
|
|
21710
22116
|
*/
|
|
21711
22117
|
containerCidr?: string;
|
|
21712
22118
|
/**
|
|
22119
|
+
* @remarks
|
|
22120
|
+
* The time at which the instance is created.
|
|
22121
|
+
*
|
|
21713
22122
|
* @example
|
|
21714
22123
|
* 2020-12-01T20:40:40+08:00
|
|
21715
22124
|
*/
|
|
21716
22125
|
created?: string;
|
|
21717
22126
|
/**
|
|
22127
|
+
* @remarks
|
|
22128
|
+
* The current Kubernetes version of the cluster.
|
|
22129
|
+
*
|
|
21718
22130
|
* @example
|
|
21719
22131
|
* 1.16.6-aliyun.1
|
|
21720
22132
|
*/
|
|
21721
22133
|
currentVersion?: string;
|
|
21722
22134
|
/**
|
|
22135
|
+
* @remarks
|
|
22136
|
+
* 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. You can obtain the terminal ID by calling one of the following operations:
|
|
22137
|
+
*
|
|
22138
|
+
* * true: enables deletion protection for the cluster. This way, the cluster cannot be deleted in the ACK console or by calling API operations.
|
|
22139
|
+
* * false: disables deletion protection for the cluster. This way, the cluster can be deleted in the ACK console or by calling API operations.
|
|
22140
|
+
*
|
|
21723
22141
|
* @example
|
|
21724
22142
|
* false
|
|
21725
22143
|
*/
|
|
21726
22144
|
deletionProtection?: boolean;
|
|
21727
22145
|
/**
|
|
22146
|
+
* @remarks
|
|
22147
|
+
* The initial Kubernetes version of the cluster.
|
|
22148
|
+
*
|
|
21728
22149
|
* @example
|
|
21729
22150
|
* 1.16.6-aliyun.1
|
|
21730
22151
|
*/
|
|
21731
22152
|
initVersion?: string;
|
|
21732
22153
|
/**
|
|
22154
|
+
* @remarks
|
|
22155
|
+
* The IP protocol stack of the cluster.
|
|
22156
|
+
*
|
|
21733
22157
|
* @example
|
|
21734
22158
|
* ipv4
|
|
21735
22159
|
*/
|
|
21736
22160
|
ipStack?: string;
|
|
21737
22161
|
/**
|
|
22162
|
+
* @remarks
|
|
22163
|
+
* The name of the cluster.
|
|
22164
|
+
*
|
|
21738
22165
|
* @example
|
|
21739
22166
|
* test-cluster
|
|
21740
22167
|
*/
|
|
21741
22168
|
name?: string;
|
|
21742
22169
|
/**
|
|
22170
|
+
* @remarks
|
|
22171
|
+
* The Kubernetes version to which the cluster can be updated.
|
|
22172
|
+
*
|
|
21743
22173
|
* @example
|
|
21744
22174
|
* 1.18.8-aliyun.1
|
|
21745
22175
|
*/
|
|
21746
22176
|
nextVersion?: string;
|
|
21747
22177
|
/**
|
|
22178
|
+
* @remarks
|
|
22179
|
+
* The subtype of the cluster. Valid values:
|
|
22180
|
+
*
|
|
22181
|
+
* * Default: ACK managed clusters. ACK managed clusters include ACK Basic clusters and ACK Pro clusters.
|
|
22182
|
+
* * Edge: ACK Edge clusters. ACK Edge clusters include ACK Edge Basic clusters and ACK Edge Pro clusters.
|
|
22183
|
+
* * Serverless: ACK Serverless clusters. ACK Serverless clusters include ACK Serverless Basic clusters and ACK Serverless Pro clusters.
|
|
22184
|
+
* * Lingjun: ACK Lingjun Pro clusters.
|
|
22185
|
+
*
|
|
21748
22186
|
* @example
|
|
21749
22187
|
* Default
|
|
21750
22188
|
*/
|
|
21751
22189
|
profile?: string;
|
|
21752
22190
|
/**
|
|
22191
|
+
* @remarks
|
|
22192
|
+
* The kube-proxy mode of the cluster.
|
|
22193
|
+
*
|
|
22194
|
+
* Valid value:
|
|
22195
|
+
*
|
|
22196
|
+
* * iptables: iptables.
|
|
22197
|
+
* * ipvs: ipvs.
|
|
22198
|
+
*
|
|
21753
22199
|
* @example
|
|
21754
22200
|
* ipvs
|
|
21755
22201
|
*/
|
|
21756
22202
|
proxyMode?: string;
|
|
21757
22203
|
/**
|
|
22204
|
+
* @remarks
|
|
22205
|
+
* The region ID.
|
|
22206
|
+
*
|
|
21758
22207
|
* @example
|
|
21759
22208
|
* cn-beijing-a
|
|
21760
22209
|
*/
|
|
21761
22210
|
regionId?: string;
|
|
21762
22211
|
/**
|
|
22212
|
+
* @remarks
|
|
22213
|
+
* The ID of the cluster resource group.
|
|
22214
|
+
*
|
|
21763
22215
|
* @example
|
|
21764
22216
|
* rg-acfmyvw3wjm****
|
|
21765
22217
|
*/
|
|
21766
22218
|
resourceGroupId?: string;
|
|
21767
22219
|
/**
|
|
22220
|
+
* @remarks
|
|
22221
|
+
* The ID of the security group of the cluster.
|
|
22222
|
+
*
|
|
21768
22223
|
* @example
|
|
21769
22224
|
* sg-2zeihch86ooz9io4****
|
|
21770
22225
|
*/
|
|
21771
22226
|
securityGroupId?: string;
|
|
21772
22227
|
/**
|
|
21773
22228
|
* @remarks
|
|
22229
|
+
* The CIDR block of the service network.
|
|
22230
|
+
*
|
|
21774
22231
|
* This parameter is required.
|
|
21775
22232
|
*
|
|
21776
22233
|
* @example
|
|
@@ -21778,31 +22235,67 @@ export class DescribeClustersForRegionResponseBodyClusters extends $tea.Model {
|
|
|
21778
22235
|
*/
|
|
21779
22236
|
serviceCidr?: string;
|
|
21780
22237
|
/**
|
|
22238
|
+
* @remarks
|
|
22239
|
+
* The number of nodes in the ACK cluster.
|
|
22240
|
+
*
|
|
21781
22241
|
* @example
|
|
21782
22242
|
* 2
|
|
21783
22243
|
*/
|
|
21784
22244
|
size?: number;
|
|
21785
22245
|
/**
|
|
22246
|
+
* @remarks
|
|
22247
|
+
* The status of the cluster. Valid values:
|
|
22248
|
+
*
|
|
22249
|
+
* * initial: The cluster is being created.
|
|
22250
|
+
* * failed: The cluster failed to be created.
|
|
22251
|
+
* * running: The cluster is running.
|
|
22252
|
+
* * Upgrading: The cluster is being updated.
|
|
22253
|
+
* * scaling: The cluster is being scaled.
|
|
22254
|
+
* * waiting: The cluster is waiting for connection requests.
|
|
22255
|
+
* * disconnected: The cluster is disconnected.
|
|
22256
|
+
* * inactive: The cluster is inactive.
|
|
22257
|
+
* * unavailable: The cluster is unavailable.
|
|
22258
|
+
* * deleting: The cluster is being deleted.
|
|
22259
|
+
* * deleted: The ACK cluster is deleted.
|
|
22260
|
+
* * delete_failed: The cluster failed to be deleted.
|
|
22261
|
+
*
|
|
21786
22262
|
* @example
|
|
21787
22263
|
* running
|
|
21788
22264
|
*/
|
|
21789
22265
|
state?: string;
|
|
22266
|
+
/**
|
|
22267
|
+
* @remarks
|
|
22268
|
+
* The list of tags.
|
|
22269
|
+
*/
|
|
21790
22270
|
tags?: Tag[];
|
|
21791
22271
|
/**
|
|
22272
|
+
* @remarks
|
|
22273
|
+
* The time zone.
|
|
22274
|
+
*
|
|
21792
22275
|
* @example
|
|
21793
22276
|
* Asia/Shanghai
|
|
21794
22277
|
*/
|
|
21795
22278
|
timezone?: string;
|
|
21796
22279
|
/**
|
|
22280
|
+
* @remarks
|
|
22281
|
+
* The time when the cluster was updated.
|
|
22282
|
+
*
|
|
21797
22283
|
* @example
|
|
21798
22284
|
* 2020-12-08T15:37:00+08:00
|
|
21799
22285
|
*/
|
|
21800
22286
|
updated?: string;
|
|
21801
22287
|
/**
|
|
22288
|
+
* @remarks
|
|
22289
|
+
* The ID of the virtual private cloud (VPC) to which the cluster belongs.
|
|
22290
|
+
*
|
|
21802
22291
|
* @example
|
|
21803
22292
|
* vpc-2zeg8nf1ukc0fcmvq****
|
|
21804
22293
|
*/
|
|
21805
22294
|
vpcId?: string;
|
|
22295
|
+
/**
|
|
22296
|
+
* @remarks
|
|
22297
|
+
* The vSwitches for the control plane of the cluster.
|
|
22298
|
+
*/
|
|
21806
22299
|
vswitchIds?: string[];
|
|
21807
22300
|
static names(): { [key: string]: string } {
|
|
21808
22301
|
return {
|
|
@@ -21871,16 +22364,25 @@ export class DescribeClustersForRegionResponseBodyClusters extends $tea.Model {
|
|
|
21871
22364
|
|
|
21872
22365
|
export class DescribeClustersForRegionResponseBodyPageInfo extends $tea.Model {
|
|
21873
22366
|
/**
|
|
22367
|
+
* @remarks
|
|
22368
|
+
* The number of pages.
|
|
22369
|
+
*
|
|
21874
22370
|
* @example
|
|
21875
22371
|
* 1
|
|
21876
22372
|
*/
|
|
21877
22373
|
pageNumber?: number;
|
|
21878
22374
|
/**
|
|
22375
|
+
* @remarks
|
|
22376
|
+
* The number of records on each page.
|
|
22377
|
+
*
|
|
21879
22378
|
* @example
|
|
21880
22379
|
* 10
|
|
21881
22380
|
*/
|
|
21882
22381
|
pageSize?: number;
|
|
21883
22382
|
/**
|
|
22383
|
+
* @remarks
|
|
22384
|
+
* The total number of entries returned.
|
|
22385
|
+
*
|
|
21884
22386
|
* @example
|
|
21885
22387
|
* 10
|
|
21886
22388
|
*/
|
|
@@ -22903,16 +23405,25 @@ export class DescribeEventsResponseBodyPageInfo extends $tea.Model {
|
|
|
22903
23405
|
|
|
22904
23406
|
export class DescribeEventsForRegionResponseBodyEventsData extends $tea.Model {
|
|
22905
23407
|
/**
|
|
23408
|
+
* @remarks
|
|
23409
|
+
* The severity level of the event.
|
|
23410
|
+
*
|
|
22906
23411
|
* @example
|
|
22907
23412
|
* info
|
|
22908
23413
|
*/
|
|
22909
23414
|
level?: string;
|
|
22910
23415
|
/**
|
|
23416
|
+
* @remarks
|
|
23417
|
+
* The details of the event.
|
|
23418
|
+
*
|
|
22911
23419
|
* @example
|
|
22912
23420
|
* Start to upgrade NodePool nodePool/nodePool-A
|
|
22913
23421
|
*/
|
|
22914
23422
|
message?: string;
|
|
22915
23423
|
/**
|
|
23424
|
+
* @remarks
|
|
23425
|
+
* The event status.
|
|
23426
|
+
*
|
|
22916
23427
|
* @example
|
|
22917
23428
|
* Started
|
|
22918
23429
|
*/
|
|
@@ -22940,28 +23451,51 @@ export class DescribeEventsForRegionResponseBodyEventsData extends $tea.Model {
|
|
|
22940
23451
|
|
|
22941
23452
|
export class DescribeEventsForRegionResponseBodyEvents extends $tea.Model {
|
|
22942
23453
|
/**
|
|
23454
|
+
* @remarks
|
|
23455
|
+
* The cluster ID.
|
|
23456
|
+
*
|
|
22943
23457
|
* @example
|
|
22944
23458
|
* cluster-id
|
|
22945
23459
|
*/
|
|
22946
23460
|
clusterId?: string;
|
|
23461
|
+
/**
|
|
23462
|
+
* @remarks
|
|
23463
|
+
* The description of the event.
|
|
23464
|
+
*/
|
|
22947
23465
|
data?: DescribeEventsForRegionResponseBodyEventsData;
|
|
22948
23466
|
/**
|
|
23467
|
+
* @remarks
|
|
23468
|
+
* The event ID.
|
|
23469
|
+
*
|
|
22949
23470
|
* @example
|
|
22950
23471
|
* A234-1234-1234
|
|
22951
23472
|
*/
|
|
22952
23473
|
eventId?: string;
|
|
23474
|
+
/**
|
|
23475
|
+
* @remarks
|
|
23476
|
+
* The event source.
|
|
23477
|
+
*/
|
|
22953
23478
|
source?: string;
|
|
22954
23479
|
/**
|
|
23480
|
+
* @remarks
|
|
23481
|
+
* The object associated with the event.
|
|
23482
|
+
*
|
|
22955
23483
|
* @example
|
|
22956
23484
|
* nodePool-id
|
|
22957
23485
|
*/
|
|
22958
23486
|
subject?: string;
|
|
22959
23487
|
/**
|
|
23488
|
+
* @remarks
|
|
23489
|
+
* The time when the event was generated.
|
|
23490
|
+
*
|
|
22960
23491
|
* @example
|
|
22961
23492
|
* 2020-12-01T17:31:00Z
|
|
22962
23493
|
*/
|
|
22963
23494
|
time?: string;
|
|
22964
23495
|
/**
|
|
23496
|
+
* @remarks
|
|
23497
|
+
* The event type.
|
|
23498
|
+
*
|
|
22965
23499
|
* @example
|
|
22966
23500
|
* nodePool_upgrade
|
|
22967
23501
|
*/
|
|
@@ -22997,16 +23531,25 @@ export class DescribeEventsForRegionResponseBodyEvents extends $tea.Model {
|
|
|
22997
23531
|
|
|
22998
23532
|
export class DescribeEventsForRegionResponseBodyPageInfo extends $tea.Model {
|
|
22999
23533
|
/**
|
|
23534
|
+
* @remarks
|
|
23535
|
+
* The number of pages.
|
|
23536
|
+
*
|
|
23000
23537
|
* @example
|
|
23001
23538
|
* 1
|
|
23002
23539
|
*/
|
|
23003
23540
|
pageNumber?: number;
|
|
23004
23541
|
/**
|
|
23542
|
+
* @remarks
|
|
23543
|
+
* The number of records on each page.
|
|
23544
|
+
*
|
|
23005
23545
|
* @example
|
|
23006
23546
|
* 50
|
|
23007
23547
|
*/
|
|
23008
23548
|
pageSize?: number;
|
|
23009
23549
|
/**
|
|
23550
|
+
* @remarks
|
|
23551
|
+
* The total number of entries returned.
|
|
23552
|
+
*
|
|
23010
23553
|
* @example
|
|
23011
23554
|
* 3
|
|
23012
23555
|
*/
|
|
@@ -23855,22 +24398,52 @@ export class DescribePolicyInstancesResponseBody extends $tea.Model {
|
|
|
23855
24398
|
*/
|
|
23856
24399
|
policyAction?: string;
|
|
23857
24400
|
/**
|
|
24401
|
+
* @remarks
|
|
24402
|
+
* Creation time (deprecated, do not use).
|
|
24403
|
+
*
|
|
24404
|
+
* @example
|
|
24405
|
+
* 2024-10-29T18:09:12+08:00
|
|
24406
|
+
*
|
|
23858
24407
|
* @deprecated
|
|
23859
24408
|
*/
|
|
23860
24409
|
created?: string;
|
|
23861
24410
|
/**
|
|
24411
|
+
* @remarks
|
|
24412
|
+
* Update time (deprecated, do not use).
|
|
24413
|
+
*
|
|
24414
|
+
* @example
|
|
24415
|
+
* 2024-10-29T18:09:12+08:00
|
|
24416
|
+
*
|
|
23862
24417
|
* @deprecated
|
|
23863
24418
|
*/
|
|
23864
24419
|
updated?: string;
|
|
23865
24420
|
/**
|
|
24421
|
+
* @remarks
|
|
24422
|
+
* Resource ID (deprecated, do not use).
|
|
24423
|
+
*
|
|
24424
|
+
* @example
|
|
24425
|
+
* 123456***
|
|
24426
|
+
*
|
|
23866
24427
|
* @deprecated
|
|
23867
24428
|
*/
|
|
23868
24429
|
resourceId?: string;
|
|
23869
24430
|
/**
|
|
24431
|
+
* @remarks
|
|
24432
|
+
* Violation count processing in the cluster (deprecated, do not use).
|
|
24433
|
+
*
|
|
24434
|
+
* @example
|
|
24435
|
+
* 0
|
|
24436
|
+
*
|
|
23870
24437
|
* @deprecated
|
|
23871
24438
|
*/
|
|
23872
24439
|
totalViolations?: number;
|
|
23873
24440
|
/**
|
|
24441
|
+
* @remarks
|
|
24442
|
+
* Deletion status (deprecated, do not use).
|
|
24443
|
+
*
|
|
24444
|
+
* @example
|
|
24445
|
+
* 0
|
|
24446
|
+
*
|
|
23874
24447
|
* @deprecated
|
|
23875
24448
|
*/
|
|
23876
24449
|
isDeleted?: number;
|
|
@@ -26042,6 +26615,94 @@ export class ModifyClusterRequestApiServerCustomCertSans extends $tea.Model {
|
|
|
26042
26615
|
}
|
|
26043
26616
|
}
|
|
26044
26617
|
|
|
26618
|
+
export class ModifyClusterRequestControlPlaneConfig extends $tea.Model {
|
|
26619
|
+
autoRenew?: boolean;
|
|
26620
|
+
autoRenewPeriod?: number;
|
|
26621
|
+
chargeType?: string;
|
|
26622
|
+
cloudMonitorFlags?: boolean;
|
|
26623
|
+
cpuPolicy?: string;
|
|
26624
|
+
deploymentsetId?: string;
|
|
26625
|
+
imageId?: string;
|
|
26626
|
+
imageType?: string;
|
|
26627
|
+
instanceTypes?: string[];
|
|
26628
|
+
keyPair?: string;
|
|
26629
|
+
loginPassword?: string;
|
|
26630
|
+
nodePortRange?: string;
|
|
26631
|
+
period?: number;
|
|
26632
|
+
periodUnit?: string;
|
|
26633
|
+
runtime?: string;
|
|
26634
|
+
securityHardeningOs?: boolean;
|
|
26635
|
+
size?: number;
|
|
26636
|
+
socEnabled?: boolean;
|
|
26637
|
+
systemDiskBurstingEnabled?: boolean;
|
|
26638
|
+
systemDiskCategory?: string;
|
|
26639
|
+
systemDiskPerformanceLevel?: string;
|
|
26640
|
+
systemDiskProvisionedIops?: number;
|
|
26641
|
+
systemDiskSize?: number;
|
|
26642
|
+
systemDiskSnapshotPolicyId?: string;
|
|
26643
|
+
static names(): { [key: string]: string } {
|
|
26644
|
+
return {
|
|
26645
|
+
autoRenew: 'auto_renew',
|
|
26646
|
+
autoRenewPeriod: 'auto_renew_period',
|
|
26647
|
+
chargeType: 'charge_type',
|
|
26648
|
+
cloudMonitorFlags: 'cloud_monitor_flags',
|
|
26649
|
+
cpuPolicy: 'cpu_policy',
|
|
26650
|
+
deploymentsetId: 'deploymentset_id',
|
|
26651
|
+
imageId: 'image_id',
|
|
26652
|
+
imageType: 'image_type',
|
|
26653
|
+
instanceTypes: 'instance_types',
|
|
26654
|
+
keyPair: 'key_pair',
|
|
26655
|
+
loginPassword: 'login_password',
|
|
26656
|
+
nodePortRange: 'node_port_range',
|
|
26657
|
+
period: 'period',
|
|
26658
|
+
periodUnit: 'period_unit',
|
|
26659
|
+
runtime: 'runtime',
|
|
26660
|
+
securityHardeningOs: 'security_hardening_os',
|
|
26661
|
+
size: 'size',
|
|
26662
|
+
socEnabled: 'soc_enabled',
|
|
26663
|
+
systemDiskBurstingEnabled: 'system_disk_bursting_enabled',
|
|
26664
|
+
systemDiskCategory: 'system_disk_category',
|
|
26665
|
+
systemDiskPerformanceLevel: 'system_disk_performance_level',
|
|
26666
|
+
systemDiskProvisionedIops: 'system_disk_provisioned_iops',
|
|
26667
|
+
systemDiskSize: 'system_disk_size',
|
|
26668
|
+
systemDiskSnapshotPolicyId: 'system_disk_snapshot_policy_id',
|
|
26669
|
+
};
|
|
26670
|
+
}
|
|
26671
|
+
|
|
26672
|
+
static types(): { [key: string]: any } {
|
|
26673
|
+
return {
|
|
26674
|
+
autoRenew: 'boolean',
|
|
26675
|
+
autoRenewPeriod: 'number',
|
|
26676
|
+
chargeType: 'string',
|
|
26677
|
+
cloudMonitorFlags: 'boolean',
|
|
26678
|
+
cpuPolicy: 'string',
|
|
26679
|
+
deploymentsetId: 'string',
|
|
26680
|
+
imageId: 'string',
|
|
26681
|
+
imageType: 'string',
|
|
26682
|
+
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
26683
|
+
keyPair: 'string',
|
|
26684
|
+
loginPassword: 'string',
|
|
26685
|
+
nodePortRange: 'string',
|
|
26686
|
+
period: 'number',
|
|
26687
|
+
periodUnit: 'string',
|
|
26688
|
+
runtime: 'string',
|
|
26689
|
+
securityHardeningOs: 'boolean',
|
|
26690
|
+
size: 'number',
|
|
26691
|
+
socEnabled: 'boolean',
|
|
26692
|
+
systemDiskBurstingEnabled: 'boolean',
|
|
26693
|
+
systemDiskCategory: 'string',
|
|
26694
|
+
systemDiskPerformanceLevel: 'string',
|
|
26695
|
+
systemDiskProvisionedIops: 'number',
|
|
26696
|
+
systemDiskSize: 'number',
|
|
26697
|
+
systemDiskSnapshotPolicyId: 'string',
|
|
26698
|
+
};
|
|
26699
|
+
}
|
|
26700
|
+
|
|
26701
|
+
constructor(map?: { [key: string]: any }) {
|
|
26702
|
+
super(map);
|
|
26703
|
+
}
|
|
26704
|
+
}
|
|
26705
|
+
|
|
26045
26706
|
export class ModifyClusterRequestOperationPolicyClusterAutoUpgrade extends $tea.Model {
|
|
26046
26707
|
/**
|
|
26047
26708
|
* @remarks
|
|
@@ -27330,7 +27991,7 @@ export class ModifyClusterNodePoolRequestTeeConfig extends $tea.Model {
|
|
|
27330
27991
|
export class ModifyNodePoolNodeConfigRequestOsConfig extends $tea.Model {
|
|
27331
27992
|
/**
|
|
27332
27993
|
* @remarks
|
|
27333
|
-
* sysctl
|
|
27994
|
+
* The sysctl configuration.
|
|
27334
27995
|
*/
|
|
27335
27996
|
sysctl?: { [key: string]: any };
|
|
27336
27997
|
static names(): { [key: string]: string } {
|
|
@@ -28410,6 +29071,10 @@ export default class Client extends OpenApi {
|
|
|
28410
29071
|
body["scale_up_from_zero"] = request.scaleUpFromZero;
|
|
28411
29072
|
}
|
|
28412
29073
|
|
|
29074
|
+
if (!Util.isUnset(request.scalerType)) {
|
|
29075
|
+
body["scaler_type"] = request.scalerType;
|
|
29076
|
+
}
|
|
29077
|
+
|
|
28413
29078
|
if (!Util.isUnset(request.scanInterval)) {
|
|
28414
29079
|
body["scan_interval"] = request.scanInterval;
|
|
28415
29080
|
}
|
|
@@ -28443,7 +29108,7 @@ export default class Client extends OpenApi {
|
|
|
28443
29108
|
authType: "AK",
|
|
28444
29109
|
style: "ROA",
|
|
28445
29110
|
reqBodyType: "json",
|
|
28446
|
-
bodyType: "
|
|
29111
|
+
bodyType: "json",
|
|
28447
29112
|
});
|
|
28448
29113
|
return $tea.cast<CreateAutoscalingConfigResponse>(await this.callApi(params, req, runtime), new CreateAutoscalingConfigResponse({}));
|
|
28449
29114
|
}
|
|
@@ -28528,6 +29193,10 @@ export default class Client extends OpenApi {
|
|
|
28528
29193
|
body["container_cidr"] = request.containerCidr;
|
|
28529
29194
|
}
|
|
28530
29195
|
|
|
29196
|
+
if (!Util.isUnset(request.controlPlaneConfig)) {
|
|
29197
|
+
body["control_plane_config"] = request.controlPlaneConfig;
|
|
29198
|
+
}
|
|
29199
|
+
|
|
28531
29200
|
if (!Util.isUnset(request.controlplaneLogComponents)) {
|
|
28532
29201
|
body["controlplane_log_components"] = request.controlplaneLogComponents;
|
|
28533
29202
|
}
|
|
@@ -30795,7 +31464,7 @@ export default class Client extends OpenApi {
|
|
|
30795
31464
|
}
|
|
30796
31465
|
|
|
30797
31466
|
/**
|
|
30798
|
-
*
|
|
31467
|
+
* Queries all clusters in a specified region.
|
|
30799
31468
|
*
|
|
30800
31469
|
* @param request - DescribeClustersForRegionRequest
|
|
30801
31470
|
* @param headers - map
|
|
@@ -30852,7 +31521,7 @@ export default class Client extends OpenApi {
|
|
|
30852
31521
|
}
|
|
30853
31522
|
|
|
30854
31523
|
/**
|
|
30855
|
-
*
|
|
31524
|
+
* Queries all clusters in a specified region.
|
|
30856
31525
|
*
|
|
30857
31526
|
* @param request - DescribeClustersForRegionRequest
|
|
30858
31527
|
* @returns DescribeClustersForRegionResponse
|
|
@@ -31164,7 +31833,7 @@ export default class Client extends OpenApi {
|
|
|
31164
31833
|
}
|
|
31165
31834
|
|
|
31166
31835
|
/**
|
|
31167
|
-
*
|
|
31836
|
+
* Queries all events in a specified region.
|
|
31168
31837
|
*
|
|
31169
31838
|
* @param request - DescribeEventsForRegionRequest
|
|
31170
31839
|
* @param headers - map
|
|
@@ -31205,7 +31874,7 @@ export default class Client extends OpenApi {
|
|
|
31205
31874
|
}
|
|
31206
31875
|
|
|
31207
31876
|
/**
|
|
31208
|
-
*
|
|
31877
|
+
* Queries all events in a specified region.
|
|
31209
31878
|
*
|
|
31210
31879
|
* @param request - DescribeEventsForRegionRequest
|
|
31211
31880
|
* @returns DescribeEventsForRegionResponse
|
|
@@ -32929,6 +33598,10 @@ export default class Client extends OpenApi {
|
|
|
32929
33598
|
body["cluster_name"] = request.clusterName;
|
|
32930
33599
|
}
|
|
32931
33600
|
|
|
33601
|
+
if (!Util.isUnset(request.controlPlaneConfig)) {
|
|
33602
|
+
body["control_plane_config"] = request.controlPlaneConfig;
|
|
33603
|
+
}
|
|
33604
|
+
|
|
32932
33605
|
if (!Util.isUnset(request.deletionProtection)) {
|
|
32933
33606
|
body["deletion_protection"] = request.deletionProtection;
|
|
32934
33607
|
}
|
|
@@ -33577,9 +34250,10 @@ export default class Client extends OpenApi {
|
|
|
33577
34250
|
* Removes nodes from a node pool.
|
|
33578
34251
|
*
|
|
33579
34252
|
* @remarks
|
|
33580
|
-
*
|
|
33581
|
-
*
|
|
33582
|
-
*
|
|
34253
|
+
* - When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours.
|
|
34254
|
+
* - The operation may have unexpected risks. Back up the data before you perform this operation.
|
|
34255
|
+
* - When the system removes a node, it sets the status of the node to Unschedulable.
|
|
34256
|
+
* - The system removes only worker nodes. It does not remove master nodes.
|
|
33583
34257
|
*
|
|
33584
34258
|
* @param tmpReq - RemoveNodePoolNodesRequest
|
|
33585
34259
|
* @param headers - map
|
|
@@ -33641,9 +34315,10 @@ export default class Client extends OpenApi {
|
|
|
33641
34315
|
* Removes nodes from a node pool.
|
|
33642
34316
|
*
|
|
33643
34317
|
* @remarks
|
|
33644
|
-
*
|
|
33645
|
-
*
|
|
33646
|
-
*
|
|
34318
|
+
* - When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours.
|
|
34319
|
+
* - The operation may have unexpected risks. Back up the data before you perform this operation.
|
|
34320
|
+
* - When the system removes a node, it sets the status of the node to Unschedulable.
|
|
34321
|
+
* - The system removes only worker nodes. It does not remove master nodes.
|
|
33647
34322
|
*
|
|
33648
34323
|
* @param request - RemoveNodePoolNodesRequest
|
|
33649
34324
|
* @returns RemoveNodePoolNodesResponse
|