@alicloud/cs20151215 4.7.9 → 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',
@@ -9937,6 +9945,11 @@ class DescribePolicyInstancesResponseBody extends $tea.Model {
9937
9945
  policySeverity: 'policy_severity',
9938
9946
  policyScope: 'policy_scope',
9939
9947
  policyAction: 'policy_action',
9948
+ created: 'Created',
9949
+ updated: 'Updated',
9950
+ resourceId: 'resource_id',
9951
+ totalViolations: 'total_violations',
9952
+ isDeleted: 'is_deleted',
9940
9953
  };
9941
9954
  }
9942
9955
  static types() {
@@ -9951,6 +9964,11 @@ class DescribePolicyInstancesResponseBody extends $tea.Model {
9951
9964
  policySeverity: 'string',
9952
9965
  policyScope: 'string',
9953
9966
  policyAction: 'string',
9967
+ created: 'string',
9968
+ updated: 'string',
9969
+ resourceId: 'string',
9970
+ totalViolations: 'number',
9971
+ isDeleted: 'number',
9954
9972
  };
9955
9973
  }
9956
9974
  constructor(map) {
@@ -11591,7 +11609,7 @@ class Client extends openapi_client_1.default {
11591
11609
  return await this.cancelComponentUpgradeWithOptions(clusterId, componentId, headers, runtime);
11592
11610
  }
11593
11611
  /**
11594
- * You can call the CancelOperationPlan operation to cancel a pending auto O\\\\\\&M plan.
11612
+ * You can call the CancelOperationPlan operation to cancel a pending auto O\\\\\\\\\\\\&M plan.
11595
11613
  *
11596
11614
  * @param headers - map
11597
11615
  * @param runtime - runtime options for this request RuntimeOptions
@@ -11615,7 +11633,7 @@ class Client extends openapi_client_1.default {
11615
11633
  return $tea.cast(await this.callApi(params, req, runtime), new CancelOperationPlanResponse({}));
11616
11634
  }
11617
11635
  /**
11618
- * You can call the CancelOperationPlan operation to cancel a pending auto O\\\\\\&M plan.
11636
+ * You can call the CancelOperationPlan operation to cancel a pending auto O\\\\\\\\\\\\&M plan.
11619
11637
  * @returns CancelOperationPlanResponse
11620
11638
  */
11621
11639
  async cancelOperationPlan(planId) {
@@ -11789,9 +11807,9 @@ class Client extends openapi_client_1.default {
11789
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.
11790
11808
  *
11791
11809
  * @remarks
11792
- * >- To call this operation, make sure that you have the AliyunCSFullAccess permissions.
11793
- * >- You cannot revoke the permissions of an Alibaba Cloud account.
11794
- * >- 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.
11795
11813
  *
11796
11814
  * @param tmpReq - CleanUserPermissionsRequest
11797
11815
  * @param headers - map
@@ -11833,9 +11851,9 @@ class Client extends openapi_client_1.default {
11833
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.
11834
11852
  *
11835
11853
  * @remarks
11836
- * >- To call this operation, make sure that you have the AliyunCSFullAccess permissions.
11837
- * >- You cannot revoke the permissions of an Alibaba Cloud account.
11838
- * >- 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.
11839
11857
  *
11840
11858
  * @param request - CleanUserPermissionsRequest
11841
11859
  * @returns CleanUserPermissionsResponse
@@ -12320,7 +12338,7 @@ class Client extends openapi_client_1.default {
12320
12338
  return await this.createClusterDiagnosisWithOptions(clusterId, request, headers, runtime);
12321
12339
  }
12322
12340
  /**
12323
- * 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.
12324
12342
  *
12325
12343
  * @param request - CreateClusterNodePoolRequest
12326
12344
  * @param headers - map
@@ -12336,12 +12354,18 @@ class Client extends openapi_client_1.default {
12336
12354
  if (!tea_util_1.default.isUnset(request.count)) {
12337
12355
  body["count"] = request.count;
12338
12356
  }
12357
+ if (!tea_util_1.default.isUnset(request.hostNetwork)) {
12358
+ body["host_network"] = request.hostNetwork;
12359
+ }
12339
12360
  if (!tea_util_1.default.isUnset(request.interconnectConfig)) {
12340
12361
  body["interconnect_config"] = request.interconnectConfig;
12341
12362
  }
12342
12363
  if (!tea_util_1.default.isUnset(request.interconnectMode)) {
12343
12364
  body["interconnect_mode"] = request.interconnectMode;
12344
12365
  }
12366
+ if (!tea_util_1.default.isUnset(request.intranet)) {
12367
+ body["intranet"] = request.intranet;
12368
+ }
12345
12369
  if (!tea_util_1.default.isUnset(request.kubernetesConfig)) {
12346
12370
  body["kubernetes_config"] = request.kubernetesConfig;
12347
12371
  }
@@ -12381,7 +12405,7 @@ class Client extends openapi_client_1.default {
12381
12405
  return $tea.cast(await this.callApi(params, req, runtime), new CreateClusterNodePoolResponse({}));
12382
12406
  }
12383
12407
  /**
12384
- * 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.
12385
12409
  *
12386
12410
  * @param request - CreateClusterNodePoolRequest
12387
12411
  * @returns CreateClusterNodePoolResponse
@@ -12749,7 +12773,7 @@ class Client extends openapi_client_1.default {
12749
12773
  return await this.deleteClusterWithOptions(ClusterId, request, headers, runtime);
12750
12774
  }
12751
12775
  /**
12752
- * You can call the DeleteClusterNodepool operation to delete a node pool by node pool ID.
12776
+ * null
12753
12777
  *
12754
12778
  * @param request - DeleteClusterNodepoolRequest
12755
12779
  * @param headers - map
@@ -12780,7 +12804,7 @@ class Client extends openapi_client_1.default {
12780
12804
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteClusterNodepoolResponse({}));
12781
12805
  }
12782
12806
  /**
12783
- * You can call the DeleteClusterNodepool operation to delete a node pool by node pool ID.
12807
+ * null
12784
12808
  *
12785
12809
  * @param request - DeleteClusterNodepoolRequest
12786
12810
  * @returns DeleteClusterNodepoolResponse
@@ -13624,7 +13648,7 @@ class Client extends openapi_client_1.default {
13624
13648
  return await this.describeClusterNodePoolDetailWithOptions(ClusterId, NodepoolId, headers, runtime);
13625
13649
  }
13626
13650
  /**
13627
- * Queries node pools in a Container Service for Kubernetes (ACK) cluster.
13651
+ * Queries the information about all node pools in a cluster.
13628
13652
  *
13629
13653
  * @param request - DescribeClusterNodePoolsRequest
13630
13654
  * @param headers - map
@@ -13655,7 +13679,7 @@ class Client extends openapi_client_1.default {
13655
13679
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNodePoolsResponse({}));
13656
13680
  }
13657
13681
  /**
13658
- * Queries node pools in a Container Service for Kubernetes (ACK) cluster.
13682
+ * Queries the information about all node pools in a cluster.
13659
13683
  *
13660
13684
  * @param request - DescribeClusterNodePoolsRequest
13661
13685
  * @returns DescribeClusterNodePoolsResponse
@@ -13666,7 +13690,7 @@ class Client extends openapi_client_1.default {
13666
13690
  return await this.describeClusterNodePoolsWithOptions(ClusterId, request, headers, runtime);
13667
13691
  }
13668
13692
  /**
13669
- * You can call the DescribeClusterNodes operation to query the details about all nodes in a cluster by cluster ID.
13693
+ * null
13670
13694
  *
13671
13695
  * @param request - DescribeClusterNodesRequest
13672
13696
  * @param headers - map
@@ -13709,7 +13733,7 @@ class Client extends openapi_client_1.default {
13709
13733
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNodesResponse({}));
13710
13734
  }
13711
13735
  /**
13712
- * You can call the DescribeClusterNodes operation to query the details about all nodes in a cluster by cluster ID.
13736
+ * null
13713
13737
  *
13714
13738
  * @param request - DescribeClusterNodesRequest
13715
13739
  * @returns DescribeClusterNodesResponse
@@ -14212,7 +14236,7 @@ class Client extends openapi_client_1.default {
14212
14236
  return await this.describeEdgeMachinesWithOptions(request, headers, runtime);
14213
14237
  }
14214
14238
  /**
14215
- * 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.
14216
14240
  *
14217
14241
  * @param request - DescribeEventsRequest
14218
14242
  * @param headers - map
@@ -14252,7 +14276,7 @@ class Client extends openapi_client_1.default {
14252
14276
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeEventsResponse({}));
14253
14277
  }
14254
14278
  /**
14255
- * 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.
14256
14280
  *
14257
14281
  * @param request - DescribeEventsRequest
14258
14282
  * @returns DescribeEventsResponse
@@ -14416,7 +14440,7 @@ class Client extends openapi_client_1.default {
14416
14440
  return await this.describeNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime);
14417
14441
  }
14418
14442
  /**
14419
- * 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.
14420
14444
  *
14421
14445
  * @param headers - map
14422
14446
  * @param runtime - runtime options for this request RuntimeOptions
@@ -14440,7 +14464,7 @@ class Client extends openapi_client_1.default {
14440
14464
  return $tea.cast(await this.callApi(params, req, runtime), new DescribePoliciesResponse({}));
14441
14465
  }
14442
14466
  /**
14443
- * 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.
14444
14468
  * @returns DescribePoliciesResponse
14445
14469
  */
14446
14470
  async describePolicies() {
@@ -15116,6 +15140,8 @@ class Client extends openapi_client_1.default {
15116
15140
  return await this.getClusterAddonInstanceWithOptions(clusterId, instanceName, headers, runtime);
15117
15141
  }
15118
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
+ *
15119
15145
  * @param headers - map
15120
15146
  * @param runtime - runtime options for this request RuntimeOptions
15121
15147
  * @returns GetClusterAuditProjectResponse
@@ -15138,6 +15164,7 @@ class Client extends openapi_client_1.default {
15138
15164
  return $tea.cast(await this.callApi(params, req, runtime), new GetClusterAuditProjectResponse({}));
15139
15165
  }
15140
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.
15141
15168
  * @returns GetClusterAuditProjectResponse
15142
15169
  */
15143
15170
  async getClusterAuditProject(clusterid) {
@@ -15339,8 +15366,7 @@ class Client extends openapi_client_1.default {
15339
15366
  *
15340
15367
  * @remarks
15341
15368
  * *Precautions**:
15342
- * * 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).
15343
- * * 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).
15344
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.
15345
15371
  *
15346
15372
  * @param request - GrantPermissionsRequest
@@ -15372,8 +15398,7 @@ class Client extends openapi_client_1.default {
15372
15398
  *
15373
15399
  * @remarks
15374
15400
  * *Precautions**:
15375
- * * 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).
15376
- * * 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).
15377
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.
15378
15403
  *
15379
15404
  * @param request - GrantPermissionsRequest
@@ -16501,7 +16526,7 @@ class Client extends openapi_client_1.default {
16501
16526
  return await this.removeNodePoolNodesWithOptions(ClusterId, NodepoolId, request, headers, runtime);
16502
16527
  }
16503
16528
  /**
16504
- * Fixes issues on abnormal nodes in a node pool to ensure that the nodes can run as normal.
16529
+ * Repairs a node pool.
16505
16530
  *
16506
16531
  * @param request - RepairClusterNodePoolRequest
16507
16532
  * @param headers - map
@@ -16538,7 +16563,7 @@ class Client extends openapi_client_1.default {
16538
16563
  return $tea.cast(await this.callApi(params, req, runtime), new RepairClusterNodePoolResponse({}));
16539
16564
  }
16540
16565
  /**
16541
- * Fixes issues on abnormal nodes in a node pool to ensure that the nodes can run as normal.
16566
+ * Repairs a node pool.
16542
16567
  *
16543
16568
  * @param request - RepairClusterNodePoolRequest
16544
16569
  * @returns RepairClusterNodePoolResponse
@@ -16588,7 +16613,7 @@ class Client extends openapi_client_1.default {
16588
16613
  return await this.resumeComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
16589
16614
  }
16590
16615
  /**
16591
- * You can call the ResumeTask operation to resume a task.
16616
+ * Resumes a task.
16592
16617
  *
16593
16618
  * @param headers - map
16594
16619
  * @param runtime - runtime options for this request RuntimeOptions
@@ -16612,7 +16637,7 @@ class Client extends openapi_client_1.default {
16612
16637
  return $tea.cast(await this.callApi(params, req, runtime), new ResumeTaskResponse({}));
16613
16638
  }
16614
16639
  /**
16615
- * You can call the ResumeTask operation to resume a task.
16640
+ * Resumes a task.
16616
16641
  * @returns ResumeTaskResponse
16617
16642
  */
16618
16643
  async resumeTask(taskId) {
@@ -16843,7 +16868,7 @@ class Client extends openapi_client_1.default {
16843
16868
  return await this.scaleClusterWithOptions(ClusterId, request, headers, runtime);
16844
16869
  }
16845
16870
  /**
16846
- * You can call the ScaleClusterNodePool operation to scale out a node pool by node pool ID.
16871
+ * Scales out a node pool.
16847
16872
  *
16848
16873
  * @param request - ScaleClusterNodePoolRequest
16849
16874
  * @param headers - map
@@ -16874,7 +16899,7 @@ class Client extends openapi_client_1.default {
16874
16899
  return $tea.cast(await this.callApi(params, req, runtime), new ScaleClusterNodePoolResponse({}));
16875
16900
  }
16876
16901
  /**
16877
- * You can call the ScaleClusterNodePool operation to scale out a node pool by node pool ID.
16902
+ * Scales out a node pool.
16878
16903
  *
16879
16904
  * @param request - ScaleClusterNodePoolRequest
16880
16905
  * @returns ScaleClusterNodePoolResponse