@alicloud/cs20151215 4.5.1 → 4.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/cs20151215",
3
- "version": "4.5.1",
3
+ "version": "4.6.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -5398,6 +5398,50 @@ export class GetClusterAddonInstanceResponse extends $tea.Model {
5398
5398
  }
5399
5399
  }
5400
5400
 
5401
+ export class GetClusterAuditProjectResponseBody extends $tea.Model {
5402
+ slsProjectName?: string;
5403
+ static names(): { [key: string]: string } {
5404
+ return {
5405
+ slsProjectName: 'sls_project_name',
5406
+ };
5407
+ }
5408
+
5409
+ static types(): { [key: string]: any } {
5410
+ return {
5411
+ slsProjectName: 'string',
5412
+ };
5413
+ }
5414
+
5415
+ constructor(map?: { [key: string]: any }) {
5416
+ super(map);
5417
+ }
5418
+ }
5419
+
5420
+ export class GetClusterAuditProjectResponse extends $tea.Model {
5421
+ headers?: { [key: string]: string };
5422
+ statusCode?: number;
5423
+ body?: GetClusterAuditProjectResponseBody;
5424
+ static names(): { [key: string]: string } {
5425
+ return {
5426
+ headers: 'headers',
5427
+ statusCode: 'statusCode',
5428
+ body: 'body',
5429
+ };
5430
+ }
5431
+
5432
+ static types(): { [key: string]: any } {
5433
+ return {
5434
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5435
+ statusCode: 'number',
5436
+ body: GetClusterAuditProjectResponseBody,
5437
+ };
5438
+ }
5439
+
5440
+ constructor(map?: { [key: string]: any }) {
5441
+ super(map);
5442
+ }
5443
+ }
5444
+
5401
5445
  export class GetClusterCheckResponseBody extends $tea.Model {
5402
5446
  checkId?: string;
5403
5447
  checkItems?: { [key: string]: {[key: string ]: any}[] };
@@ -8710,13 +8754,40 @@ export class UpgradeClusterAddonsRequest extends $tea.Model {
8710
8754
  }
8711
8755
  }
8712
8756
 
