@alicloud/cs20151215 4.4.0 → 4.5.1

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.4.0",
3
+ "version": "4.5.1",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -856,6 +856,138 @@ export class CheckServiceRoleResponse extends $tea.Model {
856
856
  }
857
857
  }
858
858
 
859
+ export class CleanClusterUserPermissionsRequest extends $tea.Model {
860
+ force?: boolean;
861
+ static names(): { [key: string]: string } {
862
+ return {
863
+ force: 'Force',
864
+ };
865
+ }
866
+
867
+ static types(): { [key: string]: any } {
868
+ return {
869
+ force: 'boolean',
870
+ };
871
+ }
872
+
873
+ constructor(map?: { [key: string]: any }) {
874
+ super(map);
875
+ }
876
+ }
877
+
878
+ export class CleanClusterUserPermissionsResponse extends $tea.Model {
879
+ headers?: { [key: string]: string };
880
+ statusCode?: number;
881
+ static names(): { [key: string]: string } {
882
+ return {
883
+ headers: 'headers',
884
+ statusCode: 'statusCode',
885
+ };
886
+ }
887
+
888
+ static types(): { [key: string]: any } {
889
+ return {
890
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
891
+ statusCode: 'number',
892
+ };
893
+ }
894
+
895
+ constructor(map?: { [key: string]: any }) {
896
+ super(map);
897
+ }
898
+ }
899
+
900
+ export class CleanUserPermissionsRequest extends $tea.Model {
901
+ clusterIds?: string[];
902
+ force?: boolean;
903
+ static names(): { [key: string]: string } {
904
+ return {
905
+ clusterIds: 'ClusterIds',
906
+ force: 'Force',
907
+ };
908
+ }
909
+
910
+ static types(): { [key: string]: any } {
911
+ return {
912
+ clusterIds: { 'type': 'array', 'itemType': 'string' },
913
+ force: 'boolean',
914
+ };
915
+ }
916
+
917
+ constructor(map?: { [key: string]: any }) {
918
+ super(map);
919
+ }
920
+ }
921
+
922
+ export class CleanUserPermissionsShrinkRequest extends $tea.Model {
923
+ clusterIdsShrink?: string;
924
+ force?: boolean;
925
+ static names(): { [key: string]: string } {
926
+ return {
927
+ clusterIdsShrink: 'ClusterIds',
928
+ force: 'Force',
929
+ };
930
+ }
931
+
932
+ static types(): { [key: string]: any } {
933
+ return {
934
+ clusterIdsShrink: 'string',
935
+ force: 'boolean',
936
+ };
937
+ }
938
+
939
+ constructor(map?: { [key: string]: any }) {
940
+ super(map);
941
+ }
942
+ }
943
+
944
+ export class CleanUserPermissionsResponseBody extends $tea.Model {
945
+ requestId?: string;
946
+ taskId?: string;
947
+ static names(): { [key: string]: string } {
948
+ return {
949
+ requestId: 'request_id',
950
+ taskId: 'task_id',
951
+ };
952
+ }
953
+
954
+ static types(): { [key: string]: any } {
955
+ return {
956
+ requestId: 'string',
957
+ taskId: 'string',
958
+ };
959
+ }
960
+
961
+ constructor(map?: { [key: string]: any }) {
962
+ super(map);
963
+ }
964
+ }
965
+
966
+ export class CleanUserPermissionsResponse extends $tea.Model {
967
+ headers?: { [key: string]: string };
968
+ statusCode?: number;
969
+ body?: CleanUserPermissionsResponseBody;
970
+ static names(): { [key: string]: string } {
971
+ return {
972
+ headers: 'headers',
973
+ statusCode: 'statusCode',
974
+ body: 'body',
975
+ };
976
+ }
977
+
978
+ static types(): { [key: string]: any } {
979
+ return {
980
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
981
+ statusCode: 'number',
982
+ body: CleanUserPermissionsResponseBody,
983
+ };
984
+ }
985
+
986
+ constructor(map?: { [key: string]: any }) {
987
+ super(map);
988
+ }
989
+ }
990
+
859
991
  export class CreateAutoscalingConfigRequest extends $tea.Model {
860
992
  coolDownDuration?: string;
861
993
  daemonsetEvictionForNodes?: boolean;
@@ -5828,6 +5960,75 @@ export class ListClusterChecksResponse extends $tea.Model {
5828
5960
  }
5829
5961
  }
