@alicloud/cs20151215 4.3.3 → 4.5.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/dist/client.d.ts +362 -0
- package/dist/client.js +609 -10
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +735 -25
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;
|
|
@@ -7946,6 +8216,78 @@ export class UntagResourcesResponse extends $tea.Model {
|
|
|
7946
8216
|
}
|
|
7947
8217
|
}
|
|
7948
8218
|
|
|
8219
|
+
export class UpdateClusterAuditLogConfigRequest extends $tea.Model {
|
|
8220
|
+
disable?: boolean;
|
|
8221
|
+
slsProjectName?: string;
|
|
8222
|
+
static names(): { [key: string]: string } {
|
|
8223
|
+
return {
|
|
8224
|
+
disable: 'disable',
|
|
8225
|
+
slsProjectName: 'sls_project_name',
|
|
8226
|
+
};
|
|
8227
|
+
}
|
|
8228
|
+
|
|
8229
|
+
static types(): { [key: string]: any } {
|
|
8230
|
+
return {
|
|
8231
|
+
disable: 'boolean',
|
|
8232
|
+
slsProjectName: 'string',
|
|
8233
|
+
};
|
|
8234
|
+
}
|
|
8235
|
+
|
|
8236
|
+
constructor(map?: { [key: string]: any }) {
|
|
8237
|
+
super(map);
|
|
8238
|
+
}
|
|
8239
|
+
}
|
|
8240
|
+
|
|
8241
|
+
export class UpdateClusterAuditLogConfigResponseBody extends $tea.Model {
|
|
8242
|
+
clusterId?: string;
|
|
8243
|
+
requestId?: string;
|
|
8244
|
+
taskId?: string;
|
|
8245
|
+
static names(): { [key: string]: string } {
|
|
8246
|
+
return {
|
|
8247
|
+
clusterId: 'cluster_id',
|
|
8248
|
+
requestId: 'request_id',
|
|
8249
|
+
taskId: 'task_id',
|
|
8250
|
+
};
|
|
8251
|
+
}
|
|
8252
|
+
|
|
8253
|
+
static types(): { [key: string]: any } {
|
|
8254
|
+
return {
|
|
8255
|
+
clusterId: 'string',
|
|
8256
|
+
requestId: 'string',
|
|
8257
|
+
taskId: 'string',
|
|
8258
|
+
};
|
|
8259
|
+
}
|
|
8260
|
+
|
|
8261
|
+
constructor(map?: { [key: string]: any }) {
|
|
8262
|
+
super(map);
|
|
8263
|
+
}
|
|
8264
|
+
}
|
|
8265
|
+
|
|
8266
|
+
export class UpdateClusterAuditLogConfigResponse extends $tea.Model {
|
|
8267
|
+
headers?: { [key: string]: string };
|
|
8268
|
+
statusCode?: number;
|
|
8269
|
+
body?: UpdateClusterAuditLogConfigResponseBody;
|
|
8270
|
+
static names(): { [key: string]: string } {
|
|
8271
|
+
return {
|
|
8272
|
+
headers: 'headers',
|
|
8273
|
+
statusCode: 'statusCode',
|
|
8274
|
+
body: 'body',
|
|
8275
|
+
};
|
|
8276
|
+
}
|
|
8277
|
+
|
|
8278
|
+
static types(): { [key: string]: any } {
|
|
8279
|
+
return {
|
|
8280
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8281
|
+
statusCode: 'number',
|
|
8282
|
+
body: UpdateClusterAuditLogConfigResponseBody,
|
|
8283
|
+
};
|
|
8284
|
+
}
|
|
8285
|
+
|
|
8286
|
+
constructor(map?: { [key: string]: any }) {
|
|
8287
|
+
super(map);
|
|
8288
|
+
}
|
|
8289
|
+
}
|
|
8290
|
+
|
|
7949
8291
|
export class UpdateContactGroupForAlertResponse extends $tea.Model {
|
|
7950
8292
|
headers?: { [key: string]: string };
|
|
7951
8293
|
statusCode?: number;
|
|
@@ -12938,17 +13280,76 @@ export class ListClusterAddonInstancesResponseBodyAddons extends $tea.Model {
|
|
|
12938
13280
|
version?: string;
|
|
12939
13281
|
static names(): { [key: string]: string } {
|
|
12940
13282
|
return {
|
|
12941
|
-
name: 'name',
|
|
12942
|
-
state: 'state',
|
|
12943
|
-
version: 'version',
|
|
13283
|
+
name: 'name',
|
|
13284
|
+
state: 'state',
|
|
13285
|
+
version: 'version',
|
|
13286
|
+
};
|
|
13287
|
+
}
|
|
13288
|
+
|
|
13289
|
+
static types(): { [key: string]: any } {
|
|
13290
|
+
return {
|
|
13291
|
+
name: 'string',
|
|
13292
|
+
state: 'string',
|
|
13293
|
+
version: 'string',
|
|
13294
|
+
};
|
|
13295
|
+
}
|
|
13296
|
+
|
|
13297
|
+
constructor(map?: { [key: string]: any }) {
|
|
13298
|
+
super(map);
|
|
13299
|
+
}
|
|
13300
|
+
}
|
|
13301
|
+
|
|
13302
|
+
export class ListClusterChecksResponseBodyChecks extends $tea.Model {
|
|
13303
|
+
checkId?: string;
|
|
13304
|
+
createdAt?: string;
|
|
13305
|
+
finishedAt?: string;
|
|
13306
|
+
message?: string;
|
|
13307
|
+
status?: string;
|
|
13308
|
+
type?: string;
|
|
13309
|
+
static names(): { [key: string]: string } {
|
|
13310
|
+
return {
|
|
13311
|
+
checkId: 'check_id',
|
|
13312
|
+
createdAt: 'created_at',
|
|
13313
|
+
finishedAt: 'finished_at',
|
|
13314
|
+
message: 'message',
|
|
13315
|
+
status: 'status',
|
|
13316
|
+
type: 'type',
|
|
13317
|
+
};
|
|
13318
|
+
}
|
|
13319
|
+
|
|
13320
|
+
static types(): { [key: string]: any } {
|
|
13321
|
+
return {
|
|
13322
|
+
checkId: 'string',
|
|
13323
|
+
createdAt: 'string',
|
|
13324
|
+
finishedAt: 'string',
|
|
13325
|
+
message: 'string',
|
|
13326
|
+
status: 'string',
|
|
13327
|
+
type: 'string',
|
|
13328
|
+
};
|
|
13329
|
+
}
|
|
13330
|
+
|
|
13331
|
+
constructor(map?: { [key: string]: any }) {
|
|
13332
|
+
super(map);
|
|
13333
|
+
}
|
|
13334
|
+
}
|
|
13335
|
+
|
|
13336
|
+
export class ListClusterKubeconfigStatesResponseBodyPage extends $tea.Model {
|
|
13337
|
+
pageNumber?: number;
|
|
13338
|
+
pageSize?: number;
|
|
13339
|
+
totalCount?: number;
|
|
13340
|
+
static names(): { [key: string]: string } {
|
|
13341
|
+
return {
|
|
13342
|
+
pageNumber: 'page_number',
|
|
13343
|
+
pageSize: 'page_size',
|
|
13344
|
+
totalCount: 'total_count',
|
|
12944
13345
|
};
|
|
12945
13346
|
}
|
|
12946
13347
|
|
|
12947
13348
|
static types(): { [key: string]: any } {
|
|
12948
13349
|
return {
|
|
12949
|
-
|
|
12950
|
-
|
|
12951
|
-
|
|
13350
|
+
pageNumber: 'number',
|
|
13351
|
+
pageSize: 'number',
|
|
13352
|
+
totalCount: 'number',
|
|
12952
13353
|
};
|
|
12953
13354
|
}
|
|
12954
13355
|
|
|
@@ -12957,32 +13358,38 @@ export class ListClusterAddonInstancesResponseBodyAddons extends $tea.Model {
|
|
|
12957
13358
|
}
|
|
12958
13359
|
}
|
|
12959
13360
|
|
|
12960
|
-
export class
|
|
12961
|
-
|
|
12962
|
-
|
|
12963
|
-
|
|
12964
|
-
|
|
12965
|
-
|
|
12966
|
-
|
|
13361
|
+
export class ListClusterKubeconfigStatesResponseBodyStates extends $tea.Model {
|
|
13362
|
+
accountDisplayName?: string;
|
|
13363
|
+
accountId?: string;
|
|
13364
|
+
accountName?: string;
|
|
13365
|
+
accountState?: string;
|
|
13366
|
+
accountType?: string;
|
|
13367
|
+
certExpireTime?: string;
|
|
13368
|
+
certState?: string;
|
|
13369
|
+
revokable?: boolean;
|
|
12967
13370
|
static names(): { [key: string]: string } {
|
|
12968
13371
|
return {
|
|
12969
|
-
|
|
12970
|
-
|
|
12971
|
-
|
|
12972
|
-
|
|
12973
|
-
|
|
12974
|
-
|
|
13372
|
+
accountDisplayName: 'account_display_name',
|
|
13373
|
+
accountId: 'account_id',
|
|
13374
|
+
accountName: 'account_name',
|
|
13375
|
+
accountState: 'account_state',
|
|
13376
|
+
accountType: 'account_type',
|
|
13377
|
+
certExpireTime: 'cert_expire_time',
|
|
13378
|
+
certState: 'cert_state',
|
|
13379
|
+
revokable: 'revokable',
|
|
12975
13380
|
};
|
|
12976
13381
|
}
|
|
12977
13382
|
|
|
12978
13383
|
static types(): { [key: string]: any } {
|
|
12979
13384
|
return {
|
|
12980
|
-
|
|
12981
|
-
|
|
12982
|
-
|
|
12983
|
-
|
|
12984
|
-
|
|
12985
|
-
|
|
13385
|
+
accountDisplayName: 'string',
|
|
13386
|
+
accountId: 'string',
|
|
13387
|
+
accountName: 'string',
|
|
13388
|
+
accountState: 'string',
|
|
13389
|
+
accountType: 'string',
|
|
13390
|
+
certExpireTime: 'string',
|
|
13391
|
+
certState: 'string',
|
|
13392
|
+
revokable: 'boolean',
|
|
12986
13393
|
};
|
|
12987
13394
|
}
|
|
12988
13395
|
|
|
@@ -13081,6 +13488,62 @@ export class ListTagResourcesResponseBodyTagResources extends $tea.Model {
|
|
|
13081
13488
|
}
|
|
13082
13489
|
}
|
|
13083
13490
|
|
|
13491
|
+
export class ListUserKubeConfigStatesResponseBodyPage extends $tea.Model {
|
|
13492
|
+
pageNumber?: number;
|
|
13493
|
+
pageSize?: number;
|
|
13494
|
+
totalCount?: number;
|
|
13495
|
+
static names(): { [key: string]: string } {
|
|
13496
|
+
return {
|
|
13497
|
+
pageNumber: 'page_number',
|
|
13498
|
+
pageSize: 'page_size',
|
|
13499
|
+
totalCount: 'total_count',
|
|
13500
|
+
};
|
|
13501
|
+
}
|
|
13502
|
+
|
|
13503
|
+
static types(): { [key: string]: any } {
|
|
13504
|
+
return {
|
|
13505
|
+
pageNumber: 'number',
|
|
13506
|
+
pageSize: 'number',
|
|
13507
|
+
totalCount: 'number',
|
|
13508
|
+
};
|
|
13509
|
+
}
|
|
13510
|
+
|
|
13511
|
+
constructor(map?: { [key: string]: any }) {
|
|
13512
|
+
super(map);
|
|
13513
|
+
}
|
|
13514
|
+
}
|
|
13515
|
+
|
|
13516
|
+
export class ListUserKubeConfigStatesResponseBodyStates extends $tea.Model {
|
|
13517
|
+
certExpireTime?: string;
|
|
13518
|
+
certState?: string;
|
|
13519
|
+
clusterId?: string;
|
|
13520
|
+
clusterName?: string;
|
|
13521
|
+
clusterState?: string;
|
|
13522
|
+
static names(): { [key: string]: string } {
|
|
13523
|
+
return {
|
|
13524
|
+
certExpireTime: 'cert_expire_time',
|
|
13525
|
+
certState: 'cert_state',
|
|
13526
|
+
clusterId: 'cluster_id',
|
|
13527
|
+
clusterName: 'cluster_name',
|
|
13528
|
+
clusterState: 'cluster_state',
|
|
13529
|
+
};
|
|
13530
|
+
}
|
|
13531
|
+
|
|
13532
|
+
static types(): { [key: string]: any } {
|
|
13533
|
+
return {
|
|
13534
|
+
certExpireTime: 'string',
|
|
13535
|
+
certState: 'string',
|
|
13536
|
+
clusterId: 'string',
|
|
13537
|
+
clusterName: 'string',
|
|
13538
|
+
clusterState: 'string',
|
|
13539
|
+
};
|
|
13540
|
+
}
|
|
13541
|
+
|
|
13542
|
+
constructor(map?: { [key: string]: any }) {
|
|
13543
|
+
super(map);
|
|
13544
|
+
}
|
|
13545
|
+
}
|
|
13546
|
+
|
|
13084
13547
|
export class ModifyClusterRequestApiServerCustomCertSans extends $tea.Model {
|
|
13085
13548
|
action?: string;
|
|
13086
13549
|
subjectAlternativeNames?: string[];
|
|
@@ -14399,6 +14862,106 @@ export default class Client extends OpenApi {
|
|
|
14399
14862
|
return await this.checkServiceRoleWithOptions(request, headers, runtime);
|
|
14400
14863
|
}
|
|
14401
14864
|
|
|
14865
|
+
/**
|
|
14866
|
+
* @summary 清理某个用户在某个集群的证书以及权限
|
|
14867
|
+
*
|
|
14868
|
+
* @param request CleanClusterUserPermissionsRequest
|
|
14869
|
+
* @param headers map
|
|
14870
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14871
|
+
* @return CleanClusterUserPermissionsResponse
|
|
14872
|
+
*/
|
|
14873
|
+
async cleanClusterUserPermissionsWithOptions(ClusterId: string, Uid: string, request: CleanClusterUserPermissionsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CleanClusterUserPermissionsResponse> {
|
|
14874
|
+
Util.validateModel(request);
|
|
14875
|
+
let query : {[key: string ]: any} = { };
|
|
14876
|
+
if (!Util.isUnset(request.force)) {
|
|
14877
|
+
query["Force"] = request.force;
|
|
14878
|
+
}
|
|
14879
|
+
|
|
14880
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
14881
|
+
headers: headers,
|
|
14882
|
+
query: OpenApiUtil.query(query),
|
|
14883
|
+
});
|
|
14884
|
+
let params = new $OpenApi.Params({
|
|
14885
|
+
action: "CleanClusterUserPermissions",
|
|
14886
|
+
version: "2015-12-15",
|
|
14887
|
+
protocol: "HTTPS",
|
|
14888
|
+
pathname: `/cluster/${OpenApiUtil.getEncodeParam(ClusterId)}/user/${OpenApiUtil.getEncodeParam(Uid)}/permissions`,
|
|
14889
|
+
method: "DELETE",
|
|
14890
|
+
authType: "AK",
|
|
14891
|
+
style: "ROA",
|
|
14892
|
+
reqBodyType: "json",
|
|
14893
|
+
bodyType: "none",
|
|
14894
|
+
});
|
|
14895
|
+
return $tea.cast<CleanClusterUserPermissionsResponse>(await this.callApi(params, req, runtime), new CleanClusterUserPermissionsResponse({}));
|
|
14896
|
+
}
|
|
14897
|
+
|
|
14898
|
+
/**
|
|
14899
|
+
* @summary 清理某个用户在某个集群的证书以及权限
|
|
14900
|
+
*
|
|
14901
|
+
* @param request CleanClusterUserPermissionsRequest
|
|
14902
|
+
* @return CleanClusterUserPermissionsResponse
|
|
14903
|
+
*/
|
|
14904
|
+
async cleanClusterUserPermissions(ClusterId: string, Uid: string, request: CleanClusterUserPermissionsRequest): Promise<CleanClusterUserPermissionsResponse> {
|
|
14905
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
14906
|
+
let headers : {[key: string ]: string} = { };
|
|
14907
|
+
return await this.cleanClusterUserPermissionsWithOptions(ClusterId, Uid, request, headers, runtime);
|
|
14908
|
+
}
|
|
14909
|
+
|
|
14910
|
+
/**
|
|
14911
|
+
* @summary 清除某个用户的证书以及相关RBAC权限
|
|
14912
|
+
*
|
|
14913
|
+
* @param tmpReq CleanUserPermissionsRequest
|
|
14914
|
+
* @param headers map
|
|
14915
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14916
|
+
* @return CleanUserPermissionsResponse
|
|
14917
|
+
*/
|
|
14918
|
+
async cleanUserPermissionsWithOptions(Uid: string, tmpReq: CleanUserPermissionsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CleanUserPermissionsResponse> {
|
|
14919
|
+
Util.validateModel(tmpReq);
|
|
14920
|
+
let request = new CleanUserPermissionsShrinkRequest({ });
|
|
14921
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
14922
|
+
if (!Util.isUnset(tmpReq.clusterIds)) {
|
|
14923
|
+
request.clusterIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.clusterIds, "ClusterIds", "simple");
|
|
14924
|
+
}
|
|
14925
|
+
|
|
14926
|
+
let query : {[key: string ]: any} = { };
|
|
14927
|
+
if (!Util.isUnset(request.clusterIdsShrink)) {
|
|
14928
|
+
query["ClusterIds"] = request.clusterIdsShrink;
|
|
14929
|
+
}
|
|
14930
|
+
|
|
14931
|
+
if (!Util.isUnset(request.force)) {
|
|
14932
|
+
query["Force"] = request.force;
|
|
14933
|
+
}
|
|
14934
|
+
|
|
14935
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
14936
|
+
headers: headers,
|
|
14937
|
+
query: OpenApiUtil.query(query),
|
|
14938
|
+
});
|
|
14939
|
+
let params = new $OpenApi.Params({
|
|
14940
|
+
action: "CleanUserPermissions",
|
|
14941
|
+
version: "2015-12-15",
|
|
14942
|
+
protocol: "HTTPS",
|
|
14943
|
+
pathname: `/users/${OpenApiUtil.getEncodeParam(Uid)}/permissions`,
|
|
14944
|
+
method: "DELETE",
|
|
14945
|
+
authType: "AK",
|
|
14946
|
+
style: "ROA",
|
|
14947
|
+
reqBodyType: "json",
|
|
14948
|
+
bodyType: "json",
|
|
14949
|
+
});
|
|
14950
|
+
return $tea.cast<CleanUserPermissionsResponse>(await this.callApi(params, req, runtime), new CleanUserPermissionsResponse({}));
|
|
14951
|
+
}
|
|
14952
|
+
|
|
14953
|
+
/**
|
|
14954
|
+
* @summary 清除某个用户的证书以及相关RBAC权限
|
|
14955
|
+
*
|
|
14956
|
+
* @param request CleanUserPermissionsRequest
|
|
14957
|
+
* @return CleanUserPermissionsResponse
|
|
14958
|
+
*/
|
|
14959
|
+
async cleanUserPermissions(Uid: string, request: CleanUserPermissionsRequest): Promise<CleanUserPermissionsResponse> {
|
|
14960
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
14961
|
+
let headers : {[key: string ]: string} = { };
|
|
14962
|
+
return await this.cleanUserPermissionsWithOptions(Uid, request, headers, runtime);
|
|
14963
|
+
}
|
|
14964
|
+
|
|
14402
14965
|
/**
|
|
14403
14966
|
* @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.
|
|
14404
14967
|
*
|
|
@@ -18545,6 +19108,55 @@ export default class Client extends OpenApi {
|
|
|
18545
19108
|
return await this.listClusterChecksWithOptions(clusterId, request, headers, runtime);
|
|
18546
19109
|
}
|
|
18547
19110
|
|
|
19111
|
+
/**
|
|
19112
|
+
* @summary 获取当前集群已下发的用户Kubeconfig的状态列表
|
|
19113
|
+
*
|
|
19114
|
+
* @param request ListClusterKubeconfigStatesRequest
|
|
19115
|
+
* @param headers map
|
|
19116
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
19117
|
+
* @return ListClusterKubeconfigStatesResponse
|
|
19118
|
+
*/
|
|
19119
|
+
async listClusterKubeconfigStatesWithOptions(ClusterId: string, request: ListClusterKubeconfigStatesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListClusterKubeconfigStatesResponse> {
|
|
19120
|
+
Util.validateModel(request);
|
|
19121
|
+
let query : {[key: string ]: any} = { };
|
|
19122
|
+
if (!Util.isUnset(request.pageNumber)) {
|
|
19123
|
+
query["pageNumber"] = request.pageNumber;
|
|
19124
|
+
}
|
|
19125
|
+
|
|
19126
|
+
if (!Util.isUnset(request.pageSize)) {
|
|
19127
|
+
query["pageSize"] = request.pageSize;
|
|
19128
|
+
}
|
|
19129
|
+
|
|
19130
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
19131
|
+
headers: headers,
|
|
19132
|
+
query: OpenApiUtil.query(query),
|
|
19133
|
+
});
|
|
19134
|
+
let params = new $OpenApi.Params({
|
|
19135
|
+
action: "ListClusterKubeconfigStates",
|
|
19136
|
+
version: "2015-12-15",
|
|
19137
|
+
protocol: "HTTPS",
|
|
19138
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(ClusterId)}/kubeconfig/states`,
|
|
19139
|
+
method: "GET",
|
|
19140
|
+
authType: "AK",
|
|
19141
|
+
style: "ROA",
|
|
19142
|
+
reqBodyType: "json",
|
|
19143
|
+
bodyType: "json",
|
|
19144
|
+
});
|
|
19145
|
+
return $tea.cast<ListClusterKubeconfigStatesResponse>(await this.callApi(params, req, runtime), new ListClusterKubeconfigStatesResponse({}));
|
|
19146
|
+
}
|
|
19147
|
+
|
|
19148
|
+
/**
|
|
19149
|
+
* @summary 获取当前集群已下发的用户Kubeconfig的状态列表
|
|
19150
|
+
*
|
|
19151
|
+
* @param request ListClusterKubeconfigStatesRequest
|
|
19152
|
+
* @return ListClusterKubeconfigStatesResponse
|
|
19153
|
+
*/
|
|
19154
|
+
async listClusterKubeconfigStates(ClusterId: string, request: ListClusterKubeconfigStatesRequest): Promise<ListClusterKubeconfigStatesResponse> {
|
|
19155
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
19156
|
+
let headers : {[key: string ]: string} = { };
|
|
19157
|
+
return await this.listClusterKubeconfigStatesWithOptions(ClusterId, request, headers, runtime);
|
|
19158
|
+
}
|
|
19159
|
+
|
|
18548
19160
|
/**
|
|
18549
19161
|
* @summary 获取自动运维执行计划列表
|
|
18550
19162
|
*
|
|
@@ -18665,6 +19277,55 @@ export default class Client extends OpenApi {
|
|
|
18665
19277
|
return await this.listTagResourcesWithOptions(request, headers, runtime);
|
|
18666
19278
|
}
|
|
18667
19279
|
|
|
19280
|
+
/**
|
|
19281
|
+
* @summary 查询单用户所有集群的证书状态
|
|
19282
|
+
*
|
|
19283
|
+
* @param request ListUserKubeConfigStatesRequest
|
|
19284
|
+
* @param headers map
|
|
19285
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
19286
|
+
* @return ListUserKubeConfigStatesResponse
|
|
19287
|
+
*/
|
|
19288
|
+
async listUserKubeConfigStatesWithOptions(Uid: string, request: ListUserKubeConfigStatesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListUserKubeConfigStatesResponse> {
|
|
19289
|
+
Util.validateModel(request);
|
|
19290
|
+
let query : {[key: string ]: any} = { };
|
|
19291
|
+
if (!Util.isUnset(request.pageNumber)) {
|
|
19292
|
+
query["page_number"] = request.pageNumber;
|
|
19293
|
+
}
|
|
19294
|
+
|
|
19295
|
+
if (!Util.isUnset(request.pageSize)) {
|
|
19296
|
+
query["page_size"] = request.pageSize;
|
|
19297
|
+
}
|
|
19298
|
+
|
|
19299
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
19300
|
+
headers: headers,
|
|
19301
|
+
query: OpenApiUtil.query(query),
|
|
19302
|
+
});
|
|
19303
|
+
let params = new $OpenApi.Params({
|
|
19304
|
+
action: "ListUserKubeConfigStates",
|
|
19305
|
+
version: "2015-12-15",
|
|
19306
|
+
protocol: "HTTPS",
|
|
19307
|
+
pathname: `/users/${OpenApiUtil.getEncodeParam(Uid)}/kubeconfig/states`,
|
|
19308
|
+
method: "GET",
|
|
19309
|
+
authType: "AK",
|
|
19310
|
+
style: "ROA",
|
|
19311
|
+
reqBodyType: "json",
|
|
19312
|
+
bodyType: "json",
|
|
19313
|
+
});
|
|
19314
|
+
return $tea.cast<ListUserKubeConfigStatesResponse>(await this.callApi(params, req, runtime), new ListUserKubeConfigStatesResponse({}));
|
|
19315
|
+
}
|
|
19316
|
+
|
|
19317
|
+
/**
|
|
19318
|
+
* @summary 查询单用户所有集群的证书状态
|
|
19319
|
+
*
|
|
19320
|
+
* @param request ListUserKubeConfigStatesRequest
|
|
19321
|
+
* @return ListUserKubeConfigStatesResponse
|
|
19322
|
+
*/
|
|
19323
|
+
async listUserKubeConfigStates(Uid: string, request: ListUserKubeConfigStatesRequest): Promise<ListUserKubeConfigStatesResponse> {
|
|
19324
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
19325
|
+
let headers : {[key: string ]: string} = { };
|
|
19326
|
+
return await this.listUserKubeConfigStatesWithOptions(Uid, request, headers, runtime);
|
|
19327
|
+
}
|
|
19328
|
+
|
|
18668
19329
|
/**
|
|
18669
19330
|
* @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.
|
|
18670
19331
|
*
|
|
@@ -20483,6 +21144,55 @@ export default class Client extends OpenApi {
|
|
|
20483
21144
|
return await this.untagResourcesWithOptions(request, headers, runtime);
|
|
20484
21145
|
}
|
|
20485
21146
|
|
|
21147
|
+
/**
|
|
21148
|
+
* @summary 更新集群审计日志配置
|
|
21149
|
+
*
|
|
21150
|
+
* @param request UpdateClusterAuditLogConfigRequest
|
|
21151
|
+
* @param headers map
|
|
21152
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
21153
|
+
* @return UpdateClusterAuditLogConfigResponse
|
|
21154
|
+
*/
|
|
21155
|
+
async updateClusterAuditLogConfigWithOptions(clusterid: string, request: UpdateClusterAuditLogConfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateClusterAuditLogConfigResponse> {
|
|
21156
|
+
Util.validateModel(request);
|
|
21157
|
+
let body : {[key: string ]: any} = { };
|
|
21158
|
+
if (!Util.isUnset(request.disable)) {
|
|
21159
|
+
body["disable"] = request.disable;
|
|
21160
|
+
}
|
|
21161
|
+
|
|
21162
|
+
if (!Util.isUnset(request.slsProjectName)) {
|
|
21163
|
+
body["sls_project_name"] = request.slsProjectName;
|
|
21164
|
+
}
|
|
21165
|
+
|
|
21166
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
21167
|
+
headers: headers,
|
|
21168
|
+
body: OpenApiUtil.parseToMap(body),
|
|
21169
|
+
});
|
|
21170
|
+
let params = new $OpenApi.Params({
|
|
21171
|
+
action: "UpdateClusterAuditLogConfig",
|
|
21172
|
+
version: "2015-12-15",
|
|
21173
|
+
protocol: "HTTPS",
|
|
21174
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterid)}/audit_log`,
|
|
21175
|
+
method: "PUT",
|
|
21176
|
+
authType: "AK",
|
|
21177
|
+
style: "ROA",
|
|
21178
|
+
reqBodyType: "json",
|
|
21179
|
+
bodyType: "json",
|
|
21180
|
+
});
|
|
21181
|
+
return $tea.cast<UpdateClusterAuditLogConfigResponse>(await this.callApi(params, req, runtime), new UpdateClusterAuditLogConfigResponse({}));
|
|
21182
|
+
}
|
|
21183
|
+
|
|
21184
|
+
/**
|
|
21185
|
+
* @summary 更新集群审计日志配置
|
|
21186
|
+
*
|
|
21187
|
+
* @param request UpdateClusterAuditLogConfigRequest
|
|
21188
|
+
* @return UpdateClusterAuditLogConfigResponse
|
|
21189
|
+
*/
|
|
21190
|
+
async updateClusterAuditLogConfig(clusterid: string, request: UpdateClusterAuditLogConfigRequest): Promise<UpdateClusterAuditLogConfigResponse> {
|
|
21191
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
21192
|
+
let headers : {[key: string ]: string} = { };
|
|
21193
|
+
return await this.updateClusterAuditLogConfigWithOptions(clusterid, request, headers, runtime);
|
|
21194
|
+
}
|
|
21195
|
+
|
|
20486
21196
|
/**
|
|
20487
21197
|
* @param headers map
|
|
20488
21198
|
* @param runtime runtime options for this request RuntimeOptions
|