8757
+ export class UpgradeClusterAddonsResponseBody extends $tea.Model {
8758
+ clusterId?: string;
8759
+ requestId?: string;
8760
+ taskId?: string;
8761
+ static names(): { [key: string]: string } {
8762
+ return {
8763
+ clusterId: 'cluster_id',
8764
+ requestId: 'request_id',
8765
+ taskId: 'task_id',
8766
+ };
8767
+ }
8768
+
8769
+ static types(): { [key: string]: any } {
8770
+ return {
8771
+ clusterId: 'string',
8772
+ requestId: 'string',
8773
+ taskId: 'string',
8774
+ };
8775
+ }
8776
+
8777
+ constructor(map?: { [key: string]: any }) {
8778
+ super(map);
8779
+ }
8780
+ }
8781
+
8713
8782
  export class UpgradeClusterAddonsResponse extends $tea.Model {
8714
8783
  headers?: { [key: string]: string };
8715
8784
  statusCode?: number;
8785
+ body?: UpgradeClusterAddonsResponseBody;
8716
8786
  static names(): { [key: string]: string } {
8717
8787
  return {
8718
8788
  headers: 'headers',
8719
8789
  statusCode: 'statusCode',
8790
+ body: 'body',
8720
8791
  };
8721
8792
  }
8722
8793
 
@@ -8724,6 +8795,7 @@ export class UpgradeClusterAddonsResponse extends $tea.Model {
8724
8795
  return {
8725
8796
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
8726
8797
  statusCode: 'number',
8798
+ body: UpgradeClusterAddonsResponseBody,
8727
8799
  };
8728
8800
  }
8729
8801
 
@@ -14866,7 +14938,12 @@ export default class Client extends OpenApi {
14866
14938
  }
14867
14939
 
14868
14940
  /**
14869
- * @summary 清理某个用户在某个集群的证书以及权限
14941
+ * @summary You can call the CleanClusterUserPermissions operation to delete kubeconfig files that may pose potential risks from a user and revoke Role-Based Access Control (RBAC) permissions on a cluster.
14942
+ *
14943
+ * @description >
14944
+ * * To call this operation, make sure that you have the AliyunCSFullAccess permissions.
14945
+ * * You cannot revoke the permissions of an Alibaba Cloud account.
14946
+ * * You cannot revoke the permissions of the account that you use to call this operation.
14870
14947
  *
14871
14948
  * @param request CleanClusterUserPermissionsRequest
14872
14949
  * @param headers map
@@ -14899,7 +14976,12 @@ export default class Client extends OpenApi {
14899
14976
  }
14900
14977
 
14901
14978
  /**
14902
- * @summary 清理某个用户在某个集群的证书以及权限
14979
+ * @summary You can call the CleanClusterUserPermissions operation to delete kubeconfig files that may pose potential risks from a user and revoke Role-Based Access Control (RBAC) permissions on a cluster.
14980
+ *
14981
+ * @description >
14982
+ * * To call this operation, make sure that you have the AliyunCSFullAccess permissions.
14983
+ * * You cannot revoke the permissions of an Alibaba Cloud account.
14984
+ * * You cannot revoke the permissions of the account that you use to call this operation.
14903
14985
  *
14904
14986
  * @param request CleanClusterUserPermissionsRequest
14905
14987
  * @return CleanClusterUserPermissionsResponse
@@ -14911,7 +14993,11 @@ export default class Client extends OpenApi {
14911
14993
  }
14912
14994
 
14913
14995
  /**
14914
- * @summary 清除某个用户的证书以及相关RBAC权限
14996
+ * @summary 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.
14997
+ *
14998
+ * @description >- To call this operation, make sure that you have the AliyunCSFullAccess permissions.
14999
+ * >- You cannot revoke the permissions of an Alibaba Cloud account.
15000
+ * >- You cannot revoke the permissions of the account that you use to call this operation.
14915
15001
  *
14916
15002
  * @param tmpReq CleanUserPermissionsRequest
14917
15003
  * @param headers map
@@ -14954,7 +15040,11 @@ export default class Client extends OpenApi {
14954
15040
  }
14955
15041
 
14956
15042
  /**
14957
- * @summary 清除某个用户的证书以及相关RBAC权限
15043
+ * @summary 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.
15044
+ *
15045
+ * @description >- To call this operation, make sure that you have the AliyunCSFullAccess permissions.
15046
+ * >- You cannot revoke the permissions of an Alibaba Cloud account.
15047
+ * >- You cannot revoke the permissions of the account that you use to call this operation.
14958
15048
  *
14959
15049
  * @param request CleanUserPermissionsRequest
14960
15050
  * @return CleanUserPermissionsResponse
@@ -18664,6 +18754,38 @@ export default class Client extends OpenApi {
18664
18754
  return await this.getClusterAddonInstanceWithOptions(clusterId, instanceName, headers, runtime);
18665
18755
  }
18666
18756
 
18757
+ /**
18758
+ * @param headers map
18759
+ * @param runtime runtime options for this request RuntimeOptions
18760
+ * @return GetClusterAuditProjectResponse
18761
+ */
18762
+ async getClusterAuditProjectWithOptions(clusterid: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetClusterAuditProjectResponse> {
18763
+ let req = new $OpenApi.OpenApiRequest({
18764
+ headers: headers,
18765
+ });
18766
+ let params = new $OpenApi.Params({
18767
+ action: "GetClusterAuditProject",
18768
+ version: "2015-12-15",
18769
+ protocol: "HTTPS",
18770
+ pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterid)}/audit`,
18771
+ method: "GET",
18772
+ authType: "AK",
18773
+ style: "ROA",
18774
+ reqBodyType: "json",
18775
+ bodyType: "json",
18776
+ });
18777
+ return $tea.cast<GetClusterAuditProjectResponse>(await this.callApi(params, req, runtime), new GetClusterAuditProjectResponse({}));
18778
+ }
18779
+
18780
+ /**
18781
+ * @return GetClusterAuditProjectResponse
18782
+ */
18783
+ async getClusterAuditProject(clusterid: string): Promise<GetClusterAuditProjectResponse> {
18784
+ let runtime = new $Util.RuntimeOptions({ });
18785
+ let headers : {[key: string ]: string} = { };
18786
+ return await this.getClusterAuditProjectWithOptions(clusterid, headers, runtime);
18787
+ }
18788
+
18667
18789
  /**
18668
18790
  * @summary Queries a cluster check task by cluster ID and task ID. You can view the status, check items, creation time, and end time of the task. Container Intelligence Service (CIS) provides a variety of Kubernetes cluster check features, including cluster update check, cluster migration check, component installation check, component update check, and node pool check.
18669
18791
  *
@@ -19112,7 +19234,11 @@ export default class Client extends OpenApi {
19112
19234
  }
19113
19235
 
19114
19236
  /**
19115
- * @summary 获取当前集群已下发的用户Kubeconfig的状态列表
19237
+ * @summary You can call the ListClusterKubeconfigStates operation to query the kubeconfig files that are issued to users for the current cluster and the status of the kubeconfig files.
19238
+ *
19239
+ * @description >
19240
+ * * To call this operation, make sure that you have ram:ListUsers and ram:ListRoles permissions.
19241
+ * * To call this operation, make sure that you have the AliyunCSFullAccess permissions.
19116
19242
  *
19117
19243
  * @param request ListClusterKubeconfigStatesRequest
19118
19244
  * @param headers map
@@ -19149,7 +19275,11 @@ export default class Client extends OpenApi {
19149
19275
  }
19150
19276
 
19151
19277
  /**
19152
- * @summary 获取当前集群已下发的用户Kubeconfig的状态列表
19278
+ * @summary You can call the ListClusterKubeconfigStates operation to query the kubeconfig files that are issued to users for the current cluster and the status of the kubeconfig files.
19279
+ *
19280
+ * @description >
19281
+ * * To call this operation, make sure that you have ram:ListUsers and ram:ListRoles permissions.
19282
+ * * To call this operation, make sure that you have the AliyunCSFullAccess permissions.
19153
19283
  *
19154
19284
  * @param request ListClusterKubeconfigStatesRequest
19155
19285
  * @return ListClusterKubeconfigStatesResponse
@@ -19281,7 +19411,9 @@ export default class Client extends OpenApi {
19281
19411
  }
19282
19412
 
19283
19413
  /**
19284
- * @summary 查询单用户所有集群的证书状态
19414
+ * @summary You can call the ListUserKubeConfigStates operation to query the status of the kubeconfig files of all clusters managed by the current user.
19415
+ *
19416
+ * @description > To call this operation, make sure that you have the AliyunCSFullAccess permissions.
19285
19417
  *
19286
19418
  * @param request ListUserKubeConfigStatesRequest
19287
19419
  * @param headers map
@@ -19318,7 +19450,9 @@ export default class Client extends OpenApi {
19318
19450
  }
19319
19451
 
19320
19452
  /**
19321
- * @summary 查询单用户所有集群的证书状态
19453
+ * @summary You can call the ListUserKubeConfigStates operation to query the status of the kubeconfig files of all clusters managed by the current user.
19454
+ *
19455
+ * @description > To call this operation, make sure that you have the AliyunCSFullAccess permissions.
19322
19456
  *
19323
19457
  * @param request ListUserKubeConfigStatesRequest
19324
19458
  * @return ListUserKubeConfigStatesResponse
@@ -21148,7 +21282,9 @@ export default class Client extends OpenApi {
21148
21282
  }
21149
21283
 
21150
21284
  /**
21151
- * @summary 更新集群审计日志配置
21285
+ * @summary You can call the UpdateClusterAuditLogConfig operation to enable or disable the audit log feature in a Container Service for Kubernetes (ACK) cluster and update the audit log configuration. This operation also allows you to record requests to the Kubernetes API and the responses, which can be used to trace cluster operation history and troubleshoot cluster issues.
21286
+ *
21287
+ * @description Before you call this operation, ensure that you understand the billing methods and pricing of [Simple Log Service](https://www.aliyun.com/price/product#/sls/detail/sls) (SLS).
21152
21288
  *
21153
21289
  * @param request UpdateClusterAuditLogConfigRequest
21154
21290
  * @param headers map
@@ -21185,7 +21321,9 @@ export default class Client extends OpenApi {
21185
21321
  }
21186
21322
 
21187
21323
  /**
21188
- * @summary 更新集群审计日志配置
21324
+ * @summary You can call the UpdateClusterAuditLogConfig operation to enable or disable the audit log feature in a Container Service for Kubernetes (ACK) cluster and update the audit log configuration. This operation also allows you to record requests to the Kubernetes API and the responses, which can be used to trace cluster operation history and troubleshoot cluster issues.
21325
+ *
21326
+ * @description Before you call this operation, ensure that you understand the billing methods and pricing of [Simple Log Service](https://www.aliyun.com/price/product#/sls/detail/sls) (SLS).
21189
21327
  *
21190
21328
  * @param request UpdateClusterAuditLogConfigRequest
21191
21329
  * @return UpdateClusterAuditLogConfigResponse
@@ -21590,7 +21728,7 @@ export default class Client extends OpenApi {
21590
21728
  authType: "AK",
21591
21729
  style: "ROA",
21592
21730
  reqBodyType: "json",
21593
- bodyType: "none",
21731
+ bodyType: "json",
21594
21732
  });
21595
21733
  return $tea.cast<UpgradeClusterAddonsResponse>(await this.callApi(params, req, runtime), new UpgradeClusterAddonsResponse({}));
21596
21734
  }