@alicloud/cs20151215 4.7.10 → 4.7.11

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.js CHANGED
@@ -1151,8 +1151,10 @@ class CreateClusterNodePoolRequest extends $tea.Model {
1151
1151
  return {
1152
1152
  autoScaling: 'auto_scaling',
1153
1153
  count: 'count',
1154
+ hostNetwork: 'host_network',
1154
1155
  interconnectConfig: 'interconnect_config',
1155
1156
  interconnectMode: 'interconnect_mode',
1157
+ intranet: 'intranet',
1156
1158
  kubernetesConfig: 'kubernetes_config',
1157
1159
  management: 'management',
1158
1160
  maxNodes: 'max_nodes',
@@ -1166,8 +1168,10 @@ class CreateClusterNodePoolRequest extends $tea.Model {
1166
1168
  return {
1167
1169
  autoScaling: CreateClusterNodePoolRequestAutoScaling,
1168
1170
  count: 'number',
1171
+ hostNetwork: 'boolean',
1169
1172
  interconnectConfig: CreateClusterNodePoolRequestInterconnectConfig,
1170
1173
  interconnectMode: 'string',
1174
+ intranet: 'boolean',
1171
1175
  kubernetesConfig: CreateClusterNodePoolRequestKubernetesConfig,
1172
1176
  management: CreateClusterNodePoolRequestManagement,
1173
1177
  maxNodes: 'number',
@@ -2542,8 +2546,10 @@ class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
2542
2546
  static names() {
2543
2547
  return {
2544
2548
  autoScaling: 'auto_scaling',
2549
+ hostNetwork: 'host_network',
2545
2550
  interconnectConfig: 'interconnect_config',
2546
2551
  interconnectMode: 'interconnect_mode',
2552
+ intranet: 'intranet',
2547
2553
  kubernetesConfig: 'kubernetes_config',
2548
2554
  management: 'management',
2549
2555
  maxNodes: 'max_nodes',
@@ -2557,8 +2563,10 @@ class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
2557
2563
  static types() {
2558
2564
  return {
2559
2565
  autoScaling: DescribeClusterNodePoolDetailResponseBodyAutoScaling,
2566
+ hostNetwork: 'boolean',
2560
2567
  interconnectConfig: DescribeClusterNodePoolDetailResponseBodyInterconnectConfig,
2561
2568
  interconnectMode: 'string',
2569
+ intranet: 'boolean',
2562
2570
  kubernetesConfig: DescribeClusterNodePoolDetailResponseBodyKubernetesConfig,
2563
2571
  management: DescribeClusterNodePoolDetailResponseBodyManagement,
2564
2572
  maxNodes: 'number',
@@ -11799,9 +11807,9 @@ class Client extends openapi_client_1.default {
11799
11807
  * You can call the CleanUserPermissions operation to delete the kubeconfig files of the specified users and revoke the relevant Role-Based Access Control (RBAC) permissions. This API operation is suitable for scenarios where employees have resigned or the accounts of employees are locked.
11800
11808
  *
11801
11809
  * @remarks
11802
- * >- To call this operation, make sure that you have the AliyunCSFullAccess permissions.
11803
- * >- You cannot revoke the permissions of an Alibaba Cloud account.
11804
- * >- You cannot revoke the permissions of the account that you use to call this operation.
11810
+ * > - To call this operation, make sure that you have the AliyunCSFullAccess permission.
11811
+ * > - You cannot revoke the permissions of an Alibaba Cloud account.
11812
+ * > - You cannot revoke the permissions of the account that you use to call this operation.
11805
11813
  *
11806
11814
  * @param tmpReq - CleanUserPermissionsRequest
11807
11815
  * @param headers - map
@@ -11843,9 +11851,9 @@ class Client extends openapi_client_1.default {
11843
11851
  * You can call the CleanUserPermissions operation to delete the kubeconfig files of the specified users and revoke the relevant Role-Based Access Control (RBAC) permissions. This API operation is suitable for scenarios where employees have resigned or the accounts of employees are locked.
11844
11852
  *
11845
11853
  * @remarks
11846
- * >- To call this operation, make sure that you have the AliyunCSFullAccess permissions.
11847
- * >- You cannot revoke the permissions of an Alibaba Cloud account.
11848
- * >- You cannot revoke the permissions of the account that you use to call this operation.
11854
+ * > - To call this operation, make sure that you have the AliyunCSFullAccess permission.
11855
+ * > - You cannot revoke the permissions of an Alibaba Cloud account.
11856
+ * > - You cannot revoke the permissions of the account that you use to call this operation.
11849
11857
  *
11850
11858
  * @param request - CleanUserPermissionsRequest
11851
11859
  * @returns CleanUserPermissionsResponse
@@ -12330,7 +12338,7 @@ class Client extends openapi_client_1.default {
12330
12338
  return await this.createClusterDiagnosisWithOptions(clusterId, request, headers, runtime);
12331
12339
  }
12332
12340
  /**
12333
- * Creates a node pool for a Container Service for Kubernetes (ACK) cluster. You can use node pools to facilitate node management. For example, you can schedule, configure, or maintain nodes by node pool, and enable auto scaling for a node pool. We recommend that you use a managed node pool, which can help automate specific O\\&M tasks for nodes, such as Common Vulnerabilities and Exposures (CVE) patching and node repair. This reduces your O\\&M workload.
12341
+ * Creates a node pool for a Container Service for Kubernetes (ACK) cluster. You can use node pools to facilitate node management. For example, you can schedule, configure, or maintain nodes by node pool, and enable auto scaling for a node pool. We recommend that you use a managed node pool, which can help automate specific O\\\\\\&M tasks for nodes, such as Common Vulnerabilities and Exposures (CVE) patching and node repair. This reduces your O\\\\\\&M workload.
12334
12342
  *
12335
12343
  * @param request - CreateClusterNodePoolRequest
12336
12344
  * @param headers - map
@@ -12346,12 +12354,18 @@ class Client extends openapi_client_1.default {
12346
12354
  if (!tea_util_1.default.isUnset(request.count)) {
12347
12355
  body["count"] = request.count;
12348
12356
  }
12357
+ if (!tea_util_1.default.isUnset(request.hostNetwork)) {
12358
+ body["host_network"] = request.hostNetwork;
12359
+ }
12349
12360
  if (!tea_util_1.default.isUnset(request.interconnectConfig)) {
12350
12361
  body["interconnect_config"] = request.interconnectConfig;
12351
12362
  }
12352
12363
  if (!tea_util_1.default.isUnset(request.interconnectMode)) {
12353
12364
  body["interconnect_mode"] = request.interconnectMode;
12354
12365
  }
12366
+ if (!tea_util_1.default.isUnset(request.intranet)) {
12367
+ body["intranet"] = request.intranet;
12368
+ }
12355
12369
  if (!tea_util_1.default.isUnset(request.kubernetesConfig)) {
12356
12370
  body["kubernetes_config"] = request.kubernetesConfig;
12357
12371
  }
@@ -12391,7 +12405,7 @@ class Client extends openapi_client_1.default {
12391
12405
  return $tea.cast(await this.callApi(params, req, runtime), new CreateClusterNodePoolResponse({}));
12392
12406
  }
12393
12407
  /**
12394
- * Creates a node pool for a Container Service for Kubernetes (ACK) cluster. You can use node pools to facilitate node management. For example, you can schedule, configure, or maintain nodes by node pool, and enable auto scaling for a node pool. We recommend that you use a managed node pool, which can help automate specific O\\&M tasks for nodes, such as Common Vulnerabilities and Exposures (CVE) patching and node repair. This reduces your O\\&M workload.
12408
+ * Creates a node pool for a Container Service for Kubernetes (ACK) cluster. You can use node pools to facilitate node management. For example, you can schedule, configure, or maintain nodes by node pool, and enable auto scaling for a node pool. We recommend that you use a managed node pool, which can help automate specific O\\\\\\&M tasks for nodes, such as Common Vulnerabilities and Exposures (CVE) patching and node repair. This reduces your O\\\\\\&M workload.
12395
12409
  *
12396
12410
  * @param request - CreateClusterNodePoolRequest
12397
12411
  * @returns CreateClusterNodePoolResponse
@@ -13634,7 +13648,7 @@ class Client extends openapi_client_1.default {
13634
13648
  return await this.describeClusterNodePoolDetailWithOptions(ClusterId, NodepoolId, headers, runtime);
13635
13649
  }
13636
13650
  /**
13637
- * Queries node pools in a Container Service for Kubernetes (ACK) cluster.
13651
+ * Queries the information about all node pools in a cluster.
13638
13652
  *
13639
13653
  * @param request - DescribeClusterNodePoolsRequest
13640
13654
  * @param headers - map
@@ -13665,7 +13679,7 @@ class Client extends openapi_client_1.default {
13665
13679
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNodePoolsResponse({}));
13666
13680
  }
13667
13681
  /**
13668
- * Queries node pools in a Container Service for Kubernetes (ACK) cluster.
13682
+ * Queries the information about all node pools in a cluster.
13669
13683
  *
13670
13684
  * @param request - DescribeClusterNodePoolsRequest
13671
13685
  * @returns DescribeClusterNodePoolsResponse
@@ -13676,7 +13690,7 @@ class Client extends openapi_client_1.default {
13676
13690
  return await this.describeClusterNodePoolsWithOptions(ClusterId, request, headers, runtime);
13677
13691
  }
13678
13692
  /**
13679
- * You can call the DescribeClusterNodes operation to query the details about all nodes in a cluster by cluster ID.
13693
+ * null
13680
13694
  *
13681
13695
  * @param request - DescribeClusterNodesRequest
13682
13696
  * @param headers - map
@@ -13719,7 +13733,7 @@ class Client extends openapi_client_1.default {
13719
13733
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNodesResponse({}));
13720
13734
  }
13721
13735
  /**
13722
- * You can call the DescribeClusterNodes operation to query the details about all nodes in a cluster by cluster ID.
13736
+ * null
13723
13737
  *
13724
13738
  * @param request - DescribeClusterNodesRequest
13725
13739
  * @returns DescribeClusterNodesResponse
@@ -14222,7 +14236,7 @@ class Client extends openapi_client_1.default {
14222
14236
  return await this.describeEdgeMachinesWithOptions(request, headers, runtime);
14223
14237
  }
14224
14238
  /**
14225
- * Queries detailed information about a type of events, including the severity level, status, and start time of each event. Events are generated when clusters are created, modified, and updated, node pools are created and scaled out, and components are installed.
14239
+ * Queries the detailed information about a type of events, including the severity level, status, and time. Events are generated when clusters are created, modified, and updated, node pools are created and scaled out, and components are installed.
14226
14240
  *
14227
14241
  * @param request - DescribeEventsRequest
14228
14242
  * @param headers - map
@@ -14262,7 +14276,7 @@ class Client extends openapi_client_1.default {
14262
14276
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeEventsResponse({}));
14263
14277
  }
14264
14278
  /**
14265
- * Queries detailed information about a type of events, including the severity level, status, and start time of each event. Events are generated when clusters are created, modified, and updated, node pools are created and scaled out, and components are installed.
14279
+ * Queries the detailed information about a type of events, including the severity level, status, and time. Events are generated when clusters are created, modified, and updated, node pools are created and scaled out, and components are installed.
14266
14280
  *
14267
14281
  * @param request - DescribeEventsRequest
14268
14282
  * @returns DescribeEventsResponse
@@ -14426,7 +14440,7 @@ class Client extends openapi_client_1.default {
14426
14440
  return await this.describeNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime);
14427
14441
  }
14428
14442
  /**
14429
- * Queries the policies for a Container Service for Kubernetes (ACK) cluster. Container security policies for ACK clusters offer a variety of built-in policies, including cis-k8s, infra, k8s-general, and PodSecurityPolicy. You can use these policies to ensure the security of containers running in a production environment.
14443
+ * Queries a list of security policies. Container Service for Kubernetes (ACK) clusters offer a variety of built-in container security policies, such as Compliance, Infra, K8s-general, and pod security policy (PSP). You can use these policies to ensure the security of containers running in a production environment.
14430
14444
  *
14431
14445
  * @param headers - map
14432
14446
  * @param runtime - runtime options for this request RuntimeOptions
@@ -14450,7 +14464,7 @@ class Client extends openapi_client_1.default {
14450
14464
  return $tea.cast(await this.callApi(params, req, runtime), new DescribePoliciesResponse({}));
14451
14465
  }
14452
14466
  /**
14453
- * Queries the policies for a Container Service for Kubernetes (ACK) cluster. Container security policies for ACK clusters offer a variety of built-in policies, including cis-k8s, infra, k8s-general, and PodSecurityPolicy. You can use these policies to ensure the security of containers running in a production environment.
14467
+ * Queries a list of security policies. Container Service for Kubernetes (ACK) clusters offer a variety of built-in container security policies, such as Compliance, Infra, K8s-general, and pod security policy (PSP). You can use these policies to ensure the security of containers running in a production environment.
14454
14468
  * @returns DescribePoliciesResponse
14455
14469
  */
14456
14470
  async describePolicies() {
@@ -15126,6 +15140,8 @@ class Client extends openapi_client_1.default {
15126
15140
  return await this.getClusterAddonInstanceWithOptions(clusterId, instanceName, headers, runtime);
15127
15141
  }
15128
15142
  /**
15143
+ * You can call the GetClusterAuditProject operation to query the Simple Log Service (SLS) project that stores the audit logs of the API server of a cluster.
15144
+ *
15129
15145
  * @param headers - map
15130
15146
  * @param runtime - runtime options for this request RuntimeOptions
15131
15147
  * @returns GetClusterAuditProjectResponse
@@ -15148,6 +15164,7 @@ class Client extends openapi_client_1.default {
15148
15164
  return $tea.cast(await this.callApi(params, req, runtime), new GetClusterAuditProjectResponse({}));
15149
15165
  }
15150
15166
  /**
15167
+ * You can call the GetClusterAuditProject operation to query the Simple Log Service (SLS) project that stores the audit logs of the API server of a cluster.
15151
15168
  * @returns GetClusterAuditProjectResponse
15152
15169
  */
15153
15170
  async getClusterAuditProject(clusterid) {
@@ -15349,8 +15366,7 @@ class Client extends openapi_client_1.default {
15349
15366
  *
15350
15367
  * @remarks
15351
15368
  * *Precautions**:
15352
- * * Make sure that you have attached a RAM policy that has at least the read-only permissions on the cluster to the RAM user or RAM role in the RAM console. Otherwise, the `ErrorRamPolicyConfig` error code is returned when you call the operation. For more information about how to authorize a RAM user by attaching RAM policies, see [Create a custom RAM policy](https://help.aliyun.com/document_detail/86485.html).
15353
- * * If you use a RAM user to call the operation, make sure that the RAM user has the permissions to modify the permissions of other RAM users or RAM roles. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` error code is returned when you call the operation. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](https://help.aliyun.com/document_detail/119035.html).
15369
+ * * If you use a Resource Access Management (RAM) user to call the operation, make sure that the RAM user has the permissions to modify the permissions of other RAM users or RAM roles. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` error code is returned after you call the operation. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](https://help.aliyun.com/document_detail/119035.html).
15354
15370
  * * If you update full permissions, the existing permissions of the RAM user or RAM role on the cluster are overwritten. You must specify all the permissions that you want to grant to the RAM user or RAM role in the request parameters when you call the operation.
15355
15371
  *
15356
15372
  * @param request - GrantPermissionsRequest
@@ -15382,8 +15398,7 @@ class Client extends openapi_client_1.default {
15382
15398
  *
15383
15399
  * @remarks
15384
15400
  * *Precautions**:
15385
- * * Make sure that you have attached a RAM policy that has at least the read-only permissions on the cluster to the RAM user or RAM role in the RAM console. Otherwise, the `ErrorRamPolicyConfig` error code is returned when you call the operation. For more information about how to authorize a RAM user by attaching RAM policies, see [Create a custom RAM policy](https://help.aliyun.com/document_detail/86485.html).
15386
- * * If you use a RAM user to call the operation, make sure that the RAM user has the permissions to modify the permissions of other RAM users or RAM roles. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` error code is returned when you call the operation. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](https://help.aliyun.com/document_detail/119035.html).
15401
+ * * If you use a Resource Access Management (RAM) user to call the operation, make sure that the RAM user has the permissions to modify the permissions of other RAM users or RAM roles. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` error code is returned after you call the operation. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](https://help.aliyun.com/document_detail/119035.html).
15387
15402
  * * If you update full permissions, the existing permissions of the RAM user or RAM role on the cluster are overwritten. You must specify all the permissions that you want to grant to the RAM user or RAM role in the request parameters when you call the operation.
15388
15403
  *
15389
15404
  * @param request - GrantPermissionsRequest
@@ -16511,7 +16526,7 @@ class Client extends openapi_client_1.default {
16511
16526
  return await this.removeNodePoolNodesWithOptions(ClusterId, NodepoolId, request, headers, runtime);
16512
16527
  }
16513
16528
  /**
16514
- * Fixes issues on abnormal nodes in a node pool to ensure that the nodes can run as normal.
16529
+ * Repairs a node pool.
16515
16530
  *
16516
16531
  * @param request - RepairClusterNodePoolRequest
16517
16532
  * @param headers - map
@@ -16548,7 +16563,7 @@ class Client extends openapi_client_1.default {
16548
16563
  return $tea.cast(await this.callApi(params, req, runtime), new RepairClusterNodePoolResponse({}));
16549
16564
  }
16550
16565
  /**
16551
- * Fixes issues on abnormal nodes in a node pool to ensure that the nodes can run as normal.
16566
+ * Repairs a node pool.
16552
16567
  *
16553
16568
  * @param request - RepairClusterNodePoolRequest
16554
16569
  * @returns RepairClusterNodePoolResponse
@@ -16598,7 +16613,7 @@ class Client extends openapi_client_1.default {
16598
16613
  return await this.resumeComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
16599
16614
  }
16600
16615
  /**
16601
- * You can call the ResumeTask operation to resume a task.
16616
+ * Resumes a task.
16602
16617
  *
16603
16618
  * @param headers - map
16604
16619
  * @param runtime - runtime options for this request RuntimeOptions
@@ -16622,7 +16637,7 @@ class Client extends openapi_client_1.default {
16622
16637
  return $tea.cast(await this.callApi(params, req, runtime), new ResumeTaskResponse({}));
16623
16638
  }
16624
16639
  /**
16625
- * You can call the ResumeTask operation to resume a task.
16640
+ * Resumes a task.
16626
16641
  * @returns ResumeTaskResponse
16627
16642
  */
16628
16643
  async resumeTask(taskId) {
@@ -16853,7 +16868,7 @@ class Client extends openapi_client_1.default {
16853
16868
  return await this.scaleClusterWithOptions(ClusterId, request, headers, runtime);
16854
16869
  }
16855
16870
  /**
16856
- * You can call the ScaleClusterNodePool operation to scale out a node pool by node pool ID.
16871
+ * Scales out a node pool.
16857
16872
  *
16858
16873
  * @param request - ScaleClusterNodePoolRequest
16859
16874
  * @param headers - map
@@ -16884,7 +16899,7 @@ class Client extends openapi_client_1.default {
16884
16899
  return $tea.cast(await this.callApi(params, req, runtime), new ScaleClusterNodePoolResponse({}));
16885
16900
  }
16886
16901
  /**
16887
- * You can call the ScaleClusterNodePool operation to scale out a node pool by node pool ID.
16902
+ * Scales out a node pool.
16888
16903
  *
16889
16904
  * @param request - ScaleClusterNodePoolRequest
16890
16905
  * @returns ScaleClusterNodePoolResponse