@alicloud/cs20151215 3.0.1 → 3.0.5
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 +94 -2
- package/dist/client.js +1216 -92
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +1260 -92
package/dist/client.js
CHANGED
|
@@ -342,6 +342,7 @@ class CreateClusterRequest extends $tea.Model {
|
|
|
342
342
|
customSan: 'custom_san',
|
|
343
343
|
deletionProtection: 'deletion_protection',
|
|
344
344
|
disableRollback: 'disable_rollback',
|
|
345
|
+
enableRrsa: 'enable_rrsa',
|
|
345
346
|
encryptionProviderKey: 'encryption_provider_key',
|
|
346
347
|
endpointPublicAccess: 'endpoint_public_access',
|
|
347
348
|
formatDisk: 'format_disk',
|
|
@@ -380,6 +381,7 @@ class CreateClusterRequest extends $tea.Model {
|
|
|
380
381
|
proxyMode: 'proxy_mode',
|
|
381
382
|
rdsInstances: 'rds_instances',
|
|
382
383
|
regionId: 'region_id',
|
|
384
|
+
resourceGroupId: 'resource_group_id',
|
|
383
385
|
runtime: 'runtime',
|
|
384
386
|
securityGroupId: 'security_group_id',
|
|
385
387
|
serviceAccountIssuer: 'service_account_issuer',
|
|
@@ -428,6 +430,7 @@ class CreateClusterRequest extends $tea.Model {
|
|
|
428
430
|
customSan: 'string',
|
|
429
431
|
deletionProtection: 'boolean',
|
|
430
432
|
disableRollback: 'boolean',
|
|
433
|
+
enableRrsa: 'boolean',
|
|
431
434
|
encryptionProviderKey: 'string',
|
|
432
435
|
endpointPublicAccess: 'boolean',
|
|
433
436
|
formatDisk: 'boolean',
|
|
@@ -466,6 +469,7 @@ class CreateClusterRequest extends $tea.Model {
|
|
|
466
469
|
proxyMode: 'string',
|
|
467
470
|
rdsInstances: { 'type': 'array', 'itemType': 'string' },
|
|
468
471
|
regionId: 'string',
|
|
472
|
+
resourceGroupId: 'string',
|
|
469
473
|
runtime: Runtime,
|
|
470
474
|
securityGroupId: 'string',
|
|
471
475
|
serviceAccountIssuer: 'string',
|
|
@@ -1043,6 +1047,38 @@ class DeleteKubernetesTriggerResponse extends $tea.Model {
|
|
|
1043
1047
|
}
|
|
1044
1048
|
}
|
|
1045
1049
|
exports.DeleteKubernetesTriggerResponse = DeleteKubernetesTriggerResponse;
|
|
1050
|
+
class DeletePolicyInstanceRequest extends $tea.Model {
|
|
1051
|
+
constructor(map) {
|
|
1052
|
+
super(map);
|
|
1053
|
+
}
|
|
1054
|
+
static names() {
|
|
1055
|
+
return {
|
|
1056
|
+
instanceName: 'instance_name',
|
|
1057
|
+
};
|
|
1058
|
+
}
|
|
1059
|
+
static types() {
|
|
1060
|
+
return {
|
|
1061
|
+
instanceName: 'string',
|
|
1062
|
+
};
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
exports.DeletePolicyInstanceRequest = DeletePolicyInstanceRequest;
|
|
1066
|
+
class DeletePolicyInstanceResponseBody extends $tea.Model {
|
|
1067
|
+
constructor(map) {
|
|
1068
|
+
super(map);
|
|
1069
|
+
}
|
|
1070
|
+
static names() {
|
|
1071
|
+
return {
|
|
1072
|
+
instances: 'instances',
|
|
1073
|
+
};
|
|
1074
|
+
}
|
|
1075
|
+
static types() {
|
|
1076
|
+
return {
|
|
1077
|
+
instances: { 'type': 'array', 'itemType': 'string' },
|
|
1078
|
+
};
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
exports.DeletePolicyInstanceResponseBody = DeletePolicyInstanceResponseBody;
|
|
1046
1082
|
class DeletePolicyInstanceResponse extends $tea.Model {
|
|
1047
1083
|
constructor(map) {
|
|
1048
1084
|
super(map);
|
|
@@ -1050,11 +1086,13 @@ class DeletePolicyInstanceResponse extends $tea.Model {
|
|
|
1050
1086
|
static names() {
|
|
1051
1087
|
return {
|
|
1052
1088
|
headers: 'headers',
|
|
1089
|
+
body: 'body',
|
|
1053
1090
|
};
|
|
1054
1091
|
}
|
|
1055
1092
|
static types() {
|
|
1056
1093
|
return {
|
|
1057
1094
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1095
|
+
body: DeletePolicyInstanceResponseBody,
|
|
1058
1096
|
};
|
|
1059
1097
|
}
|
|
1060
1098
|
}
|
|
@@ -1111,6 +1149,22 @@ class DeployPolicyInstanceRequest extends $tea.Model {
|
|
|
1111
1149
|
}
|
|
1112
1150
|
}
|
|
1113
1151
|
exports.DeployPolicyInstanceRequest = DeployPolicyInstanceRequest;
|
|
1152
|
+
class DeployPolicyInstanceResponseBody extends $tea.Model {
|
|
1153
|
+
constructor(map) {
|
|
1154
|
+
super(map);
|
|
1155
|
+
}
|
|
1156
|
+
static names() {
|
|
1157
|
+
return {
|
|
1158
|
+
instances: 'instances',
|
|
1159
|
+
};
|
|
1160
|
+
}
|
|
1161
|
+
static types() {
|
|
1162
|
+
return {
|
|
1163
|
+
instances: { 'type': 'array', 'itemType': 'string' },
|
|
1164
|
+
};
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
exports.DeployPolicyInstanceResponseBody = DeployPolicyInstanceResponseBody;
|
|
1114
1168
|
class DeployPolicyInstanceResponse extends $tea.Model {
|
|
1115
1169
|
constructor(map) {
|
|
1116
1170
|
super(map);
|
|
@@ -1118,11 +1172,13 @@ class DeployPolicyInstanceResponse extends $tea.Model {
|
|
|
1118
1172
|
static names() {
|
|
1119
1173
|
return {
|
|
1120
1174
|
headers: 'headers',
|
|
1175
|
+
body: 'body',
|
|
1121
1176
|
};
|
|
1122
1177
|
}
|
|
1123
1178
|
static types() {
|
|
1124
1179
|
return {
|
|
1125
1180
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1181
|
+
body: DeployPolicyInstanceResponseBody,
|
|
1126
1182
|
};
|
|
1127
1183
|
}
|
|
1128
1184
|
}
|
|
@@ -2197,6 +2253,7 @@ class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
|
|
|
2197
2253
|
kubernetesVersion: 'KubernetesVersion',
|
|
2198
2254
|
profile: 'Profile',
|
|
2199
2255
|
region: 'Region',
|
|
2256
|
+
runtime: 'runtime',
|
|
2200
2257
|
};
|
|
2201
2258
|
}
|
|
2202
2259
|
static types() {
|
|
@@ -2205,6 +2262,7 @@ class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
|
|
|
2205
2262
|
kubernetesVersion: 'string',
|
|
2206
2263
|
profile: 'string',
|
|
2207
2264
|
region: 'string',
|
|
2265
|
+
runtime: 'string',
|
|
2208
2266
|
};
|
|
2209
2267
|
}
|
|
2210
2268
|
}
|
|
@@ -2988,6 +3046,7 @@ class ModifyClusterRequest extends $tea.Model {
|
|
|
2988
3046
|
apiServerEip: 'api_server_eip',
|
|
2989
3047
|
apiServerEipId: 'api_server_eip_id',
|
|
2990
3048
|
deletionProtection: 'deletion_protection',
|
|
3049
|
+
enableRrsa: 'enable_rrsa',
|
|
2991
3050
|
ingressDomainRebinding: 'ingress_domain_rebinding',
|
|
2992
3051
|
ingressLoadbalancerId: 'ingress_loadbalancer_id',
|
|
2993
3052
|
instanceDeletionProtection: 'instance_deletion_protection',
|
|
@@ -3000,6 +3059,7 @@ class ModifyClusterRequest extends $tea.Model {
|
|
|
3000
3059
|
apiServerEip: 'boolean',
|
|
3001
3060
|
apiServerEipId: 'string',
|
|
3002
3061
|
deletionProtection: 'boolean',
|
|
3062
|
+
enableRrsa: 'boolean',
|
|
3003
3063
|
ingressDomainRebinding: 'string',
|
|
3004
3064
|
ingressLoadbalancerId: 'string',
|
|
3005
3065
|
instanceDeletionProtection: 'boolean',
|
|
@@ -3229,6 +3289,22 @@ class ModifyPolicyInstanceRequest extends $tea.Model {
|
|
|
3229
3289
|
}
|
|
3230
3290
|
}
|
|
3231
3291
|
exports.ModifyPolicyInstanceRequest = ModifyPolicyInstanceRequest;
|
|
3292
|
+
class ModifyPolicyInstanceResponseBody extends $tea.Model {
|
|
3293
|
+
constructor(map) {
|
|
3294
|
+
super(map);
|
|
3295
|
+
}
|
|
3296
|
+
static names() {
|
|
3297
|
+
return {
|
|
3298
|
+
instances: 'instances',
|
|
3299
|
+
};
|
|
3300
|
+
}
|
|
3301
|
+
static types() {
|
|
3302
|
+
return {
|
|
3303
|
+
instances: { 'type': 'array', 'itemType': 'string' },
|
|
3304
|
+
};
|
|
3305
|
+
}
|
|
3306
|
+
}
|
|
3307
|
+
exports.ModifyPolicyInstanceResponseBody = ModifyPolicyInstanceResponseBody;
|
|
3232
3308
|
class ModifyPolicyInstanceResponse extends $tea.Model {
|
|
3233
3309
|
constructor(map) {
|
|
3234
3310
|
super(map);
|
|
@@ -3236,11 +3312,13 @@ class ModifyPolicyInstanceResponse extends $tea.Model {
|
|
|
3236
3312
|
static names() {
|
|
3237
3313
|
return {
|
|
3238
3314
|
headers: 'headers',
|
|
3315
|
+
body: 'body',
|
|
3239
3316
|
};
|
|
3240
3317
|
}
|
|
3241
3318
|
static types() {
|
|
3242
3319
|
return {
|
|
3243
3320
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3321
|
+
body: ModifyPolicyInstanceResponseBody,
|
|
3244
3322
|
};
|
|
3245
3323
|
}
|
|
3246
3324
|
}
|
|
@@ -3755,6 +3833,22 @@ class TagResourcesRequest extends $tea.Model {
|
|
|
3755
3833
|
}
|
|
3756
3834
|
}
|
|
3757
3835
|
exports.TagResourcesRequest = TagResourcesRequest;
|
|
3836
|
+
class TagResourcesResponseBody extends $tea.Model {
|
|
3837
|
+
constructor(map) {
|
|
3838
|
+
super(map);
|
|
3839
|
+
}
|
|
3840
|
+
static names() {
|
|
3841
|
+
return {
|
|
3842
|
+
requestId: 'RequestId',
|
|
3843
|
+
};
|
|
3844
|
+
}
|
|
3845
|
+
static types() {
|
|
3846
|
+
return {
|
|
3847
|
+
requestId: 'string',
|
|
3848
|
+
};
|
|
3849
|
+
}
|
|
3850
|
+
}
|
|
3851
|
+
exports.TagResourcesResponseBody = TagResourcesResponseBody;
|
|
3758
3852
|
class TagResourcesResponse extends $tea.Model {
|
|
3759
3853
|
constructor(map) {
|
|
3760
3854
|
super(map);
|
|
@@ -3762,11 +3856,13 @@ class TagResourcesResponse extends $tea.Model {
|
|
|
3762
3856
|
static names() {
|
|
3763
3857
|
return {
|
|
3764
3858
|
headers: 'headers',
|
|
3859
|
+
body: 'body',
|
|
3765
3860
|
};
|
|
3766
3861
|
}
|
|
3767
3862
|
static types() {
|
|
3768
3863
|
return {
|
|
3769
3864
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3865
|
+
body: TagResourcesResponseBody,
|
|
3770
3866
|
};
|
|
3771
3867
|
}
|
|
3772
3868
|
}
|
|
@@ -3809,6 +3905,7 @@ class UntagResourcesRequest extends $tea.Model {
|
|
|
3809
3905
|
}
|
|
3810
3906
|
static names() {
|
|
3811
3907
|
return {
|
|
3908
|
+
all: 'all',
|
|
3812
3909
|
regionId: 'region_id',
|
|
3813
3910
|
resourceIds: 'resource_ids',
|
|
3814
3911
|
resourceType: 'resource_type',
|
|
@@ -3817,6 +3914,7 @@ class UntagResourcesRequest extends $tea.Model {
|
|
|
3817
3914
|
}
|
|
3818
3915
|
static types() {
|
|
3819
3916
|
return {
|
|
3917
|
+
all: 'boolean',
|
|
3820
3918
|
regionId: 'string',
|
|
3821
3919
|
resourceIds: { 'type': 'array', 'itemType': 'string' },
|
|
3822
3920
|
resourceType: 'string',
|
|
@@ -3825,6 +3923,22 @@ class UntagResourcesRequest extends $tea.Model {
|
|
|
3825
3923
|
}
|
|
3826
3924
|
}
|
|
3827
3925
|
exports.UntagResourcesRequest = UntagResourcesRequest;
|
|
3926
|
+
class UntagResourcesResponseBody extends $tea.Model {
|
|
3927
|
+
constructor(map) {
|
|
3928
|
+
super(map);
|
|
3929
|
+
}
|
|
3930
|
+
static names() {
|
|
3931
|
+
return {
|
|
3932
|
+
requestId: 'RequestId',
|
|
3933
|
+
};
|
|
3934
|
+
}
|
|
3935
|
+
static types() {
|
|
3936
|
+
return {
|
|
3937
|
+
requestId: 'string',
|
|
3938
|
+
};
|
|
3939
|
+
}
|
|
3940
|
+
}
|
|
3941
|
+
exports.UntagResourcesResponseBody = UntagResourcesResponseBody;
|
|
3828
3942
|
class UntagResourcesResponse extends $tea.Model {
|
|
3829
3943
|
constructor(map) {
|
|
3830
3944
|
super(map);
|
|
@@ -3832,11 +3946,13 @@ class UntagResourcesResponse extends $tea.Model {
|
|
|
3832
3946
|
static names() {
|
|
3833
3947
|
return {
|
|
3834
3948
|
headers: 'headers',
|
|
3949
|
+
body: 'body',
|
|
3835
3950
|
};
|
|
3836
3951
|
}
|
|
3837
3952
|
static types() {
|
|
3838
3953
|
return {
|
|
3839
3954
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3955
|
+
body: UntagResourcesResponseBody,
|
|
3840
3956
|
};
|
|
3841
3957
|
}
|
|
3842
3958
|
}
|
|
@@ -4092,6 +4208,7 @@ class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
|
|
|
4092
4208
|
cmsEnabled: 'cms_enabled',
|
|
4093
4209
|
cpuPolicy: 'cpu_policy',
|
|
4094
4210
|
labels: 'labels',
|
|
4211
|
+
nodeNameMode: 'node_name_mode',
|
|
4095
4212
|
runtime: 'runtime',
|
|
4096
4213
|
runtimeVersion: 'runtime_version',
|
|
4097
4214
|
taints: 'taints',
|
|
@@ -4103,6 +4220,7 @@ class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
|
|
|
4103
4220
|
cmsEnabled: 'boolean',
|
|
4104
4221
|
cpuPolicy: 'string',
|
|
4105
4222
|
labels: { 'type': 'array', 'itemType': Tag },
|
|
4223
|
+
nodeNameMode: 'string',
|
|
4106
4224
|
runtime: 'string',
|
|
4107
4225
|
runtimeVersion: 'string',
|
|
4108
4226
|
taints: { 'type': 'array', 'itemType': Taint },
|
|
@@ -4219,6 +4337,8 @@ class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
4219
4337
|
autoRenewPeriod: 'auto_renew_period',
|
|
4220
4338
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
4221
4339
|
dataDisks: 'data_disks',
|
|
4340
|
+
deploymentsetId: 'deploymentset_id',
|
|
4341
|
+
desiredSize: 'desired_size',
|
|
4222
4342
|
imageId: 'image_id',
|
|
4223
4343
|
imageType: 'image_type',
|
|
4224
4344
|
instanceChargeType: 'instance_charge_type',
|
|
@@ -4254,6 +4374,8 @@ class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
4254
4374
|
autoRenewPeriod: 'number',
|
|
4255
4375
|
compensateWithOnDemand: 'boolean',
|
|
4256
4376
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
4377
|
+
deploymentsetId: 'string',
|
|
4378
|
+
desiredSize: 'number',
|
|
4257
4379
|
imageId: 'string',
|
|
4258
4380
|
imageType: 'string',
|
|
4259
4381
|
instanceChargeType: 'string',
|
|
@@ -4422,6 +4544,7 @@ class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $tea.Mod
|
|
|
4422
4544
|
cmsEnabled: 'cms_enabled',
|
|
4423
4545
|
cpuPolicy: 'cpu_policy',
|
|
4424
4546
|
labels: 'labels',
|
|
4547
|
+
nodeNameMode: 'node_name_mode',
|
|
4425
4548
|
runtime: 'runtime',
|
|
4426
4549
|
runtimeVersion: 'runtime_version',
|
|
4427
4550
|
taints: 'taints',
|
|
@@ -4433,6 +4556,7 @@ class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $tea.Mod
|
|
|
4433
4556
|
cmsEnabled: 'boolean',
|
|
4434
4557
|
cpuPolicy: 'string',
|
|
4435
4558
|
labels: { 'type': 'array', 'itemType': Tag },
|
|
4559
|
+
nodeNameMode: 'string',
|
|
4436
4560
|
runtime: 'string',
|
|
4437
4561
|
runtimeVersion: 'string',
|
|
4438
4562
|
taints: { 'type': 'array', 'itemType': Taint },
|
|
@@ -4541,6 +4665,8 @@ class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.Model {
|
|
|
4541
4665
|
autoRenewPeriod: 'auto_renew_period',
|
|
4542
4666
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
4543
4667
|
dataDisks: 'data_disks',
|
|
4668
|
+
deploymentsetId: 'deploymentset_id',
|
|
4669
|
+
desiredSize: 'desired_size',
|
|
4544
4670
|
imageId: 'image_id',
|
|
4545
4671
|
instanceChargeType: 'instance_charge_type',
|
|
4546
4672
|
instanceTypes: 'instance_types',
|
|
@@ -4577,6 +4703,8 @@ class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.Model {
|
|
|
4577
4703
|
autoRenewPeriod: 'number',
|
|
4578
4704
|
compensateWithOnDemand: 'boolean',
|
|
4579
4705
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
4706
|
+
deploymentsetId: 'string',
|
|
4707
|
+
desiredSize: 'number',
|
|
4580
4708
|
imageId: 'string',
|
|
4581
4709
|
instanceChargeType: 'string',
|
|
4582
4710
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -4716,6 +4844,7 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig extends $tea
|
|
|
4716
4844
|
cmsEnabled: 'cms_enabled',
|
|
4717
4845
|
cpuPolicy: 'cpu_policy',
|
|
4718
4846
|
labels: 'labels',
|
|
4847
|
+
nodeNameMode: 'node_name_mode',
|
|
4719
4848
|
runtime: 'runtime',
|
|
4720
4849
|
runtimeVersion: 'runtime_version',
|
|
4721
4850
|
taints: 'taints',
|
|
@@ -4727,6 +4856,7 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig extends $tea
|
|
|
4727
4856
|
cmsEnabled: 'boolean',
|
|
4728
4857
|
cpuPolicy: 'string',
|
|
4729
4858
|
labels: { 'type': 'array', 'itemType': Tag },
|
|
4859
|
+
nodeNameMode: 'string',
|
|
4730
4860
|
runtime: 'string',
|
|
4731
4861
|
runtimeVersion: 'string',
|
|
4732
4862
|
taints: { 'type': 'array', 'itemType': Taint },
|
|
@@ -4835,6 +4965,8 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $tea.Mod
|
|
|
4835
4965
|
autoRenewPeriod: 'auto_renew_period',
|
|
4836
4966
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
4837
4967
|
dataDisks: 'data_disks',
|
|
4968
|
+
deploymentsetId: 'deploymentset_id',
|
|
4969
|
+
desiredSize: 'desired_size',
|
|
4838
4970
|
imageId: 'image_id',
|
|
4839
4971
|
instanceChargeType: 'instance_charge_type',
|
|
4840
4972
|
instanceTypes: 'instance_types',
|
|
@@ -4871,6 +5003,8 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $tea.Mod
|
|
|
4871
5003
|
autoRenewPeriod: 'number',
|
|
4872
5004
|
compensateWithOnDemand: 'boolean',
|
|
4873
5005
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
5006
|
+
deploymentsetId: 'string',
|
|
5007
|
+
desiredSize: 'number',
|
|
4874
5008
|
imageId: 'string',
|
|
4875
5009
|
instanceChargeType: 'string',
|
|
4876
5010
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -6201,6 +6335,7 @@ class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
6201
6335
|
autoRenewPeriod: 'auto_renew_period',
|
|
6202
6336
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
6203
6337
|
dataDisks: 'data_disks',
|
|
6338
|
+
desiredSize: 'desired_size',
|
|
6204
6339
|
imageId: 'image_id',
|
|
6205
6340
|
instanceChargeType: 'instance_charge_type',
|
|
6206
6341
|
instanceTypes: 'instance_types',
|
|
@@ -6233,6 +6368,7 @@ class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
6233
6368
|
autoRenewPeriod: 'number',
|
|
6234
6369
|
compensateWithOnDemand: 'boolean',
|
|
6235
6370
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
6371
|
+
desiredSize: 'number',
|
|
6236
6372
|
imageId: 'string',
|
|
6237
6373
|
instanceChargeType: 'string',
|
|
6238
6374
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -6496,7 +6632,18 @@ class Client extends openapi_client_1.default {
|
|
|
6496
6632
|
headers: headers,
|
|
6497
6633
|
body: openapi_util_1.default.parseToMap(body),
|
|
6498
6634
|
});
|
|
6499
|
-
|
|
6635
|
+
let params = new $OpenApi.Params({
|
|
6636
|
+
action: "AttachInstances",
|
|
6637
|
+
version: "2015-12-15",
|
|
6638
|
+
protocol: "HTTPS",
|
|
6639
|
+
pathname: `/clusters/${ClusterId}/attach`,
|
|
6640
|
+
method: "POST",
|
|
6641
|
+
authType: "AK",
|
|
6642
|
+
style: "ROA",
|
|
6643
|
+
reqBodyType: "json",
|
|
6644
|
+
bodyType: "json",
|
|
6645
|
+
});
|
|
6646
|
+
return $tea.cast(await this.callApi(params, req, runtime), new AttachInstancesResponse({}));
|
|
6500
6647
|
}
|
|
6501
6648
|
async cancelClusterUpgrade(ClusterId) {
|
|
6502
6649
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6508,7 +6655,18 @@ class Client extends openapi_client_1.default {
|
|
|
6508
6655
|
let req = new $OpenApi.OpenApiRequest({
|
|
6509
6656
|
headers: headers,
|
|
6510
6657
|
});
|
|
6511
|
-
|
|
6658
|
+
let params = new $OpenApi.Params({
|
|
6659
|
+
action: "CancelClusterUpgrade",
|
|
6660
|
+
version: "2015-12-15",
|
|
6661
|
+
protocol: "HTTPS",
|
|
6662
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/cancel`,
|
|
6663
|
+
method: "POST",
|
|
6664
|
+
authType: "AK",
|
|
6665
|
+
style: "ROA",
|
|
6666
|
+
reqBodyType: "json",
|
|
6667
|
+
bodyType: "none",
|
|
6668
|
+
});
|
|
6669
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CancelClusterUpgradeResponse({}));
|
|
6512
6670
|
}
|
|
6513
6671
|
async cancelComponentUpgrade(clusterId, componentId) {
|
|
6514
6672
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6521,7 +6679,18 @@ class Client extends openapi_client_1.default {
|
|
|
6521
6679
|
let req = new $OpenApi.OpenApiRequest({
|
|
6522
6680
|
headers: headers,
|
|
6523
6681
|
});
|
|
6524
|
-
|
|
6682
|
+
let params = new $OpenApi.Params({
|
|
6683
|
+
action: "CancelComponentUpgrade",
|
|
6684
|
+
version: "2015-12-15",
|
|
6685
|
+
protocol: "HTTPS",
|
|
6686
|
+
pathname: `/clusters/${clusterId}/components/${componentId}/cancel`,
|
|
6687
|
+
method: "POST",
|
|
6688
|
+
authType: "AK",
|
|
6689
|
+
style: "ROA",
|
|
6690
|
+
reqBodyType: "json",
|
|
6691
|
+
bodyType: "none",
|
|
6692
|
+
});
|
|
6693
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CancelComponentUpgradeResponse({}));
|
|
6525
6694
|
}
|
|
6526
6695
|
async cancelWorkflow(workflowName, request) {
|
|
6527
6696
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6539,7 +6708,18 @@ class Client extends openapi_client_1.default {
|
|
|
6539
6708
|
headers: headers,
|
|
6540
6709
|
body: openapi_util_1.default.parseToMap(body),
|
|
6541
6710
|
});
|
|
6542
|
-
|
|
6711
|
+
let params = new $OpenApi.Params({
|
|
6712
|
+
action: "CancelWorkflow",
|
|
6713
|
+
version: "2015-12-15",
|
|
6714
|
+
protocol: "HTTPS",
|
|
6715
|
+
pathname: `/gs/workflow/${workflowName}`,
|
|
6716
|
+
method: "PUT",
|
|
6717
|
+
authType: "AK",
|
|
6718
|
+
style: "ROA",
|
|
6719
|
+
reqBodyType: "json",
|
|
6720
|
+
bodyType: "none",
|
|
6721
|
+
});
|
|
6722
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CancelWorkflowResponse({}));
|
|
6543
6723
|
}
|
|
6544
6724
|
async createAutoscalingConfig(ClusterId, request) {
|
|
6545
6725
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6569,7 +6749,18 @@ class Client extends openapi_client_1.default {
|
|
|
6569
6749
|
headers: headers,
|
|
6570
6750
|
body: openapi_util_1.default.parseToMap(body),
|
|
6571
6751
|
});
|
|
6572
|
-
|
|
6752
|
+
let params = new $OpenApi.Params({
|
|
6753
|
+
action: "CreateAutoscalingConfig",
|
|
6754
|
+
version: "2015-12-15",
|
|
6755
|
+
protocol: "HTTPS",
|
|
6756
|
+
pathname: `/cluster/${ClusterId}/autoscale/config/`,
|
|
6757
|
+
method: "POST",
|
|
6758
|
+
authType: "AK",
|
|
6759
|
+
style: "ROA",
|
|
6760
|
+
reqBodyType: "json",
|
|
6761
|
+
bodyType: "none",
|
|
6762
|
+
});
|
|
6763
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateAutoscalingConfigResponse({}));
|
|
6573
6764
|
}
|
|
6574
6765
|
async createCluster(request) {
|
|
6575
6766
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6624,6 +6815,9 @@ class Client extends openapi_client_1.default {
|
|
|
6624
6815
|
if (!tea_util_1.default.isUnset(request.disableRollback)) {
|
|
6625
6816
|
body["disable_rollback"] = request.disableRollback;
|
|
6626
6817
|
}
|
|
6818
|
+
if (!tea_util_1.default.isUnset(request.enableRrsa)) {
|
|
6819
|
+
body["enable_rrsa"] = request.enableRrsa;
|
|
6820
|
+
}
|
|
6627
6821
|
if (!tea_util_1.default.isUnset(request.encryptionProviderKey)) {
|
|
6628
6822
|
body["encryption_provider_key"] = request.encryptionProviderKey;
|
|
6629
6823
|
}
|
|
@@ -6738,6 +6932,9 @@ class Client extends openapi_client_1.default {
|
|
|
6738
6932
|
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
6739
6933
|
body["region_id"] = request.regionId;
|
|
6740
6934
|
}
|
|
6935
|
+
if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
|
|
6936
|
+
body["resource_group_id"] = request.resourceGroupId;
|
|
6937
|
+
}
|
|
6741
6938
|
if (!tea_util_1.default.isUnset($tea.toMap(request.runtime))) {
|
|
6742
6939
|
body["runtime"] = request.runtime;
|
|
6743
6940
|
}
|
|
@@ -6829,7 +7026,18 @@ class Client extends openapi_client_1.default {
|
|
|
6829
7026
|
headers: headers,
|
|
6830
7027
|
body: openapi_util_1.default.parseToMap(body),
|
|
6831
7028
|
});
|
|
6832
|
-
|
|
7029
|
+
let params = new $OpenApi.Params({
|
|
7030
|
+
action: "CreateCluster",
|
|
7031
|
+
version: "2015-12-15",
|
|
7032
|
+
protocol: "HTTPS",
|
|
7033
|
+
pathname: `/clusters`,
|
|
7034
|
+
method: "POST",
|
|
7035
|
+
authType: "AK",
|
|
7036
|
+
style: "ROA",
|
|
7037
|
+
reqBodyType: "json",
|
|
7038
|
+
bodyType: "json",
|
|
7039
|
+
});
|
|
7040
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateClusterResponse({}));
|
|
6833
7041
|
}
|
|
6834
7042
|
async createClusterNodePool(ClusterId, request) {
|
|
6835
7043
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6874,7 +7082,18 @@ class Client extends openapi_client_1.default {
|
|
|
6874
7082
|
headers: headers,
|
|
6875
7083
|
body: openapi_util_1.default.parseToMap(body),
|
|
6876
7084
|
});
|
|
6877
|
-
|
|
7085
|
+
let params = new $OpenApi.Params({
|
|
7086
|
+
action: "CreateClusterNodePool",
|
|
7087
|
+
version: "2015-12-15",
|
|
7088
|
+
protocol: "HTTPS",
|
|
7089
|
+
pathname: `/clusters/${ClusterId}/nodepools`,
|
|
7090
|
+
method: "POST",
|
|
7091
|
+
authType: "AK",
|
|
7092
|
+
style: "ROA",
|
|
7093
|
+
reqBodyType: "json",
|
|
7094
|
+
bodyType: "json",
|
|
7095
|
+
});
|
|
7096
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateClusterNodePoolResponse({}));
|
|
6878
7097
|
}
|
|
6879
7098
|
async createEdgeMachine(request) {
|
|
6880
7099
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6897,7 +7116,18 @@ class Client extends openapi_client_1.default {
|
|
|
6897
7116
|
headers: headers,
|
|
6898
7117
|
body: openapi_util_1.default.parseToMap(body),
|
|
6899
7118
|
});
|
|
6900
|
-
|
|
7119
|
+
let params = new $OpenApi.Params({
|
|
7120
|
+
action: "CreateEdgeMachine",
|
|
7121
|
+
version: "2015-12-15",
|
|
7122
|
+
protocol: "HTTPS",
|
|
7123
|
+
pathname: `/edge_machines`,
|
|
7124
|
+
method: "POST",
|
|
7125
|
+
authType: "AK",
|
|
7126
|
+
style: "ROA",
|
|
7127
|
+
reqBodyType: "json",
|
|
7128
|
+
bodyType: "json",
|
|
7129
|
+
});
|
|
7130
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateEdgeMachineResponse({}));
|
|
6901
7131
|
}
|
|
6902
7132
|
async createKubernetesTrigger(request) {
|
|
6903
7133
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6923,7 +7153,18 @@ class Client extends openapi_client_1.default {
|
|
|
6923
7153
|
headers: headers,
|
|
6924
7154
|
body: openapi_util_1.default.parseToMap(body),
|
|
6925
7155
|
});
|
|
6926
|
-
|
|
7156
|
+
let params = new $OpenApi.Params({
|
|
7157
|
+
action: "CreateKubernetesTrigger",
|
|
7158
|
+
version: "2015-12-15",
|
|
7159
|
+
protocol: "HTTPS",
|
|
7160
|
+
pathname: `/triggers`,
|
|
7161
|
+
method: "POST",
|
|
7162
|
+
authType: "AK",
|
|
7163
|
+
style: "ROA",
|
|
7164
|
+
reqBodyType: "json",
|
|
7165
|
+
bodyType: "json",
|
|
7166
|
+
});
|
|
7167
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateKubernetesTriggerResponse({}));
|
|
6927
7168
|
}
|
|
6928
7169
|
async createTemplate(request) {
|
|
6929
7170
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6952,7 +7193,18 @@ class Client extends openapi_client_1.default {
|
|
|
6952
7193
|
headers: headers,
|
|
6953
7194
|
body: openapi_util_1.default.parseToMap(body),
|
|
6954
7195
|
});
|
|
6955
|
-
|
|
7196
|
+
let params = new $OpenApi.Params({
|
|
7197
|
+
action: "CreateTemplate",
|
|
7198
|
+
version: "2015-12-15",
|
|
7199
|
+
protocol: "HTTPS",
|
|
7200
|
+
pathname: `/templates`,
|
|
7201
|
+
method: "POST",
|
|
7202
|
+
authType: "AK",
|
|
7203
|
+
style: "ROA",
|
|
7204
|
+
reqBodyType: "json",
|
|
7205
|
+
bodyType: "json",
|
|
7206
|
+
});
|
|
7207
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateTemplateResponse({}));
|
|
6956
7208
|
}
|
|
6957
7209
|
async createTrigger(clusterId, request) {
|
|
6958
7210
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6979,7 +7231,18 @@ class Client extends openapi_client_1.default {
|
|
|
6979
7231
|
headers: headers,
|
|
6980
7232
|
body: openapi_util_1.default.parseToMap(body),
|
|
6981
7233
|
});
|
|
6982
|
-
|
|
7234
|
+
let params = new $OpenApi.Params({
|
|
7235
|
+
action: "CreateTrigger",
|
|
7236
|
+
version: "2015-12-15",
|
|
7237
|
+
protocol: "HTTPS",
|
|
7238
|
+
pathname: `/clusters/${clusterId}/triggers`,
|
|
7239
|
+
method: "POST",
|
|
7240
|
+
authType: "AK",
|
|
7241
|
+
style: "ROA",
|
|
7242
|
+
reqBodyType: "json",
|
|
7243
|
+
bodyType: "json",
|
|
7244
|
+
});
|
|
7245
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
|
|
6983
7246
|
}
|
|
6984
7247
|
async deleteCluster(ClusterId, request) {
|
|
6985
7248
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7008,7 +7271,18 @@ class Client extends openapi_client_1.default {
|
|
|
7008
7271
|
headers: headers,
|
|
7009
7272
|
query: openapi_util_1.default.query(query),
|
|
7010
7273
|
});
|
|
7011
|
-
|
|
7274
|
+
let params = new $OpenApi.Params({
|
|
7275
|
+
action: "DeleteCluster",
|
|
7276
|
+
version: "2015-12-15",
|
|
7277
|
+
protocol: "HTTPS",
|
|
7278
|
+
pathname: `/clusters/${ClusterId}`,
|
|
7279
|
+
method: "DELETE",
|
|
7280
|
+
authType: "AK",
|
|
7281
|
+
style: "ROA",
|
|
7282
|
+
reqBodyType: "json",
|
|
7283
|
+
bodyType: "none",
|
|
7284
|
+
});
|
|
7285
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteClusterResponse({}));
|
|
7012
7286
|
}
|
|
7013
7287
|
async deleteClusterNodepool(ClusterId, NodepoolId) {
|
|
7014
7288
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7021,7 +7295,18 @@ class Client extends openapi_client_1.default {
|
|
|
7021
7295
|
let req = new $OpenApi.OpenApiRequest({
|
|
7022
7296
|
headers: headers,
|
|
7023
7297
|
});
|
|
7024
|
-
|
|
7298
|
+
let params = new $OpenApi.Params({
|
|
7299
|
+
action: "DeleteClusterNodepool",
|
|
7300
|
+
version: "2015-12-15",
|
|
7301
|
+
protocol: "HTTPS",
|
|
7302
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
7303
|
+
method: "DELETE",
|
|
7304
|
+
authType: "AK",
|
|
7305
|
+
style: "ROA",
|
|
7306
|
+
reqBodyType: "json",
|
|
7307
|
+
bodyType: "json",
|
|
7308
|
+
});
|
|
7309
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteClusterNodepoolResponse({}));
|
|
7025
7310
|
}
|
|
7026
7311
|
async deleteClusterNodes(ClusterId, request) {
|
|
7027
7312
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7045,7 +7330,18 @@ class Client extends openapi_client_1.default {
|
|
|
7045
7330
|
headers: headers,
|
|
7046
7331
|
body: openapi_util_1.default.parseToMap(body),
|
|
7047
7332
|
});
|
|
7048
|
-
|
|
7333
|
+
let params = new $OpenApi.Params({
|
|
7334
|
+
action: "DeleteClusterNodes",
|
|
7335
|
+
version: "2015-12-15",
|
|
7336
|
+
protocol: "HTTPS",
|
|
7337
|
+
pathname: `/clusters/${ClusterId}/nodes`,
|
|
7338
|
+
method: "POST",
|
|
7339
|
+
authType: "AK",
|
|
7340
|
+
style: "ROA",
|
|
7341
|
+
reqBodyType: "json",
|
|
7342
|
+
bodyType: "json",
|
|
7343
|
+
});
|
|
7344
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteClusterNodesResponse({}));
|
|
7049
7345
|
}
|
|
7050
7346
|
async deleteEdgeMachine(edgeMachineid, request) {
|
|
7051
7347
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7063,7 +7359,18 @@ class Client extends openapi_client_1.default {
|
|
|
7063
7359
|
headers: headers,
|
|
7064
7360
|
query: openapi_util_1.default.query(query),
|
|
7065
7361
|
});
|
|
7066
|
-
|
|
7362
|
+
let params = new $OpenApi.Params({
|
|
7363
|
+
action: "DeleteEdgeMachine",
|
|
7364
|
+
version: "2015-12-15",
|
|
7365
|
+
protocol: "HTTPS",
|
|
7366
|
+
pathname: `/edge_machines/[edge_machineid]`,
|
|
7367
|
+
method: "DELETE",
|
|
7368
|
+
authType: "AK",
|
|
7369
|
+
style: "ROA",
|
|
7370
|
+
reqBodyType: "json",
|
|
7371
|
+
bodyType: "none",
|
|
7372
|
+
});
|
|
7373
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteEdgeMachineResponse({}));
|
|
7067
7374
|
}
|
|
7068
7375
|
async deleteKubernetesTrigger(Id) {
|
|
7069
7376
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7075,21 +7382,48 @@ class Client extends openapi_client_1.default {
|
|
|
7075
7382
|
let req = new $OpenApi.OpenApiRequest({
|
|
7076
7383
|
headers: headers,
|
|
7077
7384
|
});
|
|
7078
|
-
|
|
7385
|
+
let params = new $OpenApi.Params({
|
|
7386
|
+
action: "DeleteKubernetesTrigger",
|
|
7387
|
+
version: "2015-12-15",
|
|
7388
|
+
protocol: "HTTPS",
|
|
7389
|
+
pathname: `/triggers/revoke/${Id}`,
|
|
7390
|
+
method: "DELETE",
|
|
7391
|
+
authType: "AK",
|
|
7392
|
+
style: "ROA",
|
|
7393
|
+
reqBodyType: "json",
|
|
7394
|
+
bodyType: "none",
|
|
7395
|
+
});
|
|
7396
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteKubernetesTriggerResponse({}));
|
|
7079
7397
|
}
|
|
7080
|
-
async deletePolicyInstance(clusterId, policyName,
|
|
7398
|
+
async deletePolicyInstance(clusterId, policyName, request) {
|
|
7081
7399
|
let runtime = new $Util.RuntimeOptions({});
|
|
7082
7400
|
let headers = {};
|
|
7083
|
-
return await this.deletePolicyInstanceWithOptions(clusterId, policyName,
|
|
7401
|
+
return await this.deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
|
|
7084
7402
|
}
|
|
7085
|
-
async deletePolicyInstanceWithOptions(clusterId, policyName,
|
|
7403
|
+
async deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime) {
|
|
7404
|
+
tea_util_1.default.validateModel(request);
|
|
7086
7405
|
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
7087
7406
|
policyName = openapi_util_1.default.getEncodeParam(policyName);
|
|
7088
|
-
|
|
7407
|
+
let query = {};
|
|
7408
|
+
if (!tea_util_1.default.isUnset(request.instanceName)) {
|
|
7409
|
+
query["instance_name"] = request.instanceName;
|
|
7410
|
+
}
|
|
7089
7411
|
let req = new $OpenApi.OpenApiRequest({
|
|
7090
7412
|
headers: headers,
|
|
7413
|
+
query: openapi_util_1.default.query(query),
|
|
7414
|
+
});
|
|
7415
|
+
let params = new $OpenApi.Params({
|
|
7416
|
+
action: "DeletePolicyInstance",
|
|
7417
|
+
version: "2015-12-15",
|
|
7418
|
+
protocol: "HTTPS",
|
|
7419
|
+
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
7420
|
+
method: "DELETE",
|
|
7421
|
+
authType: "AK",
|
|
7422
|
+
style: "ROA",
|
|
7423
|
+
reqBodyType: "json",
|
|
7424
|
+
bodyType: "json",
|
|
7091
7425
|
});
|
|
7092
|
-
return $tea.cast(await this.
|
|
7426
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeletePolicyInstanceResponse({}));
|
|
7093
7427
|
}
|
|
7094
7428
|
async deleteTemplate(TemplateId) {
|
|
7095
7429
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7101,7 +7435,18 @@ class Client extends openapi_client_1.default {
|
|
|
7101
7435
|
let req = new $OpenApi.OpenApiRequest({
|
|
7102
7436
|
headers: headers,
|
|
7103
7437
|
});
|
|
7104
|
-
|
|
7438
|
+
let params = new $OpenApi.Params({
|
|
7439
|
+
action: "DeleteTemplate",
|
|
7440
|
+
version: "2015-12-15",
|
|
7441
|
+
protocol: "HTTPS",
|
|
7442
|
+
pathname: `/templates/${TemplateId}`,
|
|
7443
|
+
method: "DELETE",
|
|
7444
|
+
authType: "AK",
|
|
7445
|
+
style: "ROA",
|
|
7446
|
+
reqBodyType: "json",
|
|
7447
|
+
bodyType: "none",
|
|
7448
|
+
});
|
|
7449
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteTemplateResponse({}));
|
|
7105
7450
|
}
|
|
7106
7451
|
async deleteTrigger(clusterId, Id) {
|
|
7107
7452
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7114,7 +7459,18 @@ class Client extends openapi_client_1.default {
|
|
|
7114
7459
|
let req = new $OpenApi.OpenApiRequest({
|
|
7115
7460
|
headers: headers,
|
|
7116
7461
|
});
|
|
7117
|
-
|
|
7462
|
+
let params = new $OpenApi.Params({
|
|
7463
|
+
action: "DeleteTrigger",
|
|
7464
|
+
version: "2015-12-15",
|
|
7465
|
+
protocol: "HTTPS",
|
|
7466
|
+
pathname: `/clusters/[cluster_id]/triggers/[Id]`,
|
|
7467
|
+
method: "DELETE",
|
|
7468
|
+
authType: "AK",
|
|
7469
|
+
style: "ROA",
|
|
7470
|
+
reqBodyType: "json",
|
|
7471
|
+
bodyType: "none",
|
|
7472
|
+
});
|
|
7473
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteTriggerResponse({}));
|
|
7118
7474
|
}
|
|
7119
7475
|
async deployPolicyInstance(clusterId, policyName, request) {
|
|
7120
7476
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7139,7 +7495,18 @@ class Client extends openapi_client_1.default {
|
|
|
7139
7495
|
headers: headers,
|
|
7140
7496
|
body: openapi_util_1.default.parseToMap(body),
|
|
7141
7497
|
});
|
|
7142
|
-
|
|
7498
|
+
let params = new $OpenApi.Params({
|
|
7499
|
+
action: "DeployPolicyInstance",
|
|
7500
|
+
version: "2015-12-15",
|
|
7501
|
+
protocol: "HTTPS",
|
|
7502
|
+
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
7503
|
+
method: "POST",
|
|
7504
|
+
authType: "AK",
|
|
7505
|
+
style: "ROA",
|
|
7506
|
+
reqBodyType: "json",
|
|
7507
|
+
bodyType: "json",
|
|
7508
|
+
});
|
|
7509
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeployPolicyInstanceResponse({}));
|
|
7143
7510
|
}
|
|
7144
7511
|
async descirbeWorkflow(workflowName) {
|
|
7145
7512
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7151,7 +7518,18 @@ class Client extends openapi_client_1.default {
|
|
|
7151
7518
|
let req = new $OpenApi.OpenApiRequest({
|
|
7152
7519
|
headers: headers,
|
|
7153
7520
|
});
|
|
7154
|
-
|
|
7521
|
+
let params = new $OpenApi.Params({
|
|
7522
|
+
action: "DescirbeWorkflow",
|
|
7523
|
+
version: "2015-12-15",
|
|
7524
|
+
protocol: "HTTPS",
|
|
7525
|
+
pathname: `/gs/workflow/${workflowName}`,
|
|
7526
|
+
method: "GET",
|
|
7527
|
+
authType: "AK",
|
|
7528
|
+
style: "ROA",
|
|
7529
|
+
reqBodyType: "json",
|
|
7530
|
+
bodyType: "json",
|
|
7531
|
+
});
|
|
7532
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescirbeWorkflowResponse({}));
|
|
7155
7533
|
}
|
|
7156
7534
|
async describeAddons(request) {
|
|
7157
7535
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7171,7 +7549,18 @@ class Client extends openapi_client_1.default {
|
|
|
7171
7549
|
headers: headers,
|
|
7172
7550
|
query: openapi_util_1.default.query(query),
|
|
7173
7551
|
});
|
|
7174
|
-
|
|
7552
|
+
let params = new $OpenApi.Params({
|
|
7553
|
+
action: "DescribeAddons",
|
|
7554
|
+
version: "2015-12-15",
|
|
7555
|
+
protocol: "HTTPS",
|
|
7556
|
+
pathname: `/clusters/components/metadata`,
|
|
7557
|
+
method: "GET",
|
|
7558
|
+
authType: "AK",
|
|
7559
|
+
style: "ROA",
|
|
7560
|
+
reqBodyType: "json",
|
|
7561
|
+
bodyType: "json",
|
|
7562
|
+
});
|
|
7563
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeAddonsResponse({}));
|
|
7175
7564
|
}
|
|
7176
7565
|
async describeClusterAddonMetadata(clusterId, componentId, version) {
|
|
7177
7566
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7185,7 +7574,18 @@ class Client extends openapi_client_1.default {
|
|
|
7185
7574
|
let req = new $OpenApi.OpenApiRequest({
|
|
7186
7575
|
headers: headers,
|
|
7187
7576
|
});
|
|
7188
|
-
|
|
7577
|
+
let params = new $OpenApi.Params({
|
|
7578
|
+
action: "DescribeClusterAddonMetadata",
|
|
7579
|
+
version: "2015-12-15",
|
|
7580
|
+
protocol: "HTTPS",
|
|
7581
|
+
pathname: `/clusters/${clusterId}/components/${componentId}/metadata`,
|
|
7582
|
+
method: "GET",
|
|
7583
|
+
authType: "AK",
|
|
7584
|
+
style: "ROA",
|
|
7585
|
+
reqBodyType: "json",
|
|
7586
|
+
bodyType: "json",
|
|
7587
|
+
});
|
|
7588
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonMetadataResponse({}));
|
|
7189
7589
|
}
|
|
7190
7590
|
async describeClusterAddonUpgradeStatus(ClusterId, ComponentId) {
|
|
7191
7591
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7198,7 +7598,18 @@ class Client extends openapi_client_1.default {
|
|
|
7198
7598
|
let req = new $OpenApi.OpenApiRequest({
|
|
7199
7599
|
headers: headers,
|
|
7200
7600
|
});
|
|
7201
|
-
|
|
7601
|
+
let params = new $OpenApi.Params({
|
|
7602
|
+
action: "DescribeClusterAddonUpgradeStatus",
|
|
7603
|
+
version: "2015-12-15",
|
|
7604
|
+
protocol: "HTTPS",
|
|
7605
|
+
pathname: `/clusters/${ClusterId}/components/${ComponentId}/upgradestatus`,
|
|
7606
|
+
method: "GET",
|
|
7607
|
+
authType: "AK",
|
|
7608
|
+
style: "ROA",
|
|
7609
|
+
reqBodyType: "json",
|
|
7610
|
+
bodyType: "json",
|
|
7611
|
+
});
|
|
7612
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonUpgradeStatusResponse({}));
|
|
7202
7613
|
}
|
|
7203
7614
|
async describeClusterAddonsUpgradeStatus(ClusterId, request) {
|
|
7204
7615
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7221,7 +7632,18 @@ class Client extends openapi_client_1.default {
|
|
|
7221
7632
|
headers: headers,
|
|
7222
7633
|
query: openapi_util_1.default.query(query),
|
|
7223
7634
|
});
|
|
7224
|
-
|
|
7635
|
+
let params = new $OpenApi.Params({
|
|
7636
|
+
action: "DescribeClusterAddonsUpgradeStatus",
|
|
7637
|
+
version: "2015-12-15",
|
|
7638
|
+
protocol: "HTTPS",
|
|
7639
|
+
pathname: `/clusters/${ClusterId}/components/upgradestatus`,
|
|
7640
|
+
method: "GET",
|
|
7641
|
+
authType: "AK",
|
|
7642
|
+
style: "ROA",
|
|
7643
|
+
reqBodyType: "json",
|
|
7644
|
+
bodyType: "json",
|
|
7645
|
+
});
|
|
7646
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonsUpgradeStatusResponse({}));
|
|
7225
7647
|
}
|
|
7226
7648
|
async describeClusterAddonsVersion(ClusterId) {
|
|
7227
7649
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7233,7 +7655,18 @@ class Client extends openapi_client_1.default {
|
|
|
7233
7655
|
let req = new $OpenApi.OpenApiRequest({
|
|
7234
7656
|
headers: headers,
|
|
7235
7657
|
});
|
|
7236
|
-
|
|
7658
|
+
let params = new $OpenApi.Params({
|
|
7659
|
+
action: "DescribeClusterAddonsVersion",
|
|
7660
|
+
version: "2015-12-15",
|
|
7661
|
+
protocol: "HTTPS",
|
|
7662
|
+
pathname: `/clusters/${ClusterId}/components/version`,
|
|
7663
|
+
method: "GET",
|
|
7664
|
+
authType: "AK",
|
|
7665
|
+
style: "ROA",
|
|
7666
|
+
reqBodyType: "json",
|
|
7667
|
+
bodyType: "json",
|
|
7668
|
+
});
|
|
7669
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonsVersionResponse({}));
|
|
7237
7670
|
}
|
|
7238
7671
|
async describeClusterAttachScripts(ClusterId, request) {
|
|
7239
7672
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7266,7 +7699,18 @@ class Client extends openapi_client_1.default {
|
|
|
7266
7699
|
headers: headers,
|
|
7267
7700
|
body: openapi_util_1.default.parseToMap(body),
|
|
7268
7701
|
});
|
|
7269
|
-
|
|
7702
|
+
let params = new $OpenApi.Params({
|
|
7703
|
+
action: "DescribeClusterAttachScripts",
|
|
7704
|
+
version: "2015-12-15",
|
|
7705
|
+
protocol: "HTTPS",
|
|
7706
|
+
pathname: `/clusters/${ClusterId}/attachscript`,
|
|
7707
|
+
method: "POST",
|
|
7708
|
+
authType: "AK",
|
|
7709
|
+
style: "ROA",
|
|
7710
|
+
reqBodyType: "json",
|
|
7711
|
+
bodyType: "string",
|
|
7712
|
+
});
|
|
7713
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAttachScriptsResponse({}));
|
|
7270
7714
|
}
|
|
7271
7715
|
async describeClusterDetail(ClusterId) {
|
|
7272
7716
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7278,7 +7722,18 @@ class Client extends openapi_client_1.default {
|
|
|
7278
7722
|
let req = new $OpenApi.OpenApiRequest({
|
|
7279
7723
|
headers: headers,
|
|
7280
7724
|
});
|
|
7281
|
-
|
|
7725
|
+
let params = new $OpenApi.Params({
|
|
7726
|
+
action: "DescribeClusterDetail",
|
|
7727
|
+
version: "2015-12-15",
|
|
7728
|
+
protocol: "HTTPS",
|
|
7729
|
+
pathname: `/clusters/${ClusterId}`,
|
|
7730
|
+
method: "GET",
|
|
7731
|
+
authType: "AK",
|
|
7732
|
+
style: "ROA",
|
|
7733
|
+
reqBodyType: "json",
|
|
7734
|
+
bodyType: "json",
|
|
7735
|
+
});
|
|
7736
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterDetailResponse({}));
|
|
7282
7737
|
}
|
|
7283
7738
|
async describeClusterLogs(ClusterId) {
|
|
7284
7739
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7290,7 +7745,18 @@ class Client extends openapi_client_1.default {
|
|
|
7290
7745
|
let req = new $OpenApi.OpenApiRequest({
|
|
7291
7746
|
headers: headers,
|
|
7292
7747
|
});
|
|
7293
|
-
|
|
7748
|
+
let params = new $OpenApi.Params({
|
|
7749
|
+
action: "DescribeClusterLogs",
|
|
7750
|
+
version: "2015-12-15",
|
|
7751
|
+
protocol: "HTTPS",
|
|
7752
|
+
pathname: `/clusters/${ClusterId}/logs`,
|
|
7753
|
+
method: "GET",
|
|
7754
|
+
authType: "AK",
|
|
7755
|
+
style: "ROA",
|
|
7756
|
+
reqBodyType: "json",
|
|
7757
|
+
bodyType: "array",
|
|
7758
|
+
});
|
|
7759
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterLogsResponse({}));
|
|
7294
7760
|
}
|
|
7295
7761
|
async describeClusterNamespaces(ClusterId) {
|
|
7296
7762
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7302,7 +7768,18 @@ class Client extends openapi_client_1.default {
|
|
|
7302
7768
|
let req = new $OpenApi.OpenApiRequest({
|
|
7303
7769
|
headers: headers,
|
|
7304
7770
|
});
|
|
7305
|
-
|
|
7771
|
+
let params = new $OpenApi.Params({
|
|
7772
|
+
action: "DescribeClusterNamespaces",
|
|
7773
|
+
version: "2015-12-15",
|
|
7774
|
+
protocol: "HTTPS",
|
|
7775
|
+
pathname: `/k8s/${ClusterId}/namespaces`,
|
|
7776
|
+
method: "GET",
|
|
7777
|
+
authType: "AK",
|
|
7778
|
+
style: "ROA",
|
|
7779
|
+
reqBodyType: "json",
|
|
7780
|
+
bodyType: "array",
|
|
7781
|
+
});
|
|
7782
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNamespacesResponse({}));
|
|
7306
7783
|
}
|
|
7307
7784
|
async describeClusterNodePoolDetail(ClusterId, NodepoolId) {
|
|
7308
7785
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7315,7 +7792,18 @@ class Client extends openapi_client_1.default {
|
|
|
7315
7792
|
let req = new $OpenApi.OpenApiRequest({
|
|
7316
7793
|
headers: headers,
|
|
7317
7794
|
});
|
|
7318
|
-
|
|
7795
|
+
let params = new $OpenApi.Params({
|
|
7796
|
+
action: "DescribeClusterNodePoolDetail",
|
|
7797
|
+
version: "2015-12-15",
|
|
7798
|
+
protocol: "HTTPS",
|
|
7799
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
7800
|
+
method: "GET",
|
|
7801
|
+
authType: "AK",
|
|
7802
|
+
style: "ROA",
|
|
7803
|
+
reqBodyType: "json",
|
|
7804
|
+
bodyType: "json",
|
|
7805
|
+
});
|
|
7806
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNodePoolDetailResponse({}));
|
|
7319
7807
|
}
|
|
7320
7808
|
async describeClusterNodePools(ClusterId) {
|
|
7321
7809
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7327,7 +7815,18 @@ class Client extends openapi_client_1.default {
|
|
|
7327
7815
|
let req = new $OpenApi.OpenApiRequest({
|
|
7328
7816
|
headers: headers,
|
|
7329
7817
|
});
|
|
7330
|
-
|
|
7818
|
+
let params = new $OpenApi.Params({
|
|
7819
|
+
action: "DescribeClusterNodePools",
|
|
7820
|
+
version: "2015-12-15",
|
|
7821
|
+
protocol: "HTTPS",
|
|
7822
|
+
pathname: `/clusters/${ClusterId}/nodepools`,
|
|
7823
|
+
method: "GET",
|
|
7824
|
+
authType: "AK",
|
|
7825
|
+
style: "ROA",
|
|
7826
|
+
reqBodyType: "json",
|
|
7827
|
+
bodyType: "json",
|
|
7828
|
+
});
|
|
7829
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNodePoolsResponse({}));
|
|
7331
7830
|
}
|
|
7332
7831
|
async describeClusterNodes(ClusterId, request) {
|
|
7333
7832
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7357,7 +7856,18 @@ class Client extends openapi_client_1.default {
|
|
|
7357
7856
|
headers: headers,
|
|
7358
7857
|
query: openapi_util_1.default.query(query),
|
|
7359
7858
|
});
|
|
7360
|
-
|
|
7859
|
+
let params = new $OpenApi.Params({
|
|
7860
|
+
action: "DescribeClusterNodes",
|
|
7861
|
+
version: "2015-12-15",
|
|
7862
|
+
protocol: "HTTPS",
|
|
7863
|
+
pathname: `/clusters/${ClusterId}/nodes`,
|
|
7864
|
+
method: "GET",
|
|
7865
|
+
authType: "AK",
|
|
7866
|
+
style: "ROA",
|
|
7867
|
+
reqBodyType: "json",
|
|
7868
|
+
bodyType: "json",
|
|
7869
|
+
});
|
|
7870
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNodesResponse({}));
|
|
7361
7871
|
}
|
|
7362
7872
|
async describeClusterResources(ClusterId) {
|
|
7363
7873
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7369,7 +7879,18 @@ class Client extends openapi_client_1.default {
|
|
|
7369
7879
|
let req = new $OpenApi.OpenApiRequest({
|
|
7370
7880
|
headers: headers,
|
|
7371
7881
|
});
|
|
7372
|
-
|
|
7882
|
+
let params = new $OpenApi.Params({
|
|
7883
|
+
action: "DescribeClusterResources",
|
|
7884
|
+
version: "2015-12-15",
|
|
7885
|
+
protocol: "HTTPS",
|
|
7886
|
+
pathname: `/clusters/${ClusterId}/resources`,
|
|
7887
|
+
method: "GET",
|
|
7888
|
+
authType: "AK",
|
|
7889
|
+
style: "ROA",
|
|
7890
|
+
reqBodyType: "json",
|
|
7891
|
+
bodyType: "array",
|
|
7892
|
+
});
|
|
7893
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterResourcesResponse({}));
|
|
7373
7894
|
}
|
|
7374
7895
|
async describeClusterUserKubeconfig(ClusterId, request) {
|
|
7375
7896
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7390,7 +7911,18 @@ class Client extends openapi_client_1.default {
|
|
|
7390
7911
|
headers: headers,
|
|
7391
7912
|
query: openapi_util_1.default.query(query),
|
|
7392
7913
|
});
|
|
7393
|
-
|
|
7914
|
+
let params = new $OpenApi.Params({
|
|
7915
|
+
action: "DescribeClusterUserKubeconfig",
|
|
7916
|
+
version: "2015-12-15",
|
|
7917
|
+
protocol: "HTTPS",
|
|
7918
|
+
pathname: `/k8s/${ClusterId}/user_config`,
|
|
7919
|
+
method: "GET",
|
|
7920
|
+
authType: "AK",
|
|
7921
|
+
style: "ROA",
|
|
7922
|
+
reqBodyType: "json",
|
|
7923
|
+
bodyType: "json",
|
|
7924
|
+
});
|
|
7925
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterUserKubeconfigResponse({}));
|
|
7394
7926
|
}
|
|
7395
7927
|
async describeClusterV2UserKubeconfig(ClusterId, request) {
|
|
7396
7928
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7408,7 +7940,18 @@ class Client extends openapi_client_1.default {
|
|
|
7408
7940
|
headers: headers,
|
|
7409
7941
|
query: openapi_util_1.default.query(query),
|
|
7410
7942
|
});
|
|
7411
|
-
|
|
7943
|
+
let params = new $OpenApi.Params({
|
|
7944
|
+
action: "DescribeClusterV2UserKubeconfig",
|
|
7945
|
+
version: "2015-12-15",
|
|
7946
|
+
protocol: "HTTPS",
|
|
7947
|
+
pathname: `/api/v2/k8s/${ClusterId}/user_config`,
|
|
7948
|
+
method: "GET",
|
|
7949
|
+
authType: "AK",
|
|
7950
|
+
style: "ROA",
|
|
7951
|
+
reqBodyType: "json",
|
|
7952
|
+
bodyType: "json",
|
|
7953
|
+
});
|
|
7954
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterV2UserKubeconfigResponse({}));
|
|
7412
7955
|
}
|
|
7413
7956
|
async describeClusters(request) {
|
|
7414
7957
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7428,7 +7971,18 @@ class Client extends openapi_client_1.default {
|
|
|
7428
7971
|
headers: headers,
|
|
7429
7972
|
query: openapi_util_1.default.query(query),
|
|
7430
7973
|
});
|
|
7431
|
-
|
|
7974
|
+
let params = new $OpenApi.Params({
|
|
7975
|
+
action: "DescribeClusters",
|
|
7976
|
+
version: "2015-12-15",
|
|
7977
|
+
protocol: "HTTPS",
|
|
7978
|
+
pathname: `/clusters`,
|
|
7979
|
+
method: "GET",
|
|
7980
|
+
authType: "AK",
|
|
7981
|
+
style: "ROA",
|
|
7982
|
+
reqBodyType: "json",
|
|
7983
|
+
bodyType: "array",
|
|
7984
|
+
});
|
|
7985
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClustersResponse({}));
|
|
7432
7986
|
}
|
|
7433
7987
|
async describeClustersV1(request) {
|
|
7434
7988
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7460,7 +8014,18 @@ class Client extends openapi_client_1.default {
|
|
|
7460
8014
|
headers: headers,
|
|
7461
8015
|
query: openapi_util_1.default.query(query),
|
|
7462
8016
|
});
|
|
7463
|
-
|
|
8017
|
+
let params = new $OpenApi.Params({
|
|
8018
|
+
action: "DescribeClustersV1",
|
|
8019
|
+
version: "2015-12-15",
|
|
8020
|
+
protocol: "HTTPS",
|
|
8021
|
+
pathname: `/api/v1/clusters`,
|
|
8022
|
+
method: "GET",
|
|
8023
|
+
authType: "AK",
|
|
8024
|
+
style: "ROA",
|
|
8025
|
+
reqBodyType: "json",
|
|
8026
|
+
bodyType: "json",
|
|
8027
|
+
});
|
|
8028
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClustersV1Response({}));
|
|
7464
8029
|
}
|
|
7465
8030
|
async describeEdgeMachineActiveProcess(edgeMachineid) {
|
|
7466
8031
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7472,7 +8037,18 @@ class Client extends openapi_client_1.default {
|
|
|
7472
8037
|
let req = new $OpenApi.OpenApiRequest({
|
|
7473
8038
|
headers: headers,
|
|
7474
8039
|
});
|
|
7475
|
-
|
|
8040
|
+
let params = new $OpenApi.Params({
|
|
8041
|
+
action: "DescribeEdgeMachineActiveProcess",
|
|
8042
|
+
version: "2015-12-15",
|
|
8043
|
+
protocol: "HTTPS",
|
|
8044
|
+
pathname: `/edge_machines/[edge_machineid]/activeprocess`,
|
|
8045
|
+
method: "GET",
|
|
8046
|
+
authType: "AK",
|
|
8047
|
+
style: "ROA",
|
|
8048
|
+
reqBodyType: "json",
|
|
8049
|
+
bodyType: "json",
|
|
8050
|
+
});
|
|
8051
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachineActiveProcessResponse({}));
|
|
7476
8052
|
}
|
|
7477
8053
|
async describeEdgeMachineModels() {
|
|
7478
8054
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7483,7 +8059,18 @@ class Client extends openapi_client_1.default {
|
|
|
7483
8059
|
let req = new $OpenApi.OpenApiRequest({
|
|
7484
8060
|
headers: headers,
|
|
7485
8061
|
});
|
|
7486
|
-
|
|
8062
|
+
let params = new $OpenApi.Params({
|
|
8063
|
+
action: "DescribeEdgeMachineModels",
|
|
8064
|
+
version: "2015-12-15",
|
|
8065
|
+
protocol: "HTTPS",
|
|
8066
|
+
pathname: `/edge_machines/models`,
|
|
8067
|
+
method: "GET",
|
|
8068
|
+
authType: "AK",
|
|
8069
|
+
style: "ROA",
|
|
8070
|
+
reqBodyType: "json",
|
|
8071
|
+
bodyType: "json",
|
|
8072
|
+
});
|
|
8073
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachineModelsResponse({}));
|
|
7487
8074
|
}
|
|
7488
8075
|
async describeEdgeMachineTunnelConfigDetail(edgeMachineid) {
|
|
7489
8076
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7495,7 +8082,18 @@ class Client extends openapi_client_1.default {
|
|
|
7495
8082
|
let req = new $OpenApi.OpenApiRequest({
|
|
7496
8083
|
headers: headers,
|
|
7497
8084
|
});
|
|
7498
|
-
|
|
8085
|
+
let params = new $OpenApi.Params({
|
|
8086
|
+
action: "DescribeEdgeMachineTunnelConfigDetail",
|
|
8087
|
+
version: "2015-12-15",
|
|
8088
|
+
protocol: "HTTPS",
|
|
8089
|
+
pathname: `/edge_machines/[edge_machineid]/tunnelconfig`,
|
|
8090
|
+
method: "POST",
|
|
8091
|
+
authType: "AK",
|
|
8092
|
+
style: "ROA",
|
|
8093
|
+
reqBodyType: "json",
|
|
8094
|
+
bodyType: "json",
|
|
8095
|
+
});
|
|
8096
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachineTunnelConfigDetailResponse({}));
|
|
7499
8097
|
}
|
|
7500
8098
|
async describeEdgeMachines(request) {
|
|
7501
8099
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7527,7 +8125,18 @@ class Client extends openapi_client_1.default {
|
|
|
7527
8125
|
headers: headers,
|
|
7528
8126
|
query: openapi_util_1.default.query(query),
|
|
7529
8127
|
});
|
|
7530
|
-
|
|
8128
|
+
let params = new $OpenApi.Params({
|
|
8129
|
+
action: "DescribeEdgeMachines",
|
|
8130
|
+
version: "2015-12-15",
|
|
8131
|
+
protocol: "HTTPS",
|
|
8132
|
+
pathname: `/edge_machines`,
|
|
8133
|
+
method: "GET",
|
|
8134
|
+
authType: "AK",
|
|
8135
|
+
style: "ROA",
|
|
8136
|
+
reqBodyType: "json",
|
|
8137
|
+
bodyType: "json",
|
|
8138
|
+
});
|
|
8139
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachinesResponse({}));
|
|
7531
8140
|
}
|
|
7532
8141
|
async describeEvents(request) {
|
|
7533
8142
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7553,7 +8162,18 @@ class Client extends openapi_client_1.default {
|
|
|
7553
8162
|
headers: headers,
|
|
7554
8163
|
query: openapi_util_1.default.query(query),
|
|
7555
8164
|
});
|
|
7556
|
-
|
|
8165
|
+
let params = new $OpenApi.Params({
|
|
8166
|
+
action: "DescribeEvents",
|
|
8167
|
+
version: "2015-12-15",
|
|
8168
|
+
protocol: "HTTPS",
|
|
8169
|
+
pathname: `/events`,
|
|
8170
|
+
method: "GET",
|
|
8171
|
+
authType: "AK",
|
|
8172
|
+
style: "ROA",
|
|
8173
|
+
reqBodyType: "json",
|
|
8174
|
+
bodyType: "json",
|
|
8175
|
+
});
|
|
8176
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEventsResponse({}));
|
|
7557
8177
|
}
|
|
7558
8178
|
async describeExternalAgent(ClusterId, request) {
|
|
7559
8179
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7571,7 +8191,18 @@ class Client extends openapi_client_1.default {
|
|
|
7571
8191
|
headers: headers,
|
|
7572
8192
|
query: openapi_util_1.default.query(query),
|
|
7573
8193
|
});
|
|
7574
|
-
|
|
8194
|
+
let params = new $OpenApi.Params({
|
|
8195
|
+
action: "DescribeExternalAgent",
|
|
8196
|
+
version: "2015-12-15",
|
|
8197
|
+
protocol: "HTTPS",
|
|
8198
|
+
pathname: `/k8s/${ClusterId}/external/agent/deployment`,
|
|
8199
|
+
method: "GET",
|
|
8200
|
+
authType: "AK",
|
|
8201
|
+
style: "ROA",
|
|
8202
|
+
reqBodyType: "json",
|
|
8203
|
+
bodyType: "json",
|
|
8204
|
+
});
|
|
8205
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeExternalAgentResponse({}));
|
|
7575
8206
|
}
|
|
7576
8207
|
async describeKubernetesVersionMetadata(request) {
|
|
7577
8208
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7593,11 +8224,25 @@ class Client extends openapi_client_1.default {
|
|
|
7593
8224
|
if (!tea_util_1.default.isUnset(request.region)) {
|
|
7594
8225
|
query["Region"] = request.region;
|
|
7595
8226
|
}
|
|
8227
|
+
if (!tea_util_1.default.isUnset(request.runtime)) {
|
|
8228
|
+
query["runtime"] = request.runtime;
|
|
8229
|
+
}
|
|
7596
8230
|
let req = new $OpenApi.OpenApiRequest({
|
|
7597
8231
|
headers: headers,
|
|
7598
8232
|
query: openapi_util_1.default.query(query),
|
|
7599
8233
|
});
|
|
7600
|
-
|
|
8234
|
+
let params = new $OpenApi.Params({
|
|
8235
|
+
action: "DescribeKubernetesVersionMetadata",
|
|
8236
|
+
version: "2015-12-15",
|
|
8237
|
+
protocol: "HTTPS",
|
|
8238
|
+
pathname: `/api/v1/metadata/versions`,
|
|
8239
|
+
method: "GET",
|
|
8240
|
+
authType: "AK",
|
|
8241
|
+
style: "ROA",
|
|
8242
|
+
reqBodyType: "json",
|
|
8243
|
+
bodyType: "array",
|
|
8244
|
+
});
|
|
8245
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeKubernetesVersionMetadataResponse({}));
|
|
7601
8246
|
}
|
|
7602
8247
|
async describePolicies() {
|
|
7603
8248
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7608,7 +8253,18 @@ class Client extends openapi_client_1.default {
|
|
|
7608
8253
|
let req = new $OpenApi.OpenApiRequest({
|
|
7609
8254
|
headers: headers,
|
|
7610
8255
|
});
|
|
7611
|
-
|
|
8256
|
+
let params = new $OpenApi.Params({
|
|
8257
|
+
action: "DescribePolicies",
|
|
8258
|
+
version: "2015-12-15",
|
|
8259
|
+
protocol: "HTTPS",
|
|
8260
|
+
pathname: `/policies`,
|
|
8261
|
+
method: "GET",
|
|
8262
|
+
authType: "AK",
|
|
8263
|
+
style: "ROA",
|
|
8264
|
+
reqBodyType: "json",
|
|
8265
|
+
bodyType: "json",
|
|
8266
|
+
});
|
|
8267
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribePoliciesResponse({}));
|
|
7612
8268
|
}
|
|
7613
8269
|
async describePolicyDetails(policyName) {
|
|
7614
8270
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7620,7 +8276,18 @@ class Client extends openapi_client_1.default {
|
|
|
7620
8276
|
let req = new $OpenApi.OpenApiRequest({
|
|
7621
8277
|
headers: headers,
|
|
7622
8278
|
});
|
|
7623
|
-
|
|
8279
|
+
let params = new $OpenApi.Params({
|
|
8280
|
+
action: "DescribePolicyDetails",
|
|
8281
|
+
version: "2015-12-15",
|
|
8282
|
+
protocol: "HTTPS",
|
|
8283
|
+
pathname: `/policies/${policyName}`,
|
|
8284
|
+
method: "GET",
|
|
8285
|
+
authType: "AK",
|
|
8286
|
+
style: "ROA",
|
|
8287
|
+
reqBodyType: "json",
|
|
8288
|
+
bodyType: "json",
|
|
8289
|
+
});
|
|
8290
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyDetailsResponse({}));
|
|
7624
8291
|
}
|
|
7625
8292
|
async describePolicyGovernanceInCluster(clusterId) {
|
|
7626
8293
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7632,7 +8299,18 @@ class Client extends openapi_client_1.default {
|
|
|
7632
8299
|
let req = new $OpenApi.OpenApiRequest({
|
|
7633
8300
|
headers: headers,
|
|
7634
8301
|
});
|
|
7635
|
-
|
|
8302
|
+
let params = new $OpenApi.Params({
|
|
8303
|
+
action: "DescribePolicyGovernanceInCluster",
|
|
8304
|
+
version: "2015-12-15",
|
|
8305
|
+
protocol: "HTTPS",
|
|
8306
|
+
pathname: `/clusters/${clusterId}/policygovernance`,
|
|
8307
|
+
method: "GET",
|
|
8308
|
+
authType: "AK",
|
|
8309
|
+
style: "ROA",
|
|
8310
|
+
reqBodyType: "json",
|
|
8311
|
+
bodyType: "json",
|
|
8312
|
+
});
|
|
8313
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyGovernanceInClusterResponse({}));
|
|
7636
8314
|
}
|
|
7637
8315
|
async describePolicyInstances(clusterId, request) {
|
|
7638
8316
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7653,7 +8331,18 @@ class Client extends openapi_client_1.default {
|
|
|
7653
8331
|
headers: headers,
|
|
7654
8332
|
query: openapi_util_1.default.query(query),
|
|
7655
8333
|
});
|
|
7656
|
-
|
|
8334
|
+
let params = new $OpenApi.Params({
|
|
8335
|
+
action: "DescribePolicyInstances",
|
|
8336
|
+
version: "2015-12-15",
|
|
8337
|
+
protocol: "HTTPS",
|
|
8338
|
+
pathname: `/clusters/${clusterId}/policies`,
|
|
8339
|
+
method: "GET",
|
|
8340
|
+
authType: "AK",
|
|
8341
|
+
style: "ROA",
|
|
8342
|
+
reqBodyType: "json",
|
|
8343
|
+
bodyType: "array",
|
|
8344
|
+
});
|
|
8345
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyInstancesResponse({}));
|
|
7657
8346
|
}
|
|
7658
8347
|
async describePolicyInstancesStatus(clusterId) {
|
|
7659
8348
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7665,7 +8354,18 @@ class Client extends openapi_client_1.default {
|
|
|
7665
8354
|
let req = new $OpenApi.OpenApiRequest({
|
|
7666
8355
|
headers: headers,
|
|
7667
8356
|
});
|
|
7668
|
-
|
|
8357
|
+
let params = new $OpenApi.Params({
|
|
8358
|
+
action: "DescribePolicyInstancesStatus",
|
|
8359
|
+
version: "2015-12-15",
|
|
8360
|
+
protocol: "HTTPS",
|
|
8361
|
+
pathname: `/clusters/${clusterId}/policies/status`,
|
|
8362
|
+
method: "GET",
|
|
8363
|
+
authType: "AK",
|
|
8364
|
+
style: "ROA",
|
|
8365
|
+
reqBodyType: "json",
|
|
8366
|
+
bodyType: "json",
|
|
8367
|
+
});
|
|
8368
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyInstancesStatusResponse({}));
|
|
7669
8369
|
}
|
|
7670
8370
|
async describeTaskInfo(taskId) {
|
|
7671
8371
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7677,7 +8377,18 @@ class Client extends openapi_client_1.default {
|
|
|
7677
8377
|
let req = new $OpenApi.OpenApiRequest({
|
|
7678
8378
|
headers: headers,
|
|
7679
8379
|
});
|
|
7680
|
-
|
|
8380
|
+
let params = new $OpenApi.Params({
|
|
8381
|
+
action: "DescribeTaskInfo",
|
|
8382
|
+
version: "2015-12-15",
|
|
8383
|
+
protocol: "HTTPS",
|
|
8384
|
+
pathname: `/tasks/${taskId}`,
|
|
8385
|
+
method: "GET",
|
|
8386
|
+
authType: "AK",
|
|
8387
|
+
style: "ROA",
|
|
8388
|
+
reqBodyType: "json",
|
|
8389
|
+
bodyType: "json",
|
|
8390
|
+
});
|
|
8391
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTaskInfoResponse({}));
|
|
7681
8392
|
}
|
|
7682
8393
|
async describeTemplateAttribute(TemplateId, request) {
|
|
7683
8394
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7695,7 +8406,18 @@ class Client extends openapi_client_1.default {
|
|
|
7695
8406
|
headers: headers,
|
|
7696
8407
|
query: openapi_util_1.default.query(query),
|
|
7697
8408
|
});
|
|
7698
|
-
|
|
8409
|
+
let params = new $OpenApi.Params({
|
|
8410
|
+
action: "DescribeTemplateAttribute",
|
|
8411
|
+
version: "2015-12-15",
|
|
8412
|
+
protocol: "HTTPS",
|
|
8413
|
+
pathname: `/templates/${TemplateId}`,
|
|
8414
|
+
method: "GET",
|
|
8415
|
+
authType: "AK",
|
|
8416
|
+
style: "ROA",
|
|
8417
|
+
reqBodyType: "json",
|
|
8418
|
+
bodyType: "array",
|
|
8419
|
+
});
|
|
8420
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTemplateAttributeResponse({}));
|
|
7699
8421
|
}
|
|
7700
8422
|
async describeTemplates(request) {
|
|
7701
8423
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7718,7 +8440,18 @@ class Client extends openapi_client_1.default {
|
|
|
7718
8440
|
headers: headers,
|
|
7719
8441
|
query: openapi_util_1.default.query(query),
|
|
7720
8442
|
});
|
|
7721
|
-
|
|
8443
|
+
let params = new $OpenApi.Params({
|
|
8444
|
+
action: "DescribeTemplates",
|
|
8445
|
+
version: "2015-12-15",
|
|
8446
|
+
protocol: "HTTPS",
|
|
8447
|
+
pathname: `/templates`,
|
|
8448
|
+
method: "GET",
|
|
8449
|
+
authType: "AK",
|
|
8450
|
+
style: "ROA",
|
|
8451
|
+
reqBodyType: "json",
|
|
8452
|
+
bodyType: "json",
|
|
8453
|
+
});
|
|
8454
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTemplatesResponse({}));
|
|
7722
8455
|
}
|
|
7723
8456
|
async describeTrigger(clusterId, request) {
|
|
7724
8457
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7745,7 +8478,18 @@ class Client extends openapi_client_1.default {
|
|
|
7745
8478
|
headers: headers,
|
|
7746
8479
|
query: openapi_util_1.default.query(query),
|
|
7747
8480
|
});
|
|
7748
|
-
|
|
8481
|
+
let params = new $OpenApi.Params({
|
|
8482
|
+
action: "DescribeTrigger",
|
|
8483
|
+
version: "2015-12-15",
|
|
8484
|
+
protocol: "HTTPS",
|
|
8485
|
+
pathname: `/clusters/[cluster_id]/triggers`,
|
|
8486
|
+
method: "GET",
|
|
8487
|
+
authType: "AK",
|
|
8488
|
+
style: "ROA",
|
|
8489
|
+
reqBodyType: "json",
|
|
8490
|
+
bodyType: "array",
|
|
8491
|
+
});
|
|
8492
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTriggerResponse({}));
|
|
7749
8493
|
}
|
|
7750
8494
|
async describeUserPermission(uid) {
|
|
7751
8495
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7757,7 +8501,18 @@ class Client extends openapi_client_1.default {
|
|
|
7757
8501
|
let req = new $OpenApi.OpenApiRequest({
|
|
7758
8502
|
headers: headers,
|
|
7759
8503
|
});
|
|
7760
|
-
|
|
8504
|
+
let params = new $OpenApi.Params({
|
|
8505
|
+
action: "DescribeUserPermission",
|
|
8506
|
+
version: "2015-12-15",
|
|
8507
|
+
protocol: "HTTPS",
|
|
8508
|
+
pathname: `/permissions/users/${uid}`,
|
|
8509
|
+
method: "GET",
|
|
8510
|
+
authType: "AK",
|
|
8511
|
+
style: "ROA",
|
|
8512
|
+
reqBodyType: "json",
|
|
8513
|
+
bodyType: "array",
|
|
8514
|
+
});
|
|
8515
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeUserPermissionResponse({}));
|
|
7761
8516
|
}
|
|
7762
8517
|
async describeUserQuota() {
|
|
7763
8518
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7768,7 +8523,18 @@ class Client extends openapi_client_1.default {
|
|
|
7768
8523
|
let req = new $OpenApi.OpenApiRequest({
|
|
7769
8524
|
headers: headers,
|
|
7770
8525
|
});
|
|
7771
|
-
|
|
8526
|
+
let params = new $OpenApi.Params({
|
|
8527
|
+
action: "DescribeUserQuota",
|
|
8528
|
+
version: "2015-12-15",
|
|
8529
|
+
protocol: "HTTPS",
|
|
8530
|
+
pathname: `/quota`,
|
|
8531
|
+
method: "GET",
|
|
8532
|
+
authType: "AK",
|
|
8533
|
+
style: "ROA",
|
|
8534
|
+
reqBodyType: "json",
|
|
8535
|
+
bodyType: "json",
|
|
8536
|
+
});
|
|
8537
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeUserQuotaResponse({}));
|
|
7772
8538
|
}
|
|
7773
8539
|
async describeWorkflows() {
|
|
7774
8540
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7779,7 +8545,18 @@ class Client extends openapi_client_1.default {
|
|
|
7779
8545
|
let req = new $OpenApi.OpenApiRequest({
|
|
7780
8546
|
headers: headers,
|
|
7781
8547
|
});
|
|
7782
|
-
|
|
8548
|
+
let params = new $OpenApi.Params({
|
|
8549
|
+
action: "DescribeWorkflows",
|
|
8550
|
+
version: "2015-12-15",
|
|
8551
|
+
protocol: "HTTPS",
|
|
8552
|
+
pathname: `/gs/workflows`,
|
|
8553
|
+
method: "GET",
|
|
8554
|
+
authType: "AK",
|
|
8555
|
+
style: "ROA",
|
|
8556
|
+
reqBodyType: "json",
|
|
8557
|
+
bodyType: "json",
|
|
8558
|
+
});
|
|
8559
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeWorkflowsResponse({}));
|
|
7783
8560
|
}
|
|
7784
8561
|
async edgeClusterAddEdgeMachine(clusterid, edgeMachineid, request) {
|
|
7785
8562
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7804,7 +8581,18 @@ class Client extends openapi_client_1.default {
|
|
|
7804
8581
|
headers: headers,
|
|
7805
8582
|
body: openapi_util_1.default.parseToMap(body),
|
|
7806
8583
|
});
|
|
7807
|
-
|
|
8584
|
+
let params = new $OpenApi.Params({
|
|
8585
|
+
action: "EdgeClusterAddEdgeMachine",
|
|
8586
|
+
version: "2015-12-15",
|
|
8587
|
+
protocol: "HTTPS",
|
|
8588
|
+
pathname: `/clusters/[clusterid]/attachedgemachine/[edge_machineid]`,
|
|
8589
|
+
method: "POST",
|
|
8590
|
+
authType: "AK",
|
|
8591
|
+
style: "ROA",
|
|
8592
|
+
reqBodyType: "json",
|
|
8593
|
+
bodyType: "json",
|
|
8594
|
+
});
|
|
8595
|
+
return $tea.cast(await this.callApi(params, req, runtime), new EdgeClusterAddEdgeMachineResponse({}));
|
|
7808
8596
|
}
|
|
7809
8597
|
async getKubernetesTrigger(ClusterId, request) {
|
|
7810
8598
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7831,7 +8619,18 @@ class Client extends openapi_client_1.default {
|
|
|
7831
8619
|
headers: headers,
|
|
7832
8620
|
query: openapi_util_1.default.query(query),
|
|
7833
8621
|
});
|
|
7834
|
-
|
|
8622
|
+
let params = new $OpenApi.Params({
|
|
8623
|
+
action: "GetKubernetesTrigger",
|
|
8624
|
+
version: "2015-12-15",
|
|
8625
|
+
protocol: "HTTPS",
|
|
8626
|
+
pathname: `/triggers/${ClusterId}`,
|
|
8627
|
+
method: "GET",
|
|
8628
|
+
authType: "AK",
|
|
8629
|
+
style: "ROA",
|
|
8630
|
+
reqBodyType: "json",
|
|
8631
|
+
bodyType: "array",
|
|
8632
|
+
});
|
|
8633
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetKubernetesTriggerResponse({}));
|
|
7835
8634
|
}
|
|
7836
8635
|
async getUpgradeStatus(ClusterId) {
|
|
7837
8636
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7843,7 +8642,18 @@ class Client extends openapi_client_1.default {
|
|
|
7843
8642
|
let req = new $OpenApi.OpenApiRequest({
|
|
7844
8643
|
headers: headers,
|
|
7845
8644
|
});
|
|
7846
|
-
|
|
8645
|
+
let params = new $OpenApi.Params({
|
|
8646
|
+
action: "GetUpgradeStatus",
|
|
8647
|
+
version: "2015-12-15",
|
|
8648
|
+
protocol: "HTTPS",
|
|
8649
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/status`,
|
|
8650
|
+
method: "GET",
|
|
8651
|
+
authType: "AK",
|
|
8652
|
+
style: "ROA",
|
|
8653
|
+
reqBodyType: "json",
|
|
8654
|
+
bodyType: "json",
|
|
8655
|
+
});
|
|
8656
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetUpgradeStatusResponse({}));
|
|
7847
8657
|
}
|
|
7848
8658
|
async grantPermissions(uid, request) {
|
|
7849
8659
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7857,7 +8667,18 @@ class Client extends openapi_client_1.default {
|
|
|
7857
8667
|
headers: headers,
|
|
7858
8668
|
body: tea_util_1.default.toArray(request.body),
|
|
7859
8669
|
});
|
|
7860
|
-
|
|
8670
|
+
let params = new $OpenApi.Params({
|
|
8671
|
+
action: "GrantPermissions",
|
|
8672
|
+
version: "2015-12-15",
|
|
8673
|
+
protocol: "HTTPS",
|
|
8674
|
+
pathname: `/permissions/users/${uid}`,
|
|
8675
|
+
method: "POST",
|
|
8676
|
+
authType: "AK",
|
|
8677
|
+
style: "ROA",
|
|
8678
|
+
reqBodyType: "json",
|
|
8679
|
+
bodyType: "none",
|
|
8680
|
+
});
|
|
8681
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GrantPermissionsResponse({}));
|
|
7861
8682
|
}
|
|
7862
8683
|
async installClusterAddons(ClusterId, request) {
|
|
7863
8684
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7871,7 +8692,18 @@ class Client extends openapi_client_1.default {
|
|
|
7871
8692
|
headers: headers,
|
|
7872
8693
|
body: tea_util_1.default.toArray(request.body),
|
|
7873
8694
|
});
|
|
7874
|
-
|
|
8695
|
+
let params = new $OpenApi.Params({
|
|
8696
|
+
action: "InstallClusterAddons",
|
|
8697
|
+
version: "2015-12-15",
|
|
8698
|
+
protocol: "HTTPS",
|
|
8699
|
+
pathname: `/clusters/${ClusterId}/components/install`,
|
|
8700
|
+
method: "POST",
|
|
8701
|
+
authType: "AK",
|
|
8702
|
+
style: "ROA",
|
|
8703
|
+
reqBodyType: "json",
|
|
8704
|
+
bodyType: "none",
|
|
8705
|
+
});
|
|
8706
|
+
return $tea.cast(await this.callApi(params, req, runtime), new InstallClusterAddonsResponse({}));
|
|
7875
8707
|
}
|
|
7876
8708
|
async listTagResources(request) {
|
|
7877
8709
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7908,7 +8740,18 @@ class Client extends openapi_client_1.default {
|
|
|
7908
8740
|
headers: headers,
|
|
7909
8741
|
query: openapi_util_1.default.query(query),
|
|
7910
8742
|
});
|
|
7911
|
-
|
|
8743
|
+
let params = new $OpenApi.Params({
|
|
8744
|
+
action: "ListTagResources",
|
|
8745
|
+
version: "2015-12-15",
|
|
8746
|
+
protocol: "HTTPS",
|
|
8747
|
+
pathname: `/tags`,
|
|
8748
|
+
method: "GET",
|
|
8749
|
+
authType: "AK",
|
|
8750
|
+
style: "ROA",
|
|
8751
|
+
reqBodyType: "json",
|
|
8752
|
+
bodyType: "json",
|
|
8753
|
+
});
|
|
8754
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
|
|
7912
8755
|
}
|
|
7913
8756
|
async migrateCluster(clusterId) {
|
|
7914
8757
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7920,7 +8763,18 @@ class Client extends openapi_client_1.default {
|
|
|
7920
8763
|
let req = new $OpenApi.OpenApiRequest({
|
|
7921
8764
|
headers: headers,
|
|
7922
8765
|
});
|
|
7923
|
-
|
|
8766
|
+
let params = new $OpenApi.Params({
|
|
8767
|
+
action: "MigrateCluster",
|
|
8768
|
+
version: "2015-12-15",
|
|
8769
|
+
protocol: "HTTPS",
|
|
8770
|
+
pathname: `/clusters/${clusterId}/migrate`,
|
|
8771
|
+
method: "POST",
|
|
8772
|
+
authType: "AK",
|
|
8773
|
+
style: "ROA",
|
|
8774
|
+
reqBodyType: "json",
|
|
8775
|
+
bodyType: "none",
|
|
8776
|
+
});
|
|
8777
|
+
return $tea.cast(await this.callApi(params, req, runtime), new MigrateClusterResponse({}));
|
|
7924
8778
|
}
|
|
7925
8779
|
async modifyCluster(ClusterId, request) {
|
|
7926
8780
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7940,6 +8794,9 @@ class Client extends openapi_client_1.default {
|
|
|
7940
8794
|
if (!tea_util_1.default.isUnset(request.deletionProtection)) {
|
|
7941
8795
|
body["deletion_protection"] = request.deletionProtection;
|
|
7942
8796
|
}
|
|
8797
|
+
if (!tea_util_1.default.isUnset(request.enableRrsa)) {
|
|
8798
|
+
body["enable_rrsa"] = request.enableRrsa;
|
|
8799
|
+
}
|
|
7943
8800
|
if (!tea_util_1.default.isUnset(request.ingressDomainRebinding)) {
|
|
7944
8801
|
body["ingress_domain_rebinding"] = request.ingressDomainRebinding;
|
|
7945
8802
|
}
|
|
@@ -7959,7 +8816,18 @@ class Client extends openapi_client_1.default {
|
|
|
7959
8816
|
headers: headers,
|
|
7960
8817
|
body: openapi_util_1.default.parseToMap(body),
|
|
7961
8818
|
});
|
|
7962
|
-
|
|
8819
|
+
let params = new $OpenApi.Params({
|
|
8820
|
+
action: "ModifyCluster",
|
|
8821
|
+
version: "2015-12-15",
|
|
8822
|
+
protocol: "HTTPS",
|
|
8823
|
+
pathname: `/api/v2/clusters/${ClusterId}`,
|
|
8824
|
+
method: "PUT",
|
|
8825
|
+
authType: "AK",
|
|
8826
|
+
style: "ROA",
|
|
8827
|
+
reqBodyType: "json",
|
|
8828
|
+
bodyType: "json",
|
|
8829
|
+
});
|
|
8830
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterResponse({}));
|
|
7963
8831
|
}
|
|
7964
8832
|
async modifyClusterAddon(clusterId, componentId, request) {
|
|
7965
8833
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7978,7 +8846,18 @@ class Client extends openapi_client_1.default {
|
|
|
7978
8846
|
headers: headers,
|
|
7979
8847
|
body: openapi_util_1.default.parseToMap(body),
|
|
7980
8848
|
});
|
|
7981
|
-
|
|
8849
|
+
let params = new $OpenApi.Params({
|
|
8850
|
+
action: "ModifyClusterAddon",
|
|
8851
|
+
version: "2015-12-15",
|
|
8852
|
+
protocol: "HTTPS",
|
|
8853
|
+
pathname: `/clusters/${clusterId}/components/${componentId}/config`,
|
|
8854
|
+
method: "POST",
|
|
8855
|
+
authType: "AK",
|
|
8856
|
+
style: "ROA",
|
|
8857
|
+
reqBodyType: "json",
|
|
8858
|
+
bodyType: "none",
|
|
8859
|
+
});
|
|
8860
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterAddonResponse({}));
|
|
7982
8861
|
}
|
|
7983
8862
|
async modifyClusterConfiguration(ClusterId, request) {
|
|
7984
8863
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7996,7 +8875,18 @@ class Client extends openapi_client_1.default {
|
|
|
7996
8875
|
headers: headers,
|
|
7997
8876
|
body: openapi_util_1.default.parseToMap(body),
|
|
7998
8877
|
});
|
|
7999
|
-
|
|
8878
|
+
let params = new $OpenApi.Params({
|
|
8879
|
+
action: "ModifyClusterConfiguration",
|
|
8880
|
+
version: "2015-12-15",
|
|
8881
|
+
protocol: "HTTPS",
|
|
8882
|
+
pathname: `/clusters/${ClusterId}/configuration`,
|
|
8883
|
+
method: "PUT",
|
|
8884
|
+
authType: "AK",
|
|
8885
|
+
style: "ROA",
|
|
8886
|
+
reqBodyType: "json",
|
|
8887
|
+
bodyType: "none",
|
|
8888
|
+
});
|
|
8889
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterConfigurationResponse({}));
|
|
8000
8890
|
}
|
|
8001
8891
|
async modifyClusterNodePool(ClusterId, NodepoolId, request) {
|
|
8002
8892
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8033,7 +8923,18 @@ class Client extends openapi_client_1.default {
|
|
|
8033
8923
|
headers: headers,
|
|
8034
8924
|
body: openapi_util_1.default.parseToMap(body),
|
|
8035
8925
|
});
|
|
8036
|
-
|
|
8926
|
+
let params = new $OpenApi.Params({
|
|
8927
|
+
action: "ModifyClusterNodePool",
|
|
8928
|
+
version: "2015-12-15",
|
|
8929
|
+
protocol: "HTTPS",
|
|
8930
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
8931
|
+
method: "PUT",
|
|
8932
|
+
authType: "AK",
|
|
8933
|
+
style: "ROA",
|
|
8934
|
+
reqBodyType: "json",
|
|
8935
|
+
bodyType: "json",
|
|
8936
|
+
});
|
|
8937
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterNodePoolResponse({}));
|
|
8037
8938
|
}
|
|
8038
8939
|
async modifyClusterTags(ClusterId, request) {
|
|
8039
8940
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8047,7 +8948,18 @@ class Client extends openapi_client_1.default {
|
|
|
8047
8948
|
headers: headers,
|
|
8048
8949
|
body: tea_util_1.default.toArray(request.body),
|
|
8049
8950
|
});
|
|
8050
|
-
|
|
8951
|
+
let params = new $OpenApi.Params({
|
|
8952
|
+
action: "ModifyClusterTags",
|
|
8953
|
+
version: "2015-12-15",
|
|
8954
|
+
protocol: "HTTPS",
|
|
8955
|
+
pathname: `/clusters/${ClusterId}/tags`,
|
|
8956
|
+
method: "POST",
|
|
8957
|
+
authType: "AK",
|
|
8958
|
+
style: "ROA",
|
|
8959
|
+
reqBodyType: "json",
|
|
8960
|
+
bodyType: "none",
|
|
8961
|
+
});
|
|
8962
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterTagsResponse({}));
|
|
8051
8963
|
}
|
|
8052
8964
|
async modifyPolicyInstance(clusterId, policyName, request) {
|
|
8053
8965
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8075,7 +8987,18 @@ class Client extends openapi_client_1.default {
|
|
|
8075
8987
|
headers: headers,
|
|
8076
8988
|
body: openapi_util_1.default.parseToMap(body),
|
|
8077
8989
|
});
|
|
8078
|
-
|
|
8990
|
+
let params = new $OpenApi.Params({
|
|
8991
|
+
action: "ModifyPolicyInstance",
|
|
8992
|
+
version: "2015-12-15",
|
|
8993
|
+
protocol: "HTTPS",
|
|
8994
|
+
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
8995
|
+
method: "PUT",
|
|
8996
|
+
authType: "AK",
|
|
8997
|
+
style: "ROA",
|
|
8998
|
+
reqBodyType: "json",
|
|
8999
|
+
bodyType: "json",
|
|
9000
|
+
});
|
|
9001
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyPolicyInstanceResponse({}));
|
|
8079
9002
|
}
|
|
8080
9003
|
async openAckService(request) {
|
|
8081
9004
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8092,7 +9015,18 @@ class Client extends openapi_client_1.default {
|
|
|
8092
9015
|
headers: headers,
|
|
8093
9016
|
query: openapi_util_1.default.query(query),
|
|
8094
9017
|
});
|
|
8095
|
-
|
|
9018
|
+
let params = new $OpenApi.Params({
|
|
9019
|
+
action: "OpenAckService",
|
|
9020
|
+
version: "2015-12-15",
|
|
9021
|
+
protocol: "HTTPS",
|
|
9022
|
+
pathname: `/service/open`,
|
|
9023
|
+
method: "POST",
|
|
9024
|
+
authType: "AK",
|
|
9025
|
+
style: "ROA",
|
|
9026
|
+
reqBodyType: "json",
|
|
9027
|
+
bodyType: "json",
|
|
9028
|
+
});
|
|
9029
|
+
return $tea.cast(await this.callApi(params, req, runtime), new OpenAckServiceResponse({}));
|
|
8096
9030
|
}
|
|
8097
9031
|
async pauseClusterUpgrade(ClusterId) {
|
|
8098
9032
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8104,7 +9038,18 @@ class Client extends openapi_client_1.default {
|
|
|
8104
9038
|
let req = new $OpenApi.OpenApiRequest({
|
|
8105
9039
|
headers: headers,
|
|
8106
9040
|
});
|
|
8107
|
-
|
|
9041
|
+
let params = new $OpenApi.Params({
|
|
9042
|
+
action: "PauseClusterUpgrade",
|
|
9043
|
+
version: "2015-12-15",
|
|
9044
|
+
protocol: "HTTPS",
|
|
9045
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/pause`,
|
|
9046
|
+
method: "POST",
|
|
9047
|
+
authType: "AK",
|
|
9048
|
+
style: "ROA",
|
|
9049
|
+
reqBodyType: "json",
|
|
9050
|
+
bodyType: "none",
|
|
9051
|
+
});
|
|
9052
|
+
return $tea.cast(await this.callApi(params, req, runtime), new PauseClusterUpgradeResponse({}));
|
|
8108
9053
|
}
|
|
8109
9054
|
async pauseComponentUpgrade(clusterid, componentid) {
|
|
8110
9055
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8117,7 +9062,18 @@ class Client extends openapi_client_1.default {
|
|
|
8117
9062
|
let req = new $OpenApi.OpenApiRequest({
|
|
8118
9063
|
headers: headers,
|
|
8119
9064
|
});
|
|
8120
|
-
|
|
9065
|
+
let params = new $OpenApi.Params({
|
|
9066
|
+
action: "PauseComponentUpgrade",
|
|
9067
|
+
version: "2015-12-15",
|
|
9068
|
+
protocol: "HTTPS",
|
|
9069
|
+
pathname: `/clusters/${clusterid}/components/${componentid}/pause`,
|
|
9070
|
+
method: "POST",
|
|
9071
|
+
authType: "AK",
|
|
9072
|
+
style: "ROA",
|
|
9073
|
+
reqBodyType: "json",
|
|
9074
|
+
bodyType: "none",
|
|
9075
|
+
});
|
|
9076
|
+
return $tea.cast(await this.callApi(params, req, runtime), new PauseComponentUpgradeResponse({}));
|
|
8121
9077
|
}
|
|
8122
9078
|
async removeClusterNodes(ClusterId, request) {
|
|
8123
9079
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8141,7 +9097,18 @@ class Client extends openapi_client_1.default {
|
|
|
8141
9097
|
headers: headers,
|
|
8142
9098
|
body: openapi_util_1.default.parseToMap(body),
|
|
8143
9099
|
});
|
|
8144
|
-
|
|
9100
|
+
let params = new $OpenApi.Params({
|
|
9101
|
+
action: "RemoveClusterNodes",
|
|
9102
|
+
version: "2015-12-15",
|
|
9103
|
+
protocol: "HTTPS",
|
|
9104
|
+
pathname: `/api/v2/clusters/${ClusterId}/nodes/remove`,
|
|
9105
|
+
method: "POST",
|
|
9106
|
+
authType: "AK",
|
|
9107
|
+
style: "ROA",
|
|
9108
|
+
reqBodyType: "json",
|
|
9109
|
+
bodyType: "none",
|
|
9110
|
+
});
|
|
9111
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RemoveClusterNodesResponse({}));
|
|
8145
9112
|
}
|
|
8146
9113
|
async removeWorkflow(workflowName) {
|
|
8147
9114
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8153,7 +9120,18 @@ class Client extends openapi_client_1.default {
|
|
|
8153
9120
|
let req = new $OpenApi.OpenApiRequest({
|
|
8154
9121
|
headers: headers,
|
|
8155
9122
|
});
|
|
8156
|
-
|
|
9123
|
+
let params = new $OpenApi.Params({
|
|
9124
|
+
action: "RemoveWorkflow",
|
|
9125
|
+
version: "2015-12-15",
|
|
9126
|
+
protocol: "HTTPS",
|
|
9127
|
+
pathname: `/gs/workflow/${workflowName}`,
|
|
9128
|
+
method: "DELETE",
|
|
9129
|
+
authType: "AK",
|
|
9130
|
+
style: "ROA",
|
|
9131
|
+
reqBodyType: "json",
|
|
9132
|
+
bodyType: "none",
|
|
9133
|
+
});
|
|
9134
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RemoveWorkflowResponse({}));
|
|
8157
9135
|
}
|
|
8158
9136
|
async resumeComponentUpgrade(clusterid, componentid) {
|
|
8159
9137
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8166,7 +9144,18 @@ class Client extends openapi_client_1.default {
|
|
|
8166
9144
|
let req = new $OpenApi.OpenApiRequest({
|
|
8167
9145
|
headers: headers,
|
|
8168
9146
|
});
|
|
8169
|
-
|
|
9147
|
+
let params = new $OpenApi.Params({
|
|
9148
|
+
action: "ResumeComponentUpgrade",
|
|
9149
|
+
version: "2015-12-15",
|
|
9150
|
+
protocol: "HTTPS",
|
|
9151
|
+
pathname: `/clusters/${clusterid}/components/${componentid}/resume`,
|
|
9152
|
+
method: "POST",
|
|
9153
|
+
authType: "AK",
|
|
9154
|
+
style: "ROA",
|
|
9155
|
+
reqBodyType: "json",
|
|
9156
|
+
bodyType: "none",
|
|
9157
|
+
});
|
|
9158
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ResumeComponentUpgradeResponse({}));
|
|
8170
9159
|
}
|
|
8171
9160
|
async resumeUpgradeCluster(ClusterId) {
|
|
8172
9161
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8178,7 +9167,18 @@ class Client extends openapi_client_1.default {
|
|
|
8178
9167
|
let req = new $OpenApi.OpenApiRequest({
|
|
8179
9168
|
headers: headers,
|
|
8180
9169
|
});
|
|
8181
|
-
|
|
9170
|
+
let params = new $OpenApi.Params({
|
|
9171
|
+
action: "ResumeUpgradeCluster",
|
|
9172
|
+
version: "2015-12-15",
|
|
9173
|
+
protocol: "HTTPS",
|
|
9174
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/resume`,
|
|
9175
|
+
method: "POST",
|
|
9176
|
+
authType: "AK",
|
|
9177
|
+
style: "ROA",
|
|
9178
|
+
reqBodyType: "json",
|
|
9179
|
+
bodyType: "none",
|
|
9180
|
+
});
|
|
9181
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ResumeUpgradeClusterResponse({}));
|
|
8182
9182
|
}
|
|
8183
9183
|
async scaleCluster(ClusterId, request) {
|
|
8184
9184
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8250,7 +9250,18 @@ class Client extends openapi_client_1.default {
|
|
|
8250
9250
|
headers: headers,
|
|
8251
9251
|
body: openapi_util_1.default.parseToMap(body),
|
|
8252
9252
|
});
|
|
8253
|
-
|
|
9253
|
+
let params = new $OpenApi.Params({
|
|
9254
|
+
action: "ScaleCluster",
|
|
9255
|
+
version: "2015-12-15",
|
|
9256
|
+
protocol: "HTTPS",
|
|
9257
|
+
pathname: `/clusters/${ClusterId}`,
|
|
9258
|
+
method: "PUT",
|
|
9259
|
+
authType: "AK",
|
|
9260
|
+
style: "ROA",
|
|
9261
|
+
reqBodyType: "json",
|
|
9262
|
+
bodyType: "json",
|
|
9263
|
+
});
|
|
9264
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ScaleClusterResponse({}));
|
|
8254
9265
|
}
|
|
8255
9266
|
async scaleClusterNodePool(ClusterId, NodepoolId, request) {
|
|
8256
9267
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8269,7 +9280,18 @@ class Client extends openapi_client_1.default {
|
|
|
8269
9280
|
headers: headers,
|
|
8270
9281
|
body: openapi_util_1.default.parseToMap(body),
|
|
8271
9282
|
});
|
|
8272
|
-
|
|
9283
|
+
let params = new $OpenApi.Params({
|
|
9284
|
+
action: "ScaleClusterNodePool",
|
|
9285
|
+
version: "2015-12-15",
|
|
9286
|
+
protocol: "HTTPS",
|
|
9287
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
9288
|
+
method: "POST",
|
|
9289
|
+
authType: "AK",
|
|
9290
|
+
style: "ROA",
|
|
9291
|
+
reqBodyType: "json",
|
|
9292
|
+
bodyType: "json",
|
|
9293
|
+
});
|
|
9294
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ScaleClusterNodePoolResponse({}));
|
|
8273
9295
|
}
|
|
8274
9296
|
async scaleOutCluster(ClusterId, request) {
|
|
8275
9297
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8347,7 +9369,18 @@ class Client extends openapi_client_1.default {
|
|
|
8347
9369
|
headers: headers,
|
|
8348
9370
|
body: openapi_util_1.default.parseToMap(body),
|
|
8349
9371
|
});
|
|
8350
|
-
|
|
9372
|
+
let params = new $OpenApi.Params({
|
|
9373
|
+
action: "ScaleOutCluster",
|
|
9374
|
+
version: "2015-12-15",
|
|
9375
|
+
protocol: "HTTPS",
|
|
9376
|
+
pathname: `/api/v2/clusters/${ClusterId}`,
|
|
9377
|
+
method: "POST",
|
|
9378
|
+
authType: "AK",
|
|
9379
|
+
style: "ROA",
|
|
9380
|
+
reqBodyType: "json",
|
|
9381
|
+
bodyType: "json",
|
|
9382
|
+
});
|
|
9383
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ScaleOutClusterResponse({}));
|
|
8351
9384
|
}
|
|
8352
9385
|
async startWorkflow(request) {
|
|
8353
9386
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8418,7 +9451,18 @@ class Client extends openapi_client_1.default {
|
|
|
8418
9451
|
headers: headers,
|
|
8419
9452
|
body: openapi_util_1.default.parseToMap(body),
|
|
8420
9453
|
});
|
|
8421
|
-
|
|
9454
|
+
let params = new $OpenApi.Params({
|
|
9455
|
+
action: "StartWorkflow",
|
|
9456
|
+
version: "2015-12-15",
|
|
9457
|
+
protocol: "HTTPS",
|
|
9458
|
+
pathname: `/gs/workflow`,
|
|
9459
|
+
method: "POST",
|
|
9460
|
+
authType: "AK",
|
|
9461
|
+
style: "ROA",
|
|
9462
|
+
reqBodyType: "json",
|
|
9463
|
+
bodyType: "json",
|
|
9464
|
+
});
|
|
9465
|
+
return $tea.cast(await this.callApi(params, req, runtime), new StartWorkflowResponse({}));
|
|
8422
9466
|
}
|
|
8423
9467
|
async tagResources(request) {
|
|
8424
9468
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8444,7 +9488,18 @@ class Client extends openapi_client_1.default {
|
|
|
8444
9488
|
headers: headers,
|
|
8445
9489
|
body: openapi_util_1.default.parseToMap(body),
|
|
8446
9490
|
});
|
|
8447
|
-
|
|
9491
|
+
let params = new $OpenApi.Params({
|
|
9492
|
+
action: "TagResources",
|
|
9493
|
+
version: "2015-12-15",
|
|
9494
|
+
protocol: "HTTPS",
|
|
9495
|
+
pathname: `/tags`,
|
|
9496
|
+
method: "PUT",
|
|
9497
|
+
authType: "AK",
|
|
9498
|
+
style: "ROA",
|
|
9499
|
+
reqBodyType: "json",
|
|
9500
|
+
bodyType: "json",
|
|
9501
|
+
});
|
|
9502
|
+
return $tea.cast(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
|
|
8448
9503
|
}
|
|
8449
9504
|
async unInstallClusterAddons(ClusterId, request) {
|
|
8450
9505
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8458,7 +9513,18 @@ class Client extends openapi_client_1.default {
|
|
|
8458
9513
|
headers: headers,
|
|
8459
9514
|
body: tea_util_1.default.toArray(request.addons),
|
|
8460
9515
|
});
|
|
8461
|
-
|
|
9516
|
+
let params = new $OpenApi.Params({
|
|
9517
|
+
action: "UnInstallClusterAddons",
|
|
9518
|
+
version: "2015-12-15",
|
|
9519
|
+
protocol: "HTTPS",
|
|
9520
|
+
pathname: `/clusters/${ClusterId}/components/uninstall`,
|
|
9521
|
+
method: "POST",
|
|
9522
|
+
authType: "AK",
|
|
9523
|
+
style: "ROA",
|
|
9524
|
+
reqBodyType: "json",
|
|
9525
|
+
bodyType: "none",
|
|
9526
|
+
});
|
|
9527
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UnInstallClusterAddonsResponse({}));
|
|
8462
9528
|
}
|
|
8463
9529
|
async untagResources(request) {
|
|
8464
9530
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8468,6 +9534,9 @@ class Client extends openapi_client_1.default {
|
|
|
8468
9534
|
async untagResourcesWithOptions(request, headers, runtime) {
|
|
8469
9535
|
tea_util_1.default.validateModel(request);
|
|
8470
9536
|
let query = {};
|
|
9537
|
+
if (!tea_util_1.default.isUnset(request.all)) {
|
|
9538
|
+
query["all"] = request.all;
|
|
9539
|
+
}
|
|
8471
9540
|
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
8472
9541
|
query["region_id"] = request.regionId;
|
|
8473
9542
|
}
|
|
@@ -8484,7 +9553,18 @@ class Client extends openapi_client_1.default {
|
|
|
8484
9553
|
headers: headers,
|
|
8485
9554
|
query: openapi_util_1.default.query(query),
|
|
8486
9555
|
});
|
|
8487
|
-
|
|
9556
|
+
let params = new $OpenApi.Params({
|
|
9557
|
+
action: "UntagResources",
|
|
9558
|
+
version: "2015-12-15",
|
|
9559
|
+
protocol: "HTTPS",
|
|
9560
|
+
pathname: `/tags`,
|
|
9561
|
+
method: "DELETE",
|
|
9562
|
+
authType: "AK",
|
|
9563
|
+
style: "ROA",
|
|
9564
|
+
reqBodyType: "json",
|
|
9565
|
+
bodyType: "json",
|
|
9566
|
+
});
|
|
9567
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
|
|
8488
9568
|
}
|
|
8489
9569
|
async updateK8sClusterUserConfigExpire(ClusterId) {
|
|
8490
9570
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8496,7 +9576,18 @@ class Client extends openapi_client_1.default {
|
|
|
8496
9576
|
let req = new $OpenApi.OpenApiRequest({
|
|
8497
9577
|
headers: headers,
|
|
8498
9578
|
});
|
|
8499
|
-
|
|
9579
|
+
let params = new $OpenApi.Params({
|
|
9580
|
+
action: "UpdateK8sClusterUserConfigExpire",
|
|
9581
|
+
version: "2015-12-15",
|
|
9582
|
+
protocol: "HTTPS",
|
|
9583
|
+
pathname: `/k8s/${ClusterId}/user_config/expire`,
|
|
9584
|
+
method: "POST",
|
|
9585
|
+
authType: "AK",
|
|
9586
|
+
style: "ROA",
|
|
9587
|
+
reqBodyType: "json",
|
|
9588
|
+
bodyType: "none",
|
|
9589
|
+
});
|
|
9590
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateK8sClusterUserConfigExpireResponse({}));
|
|
8500
9591
|
}
|
|
8501
9592
|
async updateTemplate(TemplateId, request) {
|
|
8502
9593
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8526,7 +9617,18 @@ class Client extends openapi_client_1.default {
|
|
|
8526
9617
|
headers: headers,
|
|
8527
9618
|
body: openapi_util_1.default.parseToMap(body),
|
|
8528
9619
|
});
|
|
8529
|
-
|
|
9620
|
+
let params = new $OpenApi.Params({
|
|
9621
|
+
action: "UpdateTemplate",
|
|
9622
|
+
version: "2015-12-15",
|
|
9623
|
+
protocol: "HTTPS",
|
|
9624
|
+
pathname: `/templates/${TemplateId}`,
|
|
9625
|
+
method: "PUT",
|
|
9626
|
+
authType: "AK",
|
|
9627
|
+
style: "ROA",
|
|
9628
|
+
reqBodyType: "json",
|
|
9629
|
+
bodyType: "none",
|
|
9630
|
+
});
|
|
9631
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateTemplateResponse({}));
|
|
8530
9632
|
}
|
|
8531
9633
|
async upgradeCluster(ClusterId, request) {
|
|
8532
9634
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8550,7 +9652,18 @@ class Client extends openapi_client_1.default {
|
|
|
8550
9652
|
headers: headers,
|
|
8551
9653
|
body: openapi_util_1.default.parseToMap(body),
|
|
8552
9654
|
});
|
|
8553
|
-
|
|
9655
|
+
let params = new $OpenApi.Params({
|
|
9656
|
+
action: "UpgradeCluster",
|
|
9657
|
+
version: "2015-12-15",
|
|
9658
|
+
protocol: "HTTPS",
|
|
9659
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade`,
|
|
9660
|
+
method: "POST",
|
|
9661
|
+
authType: "AK",
|
|
9662
|
+
style: "ROA",
|
|
9663
|
+
reqBodyType: "json",
|
|
9664
|
+
bodyType: "none",
|
|
9665
|
+
});
|
|
9666
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpgradeClusterResponse({}));
|
|
8554
9667
|
}
|
|
8555
9668
|
async upgradeClusterAddons(ClusterId, request) {
|
|
8556
9669
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8564,7 +9677,18 @@ class Client extends openapi_client_1.default {
|
|
|
8564
9677
|
headers: headers,
|
|
8565
9678
|
body: tea_util_1.default.toArray(request.body),
|
|
8566
9679
|
});
|
|
8567
|
-
|
|
9680
|
+
let params = new $OpenApi.Params({
|
|
9681
|
+
action: "UpgradeClusterAddons",
|
|
9682
|
+
version: "2015-12-15",
|
|
9683
|
+
protocol: "HTTPS",
|
|
9684
|
+
pathname: `/clusters/${ClusterId}/components/upgrade`,
|
|
9685
|
+
method: "POST",
|
|
9686
|
+
authType: "AK",
|
|
9687
|
+
style: "ROA",
|
|
9688
|
+
reqBodyType: "json",
|
|
9689
|
+
bodyType: "none",
|
|
9690
|
+
});
|
|
9691
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpgradeClusterAddonsResponse({}));
|
|
8568
9692
|
}
|
|
8569
9693
|
}
|
|
8570
9694
|
exports.default = Client;
|