@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 CHANGED
@@ -24,6 +24,8 @@ export declare class DataDisk extends $tea.Model {
24
24
  autoSnapshotPolicyId?: string;
25
25
  burstingEnabled?: boolean;
26
26
  category?: string;
27
+ device?: string;
28
+ diskName?: string;
27
29
  encrypted?: string;
28
30
  fileSystem?: string;
29
31
  kmsKeyId?: string;
@@ -31,6 +33,7 @@ export declare class DataDisk extends $tea.Model {
31
33
  performanceLevel?: string;
32
34
  provisionedIops?: number;
33
35
  size?: number;
36
+ snapshotId?: string;
34
37
  static names(): {
35
38
  [key: string]: string;
36
39
  };
@@ -3205,6 +3208,7 @@ export declare class ModifyClusterRequest extends $tea.Model {
3205
3208
  ingressLoadbalancerId?: string;
3206
3209
  instanceDeletionProtection?: boolean;
3207
3210
  maintenanceWindow?: MaintenanceWindow;
3211
+ operationPolicy?: ModifyClusterRequestOperationPolicy;
3208
3212
  resourceGroupId?: string;
3209
3213
  systemEventsLogging?: ModifyClusterRequestSystemEventsLogging;
3210
3214
  static names(): {
@@ -6632,6 +6636,31 @@ export declare class ListTagResourcesResponseBodyTagResources extends $tea.Model
6632
6636
  [key: string]: any;
6633
6637
  });
6634
6638
  }
6639
+ export declare class ModifyClusterRequestOperationPolicyClusterAutoUpgrade extends $tea.Model {
6640
+ channel?: string;
6641
+ enabled?: boolean;
6642
+ static names(): {
6643
+ [key: string]: string;
6644
+ };
6645
+ static types(): {
6646
+ [key: string]: any;
6647
+ };
6648
+ constructor(map?: {
6649
+ [key: string]: any;
6650
+ });
6651
+ }
6652
+ export declare class ModifyClusterRequestOperationPolicy extends $tea.Model {
6653
+ clusterAutoUpgrade?: ModifyClusterRequestOperationPolicyClusterAutoUpgrade;
6654
+ static names(): {
6655
+ [key: string]: string;
6656
+ };
6657
+ static types(): {
6658
+ [key: string]: any;
6659
+ };
6660
+ constructor(map?: {
6661
+ [key: string]: any;
6662
+ });
6663
+ }
6635
6664
  export declare class ModifyClusterRequestSystemEventsLogging extends $tea.Model {
6636
6665
  enabled?: boolean;
6637
6666
  loggingProject?: string;
@@ -7014,9 +7043,35 @@ export default class Client extends OpenApi {
7014
7043
  [key: string]: string;
7015
7044
  }, runtime: $Util.RuntimeOptions): Promise<CreateAutoscalingConfigResponse>;
7016
7045
  createAutoscalingConfig(ClusterId: string, request: CreateAutoscalingConfigRequest): Promise<CreateAutoscalingConfigResponse>;
7046
+ /**
7047
+ * This topic describes all parameters for creating an ACK cluster. You can create the following types of ACK clusters.
7048
+ * * [Create an ACK managed cluster](~~90776~~)
7049
+ * * [Create an ACK dedicated cluster](~~197620~~)
7050
+ * * [Create an ACK Serverless cluster](~~144246~~)
7051
+ * * [Create an ACK Edge cluster](128204)
7052
+ * * [Create an ACK Basic cluster that supports sandboxed containers](~~196321~~)
7053
+ * * [Create an ACK Pro cluster that supports sandboxed containers](140623)
7054
+ *
7055
+ * @param request CreateClusterRequest
7056
+ * @param headers map
7057
+ * @param runtime runtime options for this request RuntimeOptions
7058
+ * @return CreateClusterResponse
7059
+ */
7017
7060
  createClusterWithOptions(request: CreateClusterRequest, headers: {
7018
7061
  [key: string]: string;
7019
7062
  }, runtime: $Util.RuntimeOptions): Promise<CreateClusterResponse>;
7063
+ /**
7064
+ * This topic describes all parameters for creating an ACK cluster. You can create the following types of ACK clusters.
7065
+ * * [Create an ACK managed cluster](~~90776~~)
7066
+ * * [Create an ACK dedicated cluster](~~197620~~)
7067
+ * * [Create an ACK Serverless cluster](~~144246~~)
7068
+ * * [Create an ACK Edge cluster](128204)
7069
+ * * [Create an ACK Basic cluster that supports sandboxed containers](~~196321~~)
7070
+ * * [Create an ACK Pro cluster that supports sandboxed containers](140623)
7071
+ *
7072
+ * @param request CreateClusterRequest
7073
+ * @return CreateClusterResponse
7074
+ */
7020
7075
  createCluster(request: CreateClusterRequest): Promise<CreateClusterResponse>;
7021
7076
  createClusterNodePoolWithOptions(ClusterId: string, request: CreateClusterNodePoolRequest, headers: {
7022
7077
  [key: string]: string;
@@ -7178,9 +7233,25 @@ export default class Client extends OpenApi {
7178
7233
  [key: string]: string;
7179
7234
  }, runtime: $Util.RuntimeOptions): Promise<DescribeClusterTasksResponse>;
7180
7235
  describeClusterTasks(clusterId: string, request: DescribeClusterTasksRequest): Promise<DescribeClusterTasksResponse>;
7236
+ /**
7237
+ * **
7238
+ * ****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.
7239
+ *
7240
+ * @param request DescribeClusterUserKubeconfigRequest
7241
+ * @param headers map
7242
+ * @param runtime runtime options for this request RuntimeOptions
7243
+ * @return DescribeClusterUserKubeconfigResponse
7244
+ */
7181
7245
  describeClusterUserKubeconfigWithOptions(ClusterId: string, request: DescribeClusterUserKubeconfigRequest, headers: {
7182
7246
  [key: string]: string;
7183
7247
  }, runtime: $Util.RuntimeOptions): Promise<DescribeClusterUserKubeconfigResponse>;
7248
+ /**
7249
+ * **
7250
+ * ****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.
7251
+ *
7252
+ * @param request DescribeClusterUserKubeconfigRequest
7253
+ * @return DescribeClusterUserKubeconfigResponse
7254
+ */
7184
7255
  describeClusterUserKubeconfig(ClusterId: string, request: DescribeClusterUserKubeconfigRequest): Promise<DescribeClusterUserKubeconfigResponse>;
7185
7256
  /**
7186
7257
  * @deprecated
@@ -7481,7 +7552,7 @@ export default class Client extends OpenApi {
7481
7552
  }, runtime: $Util.RuntimeOptions): Promise<ModifyClusterTagsResponse>;
7482
7553
  modifyClusterTags(ClusterId: string, request: ModifyClusterTagsRequest): Promise<ModifyClusterTagsResponse>;
7483
7554
  /**
7484
- * This operation progressively modifies the kubelet configuration of the nodes in a node pool and restarts the kubelet process, which may affect your businesses.
7555
+ * > 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.
7485
7556
  *
7486
7557
  * @param request ModifyNodePoolNodeConfigRequest
7487
7558
  * @param headers map
@@ -7492,7 +7563,7 @@ export default class Client extends OpenApi {
7492
7563
  [key: string]: string;
7493
7564
  }, runtime: $Util.RuntimeOptions): Promise<ModifyNodePoolNodeConfigResponse>;
7494
7565
  /**
7495
- * This operation progressively modifies the kubelet configuration of the nodes in a node pool and restarts the kubelet process, which may affect your businesses.
7566
+ * > 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.
7496
7567
  *
7497
7568
  * @param request ModifyNodePoolNodeConfigRequest
7498
7569
  * @return ModifyNodePoolNodeConfigResponse
package/dist/client.js CHANGED
@@ -51,6 +51,8 @@ class DataDisk extends $tea.Model {
51
51
  autoSnapshotPolicyId: 'auto_snapshot_policy_id',
52
52
  burstingEnabled: 'bursting_enabled',
53
53
  category: 'category',
54
+ device: 'device',
55
+ diskName: 'disk_name',
54
56
  encrypted: 'encrypted',
55
57
  fileSystem: 'file_system',
56
58
  kmsKeyId: 'kms_key_id',
@@ -58,6 +60,7 @@ class DataDisk extends $tea.Model {
58
60
  performanceLevel: 'performance_level',
59
61
  provisionedIops: 'provisioned_iops',
60
62
  size: 'size',
63
+ snapshotId: 'snapshot_id',
61
64
  };
62
65
  }
63
66
  static types() {
@@ -66,6 +69,8 @@ class DataDisk extends $tea.Model {
66
69
  autoSnapshotPolicyId: 'string',
67
70
  burstingEnabled: 'boolean',
68
71
  category: 'string',
72
+ device: 'string',
73
+ diskName: 'string',
69
74
  encrypted: 'string',
70
75
  fileSystem: 'string',
71
76
  kmsKeyId: 'string',
@@ -73,6 +78,7 @@ class DataDisk extends $tea.Model {
73
78
  performanceLevel: 'string',
74
79
  provisionedIops: 'number',
75
80
  size: 'number',
81
+ snapshotId: 'string',
76
82
  };
77
83
  }
78
84
  }
@@ -4407,6 +4413,7 @@ class ModifyClusterRequest extends $tea.Model {
4407
4413
  ingressLoadbalancerId: 'ingress_loadbalancer_id',
4408
4414
  instanceDeletionProtection: 'instance_deletion_protection',
4409
4415
  maintenanceWindow: 'maintenance_window',
4416
+ operationPolicy: 'operation_policy',
4410
4417
  resourceGroupId: 'resource_group_id',
4411
4418
  systemEventsLogging: 'system_events_logging',
4412
4419
  };
@@ -4423,6 +4430,7 @@ class ModifyClusterRequest extends $tea.Model {
4423
4430
  ingressLoadbalancerId: 'string',
4424
4431
  instanceDeletionProtection: 'boolean',
4425
4432
  maintenanceWindow: MaintenanceWindow,
4433
+ operationPolicy: ModifyClusterRequestOperationPolicy,
4426
4434
  resourceGroupId: 'string',
4427
4435
  systemEventsLogging: ModifyClusterRequestSystemEventsLogging,
4428
4436
  };
@@ -9411,6 +9419,40 @@ class ListTagResourcesResponseBodyTagResources extends $tea.Model {
9411
9419
  }
9412
9420
  }
9413
9421
  exports.ListTagResourcesResponseBodyTagResources = ListTagResourcesResponseBodyTagResources;
9422
+ class ModifyClusterRequestOperationPolicyClusterAutoUpgrade extends $tea.Model {
9423
+ constructor(map) {
9424
+ super(map);
9425
+ }
9426
+ static names() {
9427
+ return {
9428
+ channel: 'channel',
9429
+ enabled: 'enabled',
9430
+ };
9431
+ }
9432
+ static types() {
9433
+ return {
9434
+ channel: 'string',
9435
+ enabled: 'boolean',
9436
+ };
9437
+ }
9438
+ }
9439
+ exports.ModifyClusterRequestOperationPolicyClusterAutoUpgrade = ModifyClusterRequestOperationPolicyClusterAutoUpgrade;
9440
+ class ModifyClusterRequestOperationPolicy extends $tea.Model {
9441
+ constructor(map) {
9442
+ super(map);
9443
+ }
9444
+ static names() {
9445
+ return {
9446
+ clusterAutoUpgrade: 'cluster_auto_upgrade',
9447
+ };
9448
+ }
9449
+ static types() {
9450
+ return {
9451
+ clusterAutoUpgrade: ModifyClusterRequestOperationPolicyClusterAutoUpgrade,
9452
+ };
9453
+ }
9454
+ }
9455
+ exports.ModifyClusterRequestOperationPolicy = ModifyClusterRequestOperationPolicy;
9414
9456
  class ModifyClusterRequestSystemEventsLogging extends $tea.Model {
9415
9457
  constructor(map) {
9416
9458
  super(map);
@@ -10272,6 +10314,20 @@ class Client extends openapi_client_1.default {
10272
10314
  let headers = {};
10273
10315
  return await this.createAutoscalingConfigWithOptions(ClusterId, request, headers, runtime);
10274
10316
  }
10317
+ /**
10318
+ * This topic describes all parameters for creating an ACK cluster. You can create the following types of ACK clusters.
10319
+ * * [Create an ACK managed cluster](~~90776~~)
10320
+ * * [Create an ACK dedicated cluster](~~197620~~)
10321
+ * * [Create an ACK Serverless cluster](~~144246~~)
10322
+ * * [Create an ACK Edge cluster](128204)
10323
+ * * [Create an ACK Basic cluster that supports sandboxed containers](~~196321~~)
10324
+ * * [Create an ACK Pro cluster that supports sandboxed containers](140623)
10325
+ *
10326
+ * @param request CreateClusterRequest
10327
+ * @param headers map
10328
+ * @param runtime runtime options for this request RuntimeOptions
10329
+ * @return CreateClusterResponse
10330
+ */
10275
10331
  async createClusterWithOptions(request, headers, runtime) {
10276
10332
  tea_util_1.default.validateModel(request);
10277
10333
  let body = {};
@@ -10562,6 +10618,18 @@ class Client extends openapi_client_1.default {
10562
10618
  });
10563
10619
  return $tea.cast(await this.callApi(params, req, runtime), new CreateClusterResponse({}));
10564
10620
  }
10621
+ /**
10622
+ * This topic describes all parameters for creating an ACK cluster. You can create the following types of ACK clusters.
10623
+ * * [Create an ACK managed cluster](~~90776~~)
10624
+ * * [Create an ACK dedicated cluster](~~197620~~)
10625
+ * * [Create an ACK Serverless cluster](~~144246~~)
10626
+ * * [Create an ACK Edge cluster](128204)
10627
+ * * [Create an ACK Basic cluster that supports sandboxed containers](~~196321~~)
10628
+ * * [Create an ACK Pro cluster that supports sandboxed containers](140623)
10629
+ *
10630
+ * @param request CreateClusterRequest
10631
+ * @return CreateClusterResponse
10632
+ */
10565
10633
  async createCluster(request) {
10566
10634
  let runtime = new $Util.RuntimeOptions({});
10567
10635
  let headers = {};
@@ -11591,6 +11659,15 @@ class Client extends openapi_client_1.default {
11591
11659
  let headers = {};
11592
11660
  return await this.describeClusterTasksWithOptions(clusterId, request, headers, runtime);
11593
11661
  }
11662
+ /**
11663
+ * **
11664
+ * ****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.
11665
+ *
11666
+ * @param request DescribeClusterUserKubeconfigRequest
11667
+ * @param headers map
11668
+ * @param runtime runtime options for this request RuntimeOptions
11669
+ * @return DescribeClusterUserKubeconfigResponse
11670
+ */
11594
11671
  async describeClusterUserKubeconfigWithOptions(ClusterId, request, headers, runtime) {
11595
11672
  tea_util_1.default.validateModel(request);
11596
11673
  let query = {};
@@ -11617,6 +11694,13 @@ class Client extends openapi_client_1.default {
11617
11694
  });
11618
11695
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterUserKubeconfigResponse({}));
11619
11696
  }
