@alicloud/cs20151215 3.3.0 → 3.3.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 +73 -2
- package/dist/client.js +89 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +101 -2
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -41,6 +41,8 @@ export class DataDisk extends $tea.Model {
|
|
|
41
41
|
autoSnapshotPolicyId?: string;
|
|
42
42
|
burstingEnabled?: boolean;
|
|
43
43
|
category?: string;
|
|
44
|
+
device?: string;
|
|
45
|
+
diskName?: string;
|
|
44
46
|
encrypted?: string;
|
|
45
47
|
fileSystem?: string;
|
|
46
48
|
kmsKeyId?: string;
|
|
@@ -48,12 +50,15 @@ export class DataDisk extends $tea.Model {
|
|
|
48
50
|
performanceLevel?: string;
|
|
49
51
|
provisionedIops?: number;
|
|
50
52
|
size?: number;
|
|
53
|
+
snapshotId?: string;
|
|
51
54
|
static names(): { [key: string]: string } {
|
|
52
55
|
return {
|
|
53
56
|
autoFormat: 'auto_format',
|
|
54
57
|
autoSnapshotPolicyId: 'auto_snapshot_policy_id',
|
|
55
58
|
burstingEnabled: 'bursting_enabled',
|
|
56
59
|
category: 'category',
|
|
60
|
+
device: 'device',
|
|
61
|
+
diskName: 'disk_name',
|
|
57
62
|
encrypted: 'encrypted',
|
|
58
63
|
fileSystem: 'file_system',
|
|
59
64
|
kmsKeyId: 'kms_key_id',
|
|
@@ -61,6 +66,7 @@ export class DataDisk extends $tea.Model {
|
|
|
61
66
|
performanceLevel: 'performance_level',
|
|
62
67
|
provisionedIops: 'provisioned_iops',
|
|
63
68
|
size: 'size',
|
|
69
|
+
snapshotId: 'snapshot_id',
|
|
64
70
|
};
|
|
65
71
|
}
|
|
66
72
|
|
|
@@ -70,6 +76,8 @@ export class DataDisk extends $tea.Model {
|
|
|
70
76
|
autoSnapshotPolicyId: 'string',
|
|
71
77
|
burstingEnabled: 'boolean',
|
|
72
78
|
category: 'string',
|
|
79
|
+
device: 'string',
|
|
80
|
+
diskName: 'string',
|
|
73
81
|
encrypted: 'string',
|
|
74
82
|
fileSystem: 'string',
|
|
75
83
|
kmsKeyId: 'string',
|
|
@@ -77,6 +85,7 @@ export class DataDisk extends $tea.Model {
|
|
|
77
85
|
performanceLevel: 'string',
|
|
78
86
|
provisionedIops: 'number',
|
|
79
87
|
size: 'number',
|
|
88
|
+
snapshotId: 'string',
|
|
80
89
|
};
|
|
81
90
|
}
|
|
82
91
|
|
|
@@ -5577,6 +5586,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
5577
5586
|
ingressLoadbalancerId?: string;
|
|
5578
5587
|
instanceDeletionProtection?: boolean;
|
|
5579
5588
|
maintenanceWindow?: MaintenanceWindow;
|
|
5589
|
+
operationPolicy?: ModifyClusterRequestOperationPolicy;
|
|
5580
5590
|
resourceGroupId?: string;
|
|
5581
5591
|
systemEventsLogging?: ModifyClusterRequestSystemEventsLogging;
|
|
5582
5592
|
static names(): { [key: string]: string } {
|
|
@@ -5591,6 +5601,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
5591
5601
|
ingressLoadbalancerId: 'ingress_loadbalancer_id',
|
|
5592
5602
|
instanceDeletionProtection: 'instance_deletion_protection',
|
|
5593
5603
|
maintenanceWindow: 'maintenance_window',
|
|
5604
|
+
operationPolicy: 'operation_policy',
|
|
5594
5605
|
resourceGroupId: 'resource_group_id',
|
|
5595
5606
|
systemEventsLogging: 'system_events_logging',
|
|
5596
5607
|
};
|
|
@@ -5608,6 +5619,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
5608
5619
|
ingressLoadbalancerId: 'string',
|
|
5609
5620
|
instanceDeletionProtection: 'boolean',
|
|
5610
5621
|
maintenanceWindow: MaintenanceWindow,
|
|
5622
|
+
operationPolicy: ModifyClusterRequestOperationPolicy,
|
|
5611
5623
|
resourceGroupId: 'string',
|
|
5612
5624
|
systemEventsLogging: ModifyClusterRequestSystemEventsLogging,
|
|
5613
5625
|
};
|
|
@@ -12041,6 +12053,47 @@ export class ListTagResourcesResponseBodyTagResources extends $tea.Model {
|
|
|
12041
12053
|
}
|
|
12042
12054
|
}
|
|
12043
12055
|
|
|
12056
|
+
export class ModifyClusterRequestOperationPolicyClusterAutoUpgrade extends $tea.Model {
|
|
12057
|
+
channel?: string;
|
|
12058
|
+
enabled?: boolean;
|
|
12059
|
+
static names(): { [key: string]: string } {
|
|
12060
|
+
return {
|
|
12061
|
+
channel: 'channel',
|
|
12062
|
+
enabled: 'enabled',
|
|
12063
|
+
};
|
|
12064
|
+
}
|
|
12065
|
+
|
|
12066
|
+
static types(): { [key: string]: any } {
|
|
12067
|
+
return {
|
|
12068
|
+
channel: 'string',
|
|
12069
|
+
enabled: 'boolean',
|
|
12070
|
+
};
|
|
12071
|
+
}
|
|
12072
|
+
|
|
12073
|
+
constructor(map?: { [key: string]: any }) {
|
|
12074
|
+
super(map);
|
|
12075
|
+
}
|
|
12076
|
+
}
|
|
12077
|
+
|
|
12078
|
+
export class ModifyClusterRequestOperationPolicy extends $tea.Model {
|
|
12079
|
+
clusterAutoUpgrade?: ModifyClusterRequestOperationPolicyClusterAutoUpgrade;
|
|
12080
|
+
static names(): { [key: string]: string } {
|
|
12081
|
+
return {
|
|
12082
|
+
clusterAutoUpgrade: 'cluster_auto_upgrade',
|
|
12083
|
+
};
|
|
12084
|
+
}
|
|
12085
|
+
|
|
12086
|
+
static types(): { [key: string]: any } {
|
|
12087
|
+
return {
|
|
12088
|
+
clusterAutoUpgrade: ModifyClusterRequestOperationPolicyClusterAutoUpgrade,
|
|
12089
|
+
};
|
|
12090
|
+
}
|
|
12091
|
+
|
|
12092
|
+
constructor(map?: { [key: string]: any }) {
|
|
12093
|
+
super(map);
|
|
12094
|
+
}
|
|
12095
|
+
}
|
|
12096
|
+
|
|
12044
12097
|
export class ModifyClusterRequestSystemEventsLogging extends $tea.Model {
|
|
12045
12098
|
enabled?: boolean;
|
|
12046
12099
|
loggingProject?: string;
|
|
@@ -13102,6 +13155,20 @@ export default class Client extends OpenApi {
|
|
|
13102
13155
|
return await this.createAutoscalingConfigWithOptions(ClusterId, request, headers, runtime);
|
|
13103
13156
|
}
|
|
13104
13157
|
|
|
13158
|
+
/**
|
|
13159
|
+
* This topic describes all parameters for creating an ACK cluster. You can create the following types of ACK clusters.
|
|
13160
|
+
* * [Create an ACK managed cluster](~~90776~~)
|
|
13161
|
+
* * [Create an ACK dedicated cluster](~~197620~~)
|
|
13162
|
+
* * [Create an ACK Serverless cluster](~~144246~~)
|
|
13163
|
+
* * [Create an ACK Edge cluster](128204)
|
|
13164
|
+
* * [Create an ACK Basic cluster that supports sandboxed containers](~~196321~~)
|
|
13165
|
+
* * [Create an ACK Pro cluster that supports sandboxed containers](140623)
|
|
13166
|
+
*
|
|
13167
|
+
* @param request CreateClusterRequest
|
|
13168
|
+
* @param headers map
|
|
13169
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
13170
|
+
* @return CreateClusterResponse
|
|
13171
|
+
*/
|
|
13105
13172
|
async createClusterWithOptions(request: CreateClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateClusterResponse> {
|
|
13106
13173
|
Util.validateModel(request);
|
|
13107
13174
|
let body : {[key: string ]: any} = { };
|
|
@@ -13483,6 +13550,18 @@ export default class Client extends OpenApi {
|
|
|
13483
13550
|
return $tea.cast<CreateClusterResponse>(await this.callApi(params, req, runtime), new CreateClusterResponse({}));
|
|
13484
13551
|
}
|
|
13485
13552
|
|
|
13553
|
+
/**
|
|
13554
|
+
* This topic describes all parameters for creating an ACK cluster. You can create the following types of ACK clusters.
|
|
13555
|
+
* * [Create an ACK managed cluster](~~90776~~)
|
|
13556
|
+
* * [Create an ACK dedicated cluster](~~197620~~)
|
|
13557
|
+
* * [Create an ACK Serverless cluster](~~144246~~)
|
|
13558
|
+
* * [Create an ACK Edge cluster](128204)
|
|
13559
|
+
* * [Create an ACK Basic cluster that supports sandboxed containers](~~196321~~)
|
|
13560
|
+
* * [Create an ACK Pro cluster that supports sandboxed containers](140623)
|
|
13561
|
+
*
|
|
13562
|
+
* @param request CreateClusterRequest
|
|
13563
|
+
* @return CreateClusterResponse
|
|
13564
|
+
*/
|
|
13486
13565
|
async createCluster(request: CreateClusterRequest): Promise<CreateClusterResponse> {
|
|
13487
13566
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13488
13567
|
let headers : {[key: string ]: string} = { };
|
|
@@ -14649,6 +14728,15 @@ export default class Client extends OpenApi {
|
|
|
14649
14728
|
return await this.describeClusterTasksWithOptions(clusterId, request, headers, runtime);
|
|
14650
14729
|
}
|
|
14651
14730
|
|
|
14731
|
+
/**
|
|
14732
|
+
* **
|
|
14733
|
+
* ****The default validity period of a kubeconfig file is 3 years. Two months before a kubeconfig file expires, you can renew it in the Container Service for Kubernetes (ACK) console or by calling API operations. After a kubeconfig file is renewed, the secret is valid for 3 years. The previous kubeconfig secret remains valid until expiration. We recommend that you renew your kubeconfig file at the earliest opportunity.
|
|
14734
|
+
*
|
|
14735
|
+
* @param request DescribeClusterUserKubeconfigRequest
|
|
14736
|
+
* @param headers map
|
|
14737
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14738
|
+
* @return DescribeClusterUserKubeconfigResponse
|
|
14739
|
+
*/
|
|
14652
14740
|
async describeClusterUserKubeconfigWithOptions(ClusterId: string, request: DescribeClusterUserKubeconfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterUserKubeconfigResponse> {
|
|
14653
14741
|
Util.validateModel(request);
|
|
14654
14742
|
let query : {[key: string ]: any} = { };
|
|
@@ -14678,6 +14766,13 @@ export default class Client extends OpenApi {
|
|
|
14678
14766
|
return $tea.cast<DescribeClusterUserKubeconfigResponse>(await this.callApi(params, req, runtime), new DescribeClusterUserKubeconfigResponse({}));
|
|
14679
14767
|
}
|
|
14680
14768
|
|
|
14769
|
+
/**
|
|
14770
|
+
* **
|
|
14771
|
+
* ****The default validity period of a kubeconfig file is 3 years. Two months before a kubeconfig file expires, you can renew it in the Container Service for Kubernetes (ACK) console or by calling API operations. After a kubeconfig file is renewed, the secret is valid for 3 years. The previous kubeconfig secret remains valid until expiration. We recommend that you renew your kubeconfig file at the earliest opportunity.
|
|
14772
|
+
*
|
|
14773
|
+
* @param request DescribeClusterUserKubeconfigRequest
|
|
14774
|
+
* @return DescribeClusterUserKubeconfigResponse
|
|
14775
|
+
*/
|
|
14681
14776
|
async describeClusterUserKubeconfig(ClusterId: string, request: DescribeClusterUserKubeconfigRequest): Promise<DescribeClusterUserKubeconfigResponse> {
|
|
14682
14777
|
let runtime = new $Util.RuntimeOptions({ });
|
|
14683
14778
|
let headers : {[key: string ]: string} = { };
|
|
@@ -16142,6 +16237,10 @@ export default class Client extends OpenApi {
|
|
|
16142
16237
|
body["maintenance_window"] = request.maintenanceWindow;
|
|
16143
16238
|
}
|
|
16144
16239
|
|
|
16240
|
+
if (!Util.isUnset(request.operationPolicy)) {
|
|
16241
|
+
body["operation_policy"] = request.operationPolicy;
|
|
16242
|
+
}
|
|
16243
|
+
|
|
16145
16244
|
if (!Util.isUnset(request.resourceGroupId)) {
|
|
16146
16245
|
body["resource_group_id"] = request.resourceGroupId;
|
|
16147
16246
|
}
|
|
@@ -16342,7 +16441,7 @@ export default class Client extends OpenApi {
|
|
|
16342
16441
|
}
|
|
16343
16442
|
|
|
16344
16443
|
/**
|
|
16345
|
-
*
|
|
16444
|
+
* > Container Service for Kubernetes (ACK) allows you to modify the kubelet configuration of nodes in a node pool. After you modify the kubelet configuration, the new configuration immediately takes effect on existing nodes in the node pool and is automatically applied to newly added nodes.
|
|
16346
16445
|
*
|
|
16347
16446
|
* @param request ModifyNodePoolNodeConfigRequest
|
|
16348
16447
|
* @param headers map
|
|
@@ -16379,7 +16478,7 @@ export default class Client extends OpenApi {
|
|
|
16379
16478
|
}
|
|
16380
16479
|
|
|
16381
16480
|
/**
|
|
16382
|
-
*
|
|
16481
|
+
* > Container Service for Kubernetes (ACK) allows you to modify the kubelet configuration of nodes in a node pool. After you modify the kubelet configuration, the new configuration immediately takes effect on existing nodes in the node pool and is automatically applied to newly added nodes.
|
|
16383
16482
|
*
|
|
16384
16483
|
* @param request ModifyNodePoolNodeConfigRequest
|
|
16385
16484
|
* @return ModifyNodePoolNodeConfigResponse
|