5830
5962
 
5963
+ export class ListClusterKubeconfigStatesRequest extends $tea.Model {
5964
+ pageNumber?: number;
5965
+ pageSize?: number;
5966
+ static names(): { [key: string]: string } {
5967
+ return {
5968
+ pageNumber: 'pageNumber',
5969
+ pageSize: 'pageSize',
5970
+ };
5971
+ }
5972
+
5973
+ static types(): { [key: string]: any } {
5974
+ return {
5975
+ pageNumber: 'number',
5976
+ pageSize: 'number',
5977
+ };
5978
+ }
5979
+
5980
+ constructor(map?: { [key: string]: any }) {
5981
+ super(map);
5982
+ }
5983
+ }
5984
+
5985
+ export class ListClusterKubeconfigStatesResponseBody extends $tea.Model {
5986
+ page?: ListClusterKubeconfigStatesResponseBodyPage;
5987
+ states?: ListClusterKubeconfigStatesResponseBodyStates[];
5988
+ static names(): { [key: string]: string } {
5989
+ return {
5990
+ page: 'page',
5991
+ states: 'states',
5992
+ };
5993
+ }
5994
+
5995
+ static types(): { [key: string]: any } {
5996
+ return {
5997
+ page: ListClusterKubeconfigStatesResponseBodyPage,
5998
+ states: { 'type': 'array', 'itemType': ListClusterKubeconfigStatesResponseBodyStates },
5999
+ };
6000
+ }
6001
+
6002
+ constructor(map?: { [key: string]: any }) {
6003
+ super(map);
6004
+ }
6005
+ }
6006
+
6007
+ export class ListClusterKubeconfigStatesResponse extends $tea.Model {
6008
+ headers?: { [key: string]: string };
6009
+ statusCode?: number;
6010
+ body?: ListClusterKubeconfigStatesResponseBody;
6011
+ static names(): { [key: string]: string } {
6012
+ return {
6013
+ headers: 'headers',
6014
+ statusCode: 'statusCode',
6015
+ body: 'body',
6016
+ };
6017
+ }
6018
+
6019
+ static types(): { [key: string]: any } {
6020
+ return {
6021
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6022
+ statusCode: 'number',
6023
+ body: ListClusterKubeconfigStatesResponseBody,
6024
+ };
6025
+ }
6026
+
6027
+ constructor(map?: { [key: string]: any }) {
6028
+ super(map);
6029
+ }
6030
+ }
6031
+
5831
6032
  export class ListOperationPlansRequest extends $tea.Model {
5832
6033
  clusterId?: string;
5833
6034
  type?: string;
@@ -6006,6 +6207,75 @@ export class ListTagResourcesResponse extends $tea.Model {
6006
6207
  }
6007
6208
  }
6008
6209
 
