@alicloud/cs20151215 3.0.27 → 3.1.0
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 +175 -1
- package/dist/client.js +296 -1
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +357 -2
package/dist/client.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare class Addon extends $tea.Model {
|
|
|
8
8
|
config?: string;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
name?: string;
|
|
11
|
+
version?: string;
|
|
11
12
|
static names(): {
|
|
12
13
|
[key: string]: string;
|
|
13
14
|
};
|
|
@@ -2603,6 +2604,7 @@ export declare class EdgeClusterAddEdgeMachineResponse extends $tea.Model {
|
|
|
2603
2604
|
});
|
|
2604
2605
|
}
|
|
2605
2606
|
export declare class FixNodePoolVulsRequest extends $tea.Model {
|
|
2607
|
+
autoRestart?: boolean;
|
|
2606
2608
|
nodes?: string[];
|
|
2607
2609
|
rolloutPolicy?: FixNodePoolVulsRequestRolloutPolicy;
|
|
2608
2610
|
vuls?: string[];
|
|
@@ -2644,6 +2646,44 @@ export declare class FixNodePoolVulsResponse extends $tea.Model {
|
|
|
2644
2646
|
[key: string]: any;
|
|
2645
2647
|
});
|
|
2646
2648
|
}
|
|
2649
|
+
export declare class GetClusterCheckResponseBody extends $tea.Model {
|
|
2650
|
+
checkId?: string;
|
|
2651
|
+
checkItems?: {
|
|
2652
|
+
[key: string]: {
|
|
2653
|
+
[key: string]: any;
|
|
2654
|
+
}[];
|
|
2655
|
+
};
|
|
2656
|
+
createdAt?: string;
|
|
2657
|
+
finishedAt?: string;
|
|
2658
|
+
message?: string;
|
|
2659
|
+
status?: string;
|
|
2660
|
+
type?: string;
|
|
2661
|
+
static names(): {
|
|
2662
|
+
[key: string]: string;
|
|
2663
|
+
};
|
|
2664
|
+
static types(): {
|
|
2665
|
+
[key: string]: any;
|
|
2666
|
+
};
|
|
2667
|
+
constructor(map?: {
|
|
2668
|
+
[key: string]: any;
|
|
2669
|
+
});
|
|
2670
|
+
}
|
|
2671
|
+
export declare class GetClusterCheckResponse extends $tea.Model {
|
|
2672
|
+
headers: {
|
|
2673
|
+
[key: string]: string;
|
|
2674
|
+
};
|
|
2675
|
+
statusCode: number;
|
|
2676
|
+
body: GetClusterCheckResponseBody;
|
|
2677
|
+
static names(): {
|
|
2678
|
+
[key: string]: string;
|
|
2679
|
+
};
|
|
2680
|
+
static types(): {
|
|
2681
|
+
[key: string]: any;
|
|
2682
|
+
};
|
|
2683
|
+
constructor(map?: {
|
|
2684
|
+
[key: string]: any;
|
|
2685
|
+
});
|
|
2686
|
+
}
|
|
2647
2687
|
export declare class GetKubernetesTriggerRequest extends $tea.Model {
|
|
2648
2688
|
name?: string;
|
|
2649
2689
|
namespace?: string;
|
|
@@ -2761,6 +2801,46 @@ export declare class InstallClusterAddonsResponse extends $tea.Model {
|
|
|
2761
2801
|
[key: string]: any;
|
|
2762
2802
|
});
|
|
2763
2803
|
}
|
|
2804
|
+
export declare class ListClusterChecksRequest extends $tea.Model {
|
|
2805
|
+
type?: string;
|
|
2806
|
+
static names(): {
|
|
2807
|
+
[key: string]: string;
|
|
2808
|
+
};
|
|
2809
|
+
static types(): {
|
|
2810
|
+
[key: string]: any;
|
|
2811
|
+
};
|
|
2812
|
+
constructor(map?: {
|
|
2813
|
+
[key: string]: any;
|
|
2814
|
+
});
|
|
2815
|
+
}
|
|
2816
|
+
export declare class ListClusterChecksResponseBody extends $tea.Model {
|
|
2817
|
+
checks?: ListClusterChecksResponseBodyChecks[];
|
|
2818
|
+
static names(): {
|
|
2819
|
+
[key: string]: string;
|
|
2820
|
+
};
|
|
2821
|
+
static types(): {
|
|
2822
|
+
[key: string]: any;
|
|
2823
|
+
};
|
|
2824
|
+
constructor(map?: {
|
|
2825
|
+
[key: string]: any;
|
|
2826
|
+
});
|
|
2827
|
+
}
|
|
2828
|
+
export declare class ListClusterChecksResponse extends $tea.Model {
|
|
2829
|
+
headers: {
|
|
2830
|
+
[key: string]: string;
|
|
2831
|
+
};
|
|
2832
|
+
statusCode: number;
|
|
2833
|
+
body: ListClusterChecksResponseBody;
|
|
2834
|
+
static names(): {
|
|
2835
|
+
[key: string]: string;
|
|
2836
|
+
};
|
|
2837
|
+
static types(): {
|
|
2838
|
+
[key: string]: any;
|
|
2839
|
+
};
|
|
2840
|
+
constructor(map?: {
|
|
2841
|
+
[key: string]: any;
|
|
2842
|
+
});
|
|
2843
|
+
}
|
|
2764
2844
|
export declare class ListTagResourcesRequest extends $tea.Model {
|
|
2765
2845
|
nextToken?: string;
|
|
2766
2846
|
regionId?: string;
|
|
@@ -3325,6 +3405,7 @@ export declare class RemoveWorkflowResponse extends $tea.Model {
|
|
|
3325
3405
|
});
|
|
3326
3406
|
}
|
|
3327
3407
|
export declare class RepairClusterNodePoolRequest extends $tea.Model {
|
|
3408
|
+
autoRestart?: boolean;
|
|
3328
3409
|
nodes?: string[];
|
|
3329
3410
|
static names(): {
|
|
3330
3411
|
[key: string]: string;
|
|
@@ -3410,6 +3491,50 @@ export declare class ResumeUpgradeClusterResponse extends $tea.Model {
|
|
|
3410
3491
|
[key: string]: any;
|
|
3411
3492
|
});
|
|
3412
3493
|
}
|
|
3494
|
+
export declare class RunClusterCheckRequest extends $tea.Model {
|
|
3495
|
+
options?: {
|
|
3496
|
+
[key: string]: string;
|
|
3497
|
+
};
|
|
3498
|
+
type?: string;
|
|
3499
|
+
static names(): {
|
|
3500
|
+
[key: string]: string;
|
|
3501
|
+
};
|
|
3502
|
+
static types(): {
|
|
3503
|
+
[key: string]: any;
|
|
3504
|
+
};
|
|
3505
|
+
constructor(map?: {
|
|
3506
|
+
[key: string]: any;
|
|
3507
|
+
});
|
|
3508
|
+
}
|
|
3509
|
+
export declare class RunClusterCheckResponseBody extends $tea.Model {
|
|
3510
|
+
checkId?: string;
|
|
3511
|
+
requestId?: string;
|
|
3512
|
+
static names(): {
|
|
3513
|
+
[key: string]: string;
|
|
3514
|
+
};
|
|
3515
|
+
static types(): {
|
|
3516
|
+
[key: string]: any;
|
|
3517
|
+
};
|
|
3518
|
+
constructor(map?: {
|
|
3519
|
+
[key: string]: any;
|
|
3520
|
+
});
|
|
3521
|
+
}
|
|
3522
|
+
export declare class RunClusterCheckResponse extends $tea.Model {
|
|
3523
|
+
headers: {
|
|
3524
|
+
[key: string]: string;
|
|
3525
|
+
};
|
|
3526
|
+
statusCode: number;
|
|
3527
|
+
body: RunClusterCheckResponseBody;
|
|
3528
|
+
static names(): {
|
|
3529
|
+
[key: string]: string;
|
|
3530
|
+
};
|
|
3531
|
+
static types(): {
|
|
3532
|
+
[key: string]: any;
|
|
3533
|
+
};
|
|
3534
|
+
constructor(map?: {
|
|
3535
|
+
[key: string]: any;
|
|
3536
|
+
});
|
|
3537
|
+
}
|
|
3413
3538
|
export declare class ScaleClusterRequest extends $tea.Model {
|
|
3414
3539
|
cloudMonitorFlags?: boolean;
|
|
3415
3540
|
count?: number;
|
|
@@ -5231,7 +5356,7 @@ export declare class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
|
5231
5356
|
resourceType?: string;
|
|
5232
5357
|
state?: string;
|
|
5233
5358
|
autoCreate?: number;
|
|
5234
|
-
dependencies?: DescribeClusterResourcesResponseBodyDependencies;
|
|
5359
|
+
dependencies?: DescribeClusterResourcesResponseBodyDependencies[];
|
|
5235
5360
|
static names(): {
|
|
5236
5361
|
[key: string]: string;
|
|
5237
5362
|
};
|
|
@@ -6014,6 +6139,23 @@ export declare class InstallClusterAddonsRequestBody extends $tea.Model {
|
|
|
6014
6139
|
[key: string]: any;
|
|
6015
6140
|
});
|
|
6016
6141
|
}
|
|
6142
|
+
export declare class ListClusterChecksResponseBodyChecks extends $tea.Model {
|
|
6143
|
+
checkId?: string;
|
|
6144
|
+
createdAt?: string;
|
|
6145
|
+
finishedAt?: string;
|
|
6146
|
+
message?: string;
|
|
6147
|
+
status?: string;
|
|
6148
|
+
type?: string;
|
|
6149
|
+
static names(): {
|
|
6150
|
+
[key: string]: string;
|
|
6151
|
+
};
|
|
6152
|
+
static types(): {
|
|
6153
|
+
[key: string]: any;
|
|
6154
|
+
};
|
|
6155
|
+
constructor(map?: {
|
|
6156
|
+
[key: string]: any;
|
|
6157
|
+
});
|
|
6158
|
+
}
|
|
6017
6159
|
export declare class ListTagResourcesResponseBodyTagResourcesTagResource extends $tea.Model {
|
|
6018
6160
|
resourceId?: string;
|
|
6019
6161
|
resourceType?: string;
|
|
@@ -6742,10 +6884,34 @@ export default class Client extends OpenApi {
|
|
|
6742
6884
|
[key: string]: string;
|
|
6743
6885
|
}, runtime: $Util.RuntimeOptions): Promise<EdgeClusterAddEdgeMachineResponse>;
|
|
6744
6886
|
edgeClusterAddEdgeMachine(clusterid: string, edgeMachineid: string, request: EdgeClusterAddEdgeMachineRequest): Promise<EdgeClusterAddEdgeMachineResponse>;
|
|
6887
|
+
/**
|
|
6888
|
+
* 1. The Common Vulnerabilities and Exposures (CVE) patching feature is developed based on Security Center. To use this feature, you must purchase the Security Center Ultimate Edition that supports Container Service for Kubernetes (ACK).
|
|
6889
|
+
* 2. ACK may need to restart nodes to patch certain vulnerabilities. ACK drains a node before the node restarts. Make sure that the ACK cluster has sufficient idle nodes to host the pods evicted from the trained nodes. For example, you can scale out a node pool before you patch vulnerabilities for the nodes in the node pool.
|
|
6890
|
+
* 3. Security Center ensures the compatibility of CVE patches. We recommend that you check the compatibility of a CVE patch with your application before you install the patch. You can pause or cancel a CVE patching task anytime.
|
|
6891
|
+
* 4. CVE patching is a progressive task that consists of multiple batches. After you pause or cancel a CVE patching task, ACK continues to process the dispatched batches. Only the batches that have not been dispatched are paused or canceled.
|
|
6892
|
+
*
|
|
6893
|
+
* @param request FixNodePoolVulsRequest
|
|
6894
|
+
* @param headers map
|
|
6895
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
6896
|
+
* @return FixNodePoolVulsResponse
|
|
6897
|
+
*/
|
|
6745
6898
|
fixNodePoolVulsWithOptions(clusterId: string, nodepoolId: string, request: FixNodePoolVulsRequest, headers: {
|
|
6746
6899
|
[key: string]: string;
|
|
6747
6900
|
}, runtime: $Util.RuntimeOptions): Promise<FixNodePoolVulsResponse>;
|
|
6901
|
+
/**
|
|
6902
|
+
* 1. The Common Vulnerabilities and Exposures (CVE) patching feature is developed based on Security Center. To use this feature, you must purchase the Security Center Ultimate Edition that supports Container Service for Kubernetes (ACK).
|
|
6903
|
+
* 2. ACK may need to restart nodes to patch certain vulnerabilities. ACK drains a node before the node restarts. Make sure that the ACK cluster has sufficient idle nodes to host the pods evicted from the trained nodes. For example, you can scale out a node pool before you patch vulnerabilities for the nodes in the node pool.
|
|
6904
|
+
* 3. Security Center ensures the compatibility of CVE patches. We recommend that you check the compatibility of a CVE patch with your application before you install the patch. You can pause or cancel a CVE patching task anytime.
|
|
6905
|
+
* 4. CVE patching is a progressive task that consists of multiple batches. After you pause or cancel a CVE patching task, ACK continues to process the dispatched batches. Only the batches that have not been dispatched are paused or canceled.
|
|
6906
|
+
*
|
|
6907
|
+
* @param request FixNodePoolVulsRequest
|
|
6908
|
+
* @return FixNodePoolVulsResponse
|
|
6909
|
+
*/
|
|
6748
6910
|
fixNodePoolVuls(clusterId: string, nodepoolId: string, request: FixNodePoolVulsRequest): Promise<FixNodePoolVulsResponse>;
|
|
6911
|
+
getClusterCheckWithOptions(clusterId: string, checkId: string, headers: {
|
|
6912
|
+
[key: string]: string;
|
|
6913
|
+
}, runtime: $Util.RuntimeOptions): Promise<GetClusterCheckResponse>;
|
|
6914
|
+
getClusterCheck(clusterId: string, checkId: string): Promise<GetClusterCheckResponse>;
|
|
6749
6915
|
getKubernetesTriggerWithOptions(ClusterId: string, request: GetKubernetesTriggerRequest, headers: {
|
|
6750
6916
|
[key: string]: string;
|
|
6751
6917
|
}, runtime: $Util.RuntimeOptions): Promise<GetKubernetesTriggerResponse>;
|
|
@@ -6782,6 +6948,10 @@ export default class Client extends OpenApi {
|
|
|
6782
6948
|
[key: string]: string;
|
|
6783
6949
|
}, runtime: $Util.RuntimeOptions): Promise<InstallClusterAddonsResponse>;
|
|
6784
6950
|
installClusterAddons(ClusterId: string, request: InstallClusterAddonsRequest): Promise<InstallClusterAddonsResponse>;
|
|
6951
|
+
listClusterChecksWithOptions(clusterId: string, request: ListClusterChecksRequest, headers: {
|
|
6952
|
+
[key: string]: string;
|
|
6953
|
+
}, runtime: $Util.RuntimeOptions): Promise<ListClusterChecksResponse>;
|
|
6954
|
+
listClusterChecks(clusterId: string, request: ListClusterChecksRequest): Promise<ListClusterChecksResponse>;
|
|
6785
6955
|
listTagResourcesWithOptions(tmpReq: ListTagResourcesRequest, headers: {
|
|
6786
6956
|
[key: string]: string;
|
|
6787
6957
|
}, runtime: $Util.RuntimeOptions): Promise<ListTagResourcesResponse>;
|
|
@@ -6954,6 +7124,10 @@ export default class Client extends OpenApi {
|
|
|
6954
7124
|
[key: string]: string;
|
|
6955
7125
|
}, runtime: $Util.RuntimeOptions): Promise<ResumeUpgradeClusterResponse>;
|
|
6956
7126
|
resumeUpgradeCluster(ClusterId: string): Promise<ResumeUpgradeClusterResponse>;
|
|
7127
|
+
runClusterCheckWithOptions(clusterId: string, request: RunClusterCheckRequest, headers: {
|
|
7128
|
+
[key: string]: string;
|
|
7129
|
+
}, runtime: $Util.RuntimeOptions): Promise<RunClusterCheckResponse>;
|
|
7130
|
+
runClusterCheck(clusterId: string, request: RunClusterCheckRequest): Promise<RunClusterCheckResponse>;
|
|
6957
7131
|
/**
|
|
6958
7132
|
* @deprecated
|
|
6959
7133
|
*
|
package/dist/client.js
CHANGED
|
@@ -28,6 +28,7 @@ class Addon extends $tea.Model {
|
|
|
28
28
|
config: 'config',
|
|
29
29
|
disabled: 'disabled',
|
|
30
30
|
name: 'name',
|
|
31
|
+
version: 'version',
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
static types() {
|
|
@@ -35,6 +36,7 @@ class Addon extends $tea.Model {
|
|
|
35
36
|
config: 'string',
|
|
36
37
|
disabled: 'boolean',
|
|
37
38
|
name: 'string',
|
|
39
|
+
version: 'string',
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
}
|
|
@@ -3593,6 +3595,7 @@ class FixNodePoolVulsRequest extends $tea.Model {
|
|
|
3593
3595
|
}
|
|
3594
3596
|
static names() {
|
|
3595
3597
|
return {
|
|
3598
|
+
autoRestart: 'auto_restart',
|
|
3596
3599
|
nodes: 'nodes',
|
|
3597
3600
|
rolloutPolicy: 'rollout_policy',
|
|
3598
3601
|
vuls: 'vuls',
|
|
@@ -3600,6 +3603,7 @@ class FixNodePoolVulsRequest extends $tea.Model {
|
|
|
3600
3603
|
}
|
|
3601
3604
|
static types() {
|
|
3602
3605
|
return {
|
|
3606
|
+
autoRestart: 'boolean',
|
|
3603
3607
|
nodes: { 'type': 'array', 'itemType': 'string' },
|
|
3604
3608
|
rolloutPolicy: FixNodePoolVulsRequestRolloutPolicy,
|
|
3605
3609
|
vuls: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -3643,6 +3647,54 @@ class FixNodePoolVulsResponse extends $tea.Model {
|
|
|
3643
3647
|
}
|
|
3644
3648
|
}
|
|
3645
3649
|
exports.FixNodePoolVulsResponse = FixNodePoolVulsResponse;
|
|
3650
|
+
class GetClusterCheckResponseBody extends $tea.Model {
|
|
3651
|
+
constructor(map) {
|
|
3652
|
+
super(map);
|
|
3653
|
+
}
|
|
3654
|
+
static names() {
|
|
3655
|
+
return {
|
|
3656
|
+
checkId: 'check_id',
|
|
3657
|
+
checkItems: 'check_items',
|
|
3658
|
+
createdAt: 'created_at',
|
|
3659
|
+
finishedAt: 'finished_at',
|
|
3660
|
+
message: 'message',
|
|
3661
|
+
status: 'status',
|
|
3662
|
+
type: 'type',
|
|
3663
|
+
};
|
|
3664
|
+
}
|
|
3665
|
+
static types() {
|
|
3666
|
+
return {
|
|
3667
|
+
checkId: 'string',
|
|
3668
|
+
checkItems: { 'type': 'map', 'keyType': 'string', 'valueType': { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } } },
|
|
3669
|
+
createdAt: 'string',
|
|
3670
|
+
finishedAt: 'string',
|
|
3671
|
+
message: 'string',
|
|
3672
|
+
status: 'string',
|
|
3673
|
+
type: 'string',
|
|
3674
|
+
};
|
|
3675
|
+
}
|
|
3676
|
+
}
|
|
3677
|
+
exports.GetClusterCheckResponseBody = GetClusterCheckResponseBody;
|
|
3678
|
+
class GetClusterCheckResponse extends $tea.Model {
|
|
3679
|
+
constructor(map) {
|
|
3680
|
+
super(map);
|
|
3681
|
+
}
|
|
3682
|
+
static names() {
|
|
3683
|
+
return {
|
|
3684
|
+
headers: 'headers',
|
|
3685
|
+
statusCode: 'statusCode',
|
|
3686
|
+
body: 'body',
|
|
3687
|
+
};
|
|
3688
|
+
}
|
|
3689
|
+
static types() {
|
|
3690
|
+
return {
|
|
3691
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3692
|
+
statusCode: 'number',
|
|
3693
|
+
body: GetClusterCheckResponseBody,
|
|
3694
|
+
};
|
|
3695
|
+
}
|
|
3696
|
+
}
|
|
3697
|
+
exports.GetClusterCheckResponse = GetClusterCheckResponse;
|
|
3646
3698
|
class GetKubernetesTriggerRequest extends $tea.Model {
|
|
3647
3699
|
constructor(map) {
|
|
3648
3700
|
super(map);
|
|
@@ -3797,6 +3849,58 @@ class InstallClusterAddonsResponse extends $tea.Model {
|
|
|
3797
3849
|
}
|
|
3798
3850
|
}
|
|
3799
3851
|
exports.InstallClusterAddonsResponse = InstallClusterAddonsResponse;
|
|
3852
|
+
class ListClusterChecksRequest extends $tea.Model {
|
|
3853
|
+
constructor(map) {
|
|
3854
|
+
super(map);
|
|
3855
|
+
}
|
|
3856
|
+
static names() {
|
|
3857
|
+
return {
|
|
3858
|
+
type: 'type',
|
|
3859
|
+
};
|
|
3860
|
+
}
|
|
3861
|
+
static types() {
|
|
3862
|
+
return {
|
|
3863
|
+
type: 'string',
|
|
3864
|
+
};
|
|
3865
|
+
}
|
|
3866
|
+
}
|
|
3867
|
+
exports.ListClusterChecksRequest = ListClusterChecksRequest;
|
|
3868
|
+
class ListClusterChecksResponseBody extends $tea.Model {
|
|
3869
|
+
constructor(map) {
|
|
3870
|
+
super(map);
|
|
3871
|
+
}
|
|
3872
|
+
static names() {
|
|
3873
|
+
return {
|
|
3874
|
+
checks: 'checks',
|
|
3875
|
+
};
|
|
3876
|
+
}
|
|
3877
|
+
static types() {
|
|
3878
|
+
return {
|
|
3879
|
+
checks: { 'type': 'array', 'itemType': ListClusterChecksResponseBodyChecks },
|
|
3880
|
+
};
|
|
3881
|
+
}
|
|
3882
|
+
}
|
|
3883
|
+
exports.ListClusterChecksResponseBody = ListClusterChecksResponseBody;
|
|
3884
|
+
class ListClusterChecksResponse extends $tea.Model {
|
|
3885
|
+
constructor(map) {
|
|
3886
|
+
super(map);
|
|
3887
|
+
}
|
|
3888
|
+
static names() {
|
|
3889
|
+
return {
|
|
3890
|
+
headers: 'headers',
|
|
3891
|
+
statusCode: 'statusCode',
|
|
3892
|
+
body: 'body',
|
|
3893
|
+
};
|
|
3894
|
+
}
|
|
3895
|
+
static types() {
|
|
3896
|
+
return {
|
|
3897
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3898
|
+
statusCode: 'number',
|
|
3899
|
+
body: ListClusterChecksResponseBody,
|
|
3900
|
+
};
|
|
3901
|
+
}
|
|
3902
|
+
}
|
|
3903
|
+
exports.ListClusterChecksResponse = ListClusterChecksResponse;
|
|
3800
3904
|
class ListTagResourcesRequest extends $tea.Model {
|
|
3801
3905
|
constructor(map) {
|
|
3802
3906
|
super(map);
|
|
@@ -4557,11 +4661,13 @@ class RepairClusterNodePoolRequest extends $tea.Model {
|
|
|
4557
4661
|
}
|
|
4558
4662
|
static names() {
|
|
4559
4663
|
return {
|
|
4664
|
+
autoRestart: 'auto_restart',
|
|
4560
4665
|
nodes: 'nodes',
|
|
4561
4666
|
};
|
|
4562
4667
|
}
|
|
4563
4668
|
static types() {
|
|
4564
4669
|
return {
|
|
4670
|
+
autoRestart: 'boolean',
|
|
4565
4671
|
nodes: { 'type': 'array', 'itemType': 'string' },
|
|
4566
4672
|
};
|
|
4567
4673
|
}
|
|
@@ -4659,6 +4765,62 @@ class ResumeUpgradeClusterResponse extends $tea.Model {
|
|
|
4659
4765
|
}
|
|
4660
4766
|
}
|
|
4661
4767
|
exports.ResumeUpgradeClusterResponse = ResumeUpgradeClusterResponse;
|
|
4768
|
+
class RunClusterCheckRequest extends $tea.Model {
|
|
4769
|
+
constructor(map) {
|
|
4770
|
+
super(map);
|
|
4771
|
+
}
|
|
4772
|
+
static names() {
|
|
4773
|
+
return {
|
|
4774
|
+
options: 'options',
|
|
4775
|
+
type: 'type',
|
|
4776
|
+
};
|
|
4777
|
+
}
|
|
4778
|
+
static types() {
|
|
4779
|
+
return {
|
|
4780
|
+
options: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4781
|
+
type: 'string',
|
|
4782
|
+
};
|
|
4783
|
+
}
|
|
4784
|
+
}
|
|
4785
|
+
exports.RunClusterCheckRequest = RunClusterCheckRequest;
|
|
4786
|
+
class RunClusterCheckResponseBody extends $tea.Model {
|
|
4787
|
+
constructor(map) {
|
|
4788
|
+
super(map);
|
|
4789
|
+
}
|
|
4790
|
+
static names() {
|
|
4791
|
+
return {
|
|
4792
|
+
checkId: 'check_id',
|
|
4793
|
+
requestId: 'request_id',
|
|
4794
|
+
};
|
|
4795
|
+
}
|
|
4796
|
+
static types() {
|
|
4797
|
+
return {
|
|
4798
|
+
checkId: 'string',
|
|
4799
|
+
requestId: 'string',
|
|
4800
|
+
};
|
|
4801
|
+
}
|
|
4802
|
+
}
|
|
4803
|
+
exports.RunClusterCheckResponseBody = RunClusterCheckResponseBody;
|
|
4804
|
+
class RunClusterCheckResponse extends $tea.Model {
|
|
4805
|
+
constructor(map) {
|
|
4806
|
+
super(map);
|
|
4807
|
+
}
|
|
4808
|
+
static names() {
|
|
4809
|
+
return {
|
|
4810
|
+
headers: 'headers',
|
|
4811
|
+
statusCode: 'statusCode',
|
|
4812
|
+
body: 'body',
|
|
4813
|
+
};
|
|
4814
|
+
}
|
|
4815
|
+
static types() {
|
|
4816
|
+
return {
|
|
4817
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4818
|
+
statusCode: 'number',
|
|
4819
|
+
body: RunClusterCheckResponseBody,
|
|
4820
|
+
};
|
|
4821
|
+
}
|
|
4822
|
+
}
|
|
4823
|
+
exports.RunClusterCheckResponse = RunClusterCheckResponse;
|
|
4662
4824
|
class ScaleClusterRequest extends $tea.Model {
|
|
4663
4825
|
constructor(map) {
|
|
4664
4826
|
super(map);
|
|
@@ -7358,7 +7520,7 @@ class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
|
7358
7520
|
resourceType: 'string',
|
|
7359
7521
|
state: 'string',
|
|
7360
7522
|
autoCreate: 'number',
|
|
7361
|
-
dependencies: DescribeClusterResourcesResponseBodyDependencies,
|
|
7523
|
+
dependencies: { 'type': 'array', 'itemType': DescribeClusterResourcesResponseBodyDependencies },
|
|
7362
7524
|
};
|
|
7363
7525
|
}
|
|
7364
7526
|
}
|
|
@@ -8527,6 +8689,32 @@ class InstallClusterAddonsRequestBody extends $tea.Model {
|
|
|
8527
8689
|
}
|
|
8528
8690
|
}
|
|
8529
8691
|
exports.InstallClusterAddonsRequestBody = InstallClusterAddonsRequestBody;
|
|
8692
|
+
class ListClusterChecksResponseBodyChecks extends $tea.Model {
|
|
8693
|
+
constructor(map) {
|
|
8694
|
+
super(map);
|
|
8695
|
+
}
|
|
8696
|
+
static names() {
|
|
8697
|
+
return {
|
|
8698
|
+
checkId: 'check_id',
|
|
8699
|
+
createdAt: 'created_at',
|
|
8700
|
+
finishedAt: 'finished_at',
|
|
8701
|
+
message: 'message',
|
|
8702
|
+
status: 'status',
|
|
8703
|
+
type: 'type',
|
|
8704
|
+
};
|
|
8705
|
+
}
|
|
8706
|
+
static types() {
|
|
8707
|
+
return {
|
|
8708
|
+
checkId: 'string',
|
|
8709
|
+
createdAt: 'string',
|
|
8710
|
+
finishedAt: 'string',
|
|
8711
|
+
message: 'string',
|
|
8712
|
+
status: 'string',
|
|
8713
|
+
type: 'string',
|
|
8714
|
+
};
|
|
8715
|
+
}
|
|
8716
|
+
}
|
|
8717
|
+
exports.ListClusterChecksResponseBodyChecks = ListClusterChecksResponseBodyChecks;
|
|
8530
8718
|
class ListTagResourcesResponseBodyTagResourcesTagResource extends $tea.Model {
|
|
8531
8719
|
constructor(map) {
|
|
8532
8720
|
super(map);
|
|
@@ -11512,9 +11700,23 @@ class Client extends openapi_client_1.default {
|
|
|
11512
11700
|
let headers = {};
|
|
11513
11701
|
return await this.edgeClusterAddEdgeMachineWithOptions(clusterid, edgeMachineid, request, headers, runtime);
|
|
11514
11702
|
}
|
|
11703
|
+
/**
|
|
11704
|
+
* 1. The Common Vulnerabilities and Exposures (CVE) patching feature is developed based on Security Center. To use this feature, you must purchase the Security Center Ultimate Edition that supports Container Service for Kubernetes (ACK).
|
|
11705
|
+
* 2. ACK may need to restart nodes to patch certain vulnerabilities. ACK drains a node before the node restarts. Make sure that the ACK cluster has sufficient idle nodes to host the pods evicted from the trained nodes. For example, you can scale out a node pool before you patch vulnerabilities for the nodes in the node pool.
|
|
11706
|
+
* 3. Security Center ensures the compatibility of CVE patches. We recommend that you check the compatibility of a CVE patch with your application before you install the patch. You can pause or cancel a CVE patching task anytime.
|
|
11707
|
+
* 4. CVE patching is a progressive task that consists of multiple batches. After you pause or cancel a CVE patching task, ACK continues to process the dispatched batches. Only the batches that have not been dispatched are paused or canceled.
|
|
11708
|
+
*
|
|
11709
|
+
* @param request FixNodePoolVulsRequest
|
|
11710
|
+
* @param headers map
|
|
11711
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
11712
|
+
* @return FixNodePoolVulsResponse
|
|
11713
|
+
*/
|
|
11515
11714
|
async fixNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime) {
|
|
11516
11715
|
tea_util_1.default.validateModel(request);
|
|
11517
11716
|
let body = {};
|
|
11717
|
+
if (!tea_util_1.default.isUnset(request.autoRestart)) {
|
|
11718
|
+
body["auto_restart"] = request.autoRestart;
|
|
11719
|
+
}
|
|
11518
11720
|
if (!tea_util_1.default.isUnset(request.nodes)) {
|
|
11519
11721
|
body["nodes"] = request.nodes;
|
|
11520
11722
|
}
|
|
@@ -11541,11 +11743,42 @@ class Client extends openapi_client_1.default {
|
|
|
11541
11743
|
});
|
|
11542
11744
|
return $tea.cast(await this.callApi(params, req, runtime), new FixNodePoolVulsResponse({}));
|
|
11543
11745
|
}
|
|
11746
|
+
/**
|
|
11747
|
+
* 1. The Common Vulnerabilities and Exposures (CVE) patching feature is developed based on Security Center. To use this feature, you must purchase the Security Center Ultimate Edition that supports Container Service for Kubernetes (ACK).
|
|
11748
|
+
* 2. ACK may need to restart nodes to patch certain vulnerabilities. ACK drains a node before the node restarts. Make sure that the ACK cluster has sufficient idle nodes to host the pods evicted from the trained nodes. For example, you can scale out a node pool before you patch vulnerabilities for the nodes in the node pool.
|
|
11749
|
+
* 3. Security Center ensures the compatibility of CVE patches. We recommend that you check the compatibility of a CVE patch with your application before you install the patch. You can pause or cancel a CVE patching task anytime.
|
|
11750
|
+
* 4. CVE patching is a progressive task that consists of multiple batches. After you pause or cancel a CVE patching task, ACK continues to process the dispatched batches. Only the batches that have not been dispatched are paused or canceled.
|
|
11751
|
+
*
|
|
11752
|
+
* @param request FixNodePoolVulsRequest
|
|
11753
|
+
* @return FixNodePoolVulsResponse
|
|
11754
|
+
*/
|
|
11544
11755
|
async fixNodePoolVuls(clusterId, nodepoolId, request) {
|
|
11545
11756
|
let runtime = new $Util.RuntimeOptions({});
|
|
11546
11757
|
let headers = {};
|
|
11547
11758
|
return await this.fixNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime);
|
|
11548
11759
|
}
|
|
11760
|
+
async getClusterCheckWithOptions(clusterId, checkId, headers, runtime) {
|
|
11761
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11762
|
+
headers: headers,
|
|
11763
|
+
});
|
|
11764
|
+
let params = new $OpenApi.Params({
|
|
11765
|
+
action: "GetClusterCheck",
|
|
11766
|
+
version: "2015-12-15",
|
|
11767
|
+
protocol: "HTTPS",
|
|
11768
|
+
pathname: `/clusters/%5Bcluster_id%5D/checks/%5Bcheck_id%5D`,
|
|
11769
|
+
method: "GET",
|
|
11770
|
+
authType: "AK",
|
|
11771
|
+
style: "ROA",
|
|
11772
|
+
reqBodyType: "json",
|
|
11773
|
+
bodyType: "json",
|
|
11774
|
+
});
|
|
11775
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetClusterCheckResponse({}));
|
|
11776
|
+
}
|
|
11777
|
+
async getClusterCheck(clusterId, checkId) {
|
|
11778
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
11779
|
+
let headers = {};
|
|
11780
|
+
return await this.getClusterCheckWithOptions(clusterId, checkId, headers, runtime);
|
|
11781
|
+
}
|
|
11549
11782
|
async getKubernetesTriggerWithOptions(ClusterId, request, headers, runtime) {
|
|
11550
11783
|
tea_util_1.default.validateModel(request);
|
|
11551
11784
|
let query = {};
|
|
@@ -11673,6 +11906,34 @@ class Client extends openapi_client_1.default {
|
|
|
11673
11906
|
let headers = {};
|
|
11674
11907
|
return await this.installClusterAddonsWithOptions(ClusterId, request, headers, runtime);
|
|
11675
11908
|
}
|
|
11909
|
+
async listClusterChecksWithOptions(clusterId, request, headers, runtime) {
|
|
11910
|
+
tea_util_1.default.validateModel(request);
|
|
11911
|
+
let query = {};
|
|
11912
|
+
if (!tea_util_1.default.isUnset(request.type)) {
|
|
11913
|
+
query["type"] = request.type;
|
|
11914
|
+
}
|
|
11915
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11916
|
+
headers: headers,
|
|
11917
|
+
query: openapi_util_1.default.query(query),
|
|
11918
|
+
});
|
|
11919
|
+
let params = new $OpenApi.Params({
|
|
11920
|
+
action: "ListClusterChecks",
|
|
11921
|
+
version: "2015-12-15",
|
|
11922
|
+
protocol: "HTTPS",
|
|
11923
|
+
pathname: `/clusters/%5Bcluster_id%5D/checks`,
|
|
11924
|
+
method: "GET",
|
|
11925
|
+
authType: "AK",
|
|
11926
|
+
style: "ROA",
|
|
11927
|
+
reqBodyType: "json",
|
|
11928
|
+
bodyType: "json",
|
|
11929
|
+
});
|
|
11930
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ListClusterChecksResponse({}));
|
|
11931
|
+
}
|
|
11932
|
+
async listClusterChecks(clusterId, request) {
|
|
11933
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
11934
|
+
let headers = {};
|
|
11935
|
+
return await this.listClusterChecksWithOptions(clusterId, request, headers, runtime);
|
|
11936
|
+
}
|
|
11676
11937
|
async listTagResourcesWithOptions(tmpReq, headers, runtime) {
|
|
11677
11938
|
tea_util_1.default.validateModel(tmpReq);
|
|
11678
11939
|
let request = new ListTagResourcesShrinkRequest({});
|
|
@@ -12299,6 +12560,9 @@ class Client extends openapi_client_1.default {
|
|
|
12299
12560
|
async repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime) {
|
|
12300
12561
|
tea_util_1.default.validateModel(request);
|
|
12301
12562
|
let body = {};
|
|
12563
|
+
if (!tea_util_1.default.isUnset(request.autoRestart)) {
|
|
12564
|
+
body["auto_restart"] = request.autoRestart;
|
|
12565
|
+
}
|
|
12302
12566
|
if (!tea_util_1.default.isUnset(request.nodes)) {
|
|
12303
12567
|
body["nodes"] = request.nodes;
|
|
12304
12568
|
}
|
|
@@ -12390,6 +12654,37 @@ class Client extends openapi_client_1.default {
|
|
|
12390
12654
|
let headers = {};
|
|
12391
12655
|
return await this.resumeUpgradeClusterWithOptions(ClusterId, headers, runtime);
|
|
12392
12656
|
}
|
|
12657
|
+
async runClusterCheckWithOptions(clusterId, request, headers, runtime) {
|
|
12658
|
+
tea_util_1.default.validateModel(request);
|
|
12659
|
+
let body = {};
|
|
12660
|
+
if (!tea_util_1.default.isUnset(request.options)) {
|
|
12661
|
+
body["options"] = request.options;
|
|
12662
|
+
}
|
|
12663
|
+
if (!tea_util_1.default.isUnset(request.type)) {
|
|
12664
|
+
body["type"] = request.type;
|
|
12665
|
+
}
|
|
12666
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
12667
|
+
headers: headers,
|
|
12668
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
12669
|
+
});
|
|
12670
|
+
let params = new $OpenApi.Params({
|
|
12671
|
+
action: "RunClusterCheck",
|
|
12672
|
+
version: "2015-12-15",
|
|
12673
|
+
protocol: "HTTPS",
|
|
12674
|
+
pathname: `/clusters/%5Bcluster_id%5D/checks`,
|
|
12675
|
+
method: "POST",
|
|
12676
|
+
authType: "AK",
|
|
12677
|
+
style: "ROA",
|
|
12678
|
+
reqBodyType: "json",
|
|
12679
|
+
bodyType: "json",
|
|
12680
|
+
});
|
|
12681
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RunClusterCheckResponse({}));
|
|
12682
|
+
}
|
|
12683
|
+
async runClusterCheck(clusterId, request) {
|
|
12684
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
12685
|
+
let headers = {};
|
|
12686
|
+
return await this.runClusterCheckWithOptions(clusterId, request, headers, runtime);
|
|
12687
|
+
}
|
|
12393
12688
|
/**
|
|
12394
12689
|
* @deprecated
|
|
12395
12690
|
*
|