@alicloud/cs20151215 3.0.0 → 3.0.4
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 +148 -2
- package/dist/client.js +1309 -92
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +1383 -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',
|
|
@@ -352,6 +353,7 @@ class CreateClusterRequest extends $tea.Model {
|
|
|
352
353
|
keepInstanceName: 'keep_instance_name',
|
|
353
354
|
keyPair: 'key_pair',
|
|
354
355
|
kubernetesVersion: 'kubernetes_version',
|
|
356
|
+
loadBalancerSpec: 'load_balancer_spec',
|
|
355
357
|
loggingType: 'logging_type',
|
|
356
358
|
loginPassword: 'login_password',
|
|
357
359
|
masterAutoRenew: 'master_auto_renew',
|
|
@@ -427,6 +429,7 @@ class CreateClusterRequest extends $tea.Model {
|
|
|
427
429
|
customSan: 'string',
|
|
428
430
|
deletionProtection: 'boolean',
|
|
429
431
|
disableRollback: 'boolean',
|
|
432
|
+
enableRrsa: 'boolean',
|
|
430
433
|
encryptionProviderKey: 'string',
|
|
431
434
|
endpointPublicAccess: 'boolean',
|
|
432
435
|
formatDisk: 'boolean',
|
|
@@ -437,6 +440,7 @@ class CreateClusterRequest extends $tea.Model {
|
|
|
437
440
|
keepInstanceName: 'boolean',
|
|
438
441
|
keyPair: 'string',
|
|
439
442
|
kubernetesVersion: 'string',
|
|
443
|
+
loadBalancerSpec: 'string',
|
|
440
444
|
loggingType: 'string',
|
|
441
445
|
loginPassword: 'string',
|
|
442
446
|
masterAutoRenew: 'boolean',
|
|
@@ -543,8 +547,11 @@ class CreateClusterNodePoolRequest extends $tea.Model {
|
|
|
543
547
|
return {
|
|
544
548
|
autoScaling: 'auto_scaling',
|
|
545
549
|
count: 'count',
|
|
550
|
+
interconnectConfig: 'interconnect_config',
|
|
551
|
+
interconnectMode: 'interconnect_mode',
|
|
546
552
|
kubernetesConfig: 'kubernetes_config',
|
|
547
553
|
management: 'management',
|
|
554
|
+
maxNodes: 'max_nodes',
|
|
548
555
|
nodepoolInfo: 'nodepool_info',
|
|
549
556
|
scalingGroup: 'scaling_group',
|
|
550
557
|
teeConfig: 'tee_config',
|
|
@@ -554,8 +561,11 @@ class CreateClusterNodePoolRequest extends $tea.Model {
|
|
|
554
561
|
return {
|
|
555
562
|
autoScaling: CreateClusterNodePoolRequestAutoScaling,
|
|
556
563
|
count: 'number',
|
|
564
|
+
interconnectConfig: CreateClusterNodePoolRequestInterconnectConfig,
|
|
565
|
+
interconnectMode: 'string',
|
|
557
566
|
kubernetesConfig: CreateClusterNodePoolRequestKubernetesConfig,
|
|
558
567
|
management: CreateClusterNodePoolRequestManagement,
|
|
568
|
+
maxNodes: 'number',
|
|
559
569
|
nodepoolInfo: CreateClusterNodePoolRequestNodepoolInfo,
|
|
560
570
|
scalingGroup: CreateClusterNodePoolRequestScalingGroup,
|
|
561
571
|
teeConfig: CreateClusterNodePoolRequestTeeConfig,
|
|
@@ -1035,6 +1045,38 @@ class DeleteKubernetesTriggerResponse extends $tea.Model {
|
|
|
1035
1045
|
}
|
|
1036
1046
|
}
|
|
1037
1047
|
exports.DeleteKubernetesTriggerResponse = DeleteKubernetesTriggerResponse;
|
|
1048
|
+
class DeletePolicyInstanceRequest extends $tea.Model {
|
|
1049
|
+
constructor(map) {
|
|
1050
|
+
super(map);
|
|
1051
|
+
}
|
|
1052
|
+
static names() {
|
|
1053
|
+
return {
|
|
1054
|
+
instanceName: 'instance_name',
|
|
1055
|
+
};
|
|
1056
|
+
}
|
|
1057
|
+
static types() {
|
|
1058
|
+
return {
|
|
1059
|
+
instanceName: 'string',
|
|
1060
|
+
};
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
exports.DeletePolicyInstanceRequest = DeletePolicyInstanceRequest;
|
|
1064
|
+
class DeletePolicyInstanceResponseBody extends $tea.Model {
|
|
1065
|
+
constructor(map) {
|
|
1066
|
+
super(map);
|
|
1067
|
+
}
|
|
1068
|
+
static names() {
|
|
1069
|
+
return {
|
|
1070
|
+
instances: 'instances',
|
|
1071
|
+
};
|
|
1072
|
+
}
|
|
1073
|
+
static types() {
|
|
1074
|
+
return {
|
|
1075
|
+
instances: { 'type': 'array', 'itemType': 'string' },
|
|
1076
|
+
};
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
exports.DeletePolicyInstanceResponseBody = DeletePolicyInstanceResponseBody;
|
|
1038
1080
|
class DeletePolicyInstanceResponse extends $tea.Model {
|
|
1039
1081
|
constructor(map) {
|
|
1040
1082
|
super(map);
|
|
@@ -1042,11 +1084,13 @@ class DeletePolicyInstanceResponse extends $tea.Model {
|
|
|
1042
1084
|
static names() {
|
|
1043
1085
|
return {
|
|
1044
1086
|
headers: 'headers',
|
|
1087
|
+
body: 'body',
|
|
1045
1088
|
};
|
|
1046
1089
|
}
|
|
1047
1090
|
static types() {
|
|
1048
1091
|
return {
|
|
1049
1092
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1093
|
+
body: DeletePolicyInstanceResponseBody,
|
|
1050
1094
|
};
|
|
1051
1095
|
}
|
|
1052
1096
|
}
|
|
@@ -1103,6 +1147,22 @@ class DeployPolicyInstanceRequest extends $tea.Model {
|
|
|
1103
1147
|
}
|
|
1104
1148
|
}
|
|
1105
1149
|
exports.DeployPolicyInstanceRequest = DeployPolicyInstanceRequest;
|
|
1150
|
+
class DeployPolicyInstanceResponseBody extends $tea.Model {
|
|
1151
|
+
constructor(map) {
|
|
1152
|
+
super(map);
|
|
1153
|
+
}
|
|
1154
|
+
static names() {
|
|
1155
|
+
return {
|
|
1156
|
+
instances: 'instances',
|
|
1157
|
+
};
|
|
1158
|
+
}
|
|
1159
|
+
static types() {
|
|
1160
|
+
return {
|
|
1161
|
+
instances: { 'type': 'array', 'itemType': 'string' },
|
|
1162
|
+
};
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
exports.DeployPolicyInstanceResponseBody = DeployPolicyInstanceResponseBody;
|
|
1106
1166
|
class DeployPolicyInstanceResponse extends $tea.Model {
|
|
1107
1167
|
constructor(map) {
|
|
1108
1168
|
super(map);
|
|
@@ -1110,11 +1170,13 @@ class DeployPolicyInstanceResponse extends $tea.Model {
|
|
|
1110
1170
|
static names() {
|
|
1111
1171
|
return {
|
|
1112
1172
|
headers: 'headers',
|
|
1173
|
+
body: 'body',
|
|
1113
1174
|
};
|
|
1114
1175
|
}
|
|
1115
1176
|
static types() {
|
|
1116
1177
|
return {
|
|
1117
1178
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1179
|
+
body: DeployPolicyInstanceResponseBody,
|
|
1118
1180
|
};
|
|
1119
1181
|
}
|
|
1120
1182
|
}
|
|
@@ -1528,8 +1590,11 @@ class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
|
|
|
1528
1590
|
static names() {
|
|
1529
1591
|
return {
|
|
1530
1592
|
autoScaling: 'auto_scaling',
|
|
1593
|
+
interconnectConfig: 'interconnect_config',
|
|
1594
|
+
interconnectMode: 'interconnect_mode',
|
|
1531
1595
|
kubernetesConfig: 'kubernetes_config',
|
|
1532
1596
|
management: 'management',
|
|
1597
|
+
maxNodes: 'max_nodes',
|
|
1533
1598
|
nodepoolInfo: 'nodepool_info',
|
|
1534
1599
|
scalingGroup: 'scaling_group',
|
|
1535
1600
|
status: 'status',
|
|
@@ -1539,8 +1604,11 @@ class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
|
|
|
1539
1604
|
static types() {
|
|
1540
1605
|
return {
|
|
1541
1606
|
autoScaling: DescribeClusterNodePoolDetailResponseBodyAutoScaling,
|
|
1607
|
+
interconnectConfig: DescribeClusterNodePoolDetailResponseBodyInterconnectConfig,
|
|
1608
|
+
interconnectMode: 'string',
|
|
1542
1609
|
kubernetesConfig: DescribeClusterNodePoolDetailResponseBodyKubernetesConfig,
|
|
1543
1610
|
management: DescribeClusterNodePoolDetailResponseBodyManagement,
|
|
1611
|
+
maxNodes: 'number',
|
|
1544
1612
|
nodepoolInfo: DescribeClusterNodePoolDetailResponseBodyNodepoolInfo,
|
|
1545
1613
|
scalingGroup: DescribeClusterNodePoolDetailResponseBodyScalingGroup,
|
|
1546
1614
|
status: DescribeClusterNodePoolDetailResponseBodyStatus,
|
|
@@ -2183,6 +2251,7 @@ class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
|
|
|
2183
2251
|
kubernetesVersion: 'KubernetesVersion',
|
|
2184
2252
|
profile: 'Profile',
|
|
2185
2253
|
region: 'Region',
|
|
2254
|
+
runtime: 'runtime',
|
|
2186
2255
|
};
|
|
2187
2256
|
}
|
|
2188
2257
|
static types() {
|
|
@@ -2191,6 +2260,7 @@ class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
|
|
|
2191
2260
|
kubernetesVersion: 'string',
|
|
2192
2261
|
profile: 'string',
|
|
2193
2262
|
region: 'string',
|
|
2263
|
+
runtime: 'string',
|
|
2194
2264
|
};
|
|
2195
2265
|
}
|
|
2196
2266
|
}
|
|
@@ -2974,6 +3044,7 @@ class ModifyClusterRequest extends $tea.Model {
|
|
|
2974
3044
|
apiServerEip: 'api_server_eip',
|
|
2975
3045
|
apiServerEipId: 'api_server_eip_id',
|
|
2976
3046
|
deletionProtection: 'deletion_protection',
|
|
3047
|
+
enableRrsa: 'enable_rrsa',
|
|
2977
3048
|
ingressDomainRebinding: 'ingress_domain_rebinding',
|
|
2978
3049
|
ingressLoadbalancerId: 'ingress_loadbalancer_id',
|
|
2979
3050
|
instanceDeletionProtection: 'instance_deletion_protection',
|
|
@@ -2986,6 +3057,7 @@ class ModifyClusterRequest extends $tea.Model {
|
|
|
2986
3057
|
apiServerEip: 'boolean',
|
|
2987
3058
|
apiServerEipId: 'string',
|
|
2988
3059
|
deletionProtection: 'boolean',
|
|
3060
|
+
enableRrsa: 'boolean',
|
|
2989
3061
|
ingressDomainRebinding: 'string',
|
|
2990
3062
|
ingressLoadbalancerId: 'string',
|
|
2991
3063
|
instanceDeletionProtection: 'boolean',
|
|
@@ -3215,6 +3287,22 @@ class ModifyPolicyInstanceRequest extends $tea.Model {
|
|
|
3215
3287
|
}
|
|
3216
3288
|
}
|
|
3217
3289
|
exports.ModifyPolicyInstanceRequest = ModifyPolicyInstanceRequest;
|
|
3290
|
+
class ModifyPolicyInstanceResponseBody extends $tea.Model {
|
|
3291
|
+
constructor(map) {
|
|
3292
|
+
super(map);
|
|
3293
|
+
}
|
|
3294
|
+
static names() {
|
|
3295
|
+
return {
|
|
3296
|
+
instances: 'instances',
|
|
3297
|
+
};
|
|
3298
|
+
}
|
|
3299
|
+
static types() {
|
|
3300
|
+
return {
|
|
3301
|
+
instances: { 'type': 'array', 'itemType': 'string' },
|
|
3302
|
+
};
|
|
3303
|
+
}
|
|
3304
|
+
}
|
|
3305
|
+
exports.ModifyPolicyInstanceResponseBody = ModifyPolicyInstanceResponseBody;
|
|
3218
3306
|
class ModifyPolicyInstanceResponse extends $tea.Model {
|
|
3219
3307
|
constructor(map) {
|
|
3220
3308
|
super(map);
|
|
@@ -3222,11 +3310,13 @@ class ModifyPolicyInstanceResponse extends $tea.Model {
|
|
|
3222
3310
|
static names() {
|
|
3223
3311
|
return {
|
|
3224
3312
|
headers: 'headers',
|
|
3313
|
+
body: 'body',
|
|
3225
3314
|
};
|
|
3226
3315
|
}
|
|
3227
3316
|
static types() {
|
|
3228
3317
|
return {
|
|
3229
3318
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3319
|
+
body: ModifyPolicyInstanceResponseBody,
|
|
3230
3320
|
};
|
|
3231
3321
|
}
|
|
3232
3322
|
}
|
|
@@ -3741,6 +3831,22 @@ class TagResourcesRequest extends $tea.Model {
|
|
|
3741
3831
|
}
|
|
3742
3832
|
}
|
|
3743
3833
|
exports.TagResourcesRequest = TagResourcesRequest;
|
|
3834
|
+
class TagResourcesResponseBody extends $tea.Model {
|
|
3835
|
+
constructor(map) {
|
|
3836
|
+
super(map);
|
|
3837
|
+
}
|
|
3838
|
+
static names() {
|
|
3839
|
+
return {
|
|
3840
|
+
requestId: 'RequestId',
|
|
3841
|
+
};
|
|
3842
|
+
}
|
|
3843
|
+
static types() {
|
|
3844
|
+
return {
|
|
3845
|
+
requestId: 'string',
|
|
3846
|
+
};
|
|
3847
|
+
}
|
|
3848
|
+
}
|
|
3849
|
+
exports.TagResourcesResponseBody = TagResourcesResponseBody;
|
|
3744
3850
|
class TagResourcesResponse extends $tea.Model {
|
|
3745
3851
|
constructor(map) {
|
|
3746
3852
|
super(map);
|
|
@@ -3748,11 +3854,13 @@ class TagResourcesResponse extends $tea.Model {
|
|
|
3748
3854
|
static names() {
|
|
3749
3855
|
return {
|
|
3750
3856
|
headers: 'headers',
|
|
3857
|
+
body: 'body',
|
|
3751
3858
|
};
|
|
3752
3859
|
}
|
|
3753
3860
|
static types() {
|
|
3754
3861
|
return {
|
|
3755
3862
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3863
|
+
body: TagResourcesResponseBody,
|
|
3756
3864
|
};
|
|
3757
3865
|
}
|
|
3758
3866
|
}
|
|
@@ -3795,6 +3903,7 @@ class UntagResourcesRequest extends $tea.Model {
|
|
|
3795
3903
|
}
|
|
3796
3904
|
static names() {
|
|
3797
3905
|
return {
|
|
3906
|
+
all: 'all',
|
|
3798
3907
|
regionId: 'region_id',
|
|
3799
3908
|
resourceIds: 'resource_ids',
|
|
3800
3909
|
resourceType: 'resource_type',
|
|
@@ -3803,6 +3912,7 @@ class UntagResourcesRequest extends $tea.Model {
|
|
|
3803
3912
|
}
|
|
3804
3913
|
static types() {
|
|
3805
3914
|
return {
|
|
3915
|
+
all: 'boolean',
|
|
3806
3916
|
regionId: 'string',
|
|
3807
3917
|
resourceIds: { 'type': 'array', 'itemType': 'string' },
|
|
3808
3918
|
resourceType: 'string',
|
|
@@ -3811,6 +3921,22 @@ class UntagResourcesRequest extends $tea.Model {
|
|
|
3811
3921
|
}
|
|
3812
3922
|
}
|
|
3813
3923
|
exports.UntagResourcesRequest = UntagResourcesRequest;
|
|
3924
|
+
class UntagResourcesResponseBody extends $tea.Model {
|
|
3925
|
+
constructor(map) {
|
|
3926
|
+
super(map);
|
|
3927
|
+
}
|
|
3928
|
+
static names() {
|
|
3929
|
+
return {
|
|
3930
|
+
requestId: 'RequestId',
|
|
3931
|
+
};
|
|
3932
|
+
}
|
|
3933
|
+
static types() {
|
|
3934
|
+
return {
|
|
3935
|
+
requestId: 'string',
|
|
3936
|
+
};
|
|
3937
|
+
}
|
|
3938
|
+
}
|
|
3939
|
+
exports.UntagResourcesResponseBody = UntagResourcesResponseBody;
|
|
3814
3940
|
class UntagResourcesResponse extends $tea.Model {
|
|
3815
3941
|
constructor(map) {
|
|
3816
3942
|
super(map);
|
|
@@ -3818,11 +3944,13 @@ class UntagResourcesResponse extends $tea.Model {
|
|
|
3818
3944
|
static names() {
|
|
3819
3945
|
return {
|
|
3820
3946
|
headers: 'headers',
|
|
3947
|
+
body: 'body',
|
|
3821
3948
|
};
|
|
3822
3949
|
}
|
|
3823
3950
|
static types() {
|
|
3824
3951
|
return {
|
|
3825
3952
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3953
|
+
body: UntagResourcesResponseBody,
|
|
3826
3954
|
};
|
|
3827
3955
|
}
|
|
3828
3956
|
}
|
|
@@ -4045,6 +4173,30 @@ class CreateClusterNodePoolRequestAutoScaling extends $tea.Model {
|
|
|
4045
4173
|
}
|
|
4046
4174
|
}
|
|
4047
4175
|
exports.CreateClusterNodePoolRequestAutoScaling = CreateClusterNodePoolRequestAutoScaling;
|
|
4176
|
+
class CreateClusterNodePoolRequestInterconnectConfig extends $tea.Model {
|
|
4177
|
+
constructor(map) {
|
|
4178
|
+
super(map);
|
|
4179
|
+
}
|
|
4180
|
+
static names() {
|
|
4181
|
+
return {
|
|
4182
|
+
bandwidth: 'bandwidth',
|
|
4183
|
+
ccnId: 'ccn_id',
|
|
4184
|
+
ccnRegionId: 'ccn_region_id',
|
|
4185
|
+
cenId: 'cen_id',
|
|
4186
|
+
improvedPeriod: 'improved_period',
|
|
4187
|
+
};
|
|
4188
|
+
}
|
|
4189
|
+
static types() {
|
|
4190
|
+
return {
|
|
4191
|
+
bandwidth: 'number',
|
|
4192
|
+
ccnId: 'string',
|
|
4193
|
+
ccnRegionId: 'string',
|
|
4194
|
+
cenId: 'string',
|
|
4195
|
+
improvedPeriod: 'string',
|
|
4196
|
+
};
|
|
4197
|
+
}
|
|
4198
|
+
}
|
|
4199
|
+
exports.CreateClusterNodePoolRequestInterconnectConfig = CreateClusterNodePoolRequestInterconnectConfig;
|
|
4048
4200
|
class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
|
|
4049
4201
|
constructor(map) {
|
|
4050
4202
|
super(map);
|
|
@@ -4054,6 +4206,7 @@ class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
|
|
|
4054
4206
|
cmsEnabled: 'cms_enabled',
|
|
4055
4207
|
cpuPolicy: 'cpu_policy',
|
|
4056
4208
|
labels: 'labels',
|
|
4209
|
+
nodeNameMode: 'node_name_mode',
|
|
4057
4210
|
runtime: 'runtime',
|
|
4058
4211
|
runtimeVersion: 'runtime_version',
|
|
4059
4212
|
taints: 'taints',
|
|
@@ -4065,6 +4218,7 @@ class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
|
|
|
4065
4218
|
cmsEnabled: 'boolean',
|
|
4066
4219
|
cpuPolicy: 'string',
|
|
4067
4220
|
labels: { 'type': 'array', 'itemType': Tag },
|
|
4221
|
+
nodeNameMode: 'string',
|
|
4068
4222
|
runtime: 'string',
|
|
4069
4223
|
runtimeVersion: 'string',
|
|
4070
4224
|
taints: { 'type': 'array', 'itemType': Taint },
|
|
@@ -4123,12 +4277,14 @@ class CreateClusterNodePoolRequestNodepoolInfo extends $tea.Model {
|
|
|
4123
4277
|
return {
|
|
4124
4278
|
name: 'name',
|
|
4125
4279
|
resourceGroupId: 'resource_group_id',
|
|
4280
|
+
type: 'type',
|
|
4126
4281
|
};
|
|
4127
4282
|
}
|
|
4128
4283
|
static types() {
|
|
4129
4284
|
return {
|
|
4130
4285
|
name: 'string',
|
|
4131
4286
|
resourceGroupId: 'string',
|
|
4287
|
+
type: 'string',
|
|
4132
4288
|
};
|
|
4133
4289
|
}
|
|
4134
4290
|
}
|
|
@@ -4179,6 +4335,7 @@ class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
4179
4335
|
autoRenewPeriod: 'auto_renew_period',
|
|
4180
4336
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
4181
4337
|
dataDisks: 'data_disks',
|
|
4338
|
+
deploymentsetId: 'deploymentset_id',
|
|
4182
4339
|
imageId: 'image_id',
|
|
4183
4340
|
imageType: 'image_type',
|
|
4184
4341
|
instanceChargeType: 'instance_charge_type',
|
|
@@ -4214,6 +4371,7 @@ class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
4214
4371
|
autoRenewPeriod: 'number',
|
|
4215
4372
|
compensateWithOnDemand: 'boolean',
|
|
4216
4373
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
4374
|
+
deploymentsetId: 'string',
|
|
4217
4375
|
imageId: 'string',
|
|
4218
4376
|
imageType: 'string',
|
|
4219
4377
|
instanceChargeType: 'string',
|
|
@@ -4349,6 +4507,30 @@ class DescribeClusterNodePoolDetailResponseBodyAutoScaling extends $tea.Model {
|
|
|
4349
4507
|
}
|
|
4350
4508
|
}
|
|
4351
4509
|
exports.DescribeClusterNodePoolDetailResponseBodyAutoScaling = DescribeClusterNodePoolDetailResponseBodyAutoScaling;
|
|
4510
|
+
class DescribeClusterNodePoolDetailResponseBodyInterconnectConfig extends $tea.Model {
|
|
4511
|
+
constructor(map) {
|
|
4512
|
+
super(map);
|
|
4513
|
+
}
|
|
4514
|
+
static names() {
|
|
4515
|
+
return {
|
|
4516
|
+
bandwidth: 'bandwidth',
|
|
4517
|
+
ccnId: 'ccn_id',
|
|
4518
|
+
ccnRegionId: 'ccn_region_id',
|
|
4519
|
+
cenId: 'cen_id',
|
|
4520
|
+
improvedPeriod: 'improved_period',
|
|
4521
|
+
};
|
|
4522
|
+
}
|
|
4523
|
+
static types() {
|
|
4524
|
+
return {
|
|
4525
|
+
bandwidth: 'number',
|
|
4526
|
+
ccnId: 'string',
|
|
4527
|
+
ccnRegionId: 'string',
|
|
4528
|
+
cenId: 'string',
|
|
4529
|
+
improvedPeriod: 'string',
|
|
4530
|
+
};
|
|
4531
|
+
}
|
|
4532
|
+
}
|
|
4533
|
+
exports.DescribeClusterNodePoolDetailResponseBodyInterconnectConfig = DescribeClusterNodePoolDetailResponseBodyInterconnectConfig;
|
|
4352
4534
|
class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $tea.Model {
|
|
4353
4535
|
constructor(map) {
|
|
4354
4536
|
super(map);
|
|
@@ -4358,6 +4540,7 @@ class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $tea.Mod
|
|
|
4358
4540
|
cmsEnabled: 'cms_enabled',
|
|
4359
4541
|
cpuPolicy: 'cpu_policy',
|
|
4360
4542
|
labels: 'labels',
|
|
4543
|
+
nodeNameMode: 'node_name_mode',
|
|
4361
4544
|
runtime: 'runtime',
|
|
4362
4545
|
runtimeVersion: 'runtime_version',
|
|
4363
4546
|
taints: 'taints',
|
|
@@ -4369,6 +4552,7 @@ class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $tea.Mod
|
|
|
4369
4552
|
cmsEnabled: 'boolean',
|
|
4370
4553
|
cpuPolicy: 'string',
|
|
4371
4554
|
labels: { 'type': 'array', 'itemType': Tag },
|
|
4555
|
+
nodeNameMode: 'string',
|
|
4372
4556
|
runtime: 'string',
|
|
4373
4557
|
runtimeVersion: 'string',
|
|
4374
4558
|
taints: { 'type': 'array', 'itemType': Taint },
|
|
@@ -4477,6 +4661,7 @@ class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.Model {
|
|
|
4477
4661
|
autoRenewPeriod: 'auto_renew_period',
|
|
4478
4662
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
4479
4663
|
dataDisks: 'data_disks',
|
|
4664
|
+
deploymentsetId: 'deploymentset_id',
|
|
4480
4665
|
imageId: 'image_id',
|
|
4481
4666
|
instanceChargeType: 'instance_charge_type',
|
|
4482
4667
|
instanceTypes: 'instance_types',
|
|
@@ -4513,6 +4698,7 @@ class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.Model {
|
|
|
4513
4698
|
autoRenewPeriod: 'number',
|
|
4514
4699
|
compensateWithOnDemand: 'boolean',
|
|
4515
4700
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
4701
|
+
deploymentsetId: 'string',
|
|
4516
4702
|
imageId: 'string',
|
|
4517
4703
|
instanceChargeType: 'string',
|
|
4518
4704
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -4619,6 +4805,30 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsAutoScaling extends $tea.Mode
|
|
|
4619
4805
|
}
|
|
4620
4806
|
}
|
|
4621
4807
|
exports.DescribeClusterNodePoolsResponseBodyNodepoolsAutoScaling = DescribeClusterNodePoolsResponseBodyNodepoolsAutoScaling;
|
|
4808
|
+
class DescribeClusterNodePoolsResponseBodyNodepoolsInterconnectConfig extends $tea.Model {
|
|
4809
|
+
constructor(map) {
|
|
4810
|
+
super(map);
|
|
4811
|
+
}
|
|
4812
|
+
static names() {
|
|
4813
|
+
return {
|
|
4814
|
+
bandwidth: 'bandwidth',
|
|
4815
|
+
ccnId: 'ccn_id',
|
|
4816
|
+
ccnRegionId: 'ccn_region_id',
|
|
4817
|
+
cenId: 'cen_id',
|
|
4818
|
+
improvedPeriod: 'improved_period',
|
|
4819
|
+
};
|
|
4820
|
+
}
|
|
4821
|
+
static types() {
|
|
4822
|
+
return {
|
|
4823
|
+
bandwidth: 'number',
|
|
4824
|
+
ccnId: 'string',
|
|
4825
|
+
ccnRegionId: 'string',
|
|
4826
|
+
cenId: 'string',
|
|
4827
|
+
improvedPeriod: 'string',
|
|
4828
|
+
};
|
|
4829
|
+
}
|
|
4830
|
+
}
|
|
4831
|
+
exports.DescribeClusterNodePoolsResponseBodyNodepoolsInterconnectConfig = DescribeClusterNodePoolsResponseBodyNodepoolsInterconnectConfig;
|
|
4622
4832
|
class DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig extends $tea.Model {
|
|
4623
4833
|
constructor(map) {
|
|
4624
4834
|
super(map);
|
|
@@ -4628,6 +4838,7 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig extends $tea
|
|
|
4628
4838
|
cmsEnabled: 'cms_enabled',
|
|
4629
4839
|
cpuPolicy: 'cpu_policy',
|
|
4630
4840
|
labels: 'labels',
|
|
4841
|
+
nodeNameMode: 'node_name_mode',
|
|
4631
4842
|
runtime: 'runtime',
|
|
4632
4843
|
runtimeVersion: 'runtime_version',
|
|
4633
4844
|
taints: 'taints',
|
|
@@ -4639,6 +4850,7 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig extends $tea
|
|
|
4639
4850
|
cmsEnabled: 'boolean',
|
|
4640
4851
|
cpuPolicy: 'string',
|
|
4641
4852
|
labels: { 'type': 'array', 'itemType': Tag },
|
|
4853
|
+
nodeNameMode: 'string',
|
|
4642
4854
|
runtime: 'string',
|
|
4643
4855
|
runtimeVersion: 'string',
|
|
4644
4856
|
taints: { 'type': 'array', 'itemType': Taint },
|
|
@@ -4747,6 +4959,7 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $tea.Mod
|
|
|
4747
4959
|
autoRenewPeriod: 'auto_renew_period',
|
|
4748
4960
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
4749
4961
|
dataDisks: 'data_disks',
|
|
4962
|
+
deploymentsetId: 'deploymentset_id',
|
|
4750
4963
|
imageId: 'image_id',
|
|
4751
4964
|
instanceChargeType: 'instance_charge_type',
|
|
4752
4965
|
instanceTypes: 'instance_types',
|
|
@@ -4783,6 +4996,7 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $tea.Mod
|
|
|
4783
4996
|
autoRenewPeriod: 'number',
|
|
4784
4997
|
compensateWithOnDemand: 'boolean',
|
|
4785
4998
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
4999
|
+
deploymentsetId: 'string',
|
|
4786
5000
|
imageId: 'string',
|
|
4787
5001
|
instanceChargeType: 'string',
|
|
4788
5002
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -4868,8 +5082,11 @@ class DescribeClusterNodePoolsResponseBodyNodepools extends $tea.Model {
|
|
|
4868
5082
|
static names() {
|
|
4869
5083
|
return {
|
|
4870
5084
|
autoScaling: 'auto_scaling',
|
|
5085
|
+
interconnectConfig: 'interconnect_config',
|
|
5086
|
+
interconnectMode: 'interconnect_mode',
|
|
4871
5087
|
kubernetesConfig: 'kubernetes_config',
|
|
4872
5088
|
management: 'management',
|
|
5089
|
+
maxNodes: 'max_nodes',
|
|
4873
5090
|
nodepoolInfo: 'nodepool_info',
|
|
4874
5091
|
scalingGroup: 'scaling_group',
|
|
4875
5092
|
status: 'status',
|
|
@@ -4879,8 +5096,11 @@ class DescribeClusterNodePoolsResponseBodyNodepools extends $tea.Model {
|
|
|
4879
5096
|
static types() {
|
|
4880
5097
|
return {
|
|
4881
5098
|
autoScaling: DescribeClusterNodePoolsResponseBodyNodepoolsAutoScaling,
|
|
5099
|
+
interconnectConfig: DescribeClusterNodePoolsResponseBodyNodepoolsInterconnectConfig,
|
|
5100
|
+
interconnectMode: 'string',
|
|
4882
5101
|
kubernetesConfig: DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig,
|
|
4883
5102
|
management: DescribeClusterNodePoolsResponseBodyNodepoolsManagement,
|
|
5103
|
+
maxNodes: 'number',
|
|
4884
5104
|
nodepoolInfo: DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo,
|
|
4885
5105
|
scalingGroup: DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup,
|
|
4886
5106
|
status: DescribeClusterNodePoolsResponseBodyNodepoolsStatus,
|
|
@@ -6402,7 +6622,18 @@ class Client extends openapi_client_1.default {
|
|
|
6402
6622
|
headers: headers,
|
|
6403
6623
|
body: openapi_util_1.default.parseToMap(body),
|
|
6404
6624
|
});
|
|
6405
|
-
|
|
6625
|
+
let params = new $OpenApi.Params({
|
|
6626
|
+
action: "AttachInstances",
|
|
6627
|
+
version: "2015-12-15",
|
|
6628
|
+
protocol: "HTTPS",
|
|
6629
|
+
pathname: `/clusters/${ClusterId}/attach`,
|
|
6630
|
+
method: "POST",
|
|
6631
|
+
authType: "AK",
|
|
6632
|
+
style: "ROA",
|
|
6633
|
+
reqBodyType: "json",
|
|
6634
|
+
bodyType: "json",
|
|
6635
|
+
});
|
|
6636
|
+
return $tea.cast(await this.callApi(params, req, runtime), new AttachInstancesResponse({}));
|
|
6406
6637
|
}
|
|
6407
6638
|
async cancelClusterUpgrade(ClusterId) {
|
|
6408
6639
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6414,7 +6645,18 @@ class Client extends openapi_client_1.default {
|
|
|
6414
6645
|
let req = new $OpenApi.OpenApiRequest({
|
|
6415
6646
|
headers: headers,
|
|
6416
6647
|
});
|
|
6417
|
-
|
|
6648
|
+
let params = new $OpenApi.Params({
|
|
6649
|
+
action: "CancelClusterUpgrade",
|
|
6650
|
+
version: "2015-12-15",
|
|
6651
|
+
protocol: "HTTPS",
|
|
6652
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/cancel`,
|
|
6653
|
+
method: "POST",
|
|
6654
|
+
authType: "AK",
|
|
6655
|
+
style: "ROA",
|
|
6656
|
+
reqBodyType: "json",
|
|
6657
|
+
bodyType: "none",
|
|
6658
|
+
});
|
|
6659
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CancelClusterUpgradeResponse({}));
|
|
6418
6660
|
}
|
|
6419
6661
|
async cancelComponentUpgrade(clusterId, componentId) {
|
|
6420
6662
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6427,7 +6669,18 @@ class Client extends openapi_client_1.default {
|
|
|
6427
6669
|
let req = new $OpenApi.OpenApiRequest({
|
|
6428
6670
|
headers: headers,
|
|
6429
6671
|
});
|
|
6430
|
-
|
|
6672
|
+
let params = new $OpenApi.Params({
|
|
6673
|
+
action: "CancelComponentUpgrade",
|
|
6674
|
+
version: "2015-12-15",
|
|
6675
|
+
protocol: "HTTPS",
|
|
6676
|
+
pathname: `/clusters/${clusterId}/components/${componentId}/cancel`,
|
|
6677
|
+
method: "POST",
|
|
6678
|
+
authType: "AK",
|
|
6679
|
+
style: "ROA",
|
|
6680
|
+
reqBodyType: "json",
|
|
6681
|
+
bodyType: "none",
|
|
6682
|
+
});
|
|
6683
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CancelComponentUpgradeResponse({}));
|
|
6431
6684
|
}
|
|
6432
6685
|
async cancelWorkflow(workflowName, request) {
|
|
6433
6686
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6445,7 +6698,18 @@ class Client extends openapi_client_1.default {
|
|
|
6445
6698
|
headers: headers,
|
|
6446
6699
|
body: openapi_util_1.default.parseToMap(body),
|
|
6447
6700
|
});
|
|
6448
|
-
|
|
6701
|
+
let params = new $OpenApi.Params({
|
|
6702
|
+
action: "CancelWorkflow",
|
|
6703
|
+
version: "2015-12-15",
|
|
6704
|
+
protocol: "HTTPS",
|
|
6705
|
+
pathname: `/gs/workflow/${workflowName}`,
|
|
6706
|
+
method: "PUT",
|
|
6707
|
+
authType: "AK",
|
|
6708
|
+
style: "ROA",
|
|
6709
|
+
reqBodyType: "json",
|
|
6710
|
+
bodyType: "none",
|
|
6711
|
+
});
|
|
6712
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CancelWorkflowResponse({}));
|
|
6449
6713
|
}
|
|
6450
6714
|
async createAutoscalingConfig(ClusterId, request) {
|
|
6451
6715
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6475,7 +6739,18 @@ class Client extends openapi_client_1.default {
|
|
|
6475
6739
|
headers: headers,
|
|
6476
6740
|
body: openapi_util_1.default.parseToMap(body),
|
|
6477
6741
|
});
|
|
6478
|
-
|
|
6742
|
+
let params = new $OpenApi.Params({
|
|
6743
|
+
action: "CreateAutoscalingConfig",
|
|
6744
|
+
version: "2015-12-15",
|
|
6745
|
+
protocol: "HTTPS",
|
|
6746
|
+
pathname: `/cluster/${ClusterId}/autoscale/config/`,
|
|
6747
|
+
method: "POST",
|
|
6748
|
+
authType: "AK",
|
|
6749
|
+
style: "ROA",
|
|
6750
|
+
reqBodyType: "json",
|
|
6751
|
+
bodyType: "none",
|
|
6752
|
+
});
|
|
6753
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateAutoscalingConfigResponse({}));
|
|
6479
6754
|
}
|
|
6480
6755
|
async createCluster(request) {
|
|
6481
6756
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6530,6 +6805,9 @@ class Client extends openapi_client_1.default {
|
|
|
6530
6805
|
if (!tea_util_1.default.isUnset(request.disableRollback)) {
|
|
6531
6806
|
body["disable_rollback"] = request.disableRollback;
|
|
6532
6807
|
}
|
|
6808
|
+
if (!tea_util_1.default.isUnset(request.enableRrsa)) {
|
|
6809
|
+
body["enable_rrsa"] = request.enableRrsa;
|
|
6810
|
+
}
|
|
6533
6811
|
if (!tea_util_1.default.isUnset(request.encryptionProviderKey)) {
|
|
6534
6812
|
body["encryption_provider_key"] = request.encryptionProviderKey;
|
|
6535
6813
|
}
|
|
@@ -6560,6 +6838,9 @@ class Client extends openapi_client_1.default {
|
|
|
6560
6838
|
if (!tea_util_1.default.isUnset(request.kubernetesVersion)) {
|
|
6561
6839
|
body["kubernetes_version"] = request.kubernetesVersion;
|
|
6562
6840
|
}
|
|
6841
|
+
if (!tea_util_1.default.isUnset(request.loadBalancerSpec)) {
|
|
6842
|
+
body["load_balancer_spec"] = request.loadBalancerSpec;
|
|
6843
|
+
}
|
|
6563
6844
|
if (!tea_util_1.default.isUnset(request.loggingType)) {
|
|
6564
6845
|
body["logging_type"] = request.loggingType;
|
|
6565
6846
|
}
|
|
@@ -6732,7 +7013,18 @@ class Client extends openapi_client_1.default {
|
|
|
6732
7013
|
headers: headers,
|
|
6733
7014
|
body: openapi_util_1.default.parseToMap(body),
|
|
6734
7015
|
});
|
|
6735
|
-
|
|
7016
|
+
let params = new $OpenApi.Params({
|
|
7017
|
+
action: "CreateCluster",
|
|
7018
|
+
version: "2015-12-15",
|
|
7019
|
+
protocol: "HTTPS",
|
|
7020
|
+
pathname: `/clusters`,
|
|
7021
|
+
method: "POST",
|
|
7022
|
+
authType: "AK",
|
|
7023
|
+
style: "ROA",
|
|
7024
|
+
reqBodyType: "json",
|
|
7025
|
+
bodyType: "json",
|
|
7026
|
+
});
|
|
7027
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateClusterResponse({}));
|
|
6736
7028
|
}
|
|
6737
7029
|
async createClusterNodePool(ClusterId, request) {
|
|
6738
7030
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6749,12 +7041,21 @@ class Client extends openapi_client_1.default {
|
|
|
6749
7041
|
if (!tea_util_1.default.isUnset(request.count)) {
|
|
6750
7042
|
body["count"] = request.count;
|
|
6751
7043
|
}
|
|
7044
|
+
if (!tea_util_1.default.isUnset($tea.toMap(request.interconnectConfig))) {
|
|
7045
|
+
body["interconnect_config"] = request.interconnectConfig;
|
|
7046
|
+
}
|
|
7047
|
+
if (!tea_util_1.default.isUnset(request.interconnectMode)) {
|
|
7048
|
+
body["interconnect_mode"] = request.interconnectMode;
|
|
7049
|
+
}
|
|
6752
7050
|
if (!tea_util_1.default.isUnset($tea.toMap(request.kubernetesConfig))) {
|
|
6753
7051
|
body["kubernetes_config"] = request.kubernetesConfig;
|
|
6754
7052
|
}
|
|
6755
7053
|
if (!tea_util_1.default.isUnset($tea.toMap(request.management))) {
|
|
6756
7054
|
body["management"] = request.management;
|
|
6757
7055
|
}
|
|
7056
|
+
if (!tea_util_1.default.isUnset(request.maxNodes)) {
|
|
7057
|
+
body["max_nodes"] = request.maxNodes;
|
|
7058
|
+
}
|
|
6758
7059
|
if (!tea_util_1.default.isUnset($tea.toMap(request.nodepoolInfo))) {
|
|
6759
7060
|
body["nodepool_info"] = request.nodepoolInfo;
|
|
6760
7061
|
}
|
|
@@ -6768,7 +7069,18 @@ class Client extends openapi_client_1.default {
|
|
|
6768
7069
|
headers: headers,
|
|
6769
7070
|
body: openapi_util_1.default.parseToMap(body),
|
|
6770
7071
|
});
|
|
6771
|
-
|
|
7072
|
+
let params = new $OpenApi.Params({
|
|
7073
|
+
action: "CreateClusterNodePool",
|
|
7074
|
+
version: "2015-12-15",
|
|
7075
|
+
protocol: "HTTPS",
|
|
7076
|
+
pathname: `/clusters/${ClusterId}/nodepools`,
|
|
7077
|
+
method: "POST",
|
|
7078
|
+
authType: "AK",
|
|
7079
|
+
style: "ROA",
|
|
7080
|
+
reqBodyType: "json",
|
|
7081
|
+
bodyType: "json",
|
|
7082
|
+
});
|
|
7083
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateClusterNodePoolResponse({}));
|
|
6772
7084
|
}
|
|
6773
7085
|
async createEdgeMachine(request) {
|
|
6774
7086
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6791,7 +7103,18 @@ class Client extends openapi_client_1.default {
|
|
|
6791
7103
|
headers: headers,
|
|
6792
7104
|
body: openapi_util_1.default.parseToMap(body),
|
|
6793
7105
|
});
|
|
6794
|
-
|
|
7106
|
+
let params = new $OpenApi.Params({
|
|
7107
|
+
action: "CreateEdgeMachine",
|
|
7108
|
+
version: "2015-12-15",
|
|
7109
|
+
protocol: "HTTPS",
|
|
7110
|
+
pathname: `/edge_machines`,
|
|
7111
|
+
method: "POST",
|
|
7112
|
+
authType: "AK",
|
|
7113
|
+
style: "ROA",
|
|
7114
|
+
reqBodyType: "json",
|
|
7115
|
+
bodyType: "json",
|
|
7116
|
+
});
|
|
7117
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateEdgeMachineResponse({}));
|
|
6795
7118
|
}
|
|
6796
7119
|
async createKubernetesTrigger(request) {
|
|
6797
7120
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6817,7 +7140,18 @@ class Client extends openapi_client_1.default {
|
|
|
6817
7140
|
headers: headers,
|
|
6818
7141
|
body: openapi_util_1.default.parseToMap(body),
|
|
6819
7142
|
});
|
|
6820
|
-
|
|
7143
|
+
let params = new $OpenApi.Params({
|
|
7144
|
+
action: "CreateKubernetesTrigger",
|
|
7145
|
+
version: "2015-12-15",
|
|
7146
|
+
protocol: "HTTPS",
|
|
7147
|
+
pathname: `/triggers`,
|
|
7148
|
+
method: "POST",
|
|
7149
|
+
authType: "AK",
|
|
7150
|
+
style: "ROA",
|
|
7151
|
+
reqBodyType: "json",
|
|
7152
|
+
bodyType: "json",
|
|
7153
|
+
});
|
|
7154
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateKubernetesTriggerResponse({}));
|
|
6821
7155
|
}
|
|
6822
7156
|
async createTemplate(request) {
|
|
6823
7157
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6846,7 +7180,18 @@ class Client extends openapi_client_1.default {
|
|
|
6846
7180
|
headers: headers,
|
|
6847
7181
|
body: openapi_util_1.default.parseToMap(body),
|
|
6848
7182
|
});
|
|
6849
|
-
|
|
7183
|
+
let params = new $OpenApi.Params({
|
|
7184
|
+
action: "CreateTemplate",
|
|
7185
|
+
version: "2015-12-15",
|
|
7186
|
+
protocol: "HTTPS",
|
|
7187
|
+
pathname: `/templates`,
|
|
7188
|
+
method: "POST",
|
|
7189
|
+
authType: "AK",
|
|
7190
|
+
style: "ROA",
|
|
7191
|
+
reqBodyType: "json",
|
|
7192
|
+
bodyType: "json",
|
|
7193
|
+
});
|
|
7194
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateTemplateResponse({}));
|
|
6850
7195
|
}
|
|
6851
7196
|
async createTrigger(clusterId, request) {
|
|
6852
7197
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6873,7 +7218,18 @@ class Client extends openapi_client_1.default {
|
|
|
6873
7218
|
headers: headers,
|
|
6874
7219
|
body: openapi_util_1.default.parseToMap(body),
|
|
6875
7220
|
});
|
|
6876
|
-
|
|
7221
|
+
let params = new $OpenApi.Params({
|
|
7222
|
+
action: "CreateTrigger",
|
|
7223
|
+
version: "2015-12-15",
|
|
7224
|
+
protocol: "HTTPS",
|
|
7225
|
+
pathname: `/clusters/${clusterId}/triggers`,
|
|
7226
|
+
method: "POST",
|
|
7227
|
+
authType: "AK",
|
|
7228
|
+
style: "ROA",
|
|
7229
|
+
reqBodyType: "json",
|
|
7230
|
+
bodyType: "json",
|
|
7231
|
+
});
|
|
7232
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
|
|
6877
7233
|
}
|
|
6878
7234
|
async deleteCluster(ClusterId, request) {
|
|
6879
7235
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6902,7 +7258,18 @@ class Client extends openapi_client_1.default {
|
|
|
6902
7258
|
headers: headers,
|
|
6903
7259
|
query: openapi_util_1.default.query(query),
|
|
6904
7260
|
});
|
|
6905
|
-
|
|
7261
|
+
let params = new $OpenApi.Params({
|
|
7262
|
+
action: "DeleteCluster",
|
|
7263
|
+
version: "2015-12-15",
|
|
7264
|
+
protocol: "HTTPS",
|
|
7265
|
+
pathname: `/clusters/${ClusterId}`,
|
|
7266
|
+
method: "DELETE",
|
|
7267
|
+
authType: "AK",
|
|
7268
|
+
style: "ROA",
|
|
7269
|
+
reqBodyType: "json",
|
|
7270
|
+
bodyType: "none",
|
|
7271
|
+
});
|
|
7272
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteClusterResponse({}));
|
|
6906
7273
|
}
|
|
6907
7274
|
async deleteClusterNodepool(ClusterId, NodepoolId) {
|
|
6908
7275
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6915,7 +7282,18 @@ class Client extends openapi_client_1.default {
|
|
|
6915
7282
|
let req = new $OpenApi.OpenApiRequest({
|
|
6916
7283
|
headers: headers,
|
|
6917
7284
|
});
|
|
6918
|
-
|
|
7285
|
+
let params = new $OpenApi.Params({
|
|
7286
|
+
action: "DeleteClusterNodepool",
|
|
7287
|
+
version: "2015-12-15",
|
|
7288
|
+
protocol: "HTTPS",
|
|
7289
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
7290
|
+
method: "DELETE",
|
|
7291
|
+
authType: "AK",
|
|
7292
|
+
style: "ROA",
|
|
7293
|
+
reqBodyType: "json",
|
|
7294
|
+
bodyType: "json",
|
|
7295
|
+
});
|
|
7296
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteClusterNodepoolResponse({}));
|
|
6919
7297
|
}
|
|
6920
7298
|
async deleteClusterNodes(ClusterId, request) {
|
|
6921
7299
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6939,7 +7317,18 @@ class Client extends openapi_client_1.default {
|
|
|
6939
7317
|
headers: headers,
|
|
6940
7318
|
body: openapi_util_1.default.parseToMap(body),
|
|
6941
7319
|
});
|
|
6942
|
-
|
|
7320
|
+
let params = new $OpenApi.Params({
|
|
7321
|
+
action: "DeleteClusterNodes",
|
|
7322
|
+
version: "2015-12-15",
|
|
7323
|
+
protocol: "HTTPS",
|
|
7324
|
+
pathname: `/clusters/${ClusterId}/nodes`,
|
|
7325
|
+
method: "POST",
|
|
7326
|
+
authType: "AK",
|
|
7327
|
+
style: "ROA",
|
|
7328
|
+
reqBodyType: "json",
|
|
7329
|
+
bodyType: "json",
|
|
7330
|
+
});
|
|
7331
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteClusterNodesResponse({}));
|
|
6943
7332
|
}
|
|
6944
7333
|
async deleteEdgeMachine(edgeMachineid, request) {
|
|
6945
7334
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6957,7 +7346,18 @@ class Client extends openapi_client_1.default {
|
|
|
6957
7346
|
headers: headers,
|
|
6958
7347
|
query: openapi_util_1.default.query(query),
|
|
6959
7348
|
});
|
|
6960
|
-
|
|
7349
|
+
let params = new $OpenApi.Params({
|
|
7350
|
+
action: "DeleteEdgeMachine",
|
|
7351
|
+
version: "2015-12-15",
|
|
7352
|
+
protocol: "HTTPS",
|
|
7353
|
+
pathname: `/edge_machines/[edge_machineid]`,
|
|
7354
|
+
method: "DELETE",
|
|
7355
|
+
authType: "AK",
|
|
7356
|
+
style: "ROA",
|
|
7357
|
+
reqBodyType: "json",
|
|
7358
|
+
bodyType: "none",
|
|
7359
|
+
});
|
|
7360
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteEdgeMachineResponse({}));
|
|
6961
7361
|
}
|
|
6962
7362
|
async deleteKubernetesTrigger(Id) {
|
|
6963
7363
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6969,21 +7369,48 @@ class Client extends openapi_client_1.default {
|
|
|
6969
7369
|
let req = new $OpenApi.OpenApiRequest({
|
|
6970
7370
|
headers: headers,
|
|
6971
7371
|
});
|
|
6972
|
-
|
|
7372
|
+
let params = new $OpenApi.Params({
|
|
7373
|
+
action: "DeleteKubernetesTrigger",
|
|
7374
|
+
version: "2015-12-15",
|
|
7375
|
+
protocol: "HTTPS",
|
|
7376
|
+
pathname: `/triggers/revoke/${Id}`,
|
|
7377
|
+
method: "DELETE",
|
|
7378
|
+
authType: "AK",
|
|
7379
|
+
style: "ROA",
|
|
7380
|
+
reqBodyType: "json",
|
|
7381
|
+
bodyType: "none",
|
|
7382
|
+
});
|
|
7383
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteKubernetesTriggerResponse({}));
|
|
6973
7384
|
}
|
|
6974
|
-
async deletePolicyInstance(clusterId, policyName,
|
|
7385
|
+
async deletePolicyInstance(clusterId, policyName, request) {
|
|
6975
7386
|
let runtime = new $Util.RuntimeOptions({});
|
|
6976
7387
|
let headers = {};
|
|
6977
|
-
return await this.deletePolicyInstanceWithOptions(clusterId, policyName,
|
|
7388
|
+
return await this.deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
|
|
6978
7389
|
}
|
|
6979
|
-
async deletePolicyInstanceWithOptions(clusterId, policyName,
|
|
7390
|
+
async deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime) {
|
|
7391
|
+
tea_util_1.default.validateModel(request);
|
|
6980
7392
|
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
6981
7393
|
policyName = openapi_util_1.default.getEncodeParam(policyName);
|
|
6982
|
-
|
|
7394
|
+
let query = {};
|
|
7395
|
+
if (!tea_util_1.default.isUnset(request.instanceName)) {
|
|
7396
|
+
query["instance_name"] = request.instanceName;
|
|
7397
|
+
}
|
|
6983
7398
|
let req = new $OpenApi.OpenApiRequest({
|
|
6984
7399
|
headers: headers,
|
|
7400
|
+
query: openapi_util_1.default.query(query),
|
|
6985
7401
|
});
|
|
6986
|
-
|
|
7402
|
+
let params = new $OpenApi.Params({
|
|
7403
|
+
action: "DeletePolicyInstance",
|
|
7404
|
+
version: "2015-12-15",
|
|
7405
|
+
protocol: "HTTPS",
|
|
7406
|
+
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
7407
|
+
method: "DELETE",
|
|
7408
|
+
authType: "AK",
|
|
7409
|
+
style: "ROA",
|
|
7410
|
+
reqBodyType: "json",
|
|
7411
|
+
bodyType: "json",
|
|
7412
|
+
});
|
|
7413
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeletePolicyInstanceResponse({}));
|
|
6987
7414
|
}
|
|
6988
7415
|
async deleteTemplate(TemplateId) {
|
|
6989
7416
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -6995,7 +7422,18 @@ class Client extends openapi_client_1.default {
|
|
|
6995
7422
|
let req = new $OpenApi.OpenApiRequest({
|
|
6996
7423
|
headers: headers,
|
|
6997
7424
|
});
|
|
6998
|
-
|
|
7425
|
+
let params = new $OpenApi.Params({
|
|
7426
|
+
action: "DeleteTemplate",
|
|
7427
|
+
version: "2015-12-15",
|
|
7428
|
+
protocol: "HTTPS",
|
|
7429
|
+
pathname: `/templates/${TemplateId}`,
|
|
7430
|
+
method: "DELETE",
|
|
7431
|
+
authType: "AK",
|
|
7432
|
+
style: "ROA",
|
|
7433
|
+
reqBodyType: "json",
|
|
7434
|
+
bodyType: "none",
|
|
7435
|
+
});
|
|
7436
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteTemplateResponse({}));
|
|
6999
7437
|
}
|
|
7000
7438
|
async deleteTrigger(clusterId, Id) {
|
|
7001
7439
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7008,7 +7446,18 @@ class Client extends openapi_client_1.default {
|
|
|
7008
7446
|
let req = new $OpenApi.OpenApiRequest({
|
|
7009
7447
|
headers: headers,
|
|
7010
7448
|
});
|
|
7011
|
-
|
|
7449
|
+
let params = new $OpenApi.Params({
|
|
7450
|
+
action: "DeleteTrigger",
|
|
7451
|
+
version: "2015-12-15",
|
|
7452
|
+
protocol: "HTTPS",
|
|
7453
|
+
pathname: `/clusters/[cluster_id]/triggers/[Id]`,
|
|
7454
|
+
method: "DELETE",
|
|
7455
|
+
authType: "AK",
|
|
7456
|
+
style: "ROA",
|
|
7457
|
+
reqBodyType: "json",
|
|
7458
|
+
bodyType: "none",
|
|
7459
|
+
});
|
|
7460
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteTriggerResponse({}));
|
|
7012
7461
|
}
|
|
7013
7462
|
async deployPolicyInstance(clusterId, policyName, request) {
|
|
7014
7463
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7033,7 +7482,18 @@ class Client extends openapi_client_1.default {
|
|
|
7033
7482
|
headers: headers,
|
|
7034
7483
|
body: openapi_util_1.default.parseToMap(body),
|
|
7035
7484
|
});
|
|
7036
|
-
|
|
7485
|
+
let params = new $OpenApi.Params({
|
|
7486
|
+
action: "DeployPolicyInstance",
|
|
7487
|
+
version: "2015-12-15",
|
|
7488
|
+
protocol: "HTTPS",
|
|
7489
|
+
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
7490
|
+
method: "POST",
|
|
7491
|
+
authType: "AK",
|
|
7492
|
+
style: "ROA",
|
|
7493
|
+
reqBodyType: "json",
|
|
7494
|
+
bodyType: "json",
|
|
7495
|
+
});
|
|
7496
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeployPolicyInstanceResponse({}));
|
|
7037
7497
|
}
|
|
7038
7498
|
async descirbeWorkflow(workflowName) {
|
|
7039
7499
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7045,7 +7505,18 @@ class Client extends openapi_client_1.default {
|
|
|
7045
7505
|
let req = new $OpenApi.OpenApiRequest({
|
|
7046
7506
|
headers: headers,
|
|
7047
7507
|
});
|
|
7048
|
-
|
|
7508
|
+
let params = new $OpenApi.Params({
|
|
7509
|
+
action: "DescirbeWorkflow",
|
|
7510
|
+
version: "2015-12-15",
|
|
7511
|
+
protocol: "HTTPS",
|
|
7512
|
+
pathname: `/gs/workflow/${workflowName}`,
|
|
7513
|
+
method: "GET",
|
|
7514
|
+
authType: "AK",
|
|
7515
|
+
style: "ROA",
|
|
7516
|
+
reqBodyType: "json",
|
|
7517
|
+
bodyType: "json",
|
|
7518
|
+
});
|
|
7519
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescirbeWorkflowResponse({}));
|
|
7049
7520
|
}
|
|
7050
7521
|
async describeAddons(request) {
|
|
7051
7522
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7065,7 +7536,18 @@ class Client extends openapi_client_1.default {
|
|
|
7065
7536
|
headers: headers,
|
|
7066
7537
|
query: openapi_util_1.default.query(query),
|
|
7067
7538
|
});
|
|
7068
|
-
|
|
7539
|
+
let params = new $OpenApi.Params({
|
|
7540
|
+
action: "DescribeAddons",
|
|
7541
|
+
version: "2015-12-15",
|
|
7542
|
+
protocol: "HTTPS",
|
|
7543
|
+
pathname: `/clusters/components/metadata`,
|
|
7544
|
+
method: "GET",
|
|
7545
|
+
authType: "AK",
|
|
7546
|
+
style: "ROA",
|
|
7547
|
+
reqBodyType: "json",
|
|
7548
|
+
bodyType: "json",
|
|
7549
|
+
});
|
|
7550
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeAddonsResponse({}));
|
|
7069
7551
|
}
|
|
7070
7552
|
async describeClusterAddonMetadata(clusterId, componentId, version) {
|
|
7071
7553
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7079,7 +7561,18 @@ class Client extends openapi_client_1.default {
|
|
|
7079
7561
|
let req = new $OpenApi.OpenApiRequest({
|
|
7080
7562
|
headers: headers,
|
|
7081
7563
|
});
|
|
7082
|
-
|
|
7564
|
+
let params = new $OpenApi.Params({
|
|
7565
|
+
action: "DescribeClusterAddonMetadata",
|
|
7566
|
+
version: "2015-12-15",
|
|
7567
|
+
protocol: "HTTPS",
|
|
7568
|
+
pathname: `/clusters/${clusterId}/components/${componentId}/metadata`,
|
|
7569
|
+
method: "GET",
|
|
7570
|
+
authType: "AK",
|
|
7571
|
+
style: "ROA",
|
|
7572
|
+
reqBodyType: "json",
|
|
7573
|
+
bodyType: "json",
|
|
7574
|
+
});
|
|
7575
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonMetadataResponse({}));
|
|
7083
7576
|
}
|
|
7084
7577
|
async describeClusterAddonUpgradeStatus(ClusterId, ComponentId) {
|
|
7085
7578
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7092,7 +7585,18 @@ class Client extends openapi_client_1.default {
|
|
|
7092
7585
|
let req = new $OpenApi.OpenApiRequest({
|
|
7093
7586
|
headers: headers,
|
|
7094
7587
|
});
|
|
7095
|
-
|
|
7588
|
+
let params = new $OpenApi.Params({
|
|
7589
|
+
action: "DescribeClusterAddonUpgradeStatus",
|
|
7590
|
+
version: "2015-12-15",
|
|
7591
|
+
protocol: "HTTPS",
|
|
7592
|
+
pathname: `/clusters/${ClusterId}/components/${ComponentId}/upgradestatus`,
|
|
7593
|
+
method: "GET",
|
|
7594
|
+
authType: "AK",
|
|
7595
|
+
style: "ROA",
|
|
7596
|
+
reqBodyType: "json",
|
|
7597
|
+
bodyType: "json",
|
|
7598
|
+
});
|
|
7599
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonUpgradeStatusResponse({}));
|
|
7096
7600
|
}
|
|
7097
7601
|
async describeClusterAddonsUpgradeStatus(ClusterId, request) {
|
|
7098
7602
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7115,7 +7619,18 @@ class Client extends openapi_client_1.default {
|
|
|
7115
7619
|
headers: headers,
|
|
7116
7620
|
query: openapi_util_1.default.query(query),
|
|
7117
7621
|
});
|
|
7118
|
-
|
|
7622
|
+
let params = new $OpenApi.Params({
|
|
7623
|
+
action: "DescribeClusterAddonsUpgradeStatus",
|
|
7624
|
+
version: "2015-12-15",
|
|
7625
|
+
protocol: "HTTPS",
|
|
7626
|
+
pathname: `/clusters/${ClusterId}/components/upgradestatus`,
|
|
7627
|
+
method: "GET",
|
|
7628
|
+
authType: "AK",
|
|
7629
|
+
style: "ROA",
|
|
7630
|
+
reqBodyType: "json",
|
|
7631
|
+
bodyType: "json",
|
|
7632
|
+
});
|
|
7633
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonsUpgradeStatusResponse({}));
|
|
7119
7634
|
}
|
|
7120
7635
|
async describeClusterAddonsVersion(ClusterId) {
|
|
7121
7636
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7127,7 +7642,18 @@ class Client extends openapi_client_1.default {
|
|
|
7127
7642
|
let req = new $OpenApi.OpenApiRequest({
|
|
7128
7643
|
headers: headers,
|
|
7129
7644
|
});
|
|
7130
|
-
|
|
7645
|
+
let params = new $OpenApi.Params({
|
|
7646
|
+
action: "DescribeClusterAddonsVersion",
|
|
7647
|
+
version: "2015-12-15",
|
|
7648
|
+
protocol: "HTTPS",
|
|
7649
|
+
pathname: `/clusters/${ClusterId}/components/version`,
|
|
7650
|
+
method: "GET",
|
|
7651
|
+
authType: "AK",
|
|
7652
|
+
style: "ROA",
|
|
7653
|
+
reqBodyType: "json",
|
|
7654
|
+
bodyType: "json",
|
|
7655
|
+
});
|
|
7656
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonsVersionResponse({}));
|
|
7131
7657
|
}
|
|
7132
7658
|
async describeClusterAttachScripts(ClusterId, request) {
|
|
7133
7659
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7160,7 +7686,18 @@ class Client extends openapi_client_1.default {
|
|
|
7160
7686
|
headers: headers,
|
|
7161
7687
|
body: openapi_util_1.default.parseToMap(body),
|
|
7162
7688
|
});
|
|
7163
|
-
|
|
7689
|
+
let params = new $OpenApi.Params({
|
|
7690
|
+
action: "DescribeClusterAttachScripts",
|
|
7691
|
+
version: "2015-12-15",
|
|
7692
|
+
protocol: "HTTPS",
|
|
7693
|
+
pathname: `/clusters/${ClusterId}/attachscript`,
|
|
7694
|
+
method: "POST",
|
|
7695
|
+
authType: "AK",
|
|
7696
|
+
style: "ROA",
|
|
7697
|
+
reqBodyType: "json",
|
|
7698
|
+
bodyType: "string",
|
|
7699
|
+
});
|
|
7700
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAttachScriptsResponse({}));
|
|
7164
7701
|
}
|
|
7165
7702
|
async describeClusterDetail(ClusterId) {
|
|
7166
7703
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7172,7 +7709,18 @@ class Client extends openapi_client_1.default {
|
|
|
7172
7709
|
let req = new $OpenApi.OpenApiRequest({
|
|
7173
7710
|
headers: headers,
|
|
7174
7711
|
});
|
|
7175
|
-
|
|
7712
|
+
let params = new $OpenApi.Params({
|
|
7713
|
+
action: "DescribeClusterDetail",
|
|
7714
|
+
version: "2015-12-15",
|
|
7715
|
+
protocol: "HTTPS",
|
|
7716
|
+
pathname: `/clusters/${ClusterId}`,
|
|
7717
|
+
method: "GET",
|
|
7718
|
+
authType: "AK",
|
|
7719
|
+
style: "ROA",
|
|
7720
|
+
reqBodyType: "json",
|
|
7721
|
+
bodyType: "json",
|
|
7722
|
+
});
|
|
7723
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterDetailResponse({}));
|
|
7176
7724
|
}
|
|
7177
7725
|
async describeClusterLogs(ClusterId) {
|
|
7178
7726
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7184,7 +7732,18 @@ class Client extends openapi_client_1.default {
|
|
|
7184
7732
|
let req = new $OpenApi.OpenApiRequest({
|
|
7185
7733
|
headers: headers,
|
|
7186
7734
|
});
|
|
7187
|
-
|
|
7735
|
+
let params = new $OpenApi.Params({
|
|
7736
|
+
action: "DescribeClusterLogs",
|
|
7737
|
+
version: "2015-12-15",
|
|
7738
|
+
protocol: "HTTPS",
|
|
7739
|
+
pathname: `/clusters/${ClusterId}/logs`,
|
|
7740
|
+
method: "GET",
|
|
7741
|
+
authType: "AK",
|
|
7742
|
+
style: "ROA",
|
|
7743
|
+
reqBodyType: "json",
|
|
7744
|
+
bodyType: "array",
|
|
7745
|
+
});
|
|
7746
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterLogsResponse({}));
|
|
7188
7747
|
}
|
|
7189
7748
|
async describeClusterNamespaces(ClusterId) {
|
|
7190
7749
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7196,7 +7755,18 @@ class Client extends openapi_client_1.default {
|
|
|
7196
7755
|
let req = new $OpenApi.OpenApiRequest({
|
|
7197
7756
|
headers: headers,
|
|
7198
7757
|
});
|
|
7199
|
-
|
|
7758
|
+
let params = new $OpenApi.Params({
|
|
7759
|
+
action: "DescribeClusterNamespaces",
|
|
7760
|
+
version: "2015-12-15",
|
|
7761
|
+
protocol: "HTTPS",
|
|
7762
|
+
pathname: `/k8s/${ClusterId}/namespaces`,
|
|
7763
|
+
method: "GET",
|
|
7764
|
+
authType: "AK",
|
|
7765
|
+
style: "ROA",
|
|
7766
|
+
reqBodyType: "json",
|
|
7767
|
+
bodyType: "array",
|
|
7768
|
+
});
|
|
7769
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNamespacesResponse({}));
|
|
7200
7770
|
}
|
|
7201
7771
|
async describeClusterNodePoolDetail(ClusterId, NodepoolId) {
|
|
7202
7772
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7209,7 +7779,18 @@ class Client extends openapi_client_1.default {
|
|
|
7209
7779
|
let req = new $OpenApi.OpenApiRequest({
|
|
7210
7780
|
headers: headers,
|
|
7211
7781
|
});
|
|
7212
|
-
|
|
7782
|
+
let params = new $OpenApi.Params({
|
|
7783
|
+
action: "DescribeClusterNodePoolDetail",
|
|
7784
|
+
version: "2015-12-15",
|
|
7785
|
+
protocol: "HTTPS",
|
|
7786
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
7787
|
+
method: "GET",
|
|
7788
|
+
authType: "AK",
|
|
7789
|
+
style: "ROA",
|
|
7790
|
+
reqBodyType: "json",
|
|
7791
|
+
bodyType: "json",
|
|
7792
|
+
});
|
|
7793
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNodePoolDetailResponse({}));
|
|
7213
7794
|
}
|
|
7214
7795
|
async describeClusterNodePools(ClusterId) {
|
|
7215
7796
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7221,7 +7802,18 @@ class Client extends openapi_client_1.default {
|
|
|
7221
7802
|
let req = new $OpenApi.OpenApiRequest({
|
|
7222
7803
|
headers: headers,
|
|
7223
7804
|
});
|
|
7224
|
-
|
|
7805
|
+
let params = new $OpenApi.Params({
|
|
7806
|
+
action: "DescribeClusterNodePools",
|
|
7807
|
+
version: "2015-12-15",
|
|
7808
|
+
protocol: "HTTPS",
|
|
7809
|
+
pathname: `/clusters/${ClusterId}/nodepools`,
|
|
7810
|
+
method: "GET",
|
|
7811
|
+
authType: "AK",
|
|
7812
|
+
style: "ROA",
|
|
7813
|
+
reqBodyType: "json",
|
|
7814
|
+
bodyType: "json",
|
|
7815
|
+
});
|
|
7816
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNodePoolsResponse({}));
|
|
7225
7817
|
}
|
|
7226
7818
|
async describeClusterNodes(ClusterId, request) {
|
|
7227
7819
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7251,7 +7843,18 @@ class Client extends openapi_client_1.default {
|
|
|
7251
7843
|
headers: headers,
|
|
7252
7844
|
query: openapi_util_1.default.query(query),
|
|
7253
7845
|
});
|
|
7254
|
-
|
|
7846
|
+
let params = new $OpenApi.Params({
|
|
7847
|
+
action: "DescribeClusterNodes",
|
|
7848
|
+
version: "2015-12-15",
|
|
7849
|
+
protocol: "HTTPS",
|
|
7850
|
+
pathname: `/clusters/${ClusterId}/nodes`,
|
|
7851
|
+
method: "GET",
|
|
7852
|
+
authType: "AK",
|
|
7853
|
+
style: "ROA",
|
|
7854
|
+
reqBodyType: "json",
|
|
7855
|
+
bodyType: "json",
|
|
7856
|
+
});
|
|
7857
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNodesResponse({}));
|
|
7255
7858
|
}
|
|
7256
7859
|
async describeClusterResources(ClusterId) {
|
|
7257
7860
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7263,7 +7866,18 @@ class Client extends openapi_client_1.default {
|
|
|
7263
7866
|
let req = new $OpenApi.OpenApiRequest({
|
|
7264
7867
|
headers: headers,
|
|
7265
7868
|
});
|
|
7266
|
-
|
|
7869
|
+
let params = new $OpenApi.Params({
|
|
7870
|
+
action: "DescribeClusterResources",
|
|
7871
|
+
version: "2015-12-15",
|
|
7872
|
+
protocol: "HTTPS",
|
|
7873
|
+
pathname: `/clusters/${ClusterId}/resources`,
|
|
7874
|
+
method: "GET",
|
|
7875
|
+
authType: "AK",
|
|
7876
|
+
style: "ROA",
|
|
7877
|
+
reqBodyType: "json",
|
|
7878
|
+
bodyType: "array",
|
|
7879
|
+
});
|
|
7880
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterResourcesResponse({}));
|
|
7267
7881
|
}
|
|
7268
7882
|
async describeClusterUserKubeconfig(ClusterId, request) {
|
|
7269
7883
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7284,7 +7898,18 @@ class Client extends openapi_client_1.default {
|
|
|
7284
7898
|
headers: headers,
|
|
7285
7899
|
query: openapi_util_1.default.query(query),
|
|
7286
7900
|
});
|
|
7287
|
-
|
|
7901
|
+
let params = new $OpenApi.Params({
|
|
7902
|
+
action: "DescribeClusterUserKubeconfig",
|
|
7903
|
+
version: "2015-12-15",
|
|
7904
|
+
protocol: "HTTPS",
|
|
7905
|
+
pathname: `/k8s/${ClusterId}/user_config`,
|
|
7906
|
+
method: "GET",
|
|
7907
|
+
authType: "AK",
|
|
7908
|
+
style: "ROA",
|
|
7909
|
+
reqBodyType: "json",
|
|
7910
|
+
bodyType: "json",
|
|
7911
|
+
});
|
|
7912
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterUserKubeconfigResponse({}));
|
|
7288
7913
|
}
|
|
7289
7914
|
async describeClusterV2UserKubeconfig(ClusterId, request) {
|
|
7290
7915
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7302,7 +7927,18 @@ class Client extends openapi_client_1.default {
|
|
|
7302
7927
|
headers: headers,
|
|
7303
7928
|
query: openapi_util_1.default.query(query),
|
|
7304
7929
|
});
|
|
7305
|
-
|
|
7930
|
+
let params = new $OpenApi.Params({
|
|
7931
|
+
action: "DescribeClusterV2UserKubeconfig",
|
|
7932
|
+
version: "2015-12-15",
|
|
7933
|
+
protocol: "HTTPS",
|
|
7934
|
+
pathname: `/api/v2/k8s/${ClusterId}/user_config`,
|
|
7935
|
+
method: "GET",
|
|
7936
|
+
authType: "AK",
|
|
7937
|
+
style: "ROA",
|
|
7938
|
+
reqBodyType: "json",
|
|
7939
|
+
bodyType: "json",
|
|
7940
|
+
});
|
|
7941
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterV2UserKubeconfigResponse({}));
|
|
7306
7942
|
}
|
|
7307
7943
|
async describeClusters(request) {
|
|
7308
7944
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7322,7 +7958,18 @@ class Client extends openapi_client_1.default {
|
|
|
7322
7958
|
headers: headers,
|
|
7323
7959
|
query: openapi_util_1.default.query(query),
|
|
7324
7960
|
});
|
|
7325
|
-
|
|
7961
|
+
let params = new $OpenApi.Params({
|
|
7962
|
+
action: "DescribeClusters",
|
|
7963
|
+
version: "2015-12-15",
|
|
7964
|
+
protocol: "HTTPS",
|
|
7965
|
+
pathname: `/clusters`,
|
|
7966
|
+
method: "GET",
|
|
7967
|
+
authType: "AK",
|
|
7968
|
+
style: "ROA",
|
|
7969
|
+
reqBodyType: "json",
|
|
7970
|
+
bodyType: "array",
|
|
7971
|
+
});
|
|
7972
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClustersResponse({}));
|
|
7326
7973
|
}
|
|
7327
7974
|
async describeClustersV1(request) {
|
|
7328
7975
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7354,7 +8001,18 @@ class Client extends openapi_client_1.default {
|
|
|
7354
8001
|
headers: headers,
|
|
7355
8002
|
query: openapi_util_1.default.query(query),
|
|
7356
8003
|
});
|
|
7357
|
-
|
|
8004
|
+
let params = new $OpenApi.Params({
|
|
8005
|
+
action: "DescribeClustersV1",
|
|
8006
|
+
version: "2015-12-15",
|
|
8007
|
+
protocol: "HTTPS",
|
|
8008
|
+
pathname: `/api/v1/clusters`,
|
|
8009
|
+
method: "GET",
|
|
8010
|
+
authType: "AK",
|
|
8011
|
+
style: "ROA",
|
|
8012
|
+
reqBodyType: "json",
|
|
8013
|
+
bodyType: "json",
|
|
8014
|
+
});
|
|
8015
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClustersV1Response({}));
|
|
7358
8016
|
}
|
|
7359
8017
|
async describeEdgeMachineActiveProcess(edgeMachineid) {
|
|
7360
8018
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7366,7 +8024,18 @@ class Client extends openapi_client_1.default {
|
|
|
7366
8024
|
let req = new $OpenApi.OpenApiRequest({
|
|
7367
8025
|
headers: headers,
|
|
7368
8026
|
});
|
|
7369
|
-
|
|
8027
|
+
let params = new $OpenApi.Params({
|
|
8028
|
+
action: "DescribeEdgeMachineActiveProcess",
|
|
8029
|
+
version: "2015-12-15",
|
|
8030
|
+
protocol: "HTTPS",
|
|
8031
|
+
pathname: `/edge_machines/[edge_machineid]/activeprocess`,
|
|
8032
|
+
method: "GET",
|
|
8033
|
+
authType: "AK",
|
|
8034
|
+
style: "ROA",
|
|
8035
|
+
reqBodyType: "json",
|
|
8036
|
+
bodyType: "json",
|
|
8037
|
+
});
|
|
8038
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachineActiveProcessResponse({}));
|
|
7370
8039
|
}
|
|
7371
8040
|
async describeEdgeMachineModels() {
|
|
7372
8041
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7377,7 +8046,18 @@ class Client extends openapi_client_1.default {
|
|
|
7377
8046
|
let req = new $OpenApi.OpenApiRequest({
|
|
7378
8047
|
headers: headers,
|
|
7379
8048
|
});
|
|
7380
|
-
|
|
8049
|
+
let params = new $OpenApi.Params({
|
|
8050
|
+
action: "DescribeEdgeMachineModels",
|
|
8051
|
+
version: "2015-12-15",
|
|
8052
|
+
protocol: "HTTPS",
|
|
8053
|
+
pathname: `/edge_machines/models`,
|
|
8054
|
+
method: "GET",
|
|
8055
|
+
authType: "AK",
|
|
8056
|
+
style: "ROA",
|
|
8057
|
+
reqBodyType: "json",
|
|
8058
|
+
bodyType: "json",
|
|
8059
|
+
});
|
|
8060
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachineModelsResponse({}));
|
|
7381
8061
|
}
|
|
7382
8062
|
async describeEdgeMachineTunnelConfigDetail(edgeMachineid) {
|
|
7383
8063
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7389,7 +8069,18 @@ class Client extends openapi_client_1.default {
|
|
|
7389
8069
|
let req = new $OpenApi.OpenApiRequest({
|
|
7390
8070
|
headers: headers,
|
|
7391
8071
|
});
|
|
7392
|
-
|
|
8072
|
+
let params = new $OpenApi.Params({
|
|
8073
|
+
action: "DescribeEdgeMachineTunnelConfigDetail",
|
|
8074
|
+
version: "2015-12-15",
|
|
8075
|
+
protocol: "HTTPS",
|
|
8076
|
+
pathname: `/edge_machines/[edge_machineid]/tunnelconfig`,
|
|
8077
|
+
method: "POST",
|
|
8078
|
+
authType: "AK",
|
|
8079
|
+
style: "ROA",
|
|
8080
|
+
reqBodyType: "json",
|
|
8081
|
+
bodyType: "json",
|
|
8082
|
+
});
|
|
8083
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachineTunnelConfigDetailResponse({}));
|
|
7393
8084
|
}
|
|
7394
8085
|
async describeEdgeMachines(request) {
|
|
7395
8086
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7421,7 +8112,18 @@ class Client extends openapi_client_1.default {
|
|
|
7421
8112
|
headers: headers,
|
|
7422
8113
|
query: openapi_util_1.default.query(query),
|
|
7423
8114
|
});
|
|
7424
|
-
|
|
8115
|
+
let params = new $OpenApi.Params({
|
|
8116
|
+
action: "DescribeEdgeMachines",
|
|
8117
|
+
version: "2015-12-15",
|
|
8118
|
+
protocol: "HTTPS",
|
|
8119
|
+
pathname: `/edge_machines`,
|
|
8120
|
+
method: "GET",
|
|
8121
|
+
authType: "AK",
|
|
8122
|
+
style: "ROA",
|
|
8123
|
+
reqBodyType: "json",
|
|
8124
|
+
bodyType: "json",
|
|
8125
|
+
});
|
|
8126
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachinesResponse({}));
|
|
7425
8127
|
}
|
|
7426
8128
|
async describeEvents(request) {
|
|
7427
8129
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7447,7 +8149,18 @@ class Client extends openapi_client_1.default {
|
|
|
7447
8149
|
headers: headers,
|
|
7448
8150
|
query: openapi_util_1.default.query(query),
|
|
7449
8151
|
});
|
|
7450
|
-
|
|
8152
|
+
let params = new $OpenApi.Params({
|
|
8153
|
+
action: "DescribeEvents",
|
|
8154
|
+
version: "2015-12-15",
|
|
8155
|
+
protocol: "HTTPS",
|
|
8156
|
+
pathname: `/events`,
|
|
8157
|
+
method: "GET",
|
|
8158
|
+
authType: "AK",
|
|
8159
|
+
style: "ROA",
|
|
8160
|
+
reqBodyType: "json",
|
|
8161
|
+
bodyType: "json",
|
|
8162
|
+
});
|
|
8163
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEventsResponse({}));
|
|
7451
8164
|
}
|
|
7452
8165
|
async describeExternalAgent(ClusterId, request) {
|
|
7453
8166
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7465,7 +8178,18 @@ class Client extends openapi_client_1.default {
|
|
|
7465
8178
|
headers: headers,
|
|
7466
8179
|
query: openapi_util_1.default.query(query),
|
|
7467
8180
|
});
|
|
7468
|
-
|
|
8181
|
+
let params = new $OpenApi.Params({
|
|
8182
|
+
action: "DescribeExternalAgent",
|
|
8183
|
+
version: "2015-12-15",
|
|
8184
|
+
protocol: "HTTPS",
|
|
8185
|
+
pathname: `/k8s/${ClusterId}/external/agent/deployment`,
|
|
8186
|
+
method: "GET",
|
|
8187
|
+
authType: "AK",
|
|
8188
|
+
style: "ROA",
|
|
8189
|
+
reqBodyType: "json",
|
|
8190
|
+
bodyType: "json",
|
|
8191
|
+
});
|
|
8192
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeExternalAgentResponse({}));
|
|
7469
8193
|
}
|
|
7470
8194
|
async describeKubernetesVersionMetadata(request) {
|
|
7471
8195
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7487,11 +8211,25 @@ class Client extends openapi_client_1.default {
|
|
|
7487
8211
|
if (!tea_util_1.default.isUnset(request.region)) {
|
|
7488
8212
|
query["Region"] = request.region;
|
|
7489
8213
|
}
|
|
8214
|
+
if (!tea_util_1.default.isUnset(request.runtime)) {
|
|
8215
|
+
query["runtime"] = request.runtime;
|
|
8216
|
+
}
|
|
7490
8217
|
let req = new $OpenApi.OpenApiRequest({
|
|
7491
8218
|
headers: headers,
|
|
7492
8219
|
query: openapi_util_1.default.query(query),
|
|
7493
8220
|
});
|
|
7494
|
-
|
|
8221
|
+
let params = new $OpenApi.Params({
|
|
8222
|
+
action: "DescribeKubernetesVersionMetadata",
|
|
8223
|
+
version: "2015-12-15",
|
|
8224
|
+
protocol: "HTTPS",
|
|
8225
|
+
pathname: `/api/v1/metadata/versions`,
|
|
8226
|
+
method: "GET",
|
|
8227
|
+
authType: "AK",
|
|
8228
|
+
style: "ROA",
|
|
8229
|
+
reqBodyType: "json",
|
|
8230
|
+
bodyType: "array",
|
|
8231
|
+
});
|
|
8232
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeKubernetesVersionMetadataResponse({}));
|
|
7495
8233
|
}
|
|
7496
8234
|
async describePolicies() {
|
|
7497
8235
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7502,7 +8240,18 @@ class Client extends openapi_client_1.default {
|
|
|
7502
8240
|
let req = new $OpenApi.OpenApiRequest({
|
|
7503
8241
|
headers: headers,
|
|
7504
8242
|
});
|
|
7505
|
-
|
|
8243
|
+
let params = new $OpenApi.Params({
|
|
8244
|
+
action: "DescribePolicies",
|
|
8245
|
+
version: "2015-12-15",
|
|
8246
|
+
protocol: "HTTPS",
|
|
8247
|
+
pathname: `/policies`,
|
|
8248
|
+
method: "GET",
|
|
8249
|
+
authType: "AK",
|
|
8250
|
+
style: "ROA",
|
|
8251
|
+
reqBodyType: "json",
|
|
8252
|
+
bodyType: "json",
|
|
8253
|
+
});
|
|
8254
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribePoliciesResponse({}));
|
|
7506
8255
|
}
|
|
7507
8256
|
async describePolicyDetails(policyName) {
|
|
7508
8257
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7514,7 +8263,18 @@ class Client extends openapi_client_1.default {
|
|
|
7514
8263
|
let req = new $OpenApi.OpenApiRequest({
|
|
7515
8264
|
headers: headers,
|
|
7516
8265
|
});
|
|
7517
|
-
|
|
8266
|
+
let params = new $OpenApi.Params({
|
|
8267
|
+
action: "DescribePolicyDetails",
|
|
8268
|
+
version: "2015-12-15",
|
|
8269
|
+
protocol: "HTTPS",
|
|
8270
|
+
pathname: `/policies/${policyName}`,
|
|
8271
|
+
method: "GET",
|
|
8272
|
+
authType: "AK",
|
|
8273
|
+
style: "ROA",
|
|
8274
|
+
reqBodyType: "json",
|
|
8275
|
+
bodyType: "json",
|
|
8276
|
+
});
|
|
8277
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyDetailsResponse({}));
|
|
7518
8278
|
}
|
|
7519
8279
|
async describePolicyGovernanceInCluster(clusterId) {
|
|
7520
8280
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7526,7 +8286,18 @@ class Client extends openapi_client_1.default {
|
|
|
7526
8286
|
let req = new $OpenApi.OpenApiRequest({
|
|
7527
8287
|
headers: headers,
|
|
7528
8288
|
});
|
|
7529
|
-
|
|
8289
|
+
let params = new $OpenApi.Params({
|
|
8290
|
+
action: "DescribePolicyGovernanceInCluster",
|
|
8291
|
+
version: "2015-12-15",
|
|
8292
|
+
protocol: "HTTPS",
|
|
8293
|
+
pathname: `/clusters/${clusterId}/policygovernance`,
|
|
8294
|
+
method: "GET",
|
|
8295
|
+
authType: "AK",
|
|
8296
|
+
style: "ROA",
|
|
8297
|
+
reqBodyType: "json",
|
|
8298
|
+
bodyType: "json",
|
|
8299
|
+
});
|
|
8300
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyGovernanceInClusterResponse({}));
|
|
7530
8301
|
}
|
|
7531
8302
|
async describePolicyInstances(clusterId, request) {
|
|
7532
8303
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7547,7 +8318,18 @@ class Client extends openapi_client_1.default {
|
|
|
7547
8318
|
headers: headers,
|
|
7548
8319
|
query: openapi_util_1.default.query(query),
|
|
7549
8320
|
});
|
|
7550
|
-
|
|
8321
|
+
let params = new $OpenApi.Params({
|
|
8322
|
+
action: "DescribePolicyInstances",
|
|
8323
|
+
version: "2015-12-15",
|
|
8324
|
+
protocol: "HTTPS",
|
|
8325
|
+
pathname: `/clusters/${clusterId}/policies`,
|
|
8326
|
+
method: "GET",
|
|
8327
|
+
authType: "AK",
|
|
8328
|
+
style: "ROA",
|
|
8329
|
+
reqBodyType: "json",
|
|
8330
|
+
bodyType: "array",
|
|
8331
|
+
});
|
|
8332
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyInstancesResponse({}));
|
|
7551
8333
|
}
|
|
7552
8334
|
async describePolicyInstancesStatus(clusterId) {
|
|
7553
8335
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7559,7 +8341,18 @@ class Client extends openapi_client_1.default {
|
|
|
7559
8341
|
let req = new $OpenApi.OpenApiRequest({
|
|
7560
8342
|
headers: headers,
|
|
7561
8343
|
});
|
|
7562
|
-
|
|
8344
|
+
let params = new $OpenApi.Params({
|
|
8345
|
+
action: "DescribePolicyInstancesStatus",
|
|
8346
|
+
version: "2015-12-15",
|
|
8347
|
+
protocol: "HTTPS",
|
|
8348
|
+
pathname: `/clusters/${clusterId}/policies/status`,
|
|
8349
|
+
method: "GET",
|
|
8350
|
+
authType: "AK",
|
|
8351
|
+
style: "ROA",
|
|
8352
|
+
reqBodyType: "json",
|
|
8353
|
+
bodyType: "json",
|
|
8354
|
+
});
|
|
8355
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyInstancesStatusResponse({}));
|
|
7563
8356
|
}
|
|
7564
8357
|
async describeTaskInfo(taskId) {
|
|
7565
8358
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7571,7 +8364,18 @@ class Client extends openapi_client_1.default {
|
|
|
7571
8364
|
let req = new $OpenApi.OpenApiRequest({
|
|
7572
8365
|
headers: headers,
|
|
7573
8366
|
});
|
|
7574
|
-
|
|
8367
|
+
let params = new $OpenApi.Params({
|
|
8368
|
+
action: "DescribeTaskInfo",
|
|
8369
|
+
version: "2015-12-15",
|
|
8370
|
+
protocol: "HTTPS",
|
|
8371
|
+
pathname: `/tasks/${taskId}`,
|
|
8372
|
+
method: "GET",
|
|
8373
|
+
authType: "AK",
|
|
8374
|
+
style: "ROA",
|
|
8375
|
+
reqBodyType: "json",
|
|
8376
|
+
bodyType: "json",
|
|
8377
|
+
});
|
|
8378
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTaskInfoResponse({}));
|
|
7575
8379
|
}
|
|
7576
8380
|
async describeTemplateAttribute(TemplateId, request) {
|
|
7577
8381
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7589,7 +8393,18 @@ class Client extends openapi_client_1.default {
|
|
|
7589
8393
|
headers: headers,
|
|
7590
8394
|
query: openapi_util_1.default.query(query),
|
|
7591
8395
|
});
|
|
7592
|
-
|
|
8396
|
+
let params = new $OpenApi.Params({
|
|
8397
|
+
action: "DescribeTemplateAttribute",
|
|
8398
|
+
version: "2015-12-15",
|
|
8399
|
+
protocol: "HTTPS",
|
|
8400
|
+
pathname: `/templates/${TemplateId}`,
|
|
8401
|
+
method: "GET",
|
|
8402
|
+
authType: "AK",
|
|
8403
|
+
style: "ROA",
|
|
8404
|
+
reqBodyType: "json",
|
|
8405
|
+
bodyType: "array",
|
|
8406
|
+
});
|
|
8407
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTemplateAttributeResponse({}));
|
|
7593
8408
|
}
|
|
7594
8409
|
async describeTemplates(request) {
|
|
7595
8410
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7612,7 +8427,18 @@ class Client extends openapi_client_1.default {
|
|
|
7612
8427
|
headers: headers,
|
|
7613
8428
|
query: openapi_util_1.default.query(query),
|
|
7614
8429
|
});
|
|
7615
|
-
|
|
8430
|
+
let params = new $OpenApi.Params({
|
|
8431
|
+
action: "DescribeTemplates",
|
|
8432
|
+
version: "2015-12-15",
|
|
8433
|
+
protocol: "HTTPS",
|
|
8434
|
+
pathname: `/templates`,
|
|
8435
|
+
method: "GET",
|
|
8436
|
+
authType: "AK",
|
|
8437
|
+
style: "ROA",
|
|
8438
|
+
reqBodyType: "json",
|
|
8439
|
+
bodyType: "json",
|
|
8440
|
+
});
|
|
8441
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTemplatesResponse({}));
|
|
7616
8442
|
}
|
|
7617
8443
|
async describeTrigger(clusterId, request) {
|
|
7618
8444
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7639,7 +8465,18 @@ class Client extends openapi_client_1.default {
|
|
|
7639
8465
|
headers: headers,
|
|
7640
8466
|
query: openapi_util_1.default.query(query),
|
|
7641
8467
|
});
|
|
7642
|
-
|
|
8468
|
+
let params = new $OpenApi.Params({
|
|
8469
|
+
action: "DescribeTrigger",
|
|
8470
|
+
version: "2015-12-15",
|
|
8471
|
+
protocol: "HTTPS",
|
|
8472
|
+
pathname: `/clusters/[cluster_id]/triggers`,
|
|
8473
|
+
method: "GET",
|
|
8474
|
+
authType: "AK",
|
|
8475
|
+
style: "ROA",
|
|
8476
|
+
reqBodyType: "json",
|
|
8477
|
+
bodyType: "array",
|
|
8478
|
+
});
|
|
8479
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTriggerResponse({}));
|
|
7643
8480
|
}
|
|
7644
8481
|
async describeUserPermission(uid) {
|
|
7645
8482
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7651,7 +8488,18 @@ class Client extends openapi_client_1.default {
|
|
|
7651
8488
|
let req = new $OpenApi.OpenApiRequest({
|
|
7652
8489
|
headers: headers,
|
|
7653
8490
|
});
|
|
7654
|
-
|
|
8491
|
+
let params = new $OpenApi.Params({
|
|
8492
|
+
action: "DescribeUserPermission",
|
|
8493
|
+
version: "2015-12-15",
|
|
8494
|
+
protocol: "HTTPS",
|
|
8495
|
+
pathname: `/permissions/users/${uid}`,
|
|
8496
|
+
method: "GET",
|
|
8497
|
+
authType: "AK",
|
|
8498
|
+
style: "ROA",
|
|
8499
|
+
reqBodyType: "json",
|
|
8500
|
+
bodyType: "array",
|
|
8501
|
+
});
|
|
8502
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeUserPermissionResponse({}));
|
|
7655
8503
|
}
|
|
7656
8504
|
async describeUserQuota() {
|
|
7657
8505
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7662,7 +8510,18 @@ class Client extends openapi_client_1.default {
|
|
|
7662
8510
|
let req = new $OpenApi.OpenApiRequest({
|
|
7663
8511
|
headers: headers,
|
|
7664
8512
|
});
|
|
7665
|
-
|
|
8513
|
+
let params = new $OpenApi.Params({
|
|
8514
|
+
action: "DescribeUserQuota",
|
|
8515
|
+
version: "2015-12-15",
|
|
8516
|
+
protocol: "HTTPS",
|
|
8517
|
+
pathname: `/quota`,
|
|
8518
|
+
method: "GET",
|
|
8519
|
+
authType: "AK",
|
|
8520
|
+
style: "ROA",
|
|
8521
|
+
reqBodyType: "json",
|
|
8522
|
+
bodyType: "json",
|
|
8523
|
+
});
|
|
8524
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeUserQuotaResponse({}));
|
|
7666
8525
|
}
|
|
7667
8526
|
async describeWorkflows() {
|
|
7668
8527
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7673,7 +8532,18 @@ class Client extends openapi_client_1.default {
|
|
|
7673
8532
|
let req = new $OpenApi.OpenApiRequest({
|
|
7674
8533
|
headers: headers,
|
|
7675
8534
|
});
|
|
7676
|
-
|
|
8535
|
+
let params = new $OpenApi.Params({
|
|
8536
|
+
action: "DescribeWorkflows",
|
|
8537
|
+
version: "2015-12-15",
|
|
8538
|
+
protocol: "HTTPS",
|
|
8539
|
+
pathname: `/gs/workflows`,
|
|
8540
|
+
method: "GET",
|
|
8541
|
+
authType: "AK",
|
|
8542
|
+
style: "ROA",
|
|
8543
|
+
reqBodyType: "json",
|
|
8544
|
+
bodyType: "json",
|
|
8545
|
+
});
|
|
8546
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeWorkflowsResponse({}));
|
|
7677
8547
|
}
|
|
7678
8548
|
async edgeClusterAddEdgeMachine(clusterid, edgeMachineid, request) {
|
|
7679
8549
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7698,7 +8568,18 @@ class Client extends openapi_client_1.default {
|
|
|
7698
8568
|
headers: headers,
|
|
7699
8569
|
body: openapi_util_1.default.parseToMap(body),
|
|
7700
8570
|
});
|
|
7701
|
-
|
|
8571
|
+
let params = new $OpenApi.Params({
|
|
8572
|
+
action: "EdgeClusterAddEdgeMachine",
|
|
8573
|
+
version: "2015-12-15",
|
|
8574
|
+
protocol: "HTTPS",
|
|
8575
|
+
pathname: `/clusters/[clusterid]/attachedgemachine/[edge_machineid]`,
|
|
8576
|
+
method: "POST",
|
|
8577
|
+
authType: "AK",
|
|
8578
|
+
style: "ROA",
|
|
8579
|
+
reqBodyType: "json",
|
|
8580
|
+
bodyType: "json",
|
|
8581
|
+
});
|
|
8582
|
+
return $tea.cast(await this.callApi(params, req, runtime), new EdgeClusterAddEdgeMachineResponse({}));
|
|
7702
8583
|
}
|
|
7703
8584
|
async getKubernetesTrigger(ClusterId, request) {
|
|
7704
8585
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7725,7 +8606,18 @@ class Client extends openapi_client_1.default {
|
|
|
7725
8606
|
headers: headers,
|
|
7726
8607
|
query: openapi_util_1.default.query(query),
|
|
7727
8608
|
});
|
|
7728
|
-
|
|
8609
|
+
let params = new $OpenApi.Params({
|
|
8610
|
+
action: "GetKubernetesTrigger",
|
|
8611
|
+
version: "2015-12-15",
|
|
8612
|
+
protocol: "HTTPS",
|
|
8613
|
+
pathname: `/triggers/${ClusterId}`,
|
|
8614
|
+
method: "GET",
|
|
8615
|
+
authType: "AK",
|
|
8616
|
+
style: "ROA",
|
|
8617
|
+
reqBodyType: "json",
|
|
8618
|
+
bodyType: "array",
|
|
8619
|
+
});
|
|
8620
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetKubernetesTriggerResponse({}));
|
|
7729
8621
|
}
|
|
7730
8622
|
async getUpgradeStatus(ClusterId) {
|
|
7731
8623
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7737,7 +8629,18 @@ class Client extends openapi_client_1.default {
|
|
|
7737
8629
|
let req = new $OpenApi.OpenApiRequest({
|
|
7738
8630
|
headers: headers,
|
|
7739
8631
|
});
|
|
7740
|
-
|
|
8632
|
+
let params = new $OpenApi.Params({
|
|
8633
|
+
action: "GetUpgradeStatus",
|
|
8634
|
+
version: "2015-12-15",
|
|
8635
|
+
protocol: "HTTPS",
|
|
8636
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/status`,
|
|
8637
|
+
method: "GET",
|
|
8638
|
+
authType: "AK",
|
|
8639
|
+
style: "ROA",
|
|
8640
|
+
reqBodyType: "json",
|
|
8641
|
+
bodyType: "json",
|
|
8642
|
+
});
|
|
8643
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetUpgradeStatusResponse({}));
|
|
7741
8644
|
}
|
|
7742
8645
|
async grantPermissions(uid, request) {
|
|
7743
8646
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7751,7 +8654,18 @@ class Client extends openapi_client_1.default {
|
|
|
7751
8654
|
headers: headers,
|
|
7752
8655
|
body: tea_util_1.default.toArray(request.body),
|
|
7753
8656
|
});
|
|
7754
|
-
|
|
8657
|
+
let params = new $OpenApi.Params({
|
|
8658
|
+
action: "GrantPermissions",
|
|
8659
|
+
version: "2015-12-15",
|
|
8660
|
+
protocol: "HTTPS",
|
|
8661
|
+
pathname: `/permissions/users/${uid}`,
|
|
8662
|
+
method: "POST",
|
|
8663
|
+
authType: "AK",
|
|
8664
|
+
style: "ROA",
|
|
8665
|
+
reqBodyType: "json",
|
|
8666
|
+
bodyType: "none",
|
|
8667
|
+
});
|
|
8668
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GrantPermissionsResponse({}));
|
|
7755
8669
|
}
|
|
7756
8670
|
async installClusterAddons(ClusterId, request) {
|
|
7757
8671
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7765,7 +8679,18 @@ class Client extends openapi_client_1.default {
|
|
|
7765
8679
|
headers: headers,
|
|
7766
8680
|
body: tea_util_1.default.toArray(request.body),
|
|
7767
8681
|
});
|
|
7768
|
-
|
|
8682
|
+
let params = new $OpenApi.Params({
|
|
8683
|
+
action: "InstallClusterAddons",
|
|
8684
|
+
version: "2015-12-15",
|
|
8685
|
+
protocol: "HTTPS",
|
|
8686
|
+
pathname: `/clusters/${ClusterId}/components/install`,
|
|
8687
|
+
method: "POST",
|
|
8688
|
+
authType: "AK",
|
|
8689
|
+
style: "ROA",
|
|
8690
|
+
reqBodyType: "json",
|
|
8691
|
+
bodyType: "none",
|
|
8692
|
+
});
|
|
8693
|
+
return $tea.cast(await this.callApi(params, req, runtime), new InstallClusterAddonsResponse({}));
|
|
7769
8694
|
}
|
|
7770
8695
|
async listTagResources(request) {
|
|
7771
8696
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7802,7 +8727,18 @@ class Client extends openapi_client_1.default {
|
|
|
7802
8727
|
headers: headers,
|
|
7803
8728
|
query: openapi_util_1.default.query(query),
|
|
7804
8729
|
});
|
|
7805
|
-
|
|
8730
|
+
let params = new $OpenApi.Params({
|
|
8731
|
+
action: "ListTagResources",
|
|
8732
|
+
version: "2015-12-15",
|
|
8733
|
+
protocol: "HTTPS",
|
|
8734
|
+
pathname: `/tags`,
|
|
8735
|
+
method: "GET",
|
|
8736
|
+
authType: "AK",
|
|
8737
|
+
style: "ROA",
|
|
8738
|
+
reqBodyType: "json",
|
|
8739
|
+
bodyType: "json",
|
|
8740
|
+
});
|
|
8741
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
|
|
7806
8742
|
}
|
|
7807
8743
|
async migrateCluster(clusterId) {
|
|
7808
8744
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7814,7 +8750,18 @@ class Client extends openapi_client_1.default {
|
|
|
7814
8750
|
let req = new $OpenApi.OpenApiRequest({
|
|
7815
8751
|
headers: headers,
|
|
7816
8752
|
});
|
|
7817
|
-
|
|
8753
|
+
let params = new $OpenApi.Params({
|
|
8754
|
+
action: "MigrateCluster",
|
|
8755
|
+
version: "2015-12-15",
|
|
8756
|
+
protocol: "HTTPS",
|
|
8757
|
+
pathname: `/clusters/${clusterId}/migrate`,
|
|
8758
|
+
method: "POST",
|
|
8759
|
+
authType: "AK",
|
|
8760
|
+
style: "ROA",
|
|
8761
|
+
reqBodyType: "json",
|
|
8762
|
+
bodyType: "none",
|
|
8763
|
+
});
|
|
8764
|
+
return $tea.cast(await this.callApi(params, req, runtime), new MigrateClusterResponse({}));
|
|
7818
8765
|
}
|
|
7819
8766
|
async modifyCluster(ClusterId, request) {
|
|
7820
8767
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7834,6 +8781,9 @@ class Client extends openapi_client_1.default {
|
|
|
7834
8781
|
if (!tea_util_1.default.isUnset(request.deletionProtection)) {
|
|
7835
8782
|
body["deletion_protection"] = request.deletionProtection;
|
|
7836
8783
|
}
|
|
8784
|
+
if (!tea_util_1.default.isUnset(request.enableRrsa)) {
|
|
8785
|
+
body["enable_rrsa"] = request.enableRrsa;
|
|
8786
|
+
}
|
|
7837
8787
|
if (!tea_util_1.default.isUnset(request.ingressDomainRebinding)) {
|
|
7838
8788
|
body["ingress_domain_rebinding"] = request.ingressDomainRebinding;
|
|
7839
8789
|
}
|
|
@@ -7853,7 +8803,18 @@ class Client extends openapi_client_1.default {
|
|
|
7853
8803
|
headers: headers,
|
|
7854
8804
|
body: openapi_util_1.default.parseToMap(body),
|
|
7855
8805
|
});
|
|
7856
|
-
|
|
8806
|
+
let params = new $OpenApi.Params({
|
|
8807
|
+
action: "ModifyCluster",
|
|
8808
|
+
version: "2015-12-15",
|
|
8809
|
+
protocol: "HTTPS",
|
|
8810
|
+
pathname: `/api/v2/clusters/${ClusterId}`,
|
|
8811
|
+
method: "PUT",
|
|
8812
|
+
authType: "AK",
|
|
8813
|
+
style: "ROA",
|
|
8814
|
+
reqBodyType: "json",
|
|
8815
|
+
bodyType: "json",
|
|
8816
|
+
});
|
|
8817
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterResponse({}));
|
|
7857
8818
|
}
|
|
7858
8819
|
async modifyClusterAddon(clusterId, componentId, request) {
|
|
7859
8820
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7872,7 +8833,18 @@ class Client extends openapi_client_1.default {
|
|
|
7872
8833
|
headers: headers,
|
|
7873
8834
|
body: openapi_util_1.default.parseToMap(body),
|
|
7874
8835
|
});
|
|
7875
|
-
|
|
8836
|
+
let params = new $OpenApi.Params({
|
|
8837
|
+
action: "ModifyClusterAddon",
|
|
8838
|
+
version: "2015-12-15",
|
|
8839
|
+
protocol: "HTTPS",
|
|
8840
|
+
pathname: `/clusters/${clusterId}/components/${componentId}/config`,
|
|
8841
|
+
method: "POST",
|
|
8842
|
+
authType: "AK",
|
|
8843
|
+
style: "ROA",
|
|
8844
|
+
reqBodyType: "json",
|
|
8845
|
+
bodyType: "none",
|
|
8846
|
+
});
|
|
8847
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterAddonResponse({}));
|
|
7876
8848
|
}
|
|
7877
8849
|
async modifyClusterConfiguration(ClusterId, request) {
|
|
7878
8850
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7890,7 +8862,18 @@ class Client extends openapi_client_1.default {
|
|
|
7890
8862
|
headers: headers,
|
|
7891
8863
|
body: openapi_util_1.default.parseToMap(body),
|
|
7892
8864
|
});
|
|
7893
|
-
|
|
8865
|
+
let params = new $OpenApi.Params({
|
|
8866
|
+
action: "ModifyClusterConfiguration",
|
|
8867
|
+
version: "2015-12-15",
|
|
8868
|
+
protocol: "HTTPS",
|
|
8869
|
+
pathname: `/clusters/${ClusterId}/configuration`,
|
|
8870
|
+
method: "PUT",
|
|
8871
|
+
authType: "AK",
|
|
8872
|
+
style: "ROA",
|
|
8873
|
+
reqBodyType: "json",
|
|
8874
|
+
bodyType: "none",
|
|
8875
|
+
});
|
|
8876
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterConfigurationResponse({}));
|
|
7894
8877
|
}
|
|
7895
8878
|
async modifyClusterNodePool(ClusterId, NodepoolId, request) {
|
|
7896
8879
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7927,7 +8910,18 @@ class Client extends openapi_client_1.default {
|
|
|
7927
8910
|
headers: headers,
|
|
7928
8911
|
body: openapi_util_1.default.parseToMap(body),
|
|
7929
8912
|
});
|
|
7930
|
-
|
|
8913
|
+
let params = new $OpenApi.Params({
|
|
8914
|
+
action: "ModifyClusterNodePool",
|
|
8915
|
+
version: "2015-12-15",
|
|
8916
|
+
protocol: "HTTPS",
|
|
8917
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
8918
|
+
method: "PUT",
|
|
8919
|
+
authType: "AK",
|
|
8920
|
+
style: "ROA",
|
|
8921
|
+
reqBodyType: "json",
|
|
8922
|
+
bodyType: "json",
|
|
8923
|
+
});
|
|
8924
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterNodePoolResponse({}));
|
|
7931
8925
|
}
|
|
7932
8926
|
async modifyClusterTags(ClusterId, request) {
|
|
7933
8927
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7941,7 +8935,18 @@ class Client extends openapi_client_1.default {
|
|
|
7941
8935
|
headers: headers,
|
|
7942
8936
|
body: tea_util_1.default.toArray(request.body),
|
|
7943
8937
|
});
|
|
7944
|
-
|
|
8938
|
+
let params = new $OpenApi.Params({
|
|
8939
|
+
action: "ModifyClusterTags",
|
|
8940
|
+
version: "2015-12-15",
|
|
8941
|
+
protocol: "HTTPS",
|
|
8942
|
+
pathname: `/clusters/${ClusterId}/tags`,
|
|
8943
|
+
method: "POST",
|
|
8944
|
+
authType: "AK",
|
|
8945
|
+
style: "ROA",
|
|
8946
|
+
reqBodyType: "json",
|
|
8947
|
+
bodyType: "none",
|
|
8948
|
+
});
|
|
8949
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterTagsResponse({}));
|
|
7945
8950
|
}
|
|
7946
8951
|
async modifyPolicyInstance(clusterId, policyName, request) {
|
|
7947
8952
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7969,7 +8974,18 @@ class Client extends openapi_client_1.default {
|
|
|
7969
8974
|
headers: headers,
|
|
7970
8975
|
body: openapi_util_1.default.parseToMap(body),
|
|
7971
8976
|
});
|
|
7972
|
-
|
|
8977
|
+
let params = new $OpenApi.Params({
|
|
8978
|
+
action: "ModifyPolicyInstance",
|
|
8979
|
+
version: "2015-12-15",
|
|
8980
|
+
protocol: "HTTPS",
|
|
8981
|
+
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
8982
|
+
method: "PUT",
|
|
8983
|
+
authType: "AK",
|
|
8984
|
+
style: "ROA",
|
|
8985
|
+
reqBodyType: "json",
|
|
8986
|
+
bodyType: "json",
|
|
8987
|
+
});
|
|
8988
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyPolicyInstanceResponse({}));
|
|
7973
8989
|
}
|
|
7974
8990
|
async openAckService(request) {
|
|
7975
8991
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7986,7 +9002,18 @@ class Client extends openapi_client_1.default {
|
|
|
7986
9002
|
headers: headers,
|
|
7987
9003
|
query: openapi_util_1.default.query(query),
|
|
7988
9004
|
});
|
|
7989
|
-
|
|
9005
|
+
let params = new $OpenApi.Params({
|
|
9006
|
+
action: "OpenAckService",
|
|
9007
|
+
version: "2015-12-15",
|
|
9008
|
+
protocol: "HTTPS",
|
|
9009
|
+
pathname: `/service/open`,
|
|
9010
|
+
method: "POST",
|
|
9011
|
+
authType: "AK",
|
|
9012
|
+
style: "ROA",
|
|
9013
|
+
reqBodyType: "json",
|
|
9014
|
+
bodyType: "json",
|
|
9015
|
+
});
|
|
9016
|
+
return $tea.cast(await this.callApi(params, req, runtime), new OpenAckServiceResponse({}));
|
|
7990
9017
|
}
|
|
7991
9018
|
async pauseClusterUpgrade(ClusterId) {
|
|
7992
9019
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -7998,7 +9025,18 @@ class Client extends openapi_client_1.default {
|
|
|
7998
9025
|
let req = new $OpenApi.OpenApiRequest({
|
|
7999
9026
|
headers: headers,
|
|
8000
9027
|
});
|
|
8001
|
-
|
|
9028
|
+
let params = new $OpenApi.Params({
|
|
9029
|
+
action: "PauseClusterUpgrade",
|
|
9030
|
+
version: "2015-12-15",
|
|
9031
|
+
protocol: "HTTPS",
|
|
9032
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/pause`,
|
|
9033
|
+
method: "POST",
|
|
9034
|
+
authType: "AK",
|
|
9035
|
+
style: "ROA",
|
|
9036
|
+
reqBodyType: "json",
|
|
9037
|
+
bodyType: "none",
|
|
9038
|
+
});
|
|
9039
|
+
return $tea.cast(await this.callApi(params, req, runtime), new PauseClusterUpgradeResponse({}));
|
|
8002
9040
|
}
|
|
8003
9041
|
async pauseComponentUpgrade(clusterid, componentid) {
|
|
8004
9042
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8011,7 +9049,18 @@ class Client extends openapi_client_1.default {
|
|
|
8011
9049
|
let req = new $OpenApi.OpenApiRequest({
|
|
8012
9050
|
headers: headers,
|
|
8013
9051
|
});
|
|
8014
|
-
|
|
9052
|
+
let params = new $OpenApi.Params({
|
|
9053
|
+
action: "PauseComponentUpgrade",
|
|
9054
|
+
version: "2015-12-15",
|
|
9055
|
+
protocol: "HTTPS",
|
|
9056
|
+
pathname: `/clusters/${clusterid}/components/${componentid}/pause`,
|
|
9057
|
+
method: "POST",
|
|
9058
|
+
authType: "AK",
|
|
9059
|
+
style: "ROA",
|
|
9060
|
+
reqBodyType: "json",
|
|
9061
|
+
bodyType: "none",
|
|
9062
|
+
});
|
|
9063
|
+
return $tea.cast(await this.callApi(params, req, runtime), new PauseComponentUpgradeResponse({}));
|
|
8015
9064
|
}
|
|
8016
9065
|
async removeClusterNodes(ClusterId, request) {
|
|
8017
9066
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8035,7 +9084,18 @@ class Client extends openapi_client_1.default {
|
|
|
8035
9084
|
headers: headers,
|
|
8036
9085
|
body: openapi_util_1.default.parseToMap(body),
|
|
8037
9086
|
});
|
|
8038
|
-
|
|
9087
|
+
let params = new $OpenApi.Params({
|
|
9088
|
+
action: "RemoveClusterNodes",
|
|
9089
|
+
version: "2015-12-15",
|
|
9090
|
+
protocol: "HTTPS",
|
|
9091
|
+
pathname: `/api/v2/clusters/${ClusterId}/nodes/remove`,
|
|
9092
|
+
method: "POST",
|
|
9093
|
+
authType: "AK",
|
|
9094
|
+
style: "ROA",
|
|
9095
|
+
reqBodyType: "json",
|
|
9096
|
+
bodyType: "none",
|
|
9097
|
+
});
|
|
9098
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RemoveClusterNodesResponse({}));
|
|
8039
9099
|
}
|
|
8040
9100
|
async removeWorkflow(workflowName) {
|
|
8041
9101
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8047,7 +9107,18 @@ class Client extends openapi_client_1.default {
|
|
|
8047
9107
|
let req = new $OpenApi.OpenApiRequest({
|
|
8048
9108
|
headers: headers,
|
|
8049
9109
|
});
|
|
8050
|
-
|
|
9110
|
+
let params = new $OpenApi.Params({
|
|
9111
|
+
action: "RemoveWorkflow",
|
|
9112
|
+
version: "2015-12-15",
|
|
9113
|
+
protocol: "HTTPS",
|
|
9114
|
+
pathname: `/gs/workflow/${workflowName}`,
|
|
9115
|
+
method: "DELETE",
|
|
9116
|
+
authType: "AK",
|
|
9117
|
+
style: "ROA",
|
|
9118
|
+
reqBodyType: "json",
|
|
9119
|
+
bodyType: "none",
|
|
9120
|
+
});
|
|
9121
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RemoveWorkflowResponse({}));
|
|
8051
9122
|
}
|
|
8052
9123
|
async resumeComponentUpgrade(clusterid, componentid) {
|
|
8053
9124
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8060,7 +9131,18 @@ class Client extends openapi_client_1.default {
|
|
|
8060
9131
|
let req = new $OpenApi.OpenApiRequest({
|
|
8061
9132
|
headers: headers,
|
|
8062
9133
|
});
|
|
8063
|
-
|
|
9134
|
+
let params = new $OpenApi.Params({
|
|
9135
|
+
action: "ResumeComponentUpgrade",
|
|
9136
|
+
version: "2015-12-15",
|
|
9137
|
+
protocol: "HTTPS",
|
|
9138
|
+
pathname: `/clusters/${clusterid}/components/${componentid}/resume`,
|
|
9139
|
+
method: "POST",
|
|
9140
|
+
authType: "AK",
|
|
9141
|
+
style: "ROA",
|
|
9142
|
+
reqBodyType: "json",
|
|
9143
|
+
bodyType: "none",
|
|
9144
|
+
});
|
|
9145
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ResumeComponentUpgradeResponse({}));
|
|
8064
9146
|
}
|
|
8065
9147
|
async resumeUpgradeCluster(ClusterId) {
|
|
8066
9148
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8072,7 +9154,18 @@ class Client extends openapi_client_1.default {
|
|
|
8072
9154
|
let req = new $OpenApi.OpenApiRequest({
|
|
8073
9155
|
headers: headers,
|
|
8074
9156
|
});
|
|
8075
|
-
|
|
9157
|
+
let params = new $OpenApi.Params({
|
|
9158
|
+
action: "ResumeUpgradeCluster",
|
|
9159
|
+
version: "2015-12-15",
|
|
9160
|
+
protocol: "HTTPS",
|
|
9161
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/resume`,
|
|
9162
|
+
method: "POST",
|
|
9163
|
+
authType: "AK",
|
|
9164
|
+
style: "ROA",
|
|
9165
|
+
reqBodyType: "json",
|
|
9166
|
+
bodyType: "none",
|
|
9167
|
+
});
|
|
9168
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ResumeUpgradeClusterResponse({}));
|
|
8076
9169
|
}
|
|
8077
9170
|
async scaleCluster(ClusterId, request) {
|
|
8078
9171
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8144,7 +9237,18 @@ class Client extends openapi_client_1.default {
|
|
|
8144
9237
|
headers: headers,
|
|
8145
9238
|
body: openapi_util_1.default.parseToMap(body),
|
|
8146
9239
|
});
|
|
8147
|
-
|
|
9240
|
+
let params = new $OpenApi.Params({
|
|
9241
|
+
action: "ScaleCluster",
|
|
9242
|
+
version: "2015-12-15",
|
|
9243
|
+
protocol: "HTTPS",
|
|
9244
|
+
pathname: `/clusters/${ClusterId}`,
|
|
9245
|
+
method: "PUT",
|
|
9246
|
+
authType: "AK",
|
|
9247
|
+
style: "ROA",
|
|
9248
|
+
reqBodyType: "json",
|
|
9249
|
+
bodyType: "json",
|
|
9250
|
+
});
|
|
9251
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ScaleClusterResponse({}));
|
|
8148
9252
|
}
|
|
8149
9253
|
async scaleClusterNodePool(ClusterId, NodepoolId, request) {
|
|
8150
9254
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8163,7 +9267,18 @@ class Client extends openapi_client_1.default {
|
|
|
8163
9267
|
headers: headers,
|
|
8164
9268
|
body: openapi_util_1.default.parseToMap(body),
|
|
8165
9269
|
});
|
|
8166
|
-
|
|
9270
|
+
let params = new $OpenApi.Params({
|
|
9271
|
+
action: "ScaleClusterNodePool",
|
|
9272
|
+
version: "2015-12-15",
|
|
9273
|
+
protocol: "HTTPS",
|
|
9274
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
9275
|
+
method: "POST",
|
|
9276
|
+
authType: "AK",
|
|
9277
|
+
style: "ROA",
|
|
9278
|
+
reqBodyType: "json",
|
|
9279
|
+
bodyType: "json",
|
|
9280
|
+
});
|
|
9281
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ScaleClusterNodePoolResponse({}));
|
|
8167
9282
|
}
|
|
8168
9283
|
async scaleOutCluster(ClusterId, request) {
|
|
8169
9284
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8241,7 +9356,18 @@ class Client extends openapi_client_1.default {
|
|
|
8241
9356
|
headers: headers,
|
|
8242
9357
|
body: openapi_util_1.default.parseToMap(body),
|
|
8243
9358
|
});
|
|
8244
|
-
|
|
9359
|
+
let params = new $OpenApi.Params({
|
|
9360
|
+
action: "ScaleOutCluster",
|
|
9361
|
+
version: "2015-12-15",
|
|
9362
|
+
protocol: "HTTPS",
|
|
9363
|
+
pathname: `/api/v2/clusters/${ClusterId}`,
|
|
9364
|
+
method: "POST",
|
|
9365
|
+
authType: "AK",
|
|
9366
|
+
style: "ROA",
|
|
9367
|
+
reqBodyType: "json",
|
|
9368
|
+
bodyType: "json",
|
|
9369
|
+
});
|
|
9370
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ScaleOutClusterResponse({}));
|
|
8245
9371
|
}
|
|
8246
9372
|
async startWorkflow(request) {
|
|
8247
9373
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8312,7 +9438,18 @@ class Client extends openapi_client_1.default {
|
|
|
8312
9438
|
headers: headers,
|
|
8313
9439
|
body: openapi_util_1.default.parseToMap(body),
|
|
8314
9440
|
});
|
|
8315
|
-
|
|
9441
|
+
let params = new $OpenApi.Params({
|
|
9442
|
+
action: "StartWorkflow",
|
|
9443
|
+
version: "2015-12-15",
|
|
9444
|
+
protocol: "HTTPS",
|
|
9445
|
+
pathname: `/gs/workflow`,
|
|
9446
|
+
method: "POST",
|
|
9447
|
+
authType: "AK",
|
|
9448
|
+
style: "ROA",
|
|
9449
|
+
reqBodyType: "json",
|
|
9450
|
+
bodyType: "json",
|
|
9451
|
+
});
|
|
9452
|
+
return $tea.cast(await this.callApi(params, req, runtime), new StartWorkflowResponse({}));
|
|
8316
9453
|
}
|
|
8317
9454
|
async tagResources(request) {
|
|
8318
9455
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8338,7 +9475,18 @@ class Client extends openapi_client_1.default {
|
|
|
8338
9475
|
headers: headers,
|
|
8339
9476
|
body: openapi_util_1.default.parseToMap(body),
|
|
8340
9477
|
});
|
|
8341
|
-
|
|
9478
|
+
let params = new $OpenApi.Params({
|
|
9479
|
+
action: "TagResources",
|
|
9480
|
+
version: "2015-12-15",
|
|
9481
|
+
protocol: "HTTPS",
|
|
9482
|
+
pathname: `/tags`,
|
|
9483
|
+
method: "PUT",
|
|
9484
|
+
authType: "AK",
|
|
9485
|
+
style: "ROA",
|
|
9486
|
+
reqBodyType: "json",
|
|
9487
|
+
bodyType: "json",
|
|
9488
|
+
});
|
|
9489
|
+
return $tea.cast(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
|
|
8342
9490
|
}
|
|
8343
9491
|
async unInstallClusterAddons(ClusterId, request) {
|
|
8344
9492
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8352,7 +9500,18 @@ class Client extends openapi_client_1.default {
|
|
|
8352
9500
|
headers: headers,
|
|
8353
9501
|
body: tea_util_1.default.toArray(request.addons),
|
|
8354
9502
|
});
|
|
8355
|
-
|
|
9503
|
+
let params = new $OpenApi.Params({
|
|
9504
|
+
action: "UnInstallClusterAddons",
|
|
9505
|
+
version: "2015-12-15",
|
|
9506
|
+
protocol: "HTTPS",
|
|
9507
|
+
pathname: `/clusters/${ClusterId}/components/uninstall`,
|
|
9508
|
+
method: "POST",
|
|
9509
|
+
authType: "AK",
|
|
9510
|
+
style: "ROA",
|
|
9511
|
+
reqBodyType: "json",
|
|
9512
|
+
bodyType: "none",
|
|
9513
|
+
});
|
|
9514
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UnInstallClusterAddonsResponse({}));
|
|
8356
9515
|
}
|
|
8357
9516
|
async untagResources(request) {
|
|
8358
9517
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8362,6 +9521,9 @@ class Client extends openapi_client_1.default {
|
|
|
8362
9521
|
async untagResourcesWithOptions(request, headers, runtime) {
|
|
8363
9522
|
tea_util_1.default.validateModel(request);
|
|
8364
9523
|
let query = {};
|
|
9524
|
+
if (!tea_util_1.default.isUnset(request.all)) {
|
|
9525
|
+
query["all"] = request.all;
|
|
9526
|
+
}
|
|
8365
9527
|
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
8366
9528
|
query["region_id"] = request.regionId;
|
|
8367
9529
|
}
|
|
@@ -8378,7 +9540,18 @@ class Client extends openapi_client_1.default {
|
|
|
8378
9540
|
headers: headers,
|
|
8379
9541
|
query: openapi_util_1.default.query(query),
|
|
8380
9542
|
});
|
|
8381
|
-
|
|
9543
|
+
let params = new $OpenApi.Params({
|
|
9544
|
+
action: "UntagResources",
|
|
9545
|
+
version: "2015-12-15",
|
|
9546
|
+
protocol: "HTTPS",
|
|
9547
|
+
pathname: `/tags`,
|
|
9548
|
+
method: "DELETE",
|
|
9549
|
+
authType: "AK",
|
|
9550
|
+
style: "ROA",
|
|
9551
|
+
reqBodyType: "json",
|
|
9552
|
+
bodyType: "json",
|
|
9553
|
+
});
|
|
9554
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
|
|
8382
9555
|
}
|
|
8383
9556
|
async updateK8sClusterUserConfigExpire(ClusterId) {
|
|
8384
9557
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8390,7 +9563,18 @@ class Client extends openapi_client_1.default {
|
|
|
8390
9563
|
let req = new $OpenApi.OpenApiRequest({
|
|
8391
9564
|
headers: headers,
|
|
8392
9565
|
});
|
|
8393
|
-
|
|
9566
|
+
let params = new $OpenApi.Params({
|
|
9567
|
+
action: "UpdateK8sClusterUserConfigExpire",
|
|
9568
|
+
version: "2015-12-15",
|
|
9569
|
+
protocol: "HTTPS",
|
|
9570
|
+
pathname: `/k8s/${ClusterId}/user_config/expire`,
|
|
9571
|
+
method: "POST",
|
|
9572
|
+
authType: "AK",
|
|
9573
|
+
style: "ROA",
|
|
9574
|
+
reqBodyType: "json",
|
|
9575
|
+
bodyType: "none",
|
|
9576
|
+
});
|
|
9577
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateK8sClusterUserConfigExpireResponse({}));
|
|
8394
9578
|
}
|
|
8395
9579
|
async updateTemplate(TemplateId, request) {
|
|
8396
9580
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8420,7 +9604,18 @@ class Client extends openapi_client_1.default {
|
|
|
8420
9604
|
headers: headers,
|
|
8421
9605
|
body: openapi_util_1.default.parseToMap(body),
|
|
8422
9606
|
});
|
|
8423
|
-
|
|
9607
|
+
let params = new $OpenApi.Params({
|
|
9608
|
+
action: "UpdateTemplate",
|
|
9609
|
+
version: "2015-12-15",
|
|
9610
|
+
protocol: "HTTPS",
|
|
9611
|
+
pathname: `/templates/${TemplateId}`,
|
|
9612
|
+
method: "PUT",
|
|
9613
|
+
authType: "AK",
|
|
9614
|
+
style: "ROA",
|
|
9615
|
+
reqBodyType: "json",
|
|
9616
|
+
bodyType: "none",
|
|
9617
|
+
});
|
|
9618
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateTemplateResponse({}));
|
|
8424
9619
|
}
|
|
8425
9620
|
async upgradeCluster(ClusterId, request) {
|
|
8426
9621
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8444,7 +9639,18 @@ class Client extends openapi_client_1.default {
|
|
|
8444
9639
|
headers: headers,
|
|
8445
9640
|
body: openapi_util_1.default.parseToMap(body),
|
|
8446
9641
|
});
|
|
8447
|
-
|
|
9642
|
+
let params = new $OpenApi.Params({
|
|
9643
|
+
action: "UpgradeCluster",
|
|
9644
|
+
version: "2015-12-15",
|
|
9645
|
+
protocol: "HTTPS",
|
|
9646
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade`,
|
|
9647
|
+
method: "POST",
|
|
9648
|
+
authType: "AK",
|
|
9649
|
+
style: "ROA",
|
|
9650
|
+
reqBodyType: "json",
|
|
9651
|
+
bodyType: "none",
|
|
9652
|
+
});
|
|
9653
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpgradeClusterResponse({}));
|
|
8448
9654
|
}
|
|
8449
9655
|
async upgradeClusterAddons(ClusterId, request) {
|
|
8450
9656
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -8458,7 +9664,18 @@ class Client extends openapi_client_1.default {
|
|
|
8458
9664
|
headers: headers,
|
|
8459
9665
|
body: tea_util_1.default.toArray(request.body),
|
|
8460
9666
|
});
|
|
8461
|
-
|
|
9667
|
+
let params = new $OpenApi.Params({
|
|
9668
|
+
action: "UpgradeClusterAddons",
|
|
9669
|
+
version: "2015-12-15",
|
|
9670
|
+
protocol: "HTTPS",
|
|
9671
|
+
pathname: `/clusters/${ClusterId}/components/upgrade`,
|
|
9672
|
+
method: "POST",
|
|
9673
|
+
authType: "AK",
|
|
9674
|
+
style: "ROA",
|
|
9675
|
+
reqBodyType: "json",
|
|
9676
|
+
bodyType: "none",
|
|
9677
|
+
});
|
|
9678
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpgradeClusterAddonsResponse({}));
|
|
8462
9679
|
}
|
|
8463
9680
|
}
|
|
8464
9681
|
exports.default = Client;
|