6210
+ export class ListUserKubeConfigStatesRequest extends $tea.Model {
6211
+ pageNumber?: number;
6212
+ pageSize?: number;
6213
+ static names(): { [key: string]: string } {
6214
+ return {
6215
+ pageNumber: 'page_number',
6216
+ pageSize: 'page_size',
6217
+ };
6218
+ }
6219
+
6220
+ static types(): { [key: string]: any } {
6221
+ return {
6222
+ pageNumber: 'number',
6223
+ pageSize: 'number',
6224
+ };
6225
+ }
6226
+
6227
+ constructor(map?: { [key: string]: any }) {
6228
+ super(map);
6229
+ }
6230
+ }
6231
+
6232
+ export class ListUserKubeConfigStatesResponseBody extends $tea.Model {
6233
+ page?: ListUserKubeConfigStatesResponseBodyPage;
6234
+ states?: ListUserKubeConfigStatesResponseBodyStates[];
6235
+ static names(): { [key: string]: string } {
6236
+ return {
6237
+ page: 'page',
6238
+ states: 'states',
6239
+ };
6240
+ }
6241
+
6242
+ static types(): { [key: string]: any } {
6243
+ return {
6244
+ page: ListUserKubeConfigStatesResponseBodyPage,
6245
+ states: { 'type': 'array', 'itemType': ListUserKubeConfigStatesResponseBodyStates },
6246
+ };
6247
+ }
6248
+
6249
+ constructor(map?: { [key: string]: any }) {
6250
+ super(map);
6251
+ }
6252
+ }
6253
+
6254
+ export class ListUserKubeConfigStatesResponse extends $tea.Model {
6255
+ headers?: { [key: string]: string };
6256
+ statusCode?: number;
6257
+ body?: ListUserKubeConfigStatesResponseBody;
6258
+ static names(): { [key: string]: string } {
6259
+ return {
6260
+ headers: 'headers',
6261
+ statusCode: 'statusCode',
6262
+ body: 'body',
6263
+ };
6264
+ }
6265
+
6266
+ static types(): { [key: string]: any } {
6267
+ return {
6268
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6269
+ statusCode: 'number',
6270
+ body: ListUserKubeConfigStatesResponseBody,
6271
+ };
6272
+ }
6273
+
6274
+ constructor(map?: { [key: string]: any }) {
6275
+ super(map);
6276
+ }
6277
+ }
6278
+
6009
6279
  export class MigrateClusterRequest extends $tea.Model {
6010
6280
  ossBucketEndpoint?: string;
6011
6281
  ossBucketName?: string;
@@ -8915,6 +9185,7 @@ export class NodepoolScalingGroup extends $tea.Model {
8915
9185
  periodUnit?: string;
8916
9186
  platform?: string;
8917
9187
  privatePoolOptions?: NodepoolScalingGroupPrivatePoolOptions;
9188
+ ramRoleName?: string;
8918
9189
  rdsInstances?: string[];
8919
9190
  scalingPolicy?: string;
8920
9191
  securityGroupId?: string;
@@ -8958,6 +9229,7 @@ export class NodepoolScalingGroup extends $tea.Model {
8958
9229
  periodUnit: 'period_unit',
8959
9230
  platform: 'platform',
8960
9231
  privatePoolOptions: 'private_pool_options',
9232
+ ramRoleName: 'ram_role_name',
8961
9233
  rdsInstances: 'rds_instances',
8962
9234
  scalingPolicy: 'scaling_policy',
8963
9235
  securityGroupId: 'security_group_id',
@@ -9004,6 +9276,7 @@ export class NodepoolScalingGroup extends $tea.Model {
9004
9276
  periodUnit: 'string',
9005
9277
  platform: 'string',
9006
9278
  privatePoolOptions: NodepoolScalingGroupPrivatePoolOptions,
9279
+ ramRoleName: 'string',
9007
9280
  rdsInstances: { 'type': 'array', 'itemType': 'string' },
9008
9281
  scalingPolicy: 'string',
9009
9282
  securityGroupId: 'string',
@@ -13063,6 +13336,71 @@ export class ListClusterChecksResponseBodyChecks extends $tea.Model {
13063
13336
  }
13064
13337
  }
13065
13338
 
13339
+ export class ListClusterKubeconfigStatesResponseBodyPage extends $tea.Model {
13340
+ pageNumber?: number;
13341
+ pageSize?: number;
13342
+ totalCount?: number;
13343
+ static names(): { [key: string]: string } {
13344
+ return {
13345
+ pageNumber: 'page_number',
13346
+ pageSize: 'page_size',
13347
+ totalCount: 'total_count',
13348
+ };
13349
+ }
13350
+
13351
+ static types(): { [key: string]: any } {
13352
+ return {
13353
+ pageNumber: 'number',
13354
+ pageSize: 'number',
13355
+ totalCount: 'number',
13356
+ };
13357
+ }
13358
+
13359
+ constructor(map?: { [key: string]: any }) {
13360
+ super(map);
13361
+ }
13362
+ }
13363
+
13364
+ export class ListClusterKubeconfigStatesResponseBodyStates extends $tea.Model {
13365
+ accountDisplayName?: string;
13366
+ accountId?: string;
13367
+ accountName?: string;
13368
+ accountState?: string;
13369
+ accountType?: string;
13370
+ certExpireTime?: string;
13371
+ certState?: string;
13372
+ revokable?: boolean;
13373
+ static names(): { [key: string]: string } {
13374
+ return {
13375
+ accountDisplayName: 'account_display_name',
13376
+ accountId: 'account_id',
13377
+ accountName: 'account_name',
13378
+ accountState: 'account_state',
13379
+ accountType: 'account_type',
13380
+ certExpireTime: 'cert_expire_time',
13381
+ certState: 'cert_state',
13382
+ revokable: 'revokable',
13383
+ };
13384
+ }
13385
+
13386
+ static types(): { [key: string]: any } {
13387
+ return {
13388
+ accountDisplayName: 'string',
13389
+ accountId: 'string',
13390
+ accountName: 'string',
13391
+ accountState: 'string',
13392
+ accountType: 'string',
13393
+ certExpireTime: 'string',
13394
+ certState: 'string',
13395
+ revokable: 'boolean',
13396
+ };
13397
+ }
13398
+
13399
+ constructor(map?: { [key: string]: any }) {
13400
+ super(map);
13401
+ }
13402
+ }
13403
+
13066
13404
  export class ListOperationPlansResponseBodyPlans extends $tea.Model {
13067
13405
  clusterId?: string;
13068
13406
  created?: string;
@@ -13153,6 +13491,62 @@ export class ListTagResourcesResponseBodyTagResources extends $tea.Model {
13153
13491
  }
13154
13492
  }
13155
13493
 
13494
+ export class ListUserKubeConfigStatesResponseBodyPage extends $tea.Model {
13495
+ pageNumber?: number;
13496
+ pageSize?: number;
13497
+ totalCount?: number;
13498
+ static names(): { [key: string]: string } {
13499
+ return {
13500
+ pageNumber: 'page_number',
13501
+ pageSize: 'page_size',
13502
+ totalCount: 'total_count',
13503
+ };
13504
+ }
13505
+
13506
+ static types(): { [key: string]: any } {
13507
+ return {
13508
+ pageNumber: 'number',
13509
+ pageSize: 'number',
13510
+ totalCount: 'number',
13511
+ };
13512
+ }
13513
+
13514
+ constructor(map?: { [key: string]: any }) {
13515
+ super(map);
13516
+ }
13517
+ }
13518
+
13519
+ export class ListUserKubeConfigStatesResponseBodyStates extends $tea.Model {
13520
+ certExpireTime?: string;
13521
+ certState?: string;
13522
+ clusterId?: string;
13523
+ clusterName?: string;
13524
+ clusterState?: string;
13525
+ static names(): { [key: string]: string } {
13526
+ return {
13527
+ certExpireTime: 'cert_expire_time',
13528
+ certState: 'cert_state',
13529
+ clusterId: 'cluster_id',
13530
+ clusterName: 'cluster_name',
13531
+ clusterState: 'cluster_state',
13532
+ };
13533
+ }
13534
+
13535
+ static types(): { [key: string]: any } {
13536
+ return {
13537
+ certExpireTime: 'string',
13538
+ certState: 'string',
13539
+ clusterId: 'string',
13540
+ clusterName: 'string',
13541
+ clusterState: 'string',
13542
+ };
13543
+ }
13544
+
13545
+ constructor(map?: { [key: string]: any }) {
13546
+ super(map);
13547
+ }
13548
+ }
13549
+
13156
13550
  export class ModifyClusterRequestApiServerCustomCertSans extends $tea.Model {
13157
13551
  action?: string;
13158
13552
  subjectAlternativeNames?: string[];
@@ -14471,6 +14865,106 @@ export default class Client extends OpenApi {
14471
14865
  return await this.checkServiceRoleWithOptions(request, headers, runtime);
14472
14866
  }
14473
14867
 
14868
+ /**
14869
+ * @summary 清理某个用户在某个集群的证书以及权限
14870
+ *
14871
+ * @param request CleanClusterUserPermissionsRequest
14872
+ * @param headers map
14873
+ * @param runtime runtime options for this request RuntimeOptions
14874
+ * @return CleanClusterUserPermissionsResponse
14875
+ */
14876
+ async cleanClusterUserPermissionsWithOptions(ClusterId: string, Uid: string, request: CleanClusterUserPermissionsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CleanClusterUserPermissionsResponse> {
14877
+ Util.validateModel(request);
14878
+ let query : {[key: string ]: any} = { };
14879
+ if (!Util.isUnset(request.force)) {
14880
+ query["Force"] = request.force;
14881
+ }
14882
+
14883
+ let req = new $OpenApi.OpenApiRequest({
14884
+ headers: headers,
14885
+ query: OpenApiUtil.query(query),
14886
+ });
14887
+ let params = new $OpenApi.Params({
14888
+ action: "CleanClusterUserPermissions",
14889
+ version: "2015-12-15",
14890
+ protocol: "HTTPS",
14891
+ pathname: `/cluster/${OpenApiUtil.getEncodeParam(ClusterId)}/user/${OpenApiUtil.getEncodeParam(Uid)}/permissions`,
14892
+ method: "DELETE",
14893
+ authType: "AK",
14894
+ style: "ROA",
14895
+ reqBodyType: "json",
14896
+ bodyType: "none",
14897
+ });
14898
+ return $tea.cast<CleanClusterUserPermissionsResponse>(await this.callApi(params, req, runtime), new CleanClusterUserPermissionsResponse({}));
14899
+ }
14900
+
14901
+ /**
14902
+ * @summary 清理某个用户在某个集群的证书以及权限
14903
+ *
14904
+ * @param request CleanClusterUserPermissionsRequest
14905
+ * @return CleanClusterUserPermissionsResponse
14906
+ */
14907
+ async cleanClusterUserPermissions(ClusterId: string, Uid: string, request: CleanClusterUserPermissionsRequest): Promise<CleanClusterUserPermissionsResponse> {
14908
+ let runtime = new $Util.RuntimeOptions({ });
14909
+ let headers : {[key: string ]: string} = { };
14910
+ return await this.cleanClusterUserPermissionsWithOptions(ClusterId, Uid, request, headers, runtime);
14911
+ }
14912
+
14913
+ /**
14914
+ * @summary 清除某个用户的证书以及相关RBAC权限
14915
+ *
14916
+ * @param tmpReq CleanUserPermissionsRequest
14917
+ * @param headers map
14918
+ * @param runtime runtime options for this request RuntimeOptions
14919
+ * @return CleanUserPermissionsResponse
14920
+ */
14921
+ async cleanUserPermissionsWithOptions(Uid: string, tmpReq: CleanUserPermissionsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CleanUserPermissionsResponse> {
14922
+ Util.validateModel(tmpReq);
14923
+ let request = new CleanUserPermissionsShrinkRequest({ });
14924
+ OpenApiUtil.convert(tmpReq, request);
14925
+ if (!Util.isUnset(tmpReq.clusterIds)) {
14926
+ request.clusterIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.clusterIds, "ClusterIds", "simple");
14927
+ }
14928
+
14929
+ let query : {[key: string ]: any} = { };
14930
+ if (!Util.isUnset(request.clusterIdsShrink)) {
14931
+ query["ClusterIds"] = request.clusterIdsShrink;
14932
+ }
14933
+
14934
+ if (!Util.isUnset(request.force)) {
14935
+ query["Force"] = request.force;
14936
+ }
14937
+
14938
+ let req = new $OpenApi.OpenApiRequest({
14939
+ headers: headers,
14940
+ query: OpenApiUtil.query(query),
14941
+ });
14942
+ let params = new $OpenApi.Params({
14943
+ action: "CleanUserPermissions",
14944
+ version: "2015-12-15",
14945
+ protocol: "HTTPS",
14946
+ pathname: `/users/${OpenApiUtil.getEncodeParam(Uid)}/permissions`,
14947
+ method: "DELETE",
14948
+ authType: "AK",
14949
+ style: "ROA",
14950
+ reqBodyType: "json",
14951
+ bodyType: "json",
14952
+ });
14953
+ return $tea.cast<CleanUserPermissionsResponse>(await this.callApi(params, req, runtime), new CleanUserPermissionsResponse({}));
14954
+ }
14955
+
14956
+ /**
14957
+ * @summary 清除某个用户的证书以及相关RBAC权限
14958
+ *
14959
+ * @param request CleanUserPermissionsRequest
14960
+ * @return CleanUserPermissionsResponse
14961
+ */
14962
+ async cleanUserPermissions(Uid: string, request: CleanUserPermissionsRequest): Promise<CleanUserPermissionsResponse> {
14963
+ let runtime = new $Util.RuntimeOptions({ });
14964
+ let headers : {[key: string ]: string} = { };
14965
+ return await this.cleanUserPermissionsWithOptions(Uid, request, headers, runtime);
14966
+ }
14967
+
14474
14968
  /**
14475
14969
  * @summary Creates a scaling configuration to allow the system to scale resources based on the given scaling rules. When you create a scaling configuration, you can specify the scaling metrics, thresholds, scaling order, and scaling interval.
14476
14970
  *
@@ -18617,6 +19111,55 @@ export default class Client extends OpenApi {
18617
19111
  return await this.listClusterChecksWithOptions(clusterId, request, headers, runtime);
18618
19112
  }
18619
19113
 
19114
+ /**
19115
+ * @summary 获取当前集群已下发的用户Kubeconfig的状态列表
19116
+ *
19117
+ * @param request ListClusterKubeconfigStatesRequest
19118
+ * @param headers map
19119
+ * @param runtime runtime options for this request RuntimeOptions
19120
+ * @return ListClusterKubeconfigStatesResponse
19121
+ */
19122
+ async listClusterKubeconfigStatesWithOptions(ClusterId: string, request: ListClusterKubeconfigStatesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListClusterKubeconfigStatesResponse> {
19123
+ Util.validateModel(request);
19124
+ let query : {[key: string ]: any} = { };
19125
+ if (!Util.isUnset(request.pageNumber)) {
19126
+ query["pageNumber"] = request.pageNumber;
19127
+ }
19128
+
19129
+ if (!Util.isUnset(request.pageSize)) {
19130
+ query["pageSize"] = request.pageSize;
19131
+ }
19132
+
19133
+ let req = new $OpenApi.OpenApiRequest({
19134
+ headers: headers,
19135
+ query: OpenApiUtil.query(query),
19136
+ });
19137
+ let params = new $OpenApi.Params({
19138
+ action: "ListClusterKubeconfigStates",
19139
+ version: "2015-12-15",
19140
+ protocol: "HTTPS",
19141
+ pathname: `/clusters/${OpenApiUtil.getEncodeParam(ClusterId)}/kubeconfig/states`,
19142
+ method: "GET",
19143
+ authType: "AK",
19144
+ style: "ROA",
19145
+ reqBodyType: "json",
19146
+ bodyType: "json",
19147
+ });
19148
+ return $tea.cast<ListClusterKubeconfigStatesResponse>(await this.callApi(params, req, runtime), new ListClusterKubeconfigStatesResponse({}));
19149
+ }
19150
+
19151
+ /**
19152
+ * @summary 获取当前集群已下发的用户Kubeconfig的状态列表
19153
+ *
19154
+ * @param request ListClusterKubeconfigStatesRequest
19155
+ * @return ListClusterKubeconfigStatesResponse
19156
+ */
19157
+ async listClusterKubeconfigStates(ClusterId: string, request: ListClusterKubeconfigStatesRequest): Promise<ListClusterKubeconfigStatesResponse> {
19158
+ let runtime = new $Util.RuntimeOptions({ });
19159
+ let headers : {[key: string ]: string} = { };
19160
+ return await this.listClusterKubeconfigStatesWithOptions(ClusterId, request, headers, runtime);
19161
+ }
19162
+
18620
19163
  /**
18621
19164
  * @summary 获取自动运维执行计划列表
18622
19165
  *
@@ -18737,6 +19280,55 @@ export default class Client extends OpenApi {
18737
19280
  return await this.listTagResourcesWithOptions(request, headers, runtime);
18738
19281
  }
18739
19282
 
19283
+ /**
19284
+ * @summary 查询单用户所有集群的证书状态
19285
+ *
19286
+ * @param request ListUserKubeConfigStatesRequest
19287
+ * @param headers map
19288
+ * @param runtime runtime options for this request RuntimeOptions
19289
+ * @return ListUserKubeConfigStatesResponse
19290
+ */
19291
+ async listUserKubeConfigStatesWithOptions(Uid: string, request: ListUserKubeConfigStatesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListUserKubeConfigStatesResponse> {
19292
+ Util.validateModel(request);
19293
+ let query : {[key: string ]: any} = { };
19294
+ if (!Util.isUnset(request.pageNumber)) {
19295
+ query["page_number"] = request.pageNumber;
19296
+ }
19297
+
19298
+ if (!Util.isUnset(request.pageSize)) {
19299
+ query["page_size"] = request.pageSize;
19300
+ }
19301
+
19302
+ let req = new $OpenApi.OpenApiRequest({
19303
+ headers: headers,
19304
+ query: OpenApiUtil.query(query),
19305
+ });
19306
+ let params = new $OpenApi.Params({
19307
+ action: "ListUserKubeConfigStates",
19308
+ version: "2015-12-15",
19309
+ protocol: "HTTPS",
19310
+ pathname: `/users/${OpenApiUtil.getEncodeParam(Uid)}/kubeconfig/states`,
19311
+ method: "GET",
19312
+ authType: "AK",
19313
+ style: "ROA",
19314
+ reqBodyType: "json",
19315
+ bodyType: "json",
19316
+ });
19317
+ return $tea.cast<ListUserKubeConfigStatesResponse>(await this.callApi(params, req, runtime), new ListUserKubeConfigStatesResponse({}));
19318
+ }
19319
+
19320
+ /**
19321
+ * @summary 查询单用户所有集群的证书状态
19322
+ *
19323
+ * @param request ListUserKubeConfigStatesRequest
19324
+ * @return ListUserKubeConfigStatesResponse
19325
+ */
19326
+ async listUserKubeConfigStates(Uid: string, request: ListUserKubeConfigStatesRequest): Promise<ListUserKubeConfigStatesResponse> {
19327
+ let runtime = new $Util.RuntimeOptions({ });
19328
+ let headers : {[key: string ]: string} = { };
19329
+ return await this.listUserKubeConfigStatesWithOptions(Uid, request, headers, runtime);
19330
+ }
19331
+
18740
19332
  /**
18741
19333
  * @summary Container Service for Kubernetes (ACK) Pro clusters are developed based on ACK Basic clusters. ACK Pro clusters provide all benefits of ACK managed clusters, such as fully-managed control planes and control plane high availability. In addition, ACK Pro clusters provide you with enhanced reliability, security, and schedulability. ACK Pro clusters are covered by the SLA that supports compensation clauses. ACK Pro clusters are suitable for large-scale businesses that require high stability and security in production environments. We recommend that you migrate from ACK Basic clusters to ACK Pro clusters.
18742
19334
  *