11697
+ /**
11698
+ * **
11699
+ * ****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.
11700
+ *
11701
+ * @param request DescribeClusterUserKubeconfigRequest
11702
+ * @return DescribeClusterUserKubeconfigResponse
11703
+ */
11620
11704
  async describeClusterUserKubeconfig(ClusterId, request) {
11621
11705
  let runtime = new $Util.RuntimeOptions({});
11622
11706
  let headers = {};
@@ -12919,6 +13003,9 @@ class Client extends openapi_client_1.default {
12919
13003
  if (!tea_util_1.default.isUnset(request.maintenanceWindow)) {
12920
13004
  body["maintenance_window"] = request.maintenanceWindow;
12921
13005
  }
13006
+ if (!tea_util_1.default.isUnset(request.operationPolicy)) {
13007
+ body["operation_policy"] = request.operationPolicy;
13008
+ }
12922
13009
  if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
12923
13010
  body["resource_group_id"] = request.resourceGroupId;
12924
13011
  }
@@ -13097,7 +13184,7 @@ class Client extends openapi_client_1.default {
13097
13184
  return await this.modifyClusterTagsWithOptions(ClusterId, request, headers, runtime);
13098
13185
  }
13099
13186
  /**
13100
- * This operation progressively modifies the kubelet configuration of the nodes in a node pool and restarts the kubelet process, which may affect your businesses.
13187
+ * > 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.
13101
13188
  *
13102
13189
  * @param request ModifyNodePoolNodeConfigRequest
13103
13190
  * @param headers map
@@ -13131,7 +13218,7 @@ class Client extends openapi_client_1.default {
13131
13218
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyNodePoolNodeConfigResponse({}));
13132
13219
  }
13133
13220
  /**
13134
- * This operation progressively modifies the kubelet configuration of the nodes in a node pool and restarts the kubelet process, which may affect your businesses.
13221
+ * > 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.
13135
13222
  *
13136
13223
  * @param request ModifyNodePoolNodeConfigRequest
13137
13224
  * @return ModifyNodePoolNodeConfigResponse