@alicloud/cs20151215 3.0.1 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +94 -2
- package/dist/client.js +1216 -92
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +1260 -92
package/src/client.ts
CHANGED
|
@@ -402,6 +402,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
402
402
|
customSan?: string;
|
|
403
403
|
deletionProtection?: boolean;
|
|
404
404
|
disableRollback?: boolean;
|
|
405
|
+
enableRrsa?: boolean;
|
|
405
406
|
encryptionProviderKey?: string;
|
|
406
407
|
endpointPublicAccess?: boolean;
|
|
407
408
|
formatDisk?: boolean;
|
|
@@ -440,6 +441,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
440
441
|
proxyMode?: string;
|
|
441
442
|
rdsInstances?: string[];
|
|
442
443
|
regionId?: string;
|
|
444
|
+
resourceGroupId?: string;
|
|
443
445
|
runtime?: Runtime;
|
|
444
446
|
securityGroupId?: string;
|
|
445
447
|
serviceAccountIssuer?: string;
|
|
@@ -486,6 +488,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
486
488
|
customSan: 'custom_san',
|
|
487
489
|
deletionProtection: 'deletion_protection',
|
|
488
490
|
disableRollback: 'disable_rollback',
|
|
491
|
+
enableRrsa: 'enable_rrsa',
|
|
489
492
|
encryptionProviderKey: 'encryption_provider_key',
|
|
490
493
|
endpointPublicAccess: 'endpoint_public_access',
|
|
491
494
|
formatDisk: 'format_disk',
|
|
@@ -524,6 +527,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
524
527
|
proxyMode: 'proxy_mode',
|
|
525
528
|
rdsInstances: 'rds_instances',
|
|
526
529
|
regionId: 'region_id',
|
|
530
|
+
resourceGroupId: 'resource_group_id',
|
|
527
531
|
runtime: 'runtime',
|
|
528
532
|
securityGroupId: 'security_group_id',
|
|
529
533
|
serviceAccountIssuer: 'service_account_issuer',
|
|
@@ -573,6 +577,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
573
577
|
customSan: 'string',
|
|
574
578
|
deletionProtection: 'boolean',
|
|
575
579
|
disableRollback: 'boolean',
|
|
580
|
+
enableRrsa: 'boolean',
|
|
576
581
|
encryptionProviderKey: 'string',
|
|
577
582
|
endpointPublicAccess: 'boolean',
|
|
578
583
|
formatDisk: 'boolean',
|
|
@@ -611,6 +616,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
611
616
|
proxyMode: 'string',
|
|
612
617
|
rdsInstances: { 'type': 'array', 'itemType': 'string' },
|
|
613
618
|
regionId: 'string',
|
|
619
|
+
resourceGroupId: 'string',
|
|
614
620
|
runtime: Runtime,
|
|
615
621
|
securityGroupId: 'string',
|
|
616
622
|
serviceAccountIssuer: 'string',
|
|
@@ -1324,17 +1330,58 @@ export class DeleteKubernetesTriggerResponse extends $tea.Model {
|
|
|
1324
1330
|
}
|
|
1325
1331
|
}
|
|
1326
1332
|
|
|
1333
|
+
export class DeletePolicyInstanceRequest extends $tea.Model {
|
|
1334
|
+
instanceName?: string;
|
|
1335
|
+
static names(): { [key: string]: string } {
|
|
1336
|
+
return {
|
|
1337
|
+
instanceName: 'instance_name',
|
|
1338
|
+
};
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
static types(): { [key: string]: any } {
|
|
1342
|
+
return {
|
|
1343
|
+
instanceName: 'string',
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
constructor(map?: { [key: string]: any }) {
|
|
1348
|
+
super(map);
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
export class DeletePolicyInstanceResponseBody extends $tea.Model {
|
|
1353
|
+
instances?: string[];
|
|
1354
|
+
static names(): { [key: string]: string } {
|
|
1355
|
+
return {
|
|
1356
|
+
instances: 'instances',
|
|
1357
|
+
};
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
static types(): { [key: string]: any } {
|
|
1361
|
+
return {
|
|
1362
|
+
instances: { 'type': 'array', 'itemType': 'string' },
|
|
1363
|
+
};
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
constructor(map?: { [key: string]: any }) {
|
|
1367
|
+
super(map);
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1327
1371
|
export class DeletePolicyInstanceResponse extends $tea.Model {
|
|
1328
1372
|
headers: { [key: string]: string };
|
|
1373
|
+
body: DeletePolicyInstanceResponseBody;
|
|
1329
1374
|
static names(): { [key: string]: string } {
|
|
1330
1375
|
return {
|
|
1331
1376
|
headers: 'headers',
|
|
1377
|
+
body: 'body',
|
|
1332
1378
|
};
|
|
1333
1379
|
}
|
|
1334
1380
|
|
|
1335
1381
|
static types(): { [key: string]: any } {
|
|
1336
1382
|
return {
|
|
1337
1383
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1384
|
+
body: DeletePolicyInstanceResponseBody,
|
|
1338
1385
|
};
|
|
1339
1386
|
}
|
|
1340
1387
|
|
|
@@ -1406,17 +1453,39 @@ export class DeployPolicyInstanceRequest extends $tea.Model {
|
|
|
1406
1453
|
}
|
|
1407
1454
|
}
|
|
1408
1455
|
|
|
1456
|
+
export class DeployPolicyInstanceResponseBody extends $tea.Model {
|
|
1457
|
+
instances?: string[];
|
|
1458
|
+
static names(): { [key: string]: string } {
|
|
1459
|
+
return {
|
|
1460
|
+
instances: 'instances',
|
|
1461
|
+
};
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
static types(): { [key: string]: any } {
|
|
1465
|
+
return {
|
|
1466
|
+
instances: { 'type': 'array', 'itemType': 'string' },
|
|
1467
|
+
};
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
constructor(map?: { [key: string]: any }) {
|
|
1471
|
+
super(map);
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1409
1475
|
export class DeployPolicyInstanceResponse extends $tea.Model {
|
|
1410
1476
|
headers: { [key: string]: string };
|
|
1477
|
+
body: DeployPolicyInstanceResponseBody;
|
|
1411
1478
|
static names(): { [key: string]: string } {
|
|
1412
1479
|
return {
|
|
1413
1480
|
headers: 'headers',
|
|
1481
|
+
body: 'body',
|
|
1414
1482
|
};
|
|
1415
1483
|
}
|
|
1416
1484
|
|
|
1417
1485
|
static types(): { [key: string]: any } {
|
|
1418
1486
|
return {
|
|
1419
1487
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1488
|
+
body: DeployPolicyInstanceResponseBody,
|
|
1420
1489
|
};
|
|
1421
1490
|
}
|
|
1422
1491
|
|
|
@@ -2760,12 +2829,14 @@ export class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
|
|
|
2760
2829
|
kubernetesVersion?: string;
|
|
2761
2830
|
profile?: string;
|
|
2762
2831
|
region?: string;
|
|
2832
|
+
runtime?: string;
|
|
2763
2833
|
static names(): { [key: string]: string } {
|
|
2764
2834
|
return {
|
|
2765
2835
|
clusterType: 'ClusterType',
|
|
2766
2836
|
kubernetesVersion: 'KubernetesVersion',
|
|
2767
2837
|
profile: 'Profile',
|
|
2768
2838
|
region: 'Region',
|
|
2839
|
+
runtime: 'runtime',
|
|
2769
2840
|
};
|
|
2770
2841
|
}
|
|
2771
2842
|
|
|
@@ -2775,6 +2846,7 @@ export class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
|
|
|
2775
2846
|
kubernetesVersion: 'string',
|
|
2776
2847
|
profile: 'string',
|
|
2777
2848
|
region: 'string',
|
|
2849
|
+
runtime: 'string',
|
|
2778
2850
|
};
|
|
2779
2851
|
}
|
|
2780
2852
|
|
|
@@ -3742,6 +3814,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
3742
3814
|
apiServerEip?: boolean;
|
|
3743
3815
|
apiServerEipId?: string;
|
|
3744
3816
|
deletionProtection?: boolean;
|
|
3817
|
+
enableRrsa?: boolean;
|
|
3745
3818
|
ingressDomainRebinding?: string;
|
|
3746
3819
|
ingressLoadbalancerId?: string;
|
|
3747
3820
|
instanceDeletionProtection?: boolean;
|
|
@@ -3752,6 +3825,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
3752
3825
|
apiServerEip: 'api_server_eip',
|
|
3753
3826
|
apiServerEipId: 'api_server_eip_id',
|
|
3754
3827
|
deletionProtection: 'deletion_protection',
|
|
3828
|
+
enableRrsa: 'enable_rrsa',
|
|
3755
3829
|
ingressDomainRebinding: 'ingress_domain_rebinding',
|
|
3756
3830
|
ingressLoadbalancerId: 'ingress_loadbalancer_id',
|
|
3757
3831
|
instanceDeletionProtection: 'instance_deletion_protection',
|
|
@@ -3765,6 +3839,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
3765
3839
|
apiServerEip: 'boolean',
|
|
3766
3840
|
apiServerEipId: 'string',
|
|
3767
3841
|
deletionProtection: 'boolean',
|
|
3842
|
+
enableRrsa: 'boolean',
|
|
3768
3843
|
ingressDomainRebinding: 'string',
|
|
3769
3844
|
ingressLoadbalancerId: 'string',
|
|
3770
3845
|
instanceDeletionProtection: 'boolean',
|
|
@@ -4048,17 +4123,39 @@ export class ModifyPolicyInstanceRequest extends $tea.Model {
|
|
|
4048
4123
|
}
|
|
4049
4124
|
}
|
|
4050
4125
|
|
|
4126
|
+
export class ModifyPolicyInstanceResponseBody extends $tea.Model {
|
|
4127
|
+
instances?: string[];
|
|
4128
|
+
static names(): { [key: string]: string } {
|
|
4129
|
+
return {
|
|
4130
|
+
instances: 'instances',
|
|
4131
|
+
};
|
|
4132
|
+
}
|
|
4133
|
+
|
|
4134
|
+
static types(): { [key: string]: any } {
|
|
4135
|
+
return {
|
|
4136
|
+
instances: { 'type': 'array', 'itemType': 'string' },
|
|
4137
|
+
};
|
|
4138
|
+
}
|
|
4139
|
+
|
|
4140
|
+
constructor(map?: { [key: string]: any }) {
|
|
4141
|
+
super(map);
|
|
4142
|
+
}
|
|
4143
|
+
}
|
|
4144
|
+
|
|
4051
4145
|
export class ModifyPolicyInstanceResponse extends $tea.Model {
|
|
4052
4146
|
headers: { [key: string]: string };
|
|
4147
|
+
body: ModifyPolicyInstanceResponseBody;
|
|
4053
4148
|
static names(): { [key: string]: string } {
|
|
4054
4149
|
return {
|
|
4055
4150
|
headers: 'headers',
|
|
4151
|
+
body: 'body',
|
|
4056
4152
|
};
|
|
4057
4153
|
}
|
|
4058
4154
|
|
|
4059
4155
|
static types(): { [key: string]: any } {
|
|
4060
4156
|
return {
|
|
4061
4157
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4158
|
+
body: ModifyPolicyInstanceResponseBody,
|
|
4062
4159
|
};
|
|
4063
4160
|
}
|
|
4064
4161
|
|
|
@@ -4717,17 +4814,39 @@ export class TagResourcesRequest extends $tea.Model {
|
|
|
4717
4814
|
}
|
|
4718
4815
|
}
|
|
4719
4816
|
|
|
4817
|
+
export class TagResourcesResponseBody extends $tea.Model {
|
|
4818
|
+
requestId?: string;
|
|
4819
|
+
static names(): { [key: string]: string } {
|
|
4820
|
+
return {
|
|
4821
|
+
requestId: 'RequestId',
|
|
4822
|
+
};
|
|
4823
|
+
}
|
|
4824
|
+
|
|
4825
|
+
static types(): { [key: string]: any } {
|
|
4826
|
+
return {
|
|
4827
|
+
requestId: 'string',
|
|
4828
|
+
};
|
|
4829
|
+
}
|
|
4830
|
+
|
|
4831
|
+
constructor(map?: { [key: string]: any }) {
|
|
4832
|
+
super(map);
|
|
4833
|
+
}
|
|
4834
|
+
}
|
|
4835
|
+
|
|
4720
4836
|
export class TagResourcesResponse extends $tea.Model {
|
|
4721
4837
|
headers: { [key: string]: string };
|
|
4838
|
+
body: TagResourcesResponseBody;
|
|
4722
4839
|
static names(): { [key: string]: string } {
|
|
4723
4840
|
return {
|
|
4724
4841
|
headers: 'headers',
|
|
4842
|
+
body: 'body',
|
|
4725
4843
|
};
|
|
4726
4844
|
}
|
|
4727
4845
|
|
|
4728
4846
|
static types(): { [key: string]: any } {
|
|
4729
4847
|
return {
|
|
4730
4848
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4849
|
+
body: TagResourcesResponseBody,
|
|
4731
4850
|
};
|
|
4732
4851
|
}
|
|
4733
4852
|
|
|
@@ -4775,12 +4894,14 @@ export class UnInstallClusterAddonsResponse extends $tea.Model {
|
|
|
4775
4894
|
}
|
|
4776
4895
|
|
|
4777
4896
|
export class UntagResourcesRequest extends $tea.Model {
|
|
4897
|
+
all?: boolean;
|
|
4778
4898
|
regionId?: string;
|
|
4779
4899
|
resourceIds?: string[];
|
|
4780
4900
|
resourceType?: string;
|
|
4781
4901
|
tagKeys?: string[];
|
|
4782
4902
|
static names(): { [key: string]: string } {
|
|
4783
4903
|
return {
|
|
4904
|
+
all: 'all',
|
|
4784
4905
|
regionId: 'region_id',
|
|
4785
4906
|
resourceIds: 'resource_ids',
|
|
4786
4907
|
resourceType: 'resource_type',
|
|
@@ -4790,6 +4911,7 @@ export class UntagResourcesRequest extends $tea.Model {
|
|
|
4790
4911
|
|
|
4791
4912
|
static types(): { [key: string]: any } {
|
|
4792
4913
|
return {
|
|
4914
|
+
all: 'boolean',
|
|
4793
4915
|
regionId: 'string',
|
|
4794
4916
|
resourceIds: { 'type': 'array', 'itemType': 'string' },
|
|
4795
4917
|
resourceType: 'string',
|
|
@@ -4802,17 +4924,39 @@ export class UntagResourcesRequest extends $tea.Model {
|
|
|
4802
4924
|
}
|
|
4803
4925
|
}
|
|
4804
4926
|
|
|
4927
|
+
export class UntagResourcesResponseBody extends $tea.Model {
|
|
4928
|
+
requestId?: string;
|
|
4929
|
+
static names(): { [key: string]: string } {
|
|
4930
|
+
return {
|
|
4931
|
+
requestId: 'RequestId',
|
|
4932
|
+
};
|
|
4933
|
+
}
|
|
4934
|
+
|
|
4935
|
+
static types(): { [key: string]: any } {
|
|
4936
|
+
return {
|
|
4937
|
+
requestId: 'string',
|
|
4938
|
+
};
|
|
4939
|
+
}
|
|
4940
|
+
|
|
4941
|
+
constructor(map?: { [key: string]: any }) {
|
|
4942
|
+
super(map);
|
|
4943
|
+
}
|
|
4944
|
+
}
|
|
4945
|
+
|
|
4805
4946
|
export class UntagResourcesResponse extends $tea.Model {
|
|
4806
4947
|
headers: { [key: string]: string };
|
|
4948
|
+
body: UntagResourcesResponseBody;
|
|
4807
4949
|
static names(): { [key: string]: string } {
|
|
4808
4950
|
return {
|
|
4809
4951
|
headers: 'headers',
|
|
4952
|
+
body: 'body',
|
|
4810
4953
|
};
|
|
4811
4954
|
}
|
|
4812
4955
|
|
|
4813
4956
|
static types(): { [key: string]: any } {
|
|
4814
4957
|
return {
|
|
4815
4958
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4959
|
+
body: UntagResourcesResponseBody,
|
|
4816
4960
|
};
|
|
4817
4961
|
}
|
|
4818
4962
|
|
|
@@ -5128,6 +5272,7 @@ export class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
|
|
|
5128
5272
|
cmsEnabled?: boolean;
|
|
5129
5273
|
cpuPolicy?: string;
|
|
5130
5274
|
labels?: Tag[];
|
|
5275
|
+
nodeNameMode?: string;
|
|
5131
5276
|
runtime?: string;
|
|
5132
5277
|
runtimeVersion?: string;
|
|
5133
5278
|
taints?: Taint[];
|
|
@@ -5137,6 +5282,7 @@ export class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
|
|
|
5137
5282
|
cmsEnabled: 'cms_enabled',
|
|
5138
5283
|
cpuPolicy: 'cpu_policy',
|
|
5139
5284
|
labels: 'labels',
|
|
5285
|
+
nodeNameMode: 'node_name_mode',
|
|
5140
5286
|
runtime: 'runtime',
|
|
5141
5287
|
runtimeVersion: 'runtime_version',
|
|
5142
5288
|
taints: 'taints',
|
|
@@ -5149,6 +5295,7 @@ export class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
|
|
|
5149
5295
|
cmsEnabled: 'boolean',
|
|
5150
5296
|
cpuPolicy: 'string',
|
|
5151
5297
|
labels: { 'type': 'array', 'itemType': Tag },
|
|
5298
|
+
nodeNameMode: 'string',
|
|
5152
5299
|
runtime: 'string',
|
|
5153
5300
|
runtimeVersion: 'string',
|
|
5154
5301
|
taints: { 'type': 'array', 'itemType': Taint },
|
|
@@ -5288,6 +5435,8 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
5288
5435
|
autoRenewPeriod?: number;
|
|
5289
5436
|
compensateWithOnDemand?: boolean;
|
|
5290
5437
|
dataDisks?: DataDisk[];
|
|
5438
|
+
deploymentsetId?: string;
|
|
5439
|
+
desiredSize?: number;
|
|
5291
5440
|
imageId?: string;
|
|
5292
5441
|
imageType?: string;
|
|
5293
5442
|
instanceChargeType?: string;
|
|
@@ -5321,6 +5470,8 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
5321
5470
|
autoRenewPeriod: 'auto_renew_period',
|
|
5322
5471
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
5323
5472
|
dataDisks: 'data_disks',
|
|
5473
|
+
deploymentsetId: 'deploymentset_id',
|
|
5474
|
+
desiredSize: 'desired_size',
|
|
5324
5475
|
imageId: 'image_id',
|
|
5325
5476
|
imageType: 'image_type',
|
|
5326
5477
|
instanceChargeType: 'instance_charge_type',
|
|
@@ -5357,6 +5508,8 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
5357
5508
|
autoRenewPeriod: 'number',
|
|
5358
5509
|
compensateWithOnDemand: 'boolean',
|
|
5359
5510
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
5511
|
+
deploymentsetId: 'string',
|
|
5512
|
+
desiredSize: 'number',
|
|
5360
5513
|
imageId: 'string',
|
|
5361
5514
|
imageType: 'string',
|
|
5362
5515
|
instanceChargeType: 'string',
|
|
@@ -5558,6 +5711,7 @@ export class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $
|
|
|
5558
5711
|
cmsEnabled?: boolean;
|
|
5559
5712
|
cpuPolicy?: string;
|
|
5560
5713
|
labels?: Tag[];
|
|
5714
|
+
nodeNameMode?: string;
|
|
5561
5715
|
runtime?: string;
|
|
5562
5716
|
runtimeVersion?: string;
|
|
5563
5717
|
taints?: Taint[];
|
|
@@ -5567,6 +5721,7 @@ export class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $
|
|
|
5567
5721
|
cmsEnabled: 'cms_enabled',
|
|
5568
5722
|
cpuPolicy: 'cpu_policy',
|
|
5569
5723
|
labels: 'labels',
|
|
5724
|
+
nodeNameMode: 'node_name_mode',
|
|
5570
5725
|
runtime: 'runtime',
|
|
5571
5726
|
runtimeVersion: 'runtime_version',
|
|
5572
5727
|
taints: 'taints',
|
|
@@ -5579,6 +5734,7 @@ export class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $
|
|
|
5579
5734
|
cmsEnabled: 'boolean',
|
|
5580
5735
|
cpuPolicy: 'string',
|
|
5581
5736
|
labels: { 'type': 'array', 'itemType': Tag },
|
|
5737
|
+
nodeNameMode: 'string',
|
|
5582
5738
|
runtime: 'string',
|
|
5583
5739
|
runtimeVersion: 'string',
|
|
5584
5740
|
taints: { 'type': 'array', 'itemType': Taint },
|
|
@@ -5711,6 +5867,8 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
5711
5867
|
autoRenewPeriod?: number;
|
|
5712
5868
|
compensateWithOnDemand?: boolean;
|
|
5713
5869
|
dataDisks?: DataDisk[];
|
|
5870
|
+
deploymentsetId?: string;
|
|
5871
|
+
desiredSize?: number;
|
|
5714
5872
|
imageId?: string;
|
|
5715
5873
|
instanceChargeType?: string;
|
|
5716
5874
|
instanceTypes?: string[];
|
|
@@ -5745,6 +5903,8 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
5745
5903
|
autoRenewPeriod: 'auto_renew_period',
|
|
5746
5904
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
5747
5905
|
dataDisks: 'data_disks',
|
|
5906
|
+
deploymentsetId: 'deploymentset_id',
|
|
5907
|
+
desiredSize: 'desired_size',
|
|
5748
5908
|
imageId: 'image_id',
|
|
5749
5909
|
instanceChargeType: 'instance_charge_type',
|
|
5750
5910
|
instanceTypes: 'instance_types',
|
|
@@ -5782,6 +5942,8 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
5782
5942
|
autoRenewPeriod: 'number',
|
|
5783
5943
|
compensateWithOnDemand: 'boolean',
|
|
5784
5944
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
5945
|
+
deploymentsetId: 'string',
|
|
5946
|
+
desiredSize: 'number',
|
|
5785
5947
|
imageId: 'string',
|
|
5786
5948
|
instanceChargeType: 'string',
|
|
5787
5949
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -5949,6 +6111,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig exten
|
|
|
5949
6111
|
cmsEnabled?: boolean;
|
|
5950
6112
|
cpuPolicy?: string;
|
|
5951
6113
|
labels?: Tag[];
|
|
6114
|
+
nodeNameMode?: string;
|
|
5952
6115
|
runtime?: string;
|
|
5953
6116
|
runtimeVersion?: string;
|
|
5954
6117
|
taints?: Taint[];
|
|
@@ -5958,6 +6121,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig exten
|
|
|
5958
6121
|
cmsEnabled: 'cms_enabled',
|
|
5959
6122
|
cpuPolicy: 'cpu_policy',
|
|
5960
6123
|
labels: 'labels',
|
|
6124
|
+
nodeNameMode: 'node_name_mode',
|
|
5961
6125
|
runtime: 'runtime',
|
|
5962
6126
|
runtimeVersion: 'runtime_version',
|
|
5963
6127
|
taints: 'taints',
|
|
@@ -5970,6 +6134,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig exten
|
|
|
5970
6134
|
cmsEnabled: 'boolean',
|
|
5971
6135
|
cpuPolicy: 'string',
|
|
5972
6136
|
labels: { 'type': 'array', 'itemType': Tag },
|
|
6137
|
+
nodeNameMode: 'string',
|
|
5973
6138
|
runtime: 'string',
|
|
5974
6139
|
runtimeVersion: 'string',
|
|
5975
6140
|
taints: { 'type': 'array', 'itemType': Taint },
|
|
@@ -6102,6 +6267,8 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
6102
6267
|
autoRenewPeriod?: number;
|
|
6103
6268
|
compensateWithOnDemand?: boolean;
|
|
6104
6269
|
dataDisks?: DataDisk[];
|
|
6270
|
+
deploymentsetId?: string;
|
|
6271
|
+
desiredSize?: number;
|
|
6105
6272
|
imageId?: string;
|
|
6106
6273
|
instanceChargeType?: string;
|
|
6107
6274
|
instanceTypes?: string[];
|
|
@@ -6136,6 +6303,8 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
6136
6303
|
autoRenewPeriod: 'auto_renew_period',
|
|
6137
6304
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
6138
6305
|
dataDisks: 'data_disks',
|
|
6306
|
+
deploymentsetId: 'deploymentset_id',
|
|
6307
|
+
desiredSize: 'desired_size',
|
|
6139
6308
|
imageId: 'image_id',
|
|
6140
6309
|
instanceChargeType: 'instance_charge_type',
|
|
6141
6310
|
instanceTypes: 'instance_types',
|
|
@@ -6173,6 +6342,8 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
6173
6342
|
autoRenewPeriod: 'number',
|
|
6174
6343
|
compensateWithOnDemand: 'boolean',
|
|
6175
6344
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
6345
|
+
deploymentsetId: 'string',
|
|
6346
|
+
desiredSize: 'number',
|
|
6176
6347
|
imageId: 'string',
|
|
6177
6348
|
instanceChargeType: 'string',
|
|
6178
6349
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -7896,6 +8067,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
7896
8067
|
autoRenewPeriod?: number;
|
|
7897
8068
|
compensateWithOnDemand?: boolean;
|
|
7898
8069
|
dataDisks?: DataDisk[];
|
|
8070
|
+
desiredSize?: number;
|
|
7899
8071
|
imageId?: string;
|
|
7900
8072
|
instanceChargeType?: string;
|
|
7901
8073
|
instanceTypes?: string[];
|
|
@@ -7926,6 +8098,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
7926
8098
|
autoRenewPeriod: 'auto_renew_period',
|
|
7927
8099
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
7928
8100
|
dataDisks: 'data_disks',
|
|
8101
|
+
desiredSize: 'desired_size',
|
|
7929
8102
|
imageId: 'image_id',
|
|
7930
8103
|
instanceChargeType: 'instance_charge_type',
|
|
7931
8104
|
instanceTypes: 'instance_types',
|
|
@@ -7959,6 +8132,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
7959
8132
|
autoRenewPeriod: 'number',
|
|
7960
8133
|
compensateWithOnDemand: 'boolean',
|
|
7961
8134
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
8135
|
+
desiredSize: 'number',
|
|
7962
8136
|
imageId: 'string',
|
|
7963
8137
|
instanceChargeType: 'string',
|
|
7964
8138
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -8277,7 +8451,18 @@ export default class Client extends OpenApi {
|
|
|
8277
8451
|
headers: headers,
|
|
8278
8452
|
body: OpenApiUtil.parseToMap(body),
|
|
8279
8453
|
});
|
|
8280
|
-
|
|
8454
|
+
let params = new $OpenApi.Params({
|
|
8455
|
+
action: "AttachInstances",
|
|
8456
|
+
version: "2015-12-15",
|
|
8457
|
+
protocol: "HTTPS",
|
|
8458
|
+
pathname: `/clusters/${ClusterId}/attach`,
|
|
8459
|
+
method: "POST",
|
|
8460
|
+
authType: "AK",
|
|
8461
|
+
style: "ROA",
|
|
8462
|
+
reqBodyType: "json",
|
|
8463
|
+
bodyType: "json",
|
|
8464
|
+
});
|
|
8465
|
+
return $tea.cast<AttachInstancesResponse>(await this.callApi(params, req, runtime), new AttachInstancesResponse({}));
|
|
8281
8466
|
}
|
|
8282
8467
|
|
|
8283
8468
|
async cancelClusterUpgrade(ClusterId: string): Promise<CancelClusterUpgradeResponse> {
|
|
@@ -8291,7 +8476,18 @@ export default class Client extends OpenApi {
|
|
|
8291
8476
|
let req = new $OpenApi.OpenApiRequest({
|
|
8292
8477
|
headers: headers,
|
|
8293
8478
|
});
|
|
8294
|
-
|
|
8479
|
+
let params = new $OpenApi.Params({
|
|
8480
|
+
action: "CancelClusterUpgrade",
|
|
8481
|
+
version: "2015-12-15",
|
|
8482
|
+
protocol: "HTTPS",
|
|
8483
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/cancel`,
|
|
8484
|
+
method: "POST",
|
|
8485
|
+
authType: "AK",
|
|
8486
|
+
style: "ROA",
|
|
8487
|
+
reqBodyType: "json",
|
|
8488
|
+
bodyType: "none",
|
|
8489
|
+
});
|
|
8490
|
+
return $tea.cast<CancelClusterUpgradeResponse>(await this.callApi(params, req, runtime), new CancelClusterUpgradeResponse({}));
|
|
8295
8491
|
}
|
|
8296
8492
|
|
|
8297
8493
|
async cancelComponentUpgrade(clusterId: string, componentId: string): Promise<CancelComponentUpgradeResponse> {
|
|
@@ -8306,7 +8502,18 @@ export default class Client extends OpenApi {
|
|
|
8306
8502
|
let req = new $OpenApi.OpenApiRequest({
|
|
8307
8503
|
headers: headers,
|
|
8308
8504
|
});
|
|
8309
|
-
|
|
8505
|
+
let params = new $OpenApi.Params({
|
|
8506
|
+
action: "CancelComponentUpgrade",
|
|
8507
|
+
version: "2015-12-15",
|
|
8508
|
+
protocol: "HTTPS",
|
|
8509
|
+
pathname: `/clusters/${clusterId}/components/${componentId}/cancel`,
|
|
8510
|
+
method: "POST",
|
|
8511
|
+
authType: "AK",
|
|
8512
|
+
style: "ROA",
|
|
8513
|
+
reqBodyType: "json",
|
|
8514
|
+
bodyType: "none",
|
|
8515
|
+
});
|
|
8516
|
+
return $tea.cast<CancelComponentUpgradeResponse>(await this.callApi(params, req, runtime), new CancelComponentUpgradeResponse({}));
|
|
8310
8517
|
}
|
|
8311
8518
|
|
|
8312
8519
|
async cancelWorkflow(workflowName: string, request: CancelWorkflowRequest): Promise<CancelWorkflowResponse> {
|
|
@@ -8327,7 +8534,18 @@ export default class Client extends OpenApi {
|
|
|
8327
8534
|
headers: headers,
|
|
8328
8535
|
body: OpenApiUtil.parseToMap(body),
|
|
8329
8536
|
});
|
|
8330
|
-
|
|
8537
|
+
let params = new $OpenApi.Params({
|
|
8538
|
+
action: "CancelWorkflow",
|
|
8539
|
+
version: "2015-12-15",
|
|
8540
|
+
protocol: "HTTPS",
|
|
8541
|
+
pathname: `/gs/workflow/${workflowName}`,
|
|
8542
|
+
method: "PUT",
|
|
8543
|
+
authType: "AK",
|
|
8544
|
+
style: "ROA",
|
|
8545
|
+
reqBodyType: "json",
|
|
8546
|
+
bodyType: "none",
|
|
8547
|
+
});
|
|
8548
|
+
return $tea.cast<CancelWorkflowResponse>(await this.callApi(params, req, runtime), new CancelWorkflowResponse({}));
|
|
8331
8549
|
}
|
|
8332
8550
|
|
|
8333
8551
|
async createAutoscalingConfig(ClusterId: string, request: CreateAutoscalingConfigRequest): Promise<CreateAutoscalingConfigResponse> {
|
|
@@ -8364,7 +8582,18 @@ export default class Client extends OpenApi {
|
|
|
8364
8582
|
headers: headers,
|
|
8365
8583
|
body: OpenApiUtil.parseToMap(body),
|
|
8366
8584
|
});
|
|
8367
|
-
|
|
8585
|
+
let params = new $OpenApi.Params({
|
|
8586
|
+
action: "CreateAutoscalingConfig",
|
|
8587
|
+
version: "2015-12-15",
|
|
8588
|
+
protocol: "HTTPS",
|
|
8589
|
+
pathname: `/cluster/${ClusterId}/autoscale/config/`,
|
|
8590
|
+
method: "POST",
|
|
8591
|
+
authType: "AK",
|
|
8592
|
+
style: "ROA",
|
|
8593
|
+
reqBodyType: "json",
|
|
8594
|
+
bodyType: "none",
|
|
8595
|
+
});
|
|
8596
|
+
return $tea.cast<CreateAutoscalingConfigResponse>(await this.callApi(params, req, runtime), new CreateAutoscalingConfigResponse({}));
|
|
8368
8597
|
}
|
|
8369
8598
|
|
|
8370
8599
|
async createCluster(request: CreateClusterRequest): Promise<CreateClusterResponse> {
|
|
@@ -8436,6 +8665,10 @@ export default class Client extends OpenApi {
|
|
|
8436
8665
|
body["disable_rollback"] = request.disableRollback;
|
|
8437
8666
|
}
|
|
8438
8667
|
|
|
8668
|
+
if (!Util.isUnset(request.enableRrsa)) {
|
|
8669
|
+
body["enable_rrsa"] = request.enableRrsa;
|
|
8670
|
+
}
|
|
8671
|
+
|
|
8439
8672
|
if (!Util.isUnset(request.encryptionProviderKey)) {
|
|
8440
8673
|
body["encryption_provider_key"] = request.encryptionProviderKey;
|
|
8441
8674
|
}
|
|
@@ -8588,6 +8821,10 @@ export default class Client extends OpenApi {
|
|
|
8588
8821
|
body["region_id"] = request.regionId;
|
|
8589
8822
|
}
|
|
8590
8823
|
|
|
8824
|
+
if (!Util.isUnset(request.resourceGroupId)) {
|
|
8825
|
+
body["resource_group_id"] = request.resourceGroupId;
|
|
8826
|
+
}
|
|
8827
|
+
|
|
8591
8828
|
if (!Util.isUnset($tea.toMap(request.runtime))) {
|
|
8592
8829
|
body["runtime"] = request.runtime;
|
|
8593
8830
|
}
|
|
@@ -8708,7 +8945,18 @@ export default class Client extends OpenApi {
|
|
|
8708
8945
|
headers: headers,
|
|
8709
8946
|
body: OpenApiUtil.parseToMap(body),
|
|
8710
8947
|
});
|
|
8711
|
-
|
|
8948
|
+
let params = new $OpenApi.Params({
|
|
8949
|
+
action: "CreateCluster",
|
|
8950
|
+
version: "2015-12-15",
|
|
8951
|
+
protocol: "HTTPS",
|
|
8952
|
+
pathname: `/clusters`,
|
|
8953
|
+
method: "POST",
|
|
8954
|
+
authType: "AK",
|
|
8955
|
+
style: "ROA",
|
|
8956
|
+
reqBodyType: "json",
|
|
8957
|
+
bodyType: "json",
|
|
8958
|
+
});
|
|
8959
|
+
return $tea.cast<CreateClusterResponse>(await this.callApi(params, req, runtime), new CreateClusterResponse({}));
|
|
8712
8960
|
}
|
|
8713
8961
|
|
|
8714
8962
|
async createClusterNodePool(ClusterId: string, request: CreateClusterNodePoolRequest): Promise<CreateClusterNodePoolResponse> {
|
|
@@ -8765,7 +9013,18 @@ export default class Client extends OpenApi {
|
|
|
8765
9013
|
headers: headers,
|
|
8766
9014
|
body: OpenApiUtil.parseToMap(body),
|
|
8767
9015
|
});
|
|
8768
|
-
|
|
9016
|
+
let params = new $OpenApi.Params({
|
|
9017
|
+
action: "CreateClusterNodePool",
|
|
9018
|
+
version: "2015-12-15",
|
|
9019
|
+
protocol: "HTTPS",
|
|
9020
|
+
pathname: `/clusters/${ClusterId}/nodepools`,
|
|
9021
|
+
method: "POST",
|
|
9022
|
+
authType: "AK",
|
|
9023
|
+
style: "ROA",
|
|
9024
|
+
reqBodyType: "json",
|
|
9025
|
+
bodyType: "json",
|
|
9026
|
+
});
|
|
9027
|
+
return $tea.cast<CreateClusterNodePoolResponse>(await this.callApi(params, req, runtime), new CreateClusterNodePoolResponse({}));
|
|
8769
9028
|
}
|
|
8770
9029
|
|
|
8771
9030
|
async createEdgeMachine(request: CreateEdgeMachineRequest): Promise<CreateEdgeMachineResponse> {
|
|
@@ -8793,7 +9052,18 @@ export default class Client extends OpenApi {
|
|
|
8793
9052
|
headers: headers,
|
|
8794
9053
|
body: OpenApiUtil.parseToMap(body),
|
|
8795
9054
|
});
|
|
8796
|
-
|
|
9055
|
+
let params = new $OpenApi.Params({
|
|
9056
|
+
action: "CreateEdgeMachine",
|
|
9057
|
+
version: "2015-12-15",
|
|
9058
|
+
protocol: "HTTPS",
|
|
9059
|
+
pathname: `/edge_machines`,
|
|
9060
|
+
method: "POST",
|
|
9061
|
+
authType: "AK",
|
|
9062
|
+
style: "ROA",
|
|
9063
|
+
reqBodyType: "json",
|
|
9064
|
+
bodyType: "json",
|
|
9065
|
+
});
|
|
9066
|
+
return $tea.cast<CreateEdgeMachineResponse>(await this.callApi(params, req, runtime), new CreateEdgeMachineResponse({}));
|
|
8797
9067
|
}
|
|
8798
9068
|
|
|
8799
9069
|
async createKubernetesTrigger(request: CreateKubernetesTriggerRequest): Promise<CreateKubernetesTriggerResponse> {
|
|
@@ -8825,7 +9095,18 @@ export default class Client extends OpenApi {
|
|
|
8825
9095
|
headers: headers,
|
|
8826
9096
|
body: OpenApiUtil.parseToMap(body),
|
|
8827
9097
|
});
|
|
8828
|
-
|
|
9098
|
+
let params = new $OpenApi.Params({
|
|
9099
|
+
action: "CreateKubernetesTrigger",
|
|
9100
|
+
version: "2015-12-15",
|
|
9101
|
+
protocol: "HTTPS",
|
|
9102
|
+
pathname: `/triggers`,
|
|
9103
|
+
method: "POST",
|
|
9104
|
+
authType: "AK",
|
|
9105
|
+
style: "ROA",
|
|
9106
|
+
reqBodyType: "json",
|
|
9107
|
+
bodyType: "json",
|
|
9108
|
+
});
|
|
9109
|
+
return $tea.cast<CreateKubernetesTriggerResponse>(await this.callApi(params, req, runtime), new CreateKubernetesTriggerResponse({}));
|
|
8829
9110
|
}
|
|
8830
9111
|
|
|
8831
9112
|
async createTemplate(request: CreateTemplateRequest): Promise<CreateTemplateResponse> {
|
|
@@ -8861,7 +9142,18 @@ export default class Client extends OpenApi {
|
|
|
8861
9142
|
headers: headers,
|
|
8862
9143
|
body: OpenApiUtil.parseToMap(body),
|
|
8863
9144
|
});
|
|
8864
|
-
|
|
9145
|
+
let params = new $OpenApi.Params({
|
|
9146
|
+
action: "CreateTemplate",
|
|
9147
|
+
version: "2015-12-15",
|
|
9148
|
+
protocol: "HTTPS",
|
|
9149
|
+
pathname: `/templates`,
|
|
9150
|
+
method: "POST",
|
|
9151
|
+
authType: "AK",
|
|
9152
|
+
style: "ROA",
|
|
9153
|
+
reqBodyType: "json",
|
|
9154
|
+
bodyType: "json",
|
|
9155
|
+
});
|
|
9156
|
+
return $tea.cast<CreateTemplateResponse>(await this.callApi(params, req, runtime), new CreateTemplateResponse({}));
|
|
8865
9157
|
}
|
|
8866
9158
|
|
|
8867
9159
|
async createTrigger(clusterId: string, request: CreateTriggerRequest): Promise<CreateTriggerResponse> {
|
|
@@ -8894,7 +9186,18 @@ export default class Client extends OpenApi {
|
|
|
8894
9186
|
headers: headers,
|
|
8895
9187
|
body: OpenApiUtil.parseToMap(body),
|
|
8896
9188
|
});
|
|
8897
|
-
|
|
9189
|
+
let params = new $OpenApi.Params({
|
|
9190
|
+
action: "CreateTrigger",
|
|
9191
|
+
version: "2015-12-15",
|
|
9192
|
+
protocol: "HTTPS",
|
|
9193
|
+
pathname: `/clusters/${clusterId}/triggers`,
|
|
9194
|
+
method: "POST",
|
|
9195
|
+
authType: "AK",
|
|
9196
|
+
style: "ROA",
|
|
9197
|
+
reqBodyType: "json",
|
|
9198
|
+
bodyType: "json",
|
|
9199
|
+
});
|
|
9200
|
+
return $tea.cast<CreateTriggerResponse>(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
|
|
8898
9201
|
}
|
|
8899
9202
|
|
|
8900
9203
|
async deleteCluster(ClusterId: string, request: DeleteClusterRequest): Promise<DeleteClusterResponse> {
|
|
@@ -8929,7 +9232,18 @@ export default class Client extends OpenApi {
|
|
|
8929
9232
|
headers: headers,
|
|
8930
9233
|
query: OpenApiUtil.query(query),
|
|
8931
9234
|
});
|
|
8932
|
-
|
|
9235
|
+
let params = new $OpenApi.Params({
|
|
9236
|
+
action: "DeleteCluster",
|
|
9237
|
+
version: "2015-12-15",
|
|
9238
|
+
protocol: "HTTPS",
|
|
9239
|
+
pathname: `/clusters/${ClusterId}`,
|
|
9240
|
+
method: "DELETE",
|
|
9241
|
+
authType: "AK",
|
|
9242
|
+
style: "ROA",
|
|
9243
|
+
reqBodyType: "json",
|
|
9244
|
+
bodyType: "none",
|
|
9245
|
+
});
|
|
9246
|
+
return $tea.cast<DeleteClusterResponse>(await this.callApi(params, req, runtime), new DeleteClusterResponse({}));
|
|
8933
9247
|
}
|
|
8934
9248
|
|
|
8935
9249
|
async deleteClusterNodepool(ClusterId: string, NodepoolId: string): Promise<DeleteClusterNodepoolResponse> {
|
|
@@ -8944,7 +9258,18 @@ export default class Client extends OpenApi {
|
|
|
8944
9258
|
let req = new $OpenApi.OpenApiRequest({
|
|
8945
9259
|
headers: headers,
|
|
8946
9260
|
});
|
|
8947
|
-
|
|
9261
|
+
let params = new $OpenApi.Params({
|
|
9262
|
+
action: "DeleteClusterNodepool",
|
|
9263
|
+
version: "2015-12-15",
|
|
9264
|
+
protocol: "HTTPS",
|
|
9265
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
9266
|
+
method: "DELETE",
|
|
9267
|
+
authType: "AK",
|
|
9268
|
+
style: "ROA",
|
|
9269
|
+
reqBodyType: "json",
|
|
9270
|
+
bodyType: "json",
|
|
9271
|
+
});
|
|
9272
|
+
return $tea.cast<DeleteClusterNodepoolResponse>(await this.callApi(params, req, runtime), new DeleteClusterNodepoolResponse({}));
|
|
8948
9273
|
}
|
|
8949
9274
|
|
|
8950
9275
|
async deleteClusterNodes(ClusterId: string, request: DeleteClusterNodesRequest): Promise<DeleteClusterNodesResponse> {
|
|
@@ -8973,7 +9298,18 @@ export default class Client extends OpenApi {
|
|
|
8973
9298
|
headers: headers,
|
|
8974
9299
|
body: OpenApiUtil.parseToMap(body),
|
|
8975
9300
|
});
|
|
8976
|
-
|
|
9301
|
+
let params = new $OpenApi.Params({
|
|
9302
|
+
action: "DeleteClusterNodes",
|
|
9303
|
+
version: "2015-12-15",
|
|
9304
|
+
protocol: "HTTPS",
|
|
9305
|
+
pathname: `/clusters/${ClusterId}/nodes`,
|
|
9306
|
+
method: "POST",
|
|
9307
|
+
authType: "AK",
|
|
9308
|
+
style: "ROA",
|
|
9309
|
+
reqBodyType: "json",
|
|
9310
|
+
bodyType: "json",
|
|
9311
|
+
});
|
|
9312
|
+
return $tea.cast<DeleteClusterNodesResponse>(await this.callApi(params, req, runtime), new DeleteClusterNodesResponse({}));
|
|
8977
9313
|
}
|
|
8978
9314
|
|
|
8979
9315
|
async deleteEdgeMachine(edgeMachineid: string, request: DeleteEdgeMachineRequest): Promise<DeleteEdgeMachineResponse> {
|
|
@@ -8994,7 +9330,18 @@ export default class Client extends OpenApi {
|
|
|
8994
9330
|
headers: headers,
|
|
8995
9331
|
query: OpenApiUtil.query(query),
|
|
8996
9332
|
});
|
|
8997
|
-
|
|
9333
|
+
let params = new $OpenApi.Params({
|
|
9334
|
+
action: "DeleteEdgeMachine",
|
|
9335
|
+
version: "2015-12-15",
|
|
9336
|
+
protocol: "HTTPS",
|
|
9337
|
+
pathname: `/edge_machines/[edge_machineid]`,
|
|
9338
|
+
method: "DELETE",
|
|
9339
|
+
authType: "AK",
|
|
9340
|
+
style: "ROA",
|
|
9341
|
+
reqBodyType: "json",
|
|
9342
|
+
bodyType: "none",
|
|
9343
|
+
});
|
|
9344
|
+
return $tea.cast<DeleteEdgeMachineResponse>(await this.callApi(params, req, runtime), new DeleteEdgeMachineResponse({}));
|
|
8998
9345
|
}
|
|
8999
9346
|
|
|
9000
9347
|
async deleteKubernetesTrigger(Id: string): Promise<DeleteKubernetesTriggerResponse> {
|
|
@@ -9008,23 +9355,51 @@ export default class Client extends OpenApi {
|
|
|
9008
9355
|
let req = new $OpenApi.OpenApiRequest({
|
|
9009
9356
|
headers: headers,
|
|
9010
9357
|
});
|
|
9011
|
-
|
|
9358
|
+
let params = new $OpenApi.Params({
|
|
9359
|
+
action: "DeleteKubernetesTrigger",
|
|
9360
|
+
version: "2015-12-15",
|
|
9361
|
+
protocol: "HTTPS",
|
|
9362
|
+
pathname: `/triggers/revoke/${Id}`,
|
|
9363
|
+
method: "DELETE",
|
|
9364
|
+
authType: "AK",
|
|
9365
|
+
style: "ROA",
|
|
9366
|
+
reqBodyType: "json",
|
|
9367
|
+
bodyType: "none",
|
|
9368
|
+
});
|
|
9369
|
+
return $tea.cast<DeleteKubernetesTriggerResponse>(await this.callApi(params, req, runtime), new DeleteKubernetesTriggerResponse({}));
|
|
9012
9370
|
}
|
|
9013
9371
|
|
|
9014
|
-
async deletePolicyInstance(clusterId: string, policyName: string,
|
|
9372
|
+
async deletePolicyInstance(clusterId: string, policyName: string, request: DeletePolicyInstanceRequest): Promise<DeletePolicyInstanceResponse> {
|
|
9015
9373
|
let runtime = new $Util.RuntimeOptions({ });
|
|
9016
9374
|
let headers : {[key: string ]: string} = { };
|
|
9017
|
-
return await this.deletePolicyInstanceWithOptions(clusterId, policyName,
|
|
9375
|
+
return await this.deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
|
|
9018
9376
|
}
|
|
9019
9377
|
|
|
9020
|
-
async deletePolicyInstanceWithOptions(clusterId: string, policyName: string,
|
|
9378
|
+
async deletePolicyInstanceWithOptions(clusterId: string, policyName: string, request: DeletePolicyInstanceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeletePolicyInstanceResponse> {
|
|
9379
|
+
Util.validateModel(request);
|
|
9021
9380
|
clusterId = OpenApiUtil.getEncodeParam(clusterId);
|
|
9022
9381
|
policyName = OpenApiUtil.getEncodeParam(policyName);
|
|
9023
|
-
|
|
9382
|
+
let query : {[key: string ]: any} = { };
|
|
9383
|
+
if (!Util.isUnset(request.instanceName)) {
|
|
9384
|
+
query["instance_name"] = request.instanceName;
|
|
9385
|
+
}
|
|
9386
|
+
|
|
9024
9387
|
let req = new $OpenApi.OpenApiRequest({
|
|
9025
9388
|
headers: headers,
|
|
9389
|
+
query: OpenApiUtil.query(query),
|
|
9390
|
+
});
|
|
9391
|
+
let params = new $OpenApi.Params({
|
|
9392
|
+
action: "DeletePolicyInstance",
|
|
9393
|
+
version: "2015-12-15",
|
|
9394
|
+
protocol: "HTTPS",
|
|
9395
|
+
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
9396
|
+
method: "DELETE",
|
|
9397
|
+
authType: "AK",
|
|
9398
|
+
style: "ROA",
|
|
9399
|
+
reqBodyType: "json",
|
|
9400
|
+
bodyType: "json",
|
|
9026
9401
|
});
|
|
9027
|
-
return $tea.cast<DeletePolicyInstanceResponse>(await this.
|
|
9402
|
+
return $tea.cast<DeletePolicyInstanceResponse>(await this.callApi(params, req, runtime), new DeletePolicyInstanceResponse({}));
|
|
9028
9403
|
}
|
|
9029
9404
|
|
|
9030
9405
|
async deleteTemplate(TemplateId: string): Promise<DeleteTemplateResponse> {
|
|
@@ -9038,7 +9413,18 @@ export default class Client extends OpenApi {
|
|
|
9038
9413
|
let req = new $OpenApi.OpenApiRequest({
|
|
9039
9414
|
headers: headers,
|
|
9040
9415
|
});
|
|
9041
|
-
|
|
9416
|
+
let params = new $OpenApi.Params({
|
|
9417
|
+
action: "DeleteTemplate",
|
|
9418
|
+
version: "2015-12-15",
|
|
9419
|
+
protocol: "HTTPS",
|
|
9420
|
+
pathname: `/templates/${TemplateId}`,
|
|
9421
|
+
method: "DELETE",
|
|
9422
|
+
authType: "AK",
|
|
9423
|
+
style: "ROA",
|
|
9424
|
+
reqBodyType: "json",
|
|
9425
|
+
bodyType: "none",
|
|
9426
|
+
});
|
|
9427
|
+
return $tea.cast<DeleteTemplateResponse>(await this.callApi(params, req, runtime), new DeleteTemplateResponse({}));
|
|
9042
9428
|
}
|
|
9043
9429
|
|
|
9044
9430
|
async deleteTrigger(clusterId: string, Id: string): Promise<DeleteTriggerResponse> {
|
|
@@ -9053,7 +9439,18 @@ export default class Client extends OpenApi {
|
|
|
9053
9439
|
let req = new $OpenApi.OpenApiRequest({
|
|
9054
9440
|
headers: headers,
|
|
9055
9441
|
});
|
|
9056
|
-
|
|
9442
|
+
let params = new $OpenApi.Params({
|
|
9443
|
+
action: "DeleteTrigger",
|
|
9444
|
+
version: "2015-12-15",
|
|
9445
|
+
protocol: "HTTPS",
|
|
9446
|
+
pathname: `/clusters/[cluster_id]/triggers/[Id]`,
|
|
9447
|
+
method: "DELETE",
|
|
9448
|
+
authType: "AK",
|
|
9449
|
+
style: "ROA",
|
|
9450
|
+
reqBodyType: "json",
|
|
9451
|
+
bodyType: "none",
|
|
9452
|
+
});
|
|
9453
|
+
return $tea.cast<DeleteTriggerResponse>(await this.callApi(params, req, runtime), new DeleteTriggerResponse({}));
|
|
9057
9454
|
}
|
|
9058
9455
|
|
|
9059
9456
|
async deployPolicyInstance(clusterId: string, policyName: string, request: DeployPolicyInstanceRequest): Promise<DeployPolicyInstanceResponse> {
|
|
@@ -9083,7 +9480,18 @@ export default class Client extends OpenApi {
|
|
|
9083
9480
|
headers: headers,
|
|
9084
9481
|
body: OpenApiUtil.parseToMap(body),
|
|
9085
9482
|
});
|
|
9086
|
-
|
|
9483
|
+
let params = new $OpenApi.Params({
|
|
9484
|
+
action: "DeployPolicyInstance",
|
|
9485
|
+
version: "2015-12-15",
|
|
9486
|
+
protocol: "HTTPS",
|
|
9487
|
+
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
9488
|
+
method: "POST",
|
|
9489
|
+
authType: "AK",
|
|
9490
|
+
style: "ROA",
|
|
9491
|
+
reqBodyType: "json",
|
|
9492
|
+
bodyType: "json",
|
|
9493
|
+
});
|
|
9494
|
+
return $tea.cast<DeployPolicyInstanceResponse>(await this.callApi(params, req, runtime), new DeployPolicyInstanceResponse({}));
|
|
9087
9495
|
}
|
|
9088
9496
|
|
|
9089
9497
|
async descirbeWorkflow(workflowName: string): Promise<DescirbeWorkflowResponse> {
|
|
@@ -9097,7 +9505,18 @@ export default class Client extends OpenApi {
|
|
|
9097
9505
|
let req = new $OpenApi.OpenApiRequest({
|
|
9098
9506
|
headers: headers,
|
|
9099
9507
|
});
|
|
9100
|
-
|
|
9508
|
+
let params = new $OpenApi.Params({
|
|
9509
|
+
action: "DescirbeWorkflow",
|
|
9510
|
+
version: "2015-12-15",
|
|
9511
|
+
protocol: "HTTPS",
|
|
9512
|
+
pathname: `/gs/workflow/${workflowName}`,
|
|
9513
|
+
method: "GET",
|
|
9514
|
+
authType: "AK",
|
|
9515
|
+
style: "ROA",
|
|
9516
|
+
reqBodyType: "json",
|
|
9517
|
+
bodyType: "json",
|
|
9518
|
+
});
|
|
9519
|
+
return $tea.cast<DescirbeWorkflowResponse>(await this.callApi(params, req, runtime), new DescirbeWorkflowResponse({}));
|
|
9101
9520
|
}
|
|
9102
9521
|
|
|
9103
9522
|
async describeAddons(request: DescribeAddonsRequest): Promise<DescribeAddonsResponse> {
|
|
@@ -9121,7 +9540,18 @@ export default class Client extends OpenApi {
|
|
|
9121
9540
|
headers: headers,
|
|
9122
9541
|
query: OpenApiUtil.query(query),
|
|
9123
9542
|
});
|
|
9124
|
-
|
|
9543
|
+
let params = new $OpenApi.Params({
|
|
9544
|
+
action: "DescribeAddons",
|
|
9545
|
+
version: "2015-12-15",
|
|
9546
|
+
protocol: "HTTPS",
|
|
9547
|
+
pathname: `/clusters/components/metadata`,
|
|
9548
|
+
method: "GET",
|
|
9549
|
+
authType: "AK",
|
|
9550
|
+
style: "ROA",
|
|
9551
|
+
reqBodyType: "json",
|
|
9552
|
+
bodyType: "json",
|
|
9553
|
+
});
|
|
9554
|
+
return $tea.cast<DescribeAddonsResponse>(await this.callApi(params, req, runtime), new DescribeAddonsResponse({}));
|
|
9125
9555
|
}
|
|
9126
9556
|
|
|
9127
9557
|
async describeClusterAddonMetadata(clusterId: string, componentId: string, version: string): Promise<DescribeClusterAddonMetadataResponse> {
|
|
@@ -9137,7 +9567,18 @@ export default class Client extends OpenApi {
|
|
|
9137
9567
|
let req = new $OpenApi.OpenApiRequest({
|
|
9138
9568
|
headers: headers,
|
|
9139
9569
|
});
|
|
9140
|
-
|
|
9570
|
+
let params = new $OpenApi.Params({
|
|
9571
|
+
action: "DescribeClusterAddonMetadata",
|
|
9572
|
+
version: "2015-12-15",
|
|
9573
|
+
protocol: "HTTPS",
|
|
9574
|
+
pathname: `/clusters/${clusterId}/components/${componentId}/metadata`,
|
|
9575
|
+
method: "GET",
|
|
9576
|
+
authType: "AK",
|
|
9577
|
+
style: "ROA",
|
|
9578
|
+
reqBodyType: "json",
|
|
9579
|
+
bodyType: "json",
|
|
9580
|
+
});
|
|
9581
|
+
return $tea.cast<DescribeClusterAddonMetadataResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonMetadataResponse({}));
|
|
9141
9582
|
}
|
|
9142
9583
|
|
|
9143
9584
|
async describeClusterAddonUpgradeStatus(ClusterId: string, ComponentId: string): Promise<DescribeClusterAddonUpgradeStatusResponse> {
|
|
@@ -9152,7 +9593,18 @@ export default class Client extends OpenApi {
|
|
|
9152
9593
|
let req = new $OpenApi.OpenApiRequest({
|
|
9153
9594
|
headers: headers,
|
|
9154
9595
|
});
|
|
9155
|
-
|
|
9596
|
+
let params = new $OpenApi.Params({
|
|
9597
|
+
action: "DescribeClusterAddonUpgradeStatus",
|
|
9598
|
+
version: "2015-12-15",
|
|
9599
|
+
protocol: "HTTPS",
|
|
9600
|
+
pathname: `/clusters/${ClusterId}/components/${ComponentId}/upgradestatus`,
|
|
9601
|
+
method: "GET",
|
|
9602
|
+
authType: "AK",
|
|
9603
|
+
style: "ROA",
|
|
9604
|
+
reqBodyType: "json",
|
|
9605
|
+
bodyType: "json",
|
|
9606
|
+
});
|
|
9607
|
+
return $tea.cast<DescribeClusterAddonUpgradeStatusResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonUpgradeStatusResponse({}));
|
|
9156
9608
|
}
|
|
9157
9609
|
|
|
9158
9610
|
async describeClusterAddonsUpgradeStatus(ClusterId: string, request: DescribeClusterAddonsUpgradeStatusRequest): Promise<DescribeClusterAddonsUpgradeStatusResponse> {
|
|
@@ -9179,7 +9631,18 @@ export default class Client extends OpenApi {
|
|
|
9179
9631
|
headers: headers,
|
|
9180
9632
|
query: OpenApiUtil.query(query),
|
|
9181
9633
|
});
|
|
9182
|
-
|
|
9634
|
+
let params = new $OpenApi.Params({
|
|
9635
|
+
action: "DescribeClusterAddonsUpgradeStatus",
|
|
9636
|
+
version: "2015-12-15",
|
|
9637
|
+
protocol: "HTTPS",
|
|
9638
|
+
pathname: `/clusters/${ClusterId}/components/upgradestatus`,
|
|
9639
|
+
method: "GET",
|
|
9640
|
+
authType: "AK",
|
|
9641
|
+
style: "ROA",
|
|
9642
|
+
reqBodyType: "json",
|
|
9643
|
+
bodyType: "json",
|
|
9644
|
+
});
|
|
9645
|
+
return $tea.cast<DescribeClusterAddonsUpgradeStatusResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonsUpgradeStatusResponse({}));
|
|
9183
9646
|
}
|
|
9184
9647
|
|
|
9185
9648
|
async describeClusterAddonsVersion(ClusterId: string): Promise<DescribeClusterAddonsVersionResponse> {
|
|
@@ -9193,7 +9656,18 @@ export default class Client extends OpenApi {
|
|
|
9193
9656
|
let req = new $OpenApi.OpenApiRequest({
|
|
9194
9657
|
headers: headers,
|
|
9195
9658
|
});
|
|
9196
|
-
|
|
9659
|
+
let params = new $OpenApi.Params({
|
|
9660
|
+
action: "DescribeClusterAddonsVersion",
|
|
9661
|
+
version: "2015-12-15",
|
|
9662
|
+
protocol: "HTTPS",
|
|
9663
|
+
pathname: `/clusters/${ClusterId}/components/version`,
|
|
9664
|
+
method: "GET",
|
|
9665
|
+
authType: "AK",
|
|
9666
|
+
style: "ROA",
|
|
9667
|
+
reqBodyType: "json",
|
|
9668
|
+
bodyType: "json",
|
|
9669
|
+
});
|
|
9670
|
+
return $tea.cast<DescribeClusterAddonsVersionResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonsVersionResponse({}));
|
|
9197
9671
|
}
|
|
9198
9672
|
|
|
9199
9673
|
async describeClusterAttachScripts(ClusterId: string, request: DescribeClusterAttachScriptsRequest): Promise<DescribeClusterAttachScriptsResponse> {
|
|
@@ -9234,7 +9708,18 @@ export default class Client extends OpenApi {
|
|
|
9234
9708
|
headers: headers,
|
|
9235
9709
|
body: OpenApiUtil.parseToMap(body),
|
|
9236
9710
|
});
|
|
9237
|
-
|
|
9711
|
+
let params = new $OpenApi.Params({
|
|
9712
|
+
action: "DescribeClusterAttachScripts",
|
|
9713
|
+
version: "2015-12-15",
|
|
9714
|
+
protocol: "HTTPS",
|
|
9715
|
+
pathname: `/clusters/${ClusterId}/attachscript`,
|
|
9716
|
+
method: "POST",
|
|
9717
|
+
authType: "AK",
|
|
9718
|
+
style: "ROA",
|
|
9719
|
+
reqBodyType: "json",
|
|
9720
|
+
bodyType: "string",
|
|
9721
|
+
});
|
|
9722
|
+
return $tea.cast<DescribeClusterAttachScriptsResponse>(await this.callApi(params, req, runtime), new DescribeClusterAttachScriptsResponse({}));
|
|
9238
9723
|
}
|
|
9239
9724
|
|
|
9240
9725
|
async describeClusterDetail(ClusterId: string): Promise<DescribeClusterDetailResponse> {
|
|
@@ -9248,7 +9733,18 @@ export default class Client extends OpenApi {
|
|
|
9248
9733
|
let req = new $OpenApi.OpenApiRequest({
|
|
9249
9734
|
headers: headers,
|
|
9250
9735
|
});
|
|
9251
|
-
|
|
9736
|
+
let params = new $OpenApi.Params({
|
|
9737
|
+
action: "DescribeClusterDetail",
|
|
9738
|
+
version: "2015-12-15",
|
|
9739
|
+
protocol: "HTTPS",
|
|
9740
|
+
pathname: `/clusters/${ClusterId}`,
|
|
9741
|
+
method: "GET",
|
|
9742
|
+
authType: "AK",
|
|
9743
|
+
style: "ROA",
|
|
9744
|
+
reqBodyType: "json",
|
|
9745
|
+
bodyType: "json",
|
|
9746
|
+
});
|
|
9747
|
+
return $tea.cast<DescribeClusterDetailResponse>(await this.callApi(params, req, runtime), new DescribeClusterDetailResponse({}));
|
|
9252
9748
|
}
|
|
9253
9749
|
|
|
9254
9750
|
async describeClusterLogs(ClusterId: string): Promise<DescribeClusterLogsResponse> {
|
|
@@ -9262,7 +9758,18 @@ export default class Client extends OpenApi {
|
|
|
9262
9758
|
let req = new $OpenApi.OpenApiRequest({
|
|
9263
9759
|
headers: headers,
|
|
9264
9760
|
});
|
|
9265
|
-
|
|
9761
|
+
let params = new $OpenApi.Params({
|
|
9762
|
+
action: "DescribeClusterLogs",
|
|
9763
|
+
version: "2015-12-15",
|
|
9764
|
+
protocol: "HTTPS",
|
|
9765
|
+
pathname: `/clusters/${ClusterId}/logs`,
|
|
9766
|
+
method: "GET",
|
|
9767
|
+
authType: "AK",
|
|
9768
|
+
style: "ROA",
|
|
9769
|
+
reqBodyType: "json",
|
|
9770
|
+
bodyType: "array",
|
|
9771
|
+
});
|
|
9772
|
+
return $tea.cast<DescribeClusterLogsResponse>(await this.callApi(params, req, runtime), new DescribeClusterLogsResponse({}));
|
|
9266
9773
|
}
|
|
9267
9774
|
|
|
9268
9775
|
async describeClusterNamespaces(ClusterId: string): Promise<DescribeClusterNamespacesResponse> {
|
|
@@ -9276,7 +9783,18 @@ export default class Client extends OpenApi {
|
|
|
9276
9783
|
let req = new $OpenApi.OpenApiRequest({
|
|
9277
9784
|
headers: headers,
|
|
9278
9785
|
});
|
|
9279
|
-
|
|
9786
|
+
let params = new $OpenApi.Params({
|
|
9787
|
+
action: "DescribeClusterNamespaces",
|
|
9788
|
+
version: "2015-12-15",
|
|
9789
|
+
protocol: "HTTPS",
|
|
9790
|
+
pathname: `/k8s/${ClusterId}/namespaces`,
|
|
9791
|
+
method: "GET",
|
|
9792
|
+
authType: "AK",
|
|
9793
|
+
style: "ROA",
|
|
9794
|
+
reqBodyType: "json",
|
|
9795
|
+
bodyType: "array",
|
|
9796
|
+
});
|
|
9797
|
+
return $tea.cast<DescribeClusterNamespacesResponse>(await this.callApi(params, req, runtime), new DescribeClusterNamespacesResponse({}));
|
|
9280
9798
|
}
|
|
9281
9799
|
|
|
9282
9800
|
async describeClusterNodePoolDetail(ClusterId: string, NodepoolId: string): Promise<DescribeClusterNodePoolDetailResponse> {
|
|
@@ -9291,7 +9809,18 @@ export default class Client extends OpenApi {
|
|
|
9291
9809
|
let req = new $OpenApi.OpenApiRequest({
|
|
9292
9810
|
headers: headers,
|
|
9293
9811
|
});
|
|
9294
|
-
|
|
9812
|
+
let params = new $OpenApi.Params({
|
|
9813
|
+
action: "DescribeClusterNodePoolDetail",
|
|
9814
|
+
version: "2015-12-15",
|
|
9815
|
+
protocol: "HTTPS",
|
|
9816
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
9817
|
+
method: "GET",
|
|
9818
|
+
authType: "AK",
|
|
9819
|
+
style: "ROA",
|
|
9820
|
+
reqBodyType: "json",
|
|
9821
|
+
bodyType: "json",
|
|
9822
|
+
});
|
|
9823
|
+
return $tea.cast<DescribeClusterNodePoolDetailResponse>(await this.callApi(params, req, runtime), new DescribeClusterNodePoolDetailResponse({}));
|
|
9295
9824
|
}
|
|
9296
9825
|
|
|
9297
9826
|
async describeClusterNodePools(ClusterId: string): Promise<DescribeClusterNodePoolsResponse> {
|
|
@@ -9305,7 +9834,18 @@ export default class Client extends OpenApi {
|
|
|
9305
9834
|
let req = new $OpenApi.OpenApiRequest({
|
|
9306
9835
|
headers: headers,
|
|
9307
9836
|
});
|
|
9308
|
-
|
|
9837
|
+
let params = new $OpenApi.Params({
|
|
9838
|
+
action: "DescribeClusterNodePools",
|
|
9839
|
+
version: "2015-12-15",
|
|
9840
|
+
protocol: "HTTPS",
|
|
9841
|
+
pathname: `/clusters/${ClusterId}/nodepools`,
|
|
9842
|
+
method: "GET",
|
|
9843
|
+
authType: "AK",
|
|
9844
|
+
style: "ROA",
|
|
9845
|
+
reqBodyType: "json",
|
|
9846
|
+
bodyType: "json",
|
|
9847
|
+
});
|
|
9848
|
+
return $tea.cast<DescribeClusterNodePoolsResponse>(await this.callApi(params, req, runtime), new DescribeClusterNodePoolsResponse({}));
|
|
9309
9849
|
}
|
|
9310
9850
|
|
|
9311
9851
|
async describeClusterNodes(ClusterId: string, request: DescribeClusterNodesRequest): Promise<DescribeClusterNodesResponse> {
|
|
@@ -9342,7 +9882,18 @@ export default class Client extends OpenApi {
|
|
|
9342
9882
|
headers: headers,
|
|
9343
9883
|
query: OpenApiUtil.query(query),
|
|
9344
9884
|
});
|
|
9345
|
-
|
|
9885
|
+
let params = new $OpenApi.Params({
|
|
9886
|
+
action: "DescribeClusterNodes",
|
|
9887
|
+
version: "2015-12-15",
|
|
9888
|
+
protocol: "HTTPS",
|
|
9889
|
+
pathname: `/clusters/${ClusterId}/nodes`,
|
|
9890
|
+
method: "GET",
|
|
9891
|
+
authType: "AK",
|
|
9892
|
+
style: "ROA",
|
|
9893
|
+
reqBodyType: "json",
|
|
9894
|
+
bodyType: "json",
|
|
9895
|
+
});
|
|
9896
|
+
return $tea.cast<DescribeClusterNodesResponse>(await this.callApi(params, req, runtime), new DescribeClusterNodesResponse({}));
|
|
9346
9897
|
}
|
|
9347
9898
|
|
|
9348
9899
|
async describeClusterResources(ClusterId: string): Promise<DescribeClusterResourcesResponse> {
|
|
@@ -9356,7 +9907,18 @@ export default class Client extends OpenApi {
|
|
|
9356
9907
|
let req = new $OpenApi.OpenApiRequest({
|
|
9357
9908
|
headers: headers,
|
|
9358
9909
|
});
|
|
9359
|
-
|
|
9910
|
+
let params = new $OpenApi.Params({
|
|
9911
|
+
action: "DescribeClusterResources",
|
|
9912
|
+
version: "2015-12-15",
|
|
9913
|
+
protocol: "HTTPS",
|
|
9914
|
+
pathname: `/clusters/${ClusterId}/resources`,
|
|
9915
|
+
method: "GET",
|
|
9916
|
+
authType: "AK",
|
|
9917
|
+
style: "ROA",
|
|
9918
|
+
reqBodyType: "json",
|
|
9919
|
+
bodyType: "array",
|
|
9920
|
+
});
|
|
9921
|
+
return $tea.cast<DescribeClusterResourcesResponse>(await this.callApi(params, req, runtime), new DescribeClusterResourcesResponse({}));
|
|
9360
9922
|
}
|
|
9361
9923
|
|
|
9362
9924
|
async describeClusterUserKubeconfig(ClusterId: string, request: DescribeClusterUserKubeconfigRequest): Promise<DescribeClusterUserKubeconfigResponse> {
|
|
@@ -9381,7 +9943,18 @@ export default class Client extends OpenApi {
|
|
|
9381
9943
|
headers: headers,
|
|
9382
9944
|
query: OpenApiUtil.query(query),
|
|
9383
9945
|
});
|
|
9384
|
-
|
|
9946
|
+
let params = new $OpenApi.Params({
|
|
9947
|
+
action: "DescribeClusterUserKubeconfig",
|
|
9948
|
+
version: "2015-12-15",
|
|
9949
|
+
protocol: "HTTPS",
|
|
9950
|
+
pathname: `/k8s/${ClusterId}/user_config`,
|
|
9951
|
+
method: "GET",
|
|
9952
|
+
authType: "AK",
|
|
9953
|
+
style: "ROA",
|
|
9954
|
+
reqBodyType: "json",
|
|
9955
|
+
bodyType: "json",
|
|
9956
|
+
});
|
|
9957
|
+
return $tea.cast<DescribeClusterUserKubeconfigResponse>(await this.callApi(params, req, runtime), new DescribeClusterUserKubeconfigResponse({}));
|
|
9385
9958
|
}
|
|
9386
9959
|
|
|
9387
9960
|
async describeClusterV2UserKubeconfig(ClusterId: string, request: DescribeClusterV2UserKubeconfigRequest): Promise<DescribeClusterV2UserKubeconfigResponse> {
|
|
@@ -9402,7 +9975,18 @@ export default class Client extends OpenApi {
|
|
|
9402
9975
|
headers: headers,
|
|
9403
9976
|
query: OpenApiUtil.query(query),
|
|
9404
9977
|
});
|
|
9405
|
-
|
|
9978
|
+
let params = new $OpenApi.Params({
|
|
9979
|
+
action: "DescribeClusterV2UserKubeconfig",
|
|
9980
|
+
version: "2015-12-15",
|
|
9981
|
+
protocol: "HTTPS",
|
|
9982
|
+
pathname: `/api/v2/k8s/${ClusterId}/user_config`,
|
|
9983
|
+
method: "GET",
|
|
9984
|
+
authType: "AK",
|
|
9985
|
+
style: "ROA",
|
|
9986
|
+
reqBodyType: "json",
|
|
9987
|
+
bodyType: "json",
|
|
9988
|
+
});
|
|
9989
|
+
return $tea.cast<DescribeClusterV2UserKubeconfigResponse>(await this.callApi(params, req, runtime), new DescribeClusterV2UserKubeconfigResponse({}));
|
|
9406
9990
|
}
|
|
9407
9991
|
|
|
9408
9992
|
async describeClusters(request: DescribeClustersRequest): Promise<DescribeClustersResponse> {
|
|
@@ -9426,7 +10010,18 @@ export default class Client extends OpenApi {
|
|
|
9426
10010
|
headers: headers,
|
|
9427
10011
|
query: OpenApiUtil.query(query),
|
|
9428
10012
|
});
|
|
9429
|
-
|
|
10013
|
+
let params = new $OpenApi.Params({
|
|
10014
|
+
action: "DescribeClusters",
|
|
10015
|
+
version: "2015-12-15",
|
|
10016
|
+
protocol: "HTTPS",
|
|
10017
|
+
pathname: `/clusters`,
|
|
10018
|
+
method: "GET",
|
|
10019
|
+
authType: "AK",
|
|
10020
|
+
style: "ROA",
|
|
10021
|
+
reqBodyType: "json",
|
|
10022
|
+
bodyType: "array",
|
|
10023
|
+
});
|
|
10024
|
+
return $tea.cast<DescribeClustersResponse>(await this.callApi(params, req, runtime), new DescribeClustersResponse({}));
|
|
9430
10025
|
}
|
|
9431
10026
|
|
|
9432
10027
|
async describeClustersV1(request: DescribeClustersV1Request): Promise<DescribeClustersV1Response> {
|
|
@@ -9466,7 +10061,18 @@ export default class Client extends OpenApi {
|
|
|
9466
10061
|
headers: headers,
|
|
9467
10062
|
query: OpenApiUtil.query(query),
|
|
9468
10063
|
});
|
|
9469
|
-
|
|
10064
|
+
let params = new $OpenApi.Params({
|
|
10065
|
+
action: "DescribeClustersV1",
|
|
10066
|
+
version: "2015-12-15",
|
|
10067
|
+
protocol: "HTTPS",
|
|
10068
|
+
pathname: `/api/v1/clusters`,
|
|
10069
|
+
method: "GET",
|
|
10070
|
+
authType: "AK",
|
|
10071
|
+
style: "ROA",
|
|
10072
|
+
reqBodyType: "json",
|
|
10073
|
+
bodyType: "json",
|
|
10074
|
+
});
|
|
10075
|
+
return $tea.cast<DescribeClustersV1Response>(await this.callApi(params, req, runtime), new DescribeClustersV1Response({}));
|
|
9470
10076
|
}
|
|
9471
10077
|
|
|
9472
10078
|
async describeEdgeMachineActiveProcess(edgeMachineid: string): Promise<DescribeEdgeMachineActiveProcessResponse> {
|
|
@@ -9480,7 +10086,18 @@ export default class Client extends OpenApi {
|
|
|
9480
10086
|
let req = new $OpenApi.OpenApiRequest({
|
|
9481
10087
|
headers: headers,
|
|
9482
10088
|
});
|
|
9483
|
-
|
|
10089
|
+
let params = new $OpenApi.Params({
|
|
10090
|
+
action: "DescribeEdgeMachineActiveProcess",
|
|
10091
|
+
version: "2015-12-15",
|
|
10092
|
+
protocol: "HTTPS",
|
|
10093
|
+
pathname: `/edge_machines/[edge_machineid]/activeprocess`,
|
|
10094
|
+
method: "GET",
|
|
10095
|
+
authType: "AK",
|
|
10096
|
+
style: "ROA",
|
|
10097
|
+
reqBodyType: "json",
|
|
10098
|
+
bodyType: "json",
|
|
10099
|
+
});
|
|
10100
|
+
return $tea.cast<DescribeEdgeMachineActiveProcessResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachineActiveProcessResponse({}));
|
|
9484
10101
|
}
|
|
9485
10102
|
|
|
9486
10103
|
async describeEdgeMachineModels(): Promise<DescribeEdgeMachineModelsResponse> {
|
|
@@ -9493,7 +10110,18 @@ export default class Client extends OpenApi {
|
|
|
9493
10110
|
let req = new $OpenApi.OpenApiRequest({
|
|
9494
10111
|
headers: headers,
|
|
9495
10112
|
});
|
|
9496
|
-
|
|
10113
|
+
let params = new $OpenApi.Params({
|
|
10114
|
+
action: "DescribeEdgeMachineModels",
|
|
10115
|
+
version: "2015-12-15",
|
|
10116
|
+
protocol: "HTTPS",
|
|
10117
|
+
pathname: `/edge_machines/models`,
|
|
10118
|
+
method: "GET",
|
|
10119
|
+
authType: "AK",
|
|
10120
|
+
style: "ROA",
|
|
10121
|
+
reqBodyType: "json",
|
|
10122
|
+
bodyType: "json",
|
|
10123
|
+
});
|
|
10124
|
+
return $tea.cast<DescribeEdgeMachineModelsResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachineModelsResponse({}));
|
|
9497
10125
|
}
|
|
9498
10126
|
|
|
9499
10127
|
async describeEdgeMachineTunnelConfigDetail(edgeMachineid: string): Promise<DescribeEdgeMachineTunnelConfigDetailResponse> {
|
|
@@ -9507,7 +10135,18 @@ export default class Client extends OpenApi {
|
|
|
9507
10135
|
let req = new $OpenApi.OpenApiRequest({
|
|
9508
10136
|
headers: headers,
|
|
9509
10137
|
});
|
|
9510
|
-
|
|
10138
|
+
let params = new $OpenApi.Params({
|
|
10139
|
+
action: "DescribeEdgeMachineTunnelConfigDetail",
|
|
10140
|
+
version: "2015-12-15",
|
|
10141
|
+
protocol: "HTTPS",
|
|
10142
|
+
pathname: `/edge_machines/[edge_machineid]/tunnelconfig`,
|
|
10143
|
+
method: "POST",
|
|
10144
|
+
authType: "AK",
|
|
10145
|
+
style: "ROA",
|
|
10146
|
+
reqBodyType: "json",
|
|
10147
|
+
bodyType: "json",
|
|
10148
|
+
});
|
|
10149
|
+
return $tea.cast<DescribeEdgeMachineTunnelConfigDetailResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachineTunnelConfigDetailResponse({}));
|
|
9511
10150
|
}
|
|
9512
10151
|
|
|
9513
10152
|
async describeEdgeMachines(request: DescribeEdgeMachinesRequest): Promise<DescribeEdgeMachinesResponse> {
|
|
@@ -9547,7 +10186,18 @@ export default class Client extends OpenApi {
|
|
|
9547
10186
|
headers: headers,
|
|
9548
10187
|
query: OpenApiUtil.query(query),
|
|
9549
10188
|
});
|
|
9550
|
-
|
|
10189
|
+
let params = new $OpenApi.Params({
|
|
10190
|
+
action: "DescribeEdgeMachines",
|
|
10191
|
+
version: "2015-12-15",
|
|
10192
|
+
protocol: "HTTPS",
|
|
10193
|
+
pathname: `/edge_machines`,
|
|
10194
|
+
method: "GET",
|
|
10195
|
+
authType: "AK",
|
|
10196
|
+
style: "ROA",
|
|
10197
|
+
reqBodyType: "json",
|
|
10198
|
+
bodyType: "json",
|
|
10199
|
+
});
|
|
10200
|
+
return $tea.cast<DescribeEdgeMachinesResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachinesResponse({}));
|
|
9551
10201
|
}
|
|
9552
10202
|
|
|
9553
10203
|
async describeEvents(request: DescribeEventsRequest): Promise<DescribeEventsResponse> {
|
|
@@ -9579,7 +10229,18 @@ export default class Client extends OpenApi {
|
|
|
9579
10229
|
headers: headers,
|
|
9580
10230
|
query: OpenApiUtil.query(query),
|
|
9581
10231
|
});
|
|
9582
|
-
|
|
10232
|
+
let params = new $OpenApi.Params({
|
|
10233
|
+
action: "DescribeEvents",
|
|
10234
|
+
version: "2015-12-15",
|
|
10235
|
+
protocol: "HTTPS",
|
|
10236
|
+
pathname: `/events`,
|
|
10237
|
+
method: "GET",
|
|
10238
|
+
authType: "AK",
|
|
10239
|
+
style: "ROA",
|
|
10240
|
+
reqBodyType: "json",
|
|
10241
|
+
bodyType: "json",
|
|
10242
|
+
});
|
|
10243
|
+
return $tea.cast<DescribeEventsResponse>(await this.callApi(params, req, runtime), new DescribeEventsResponse({}));
|
|
9583
10244
|
}
|
|
9584
10245
|
|
|
9585
10246
|
async describeExternalAgent(ClusterId: string, request: DescribeExternalAgentRequest): Promise<DescribeExternalAgentResponse> {
|
|
@@ -9600,7 +10261,18 @@ export default class Client extends OpenApi {
|
|
|
9600
10261
|
headers: headers,
|
|
9601
10262
|
query: OpenApiUtil.query(query),
|
|
9602
10263
|
});
|
|
9603
|
-
|
|
10264
|
+
let params = new $OpenApi.Params({
|
|
10265
|
+
action: "DescribeExternalAgent",
|
|
10266
|
+
version: "2015-12-15",
|
|
10267
|
+
protocol: "HTTPS",
|
|
10268
|
+
pathname: `/k8s/${ClusterId}/external/agent/deployment`,
|
|
10269
|
+
method: "GET",
|
|
10270
|
+
authType: "AK",
|
|
10271
|
+
style: "ROA",
|
|
10272
|
+
reqBodyType: "json",
|
|
10273
|
+
bodyType: "json",
|
|
10274
|
+
});
|
|
10275
|
+
return $tea.cast<DescribeExternalAgentResponse>(await this.callApi(params, req, runtime), new DescribeExternalAgentResponse({}));
|
|
9604
10276
|
}
|
|
9605
10277
|
|
|
9606
10278
|
async describeKubernetesVersionMetadata(request: DescribeKubernetesVersionMetadataRequest): Promise<DescribeKubernetesVersionMetadataResponse> {
|
|
@@ -9628,11 +10300,26 @@ export default class Client extends OpenApi {
|
|
|
9628
10300
|
query["Region"] = request.region;
|
|
9629
10301
|
}
|
|
9630
10302
|
|
|
10303
|
+
if (!Util.isUnset(request.runtime)) {
|
|
10304
|
+
query["runtime"] = request.runtime;
|
|
10305
|
+
}
|
|
10306
|
+
|
|
9631
10307
|
let req = new $OpenApi.OpenApiRequest({
|
|
9632
10308
|
headers: headers,
|
|
9633
10309
|
query: OpenApiUtil.query(query),
|
|
9634
10310
|
});
|
|
9635
|
-
|
|
10311
|
+
let params = new $OpenApi.Params({
|
|
10312
|
+
action: "DescribeKubernetesVersionMetadata",
|
|
10313
|
+
version: "2015-12-15",
|
|
10314
|
+
protocol: "HTTPS",
|
|
10315
|
+
pathname: `/api/v1/metadata/versions`,
|
|
10316
|
+
method: "GET",
|
|
10317
|
+
authType: "AK",
|
|
10318
|
+
style: "ROA",
|
|
10319
|
+
reqBodyType: "json",
|
|
10320
|
+
bodyType: "array",
|
|
10321
|
+
});
|
|
10322
|
+
return $tea.cast<DescribeKubernetesVersionMetadataResponse>(await this.callApi(params, req, runtime), new DescribeKubernetesVersionMetadataResponse({}));
|
|
9636
10323
|
}
|
|
9637
10324
|
|
|
9638
10325
|
async describePolicies(): Promise<DescribePoliciesResponse> {
|
|
@@ -9645,7 +10332,18 @@ export default class Client extends OpenApi {
|
|
|
9645
10332
|
let req = new $OpenApi.OpenApiRequest({
|
|
9646
10333
|
headers: headers,
|
|
9647
10334
|
});
|
|
9648
|
-
|
|
10335
|
+
let params = new $OpenApi.Params({
|
|
10336
|
+
action: "DescribePolicies",
|
|
10337
|
+
version: "2015-12-15",
|
|
10338
|
+
protocol: "HTTPS",
|
|
10339
|
+
pathname: `/policies`,
|
|
10340
|
+
method: "GET",
|
|
10341
|
+
authType: "AK",
|
|
10342
|
+
style: "ROA",
|
|
10343
|
+
reqBodyType: "json",
|
|
10344
|
+
bodyType: "json",
|
|
10345
|
+
});
|
|
10346
|
+
return $tea.cast<DescribePoliciesResponse>(await this.callApi(params, req, runtime), new DescribePoliciesResponse({}));
|
|
9649
10347
|
}
|
|
9650
10348
|
|
|
9651
10349
|
async describePolicyDetails(policyName: string): Promise<DescribePolicyDetailsResponse> {
|
|
@@ -9659,7 +10357,18 @@ export default class Client extends OpenApi {
|
|
|
9659
10357
|
let req = new $OpenApi.OpenApiRequest({
|
|
9660
10358
|
headers: headers,
|
|
9661
10359
|
});
|
|
9662
|
-
|
|
10360
|
+
let params = new $OpenApi.Params({
|
|
10361
|
+
action: "DescribePolicyDetails",
|
|
10362
|
+
version: "2015-12-15",
|
|
10363
|
+
protocol: "HTTPS",
|
|
10364
|
+
pathname: `/policies/${policyName}`,
|
|
10365
|
+
method: "GET",
|
|
10366
|
+
authType: "AK",
|
|
10367
|
+
style: "ROA",
|
|
10368
|
+
reqBodyType: "json",
|
|
10369
|
+
bodyType: "json",
|
|
10370
|
+
});
|
|
10371
|
+
return $tea.cast<DescribePolicyDetailsResponse>(await this.callApi(params, req, runtime), new DescribePolicyDetailsResponse({}));
|
|
9663
10372
|
}
|
|
9664
10373
|
|
|
9665
10374
|
async describePolicyGovernanceInCluster(clusterId: string): Promise<DescribePolicyGovernanceInClusterResponse> {
|
|
@@ -9673,7 +10382,18 @@ export default class Client extends OpenApi {
|
|
|
9673
10382
|
let req = new $OpenApi.OpenApiRequest({
|
|
9674
10383
|
headers: headers,
|
|
9675
10384
|
});
|
|
9676
|
-
|
|
10385
|
+
let params = new $OpenApi.Params({
|
|
10386
|
+
action: "DescribePolicyGovernanceInCluster",
|
|
10387
|
+
version: "2015-12-15",
|
|
10388
|
+
protocol: "HTTPS",
|
|
10389
|
+
pathname: `/clusters/${clusterId}/policygovernance`,
|
|
10390
|
+
method: "GET",
|
|
10391
|
+
authType: "AK",
|
|
10392
|
+
style: "ROA",
|
|
10393
|
+
reqBodyType: "json",
|
|
10394
|
+
bodyType: "json",
|
|
10395
|
+
});
|
|
10396
|
+
return $tea.cast<DescribePolicyGovernanceInClusterResponse>(await this.callApi(params, req, runtime), new DescribePolicyGovernanceInClusterResponse({}));
|
|
9677
10397
|
}
|
|
9678
10398
|
|
|
9679
10399
|
async describePolicyInstances(clusterId: string, request: DescribePolicyInstancesRequest): Promise<DescribePolicyInstancesResponse> {
|
|
@@ -9698,7 +10418,18 @@ export default class Client extends OpenApi {
|
|
|
9698
10418
|
headers: headers,
|
|
9699
10419
|
query: OpenApiUtil.query(query),
|
|
9700
10420
|
});
|
|
9701
|
-
|
|
10421
|
+
let params = new $OpenApi.Params({
|
|
10422
|
+
action: "DescribePolicyInstances",
|
|
10423
|
+
version: "2015-12-15",
|
|
10424
|
+
protocol: "HTTPS",
|
|
10425
|
+
pathname: `/clusters/${clusterId}/policies`,
|
|
10426
|
+
method: "GET",
|
|
10427
|
+
authType: "AK",
|
|
10428
|
+
style: "ROA",
|
|
10429
|
+
reqBodyType: "json",
|
|
10430
|
+
bodyType: "array",
|
|
10431
|
+
});
|
|
10432
|
+
return $tea.cast<DescribePolicyInstancesResponse>(await this.callApi(params, req, runtime), new DescribePolicyInstancesResponse({}));
|
|
9702
10433
|
}
|
|
9703
10434
|
|
|
9704
10435
|
async describePolicyInstancesStatus(clusterId: string): Promise<DescribePolicyInstancesStatusResponse> {
|
|
@@ -9712,7 +10443,18 @@ export default class Client extends OpenApi {
|
|
|
9712
10443
|
let req = new $OpenApi.OpenApiRequest({
|
|
9713
10444
|
headers: headers,
|
|
9714
10445
|
});
|
|
9715
|
-
|
|
10446
|
+
let params = new $OpenApi.Params({
|
|
10447
|
+
action: "DescribePolicyInstancesStatus",
|
|
10448
|
+
version: "2015-12-15",
|
|
10449
|
+
protocol: "HTTPS",
|
|
10450
|
+
pathname: `/clusters/${clusterId}/policies/status`,
|
|
10451
|
+
method: "GET",
|
|
10452
|
+
authType: "AK",
|
|
10453
|
+
style: "ROA",
|
|
10454
|
+
reqBodyType: "json",
|
|
10455
|
+
bodyType: "json",
|
|
10456
|
+
});
|
|
10457
|
+
return $tea.cast<DescribePolicyInstancesStatusResponse>(await this.callApi(params, req, runtime), new DescribePolicyInstancesStatusResponse({}));
|
|
9716
10458
|
}
|
|
9717
10459
|
|
|
9718
10460
|
async describeTaskInfo(taskId: string): Promise<DescribeTaskInfoResponse> {
|
|
@@ -9726,7 +10468,18 @@ export default class Client extends OpenApi {
|
|
|
9726
10468
|
let req = new $OpenApi.OpenApiRequest({
|
|
9727
10469
|
headers: headers,
|
|
9728
10470
|
});
|
|
9729
|
-
|
|
10471
|
+
let params = new $OpenApi.Params({
|
|
10472
|
+
action: "DescribeTaskInfo",
|
|
10473
|
+
version: "2015-12-15",
|
|
10474
|
+
protocol: "HTTPS",
|
|
10475
|
+
pathname: `/tasks/${taskId}`,
|
|
10476
|
+
method: "GET",
|
|
10477
|
+
authType: "AK",
|
|
10478
|
+
style: "ROA",
|
|
10479
|
+
reqBodyType: "json",
|
|
10480
|
+
bodyType: "json",
|
|
10481
|
+
});
|
|
10482
|
+
return $tea.cast<DescribeTaskInfoResponse>(await this.callApi(params, req, runtime), new DescribeTaskInfoResponse({}));
|
|
9730
10483
|
}
|
|
9731
10484
|
|
|
9732
10485
|
async describeTemplateAttribute(TemplateId: string, request: DescribeTemplateAttributeRequest): Promise<DescribeTemplateAttributeResponse> {
|
|
@@ -9747,7 +10500,18 @@ export default class Client extends OpenApi {
|
|
|
9747
10500
|
headers: headers,
|
|
9748
10501
|
query: OpenApiUtil.query(query),
|
|
9749
10502
|
});
|
|
9750
|
-
|
|
10503
|
+
let params = new $OpenApi.Params({
|
|
10504
|
+
action: "DescribeTemplateAttribute",
|
|
10505
|
+
version: "2015-12-15",
|
|
10506
|
+
protocol: "HTTPS",
|
|
10507
|
+
pathname: `/templates/${TemplateId}`,
|
|
10508
|
+
method: "GET",
|
|
10509
|
+
authType: "AK",
|
|
10510
|
+
style: "ROA",
|
|
10511
|
+
reqBodyType: "json",
|
|
10512
|
+
bodyType: "array",
|
|
10513
|
+
});
|
|
10514
|
+
return $tea.cast<DescribeTemplateAttributeResponse>(await this.callApi(params, req, runtime), new DescribeTemplateAttributeResponse({}));
|
|
9751
10515
|
}
|
|
9752
10516
|
|
|
9753
10517
|
async describeTemplates(request: DescribeTemplatesRequest): Promise<DescribeTemplatesResponse> {
|
|
@@ -9775,7 +10539,18 @@ export default class Client extends OpenApi {
|
|
|
9775
10539
|
headers: headers,
|
|
9776
10540
|
query: OpenApiUtil.query(query),
|
|
9777
10541
|
});
|
|
9778
|
-
|
|
10542
|
+
let params = new $OpenApi.Params({
|
|
10543
|
+
action: "DescribeTemplates",
|
|
10544
|
+
version: "2015-12-15",
|
|
10545
|
+
protocol: "HTTPS",
|
|
10546
|
+
pathname: `/templates`,
|
|
10547
|
+
method: "GET",
|
|
10548
|
+
authType: "AK",
|
|
10549
|
+
style: "ROA",
|
|
10550
|
+
reqBodyType: "json",
|
|
10551
|
+
bodyType: "json",
|
|
10552
|
+
});
|
|
10553
|
+
return $tea.cast<DescribeTemplatesResponse>(await this.callApi(params, req, runtime), new DescribeTemplatesResponse({}));
|
|
9779
10554
|
}
|
|
9780
10555
|
|
|
9781
10556
|
async describeTrigger(clusterId: string, request: DescribeTriggerRequest): Promise<DescribeTriggerResponse> {
|
|
@@ -9808,7 +10583,18 @@ export default class Client extends OpenApi {
|
|
|
9808
10583
|
headers: headers,
|
|
9809
10584
|
query: OpenApiUtil.query(query),
|
|
9810
10585
|
});
|
|
9811
|
-
|
|
10586
|
+
let params = new $OpenApi.Params({
|
|
10587
|
+
action: "DescribeTrigger",
|
|
10588
|
+
version: "2015-12-15",
|
|
10589
|
+
protocol: "HTTPS",
|
|
10590
|
+
pathname: `/clusters/[cluster_id]/triggers`,
|
|
10591
|
+
method: "GET",
|
|
10592
|
+
authType: "AK",
|
|
10593
|
+
style: "ROA",
|
|
10594
|
+
reqBodyType: "json",
|
|
10595
|
+
bodyType: "array",
|
|
10596
|
+
});
|
|
10597
|
+
return $tea.cast<DescribeTriggerResponse>(await this.callApi(params, req, runtime), new DescribeTriggerResponse({}));
|
|
9812
10598
|
}
|
|
9813
10599
|
|
|
9814
10600
|
async describeUserPermission(uid: string): Promise<DescribeUserPermissionResponse> {
|
|
@@ -9822,7 +10608,18 @@ export default class Client extends OpenApi {
|
|
|
9822
10608
|
let req = new $OpenApi.OpenApiRequest({
|
|
9823
10609
|
headers: headers,
|
|
9824
10610
|
});
|
|
9825
|
-
|
|
10611
|
+
let params = new $OpenApi.Params({
|
|
10612
|
+
action: "DescribeUserPermission",
|
|
10613
|
+
version: "2015-12-15",
|
|
10614
|
+
protocol: "HTTPS",
|
|
10615
|
+
pathname: `/permissions/users/${uid}`,
|
|
10616
|
+
method: "GET",
|
|
10617
|
+
authType: "AK",
|
|
10618
|
+
style: "ROA",
|
|
10619
|
+
reqBodyType: "json",
|
|
10620
|
+
bodyType: "array",
|
|
10621
|
+
});
|
|
10622
|
+
return $tea.cast<DescribeUserPermissionResponse>(await this.callApi(params, req, runtime), new DescribeUserPermissionResponse({}));
|
|
9826
10623
|
}
|
|
9827
10624
|
|
|
9828
10625
|
async describeUserQuota(): Promise<DescribeUserQuotaResponse> {
|
|
@@ -9835,7 +10632,18 @@ export default class Client extends OpenApi {
|
|
|
9835
10632
|
let req = new $OpenApi.OpenApiRequest({
|
|
9836
10633
|
headers: headers,
|
|
9837
10634
|
});
|
|
9838
|
-
|
|
10635
|
+
let params = new $OpenApi.Params({
|
|
10636
|
+
action: "DescribeUserQuota",
|
|
10637
|
+
version: "2015-12-15",
|
|
10638
|
+
protocol: "HTTPS",
|
|
10639
|
+
pathname: `/quota`,
|
|
10640
|
+
method: "GET",
|
|
10641
|
+
authType: "AK",
|
|
10642
|
+
style: "ROA",
|
|
10643
|
+
reqBodyType: "json",
|
|
10644
|
+
bodyType: "json",
|
|
10645
|
+
});
|
|
10646
|
+
return $tea.cast<DescribeUserQuotaResponse>(await this.callApi(params, req, runtime), new DescribeUserQuotaResponse({}));
|
|
9839
10647
|
}
|
|
9840
10648
|
|
|
9841
10649
|
async describeWorkflows(): Promise<DescribeWorkflowsResponse> {
|
|
@@ -9848,7 +10656,18 @@ export default class Client extends OpenApi {
|
|
|
9848
10656
|
let req = new $OpenApi.OpenApiRequest({
|
|
9849
10657
|
headers: headers,
|
|
9850
10658
|
});
|
|
9851
|
-
|
|
10659
|
+
let params = new $OpenApi.Params({
|
|
10660
|
+
action: "DescribeWorkflows",
|
|
10661
|
+
version: "2015-12-15",
|
|
10662
|
+
protocol: "HTTPS",
|
|
10663
|
+
pathname: `/gs/workflows`,
|
|
10664
|
+
method: "GET",
|
|
10665
|
+
authType: "AK",
|
|
10666
|
+
style: "ROA",
|
|
10667
|
+
reqBodyType: "json",
|
|
10668
|
+
bodyType: "json",
|
|
10669
|
+
});
|
|
10670
|
+
return $tea.cast<DescribeWorkflowsResponse>(await this.callApi(params, req, runtime), new DescribeWorkflowsResponse({}));
|
|
9852
10671
|
}
|
|
9853
10672
|
|
|
9854
10673
|
async edgeClusterAddEdgeMachine(clusterid: string, edgeMachineid: string, request: EdgeClusterAddEdgeMachineRequest): Promise<EdgeClusterAddEdgeMachineResponse> {
|
|
@@ -9878,7 +10697,18 @@ export default class Client extends OpenApi {
|
|
|
9878
10697
|
headers: headers,
|
|
9879
10698
|
body: OpenApiUtil.parseToMap(body),
|
|
9880
10699
|
});
|
|
9881
|
-
|
|
10700
|
+
let params = new $OpenApi.Params({
|
|
10701
|
+
action: "EdgeClusterAddEdgeMachine",
|
|
10702
|
+
version: "2015-12-15",
|
|
10703
|
+
protocol: "HTTPS",
|
|
10704
|
+
pathname: `/clusters/[clusterid]/attachedgemachine/[edge_machineid]`,
|
|
10705
|
+
method: "POST",
|
|
10706
|
+
authType: "AK",
|
|
10707
|
+
style: "ROA",
|
|
10708
|
+
reqBodyType: "json",
|
|
10709
|
+
bodyType: "json",
|
|
10710
|
+
});
|
|
10711
|
+
return $tea.cast<EdgeClusterAddEdgeMachineResponse>(await this.callApi(params, req, runtime), new EdgeClusterAddEdgeMachineResponse({}));
|
|
9882
10712
|
}
|
|
9883
10713
|
|
|
9884
10714
|
async getKubernetesTrigger(ClusterId: string, request: GetKubernetesTriggerRequest): Promise<GetKubernetesTriggerResponse> {
|
|
@@ -9911,7 +10741,18 @@ export default class Client extends OpenApi {
|
|
|
9911
10741
|
headers: headers,
|
|
9912
10742
|
query: OpenApiUtil.query(query),
|
|
9913
10743
|
});
|
|
9914
|
-
|
|
10744
|
+
let params = new $OpenApi.Params({
|
|
10745
|
+
action: "GetKubernetesTrigger",
|
|
10746
|
+
version: "2015-12-15",
|
|
10747
|
+
protocol: "HTTPS",
|
|
10748
|
+
pathname: `/triggers/${ClusterId}`,
|
|
10749
|
+
method: "GET",
|
|
10750
|
+
authType: "AK",
|
|
10751
|
+
style: "ROA",
|
|
10752
|
+
reqBodyType: "json",
|
|
10753
|
+
bodyType: "array",
|
|
10754
|
+
});
|
|
10755
|
+
return $tea.cast<GetKubernetesTriggerResponse>(await this.callApi(params, req, runtime), new GetKubernetesTriggerResponse({}));
|
|
9915
10756
|
}
|
|
9916
10757
|
|
|
9917
10758
|
async getUpgradeStatus(ClusterId: string): Promise<GetUpgradeStatusResponse> {
|
|
@@ -9925,7 +10766,18 @@ export default class Client extends OpenApi {
|
|
|
9925
10766
|
let req = new $OpenApi.OpenApiRequest({
|
|
9926
10767
|
headers: headers,
|
|
9927
10768
|
});
|
|
9928
|
-
|
|
10769
|
+
let params = new $OpenApi.Params({
|
|
10770
|
+
action: "GetUpgradeStatus",
|
|
10771
|
+
version: "2015-12-15",
|
|
10772
|
+
protocol: "HTTPS",
|
|
10773
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/status`,
|
|
10774
|
+
method: "GET",
|
|
10775
|
+
authType: "AK",
|
|
10776
|
+
style: "ROA",
|
|
10777
|
+
reqBodyType: "json",
|
|
10778
|
+
bodyType: "json",
|
|
10779
|
+
});
|
|
10780
|
+
return $tea.cast<GetUpgradeStatusResponse>(await this.callApi(params, req, runtime), new GetUpgradeStatusResponse({}));
|
|
9929
10781
|
}
|
|
9930
10782
|
|
|
9931
10783
|
async grantPermissions(uid: string, request: GrantPermissionsRequest): Promise<GrantPermissionsResponse> {
|
|
@@ -9941,7 +10793,18 @@ export default class Client extends OpenApi {
|
|
|
9941
10793
|
headers: headers,
|
|
9942
10794
|
body: Util.toArray(request.body),
|
|
9943
10795
|
});
|
|
9944
|
-
|
|
10796
|
+
let params = new $OpenApi.Params({
|
|
10797
|
+
action: "GrantPermissions",
|
|
10798
|
+
version: "2015-12-15",
|
|
10799
|
+
protocol: "HTTPS",
|
|
10800
|
+
pathname: `/permissions/users/${uid}`,
|
|
10801
|
+
method: "POST",
|
|
10802
|
+
authType: "AK",
|
|
10803
|
+
style: "ROA",
|
|
10804
|
+
reqBodyType: "json",
|
|
10805
|
+
bodyType: "none",
|
|
10806
|
+
});
|
|
10807
|
+
return $tea.cast<GrantPermissionsResponse>(await this.callApi(params, req, runtime), new GrantPermissionsResponse({}));
|
|
9945
10808
|
}
|
|
9946
10809
|
|
|
9947
10810
|
async installClusterAddons(ClusterId: string, request: InstallClusterAddonsRequest): Promise<InstallClusterAddonsResponse> {
|
|
@@ -9957,7 +10820,18 @@ export default class Client extends OpenApi {
|
|
|
9957
10820
|
headers: headers,
|
|
9958
10821
|
body: Util.toArray(request.body),
|
|
9959
10822
|
});
|
|
9960
|
-
|
|
10823
|
+
let params = new $OpenApi.Params({
|
|
10824
|
+
action: "InstallClusterAddons",
|
|
10825
|
+
version: "2015-12-15",
|
|
10826
|
+
protocol: "HTTPS",
|
|
10827
|
+
pathname: `/clusters/${ClusterId}/components/install`,
|
|
10828
|
+
method: "POST",
|
|
10829
|
+
authType: "AK",
|
|
10830
|
+
style: "ROA",
|
|
10831
|
+
reqBodyType: "json",
|
|
10832
|
+
bodyType: "none",
|
|
10833
|
+
});
|
|
10834
|
+
return $tea.cast<InstallClusterAddonsResponse>(await this.callApi(params, req, runtime), new InstallClusterAddonsResponse({}));
|
|
9961
10835
|
}
|
|
9962
10836
|
|
|
9963
10837
|
async listTagResources(request: ListTagResourcesRequest): Promise<ListTagResourcesResponse> {
|
|
@@ -10003,7 +10877,18 @@ export default class Client extends OpenApi {
|
|
|
10003
10877
|
headers: headers,
|
|
10004
10878
|
query: OpenApiUtil.query(query),
|
|
10005
10879
|
});
|
|
10006
|
-
|
|
10880
|
+
let params = new $OpenApi.Params({
|
|
10881
|
+
action: "ListTagResources",
|
|
10882
|
+
version: "2015-12-15",
|
|
10883
|
+
protocol: "HTTPS",
|
|
10884
|
+
pathname: `/tags`,
|
|
10885
|
+
method: "GET",
|
|
10886
|
+
authType: "AK",
|
|
10887
|
+
style: "ROA",
|
|
10888
|
+
reqBodyType: "json",
|
|
10889
|
+
bodyType: "json",
|
|
10890
|
+
});
|
|
10891
|
+
return $tea.cast<ListTagResourcesResponse>(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
|
|
10007
10892
|
}
|
|
10008
10893
|
|
|
10009
10894
|
async migrateCluster(clusterId: string): Promise<MigrateClusterResponse> {
|
|
@@ -10017,7 +10902,18 @@ export default class Client extends OpenApi {
|
|
|
10017
10902
|
let req = new $OpenApi.OpenApiRequest({
|
|
10018
10903
|
headers: headers,
|
|
10019
10904
|
});
|
|
10020
|
-
|
|
10905
|
+
let params = new $OpenApi.Params({
|
|
10906
|
+
action: "MigrateCluster",
|
|
10907
|
+
version: "2015-12-15",
|
|
10908
|
+
protocol: "HTTPS",
|
|
10909
|
+
pathname: `/clusters/${clusterId}/migrate`,
|
|
10910
|
+
method: "POST",
|
|
10911
|
+
authType: "AK",
|
|
10912
|
+
style: "ROA",
|
|
10913
|
+
reqBodyType: "json",
|
|
10914
|
+
bodyType: "none",
|
|
10915
|
+
});
|
|
10916
|
+
return $tea.cast<MigrateClusterResponse>(await this.callApi(params, req, runtime), new MigrateClusterResponse({}));
|
|
10021
10917
|
}
|
|
10022
10918
|
|
|
10023
10919
|
async modifyCluster(ClusterId: string, request: ModifyClusterRequest): Promise<ModifyClusterResponse> {
|
|
@@ -10042,6 +10938,10 @@ export default class Client extends OpenApi {
|
|
|
10042
10938
|
body["deletion_protection"] = request.deletionProtection;
|
|
10043
10939
|
}
|
|
10044
10940
|
|
|
10941
|
+
if (!Util.isUnset(request.enableRrsa)) {
|
|
10942
|
+
body["enable_rrsa"] = request.enableRrsa;
|
|
10943
|
+
}
|
|
10944
|
+
|
|
10045
10945
|
if (!Util.isUnset(request.ingressDomainRebinding)) {
|
|
10046
10946
|
body["ingress_domain_rebinding"] = request.ingressDomainRebinding;
|
|
10047
10947
|
}
|
|
@@ -10066,7 +10966,18 @@ export default class Client extends OpenApi {
|
|
|
10066
10966
|
headers: headers,
|
|
10067
10967
|
body: OpenApiUtil.parseToMap(body),
|
|
10068
10968
|
});
|
|
10069
|
-
|
|
10969
|
+
let params = new $OpenApi.Params({
|
|
10970
|
+
action: "ModifyCluster",
|
|
10971
|
+
version: "2015-12-15",
|
|
10972
|
+
protocol: "HTTPS",
|
|
10973
|
+
pathname: `/api/v2/clusters/${ClusterId}`,
|
|
10974
|
+
method: "PUT",
|
|
10975
|
+
authType: "AK",
|
|
10976
|
+
style: "ROA",
|
|
10977
|
+
reqBodyType: "json",
|
|
10978
|
+
bodyType: "json",
|
|
10979
|
+
});
|
|
10980
|
+
return $tea.cast<ModifyClusterResponse>(await this.callApi(params, req, runtime), new ModifyClusterResponse({}));
|
|
10070
10981
|
}
|
|
10071
10982
|
|
|
10072
10983
|
async modifyClusterAddon(clusterId: string, componentId: string, request: ModifyClusterAddonRequest): Promise<ModifyClusterAddonResponse> {
|
|
@@ -10088,7 +10999,18 @@ export default class Client extends OpenApi {
|
|
|
10088
10999
|
headers: headers,
|
|
10089
11000
|
body: OpenApiUtil.parseToMap(body),
|
|
10090
11001
|
});
|
|
10091
|
-
|
|
11002
|
+
let params = new $OpenApi.Params({
|
|
11003
|
+
action: "ModifyClusterAddon",
|
|
11004
|
+
version: "2015-12-15",
|
|
11005
|
+
protocol: "HTTPS",
|
|
11006
|
+
pathname: `/clusters/${clusterId}/components/${componentId}/config`,
|
|
11007
|
+
method: "POST",
|
|
11008
|
+
authType: "AK",
|
|
11009
|
+
style: "ROA",
|
|
11010
|
+
reqBodyType: "json",
|
|
11011
|
+
bodyType: "none",
|
|
11012
|
+
});
|
|
11013
|
+
return $tea.cast<ModifyClusterAddonResponse>(await this.callApi(params, req, runtime), new ModifyClusterAddonResponse({}));
|
|
10092
11014
|
}
|
|
10093
11015
|
|
|
10094
11016
|
async modifyClusterConfiguration(ClusterId: string, request: ModifyClusterConfigurationRequest): Promise<ModifyClusterConfigurationResponse> {
|
|
@@ -10109,7 +11031,18 @@ export default class Client extends OpenApi {
|
|
|
10109
11031
|
headers: headers,
|
|
10110
11032
|
body: OpenApiUtil.parseToMap(body),
|
|
10111
11033
|
});
|
|
10112
|
-
|
|
11034
|
+
let params = new $OpenApi.Params({
|
|
11035
|
+
action: "ModifyClusterConfiguration",
|
|
11036
|
+
version: "2015-12-15",
|
|
11037
|
+
protocol: "HTTPS",
|
|
11038
|
+
pathname: `/clusters/${ClusterId}/configuration`,
|
|
11039
|
+
method: "PUT",
|
|
11040
|
+
authType: "AK",
|
|
11041
|
+
style: "ROA",
|
|
11042
|
+
reqBodyType: "json",
|
|
11043
|
+
bodyType: "none",
|
|
11044
|
+
});
|
|
11045
|
+
return $tea.cast<ModifyClusterConfigurationResponse>(await this.callApi(params, req, runtime), new ModifyClusterConfigurationResponse({}));
|
|
10113
11046
|
}
|
|
10114
11047
|
|
|
10115
11048
|
async modifyClusterNodePool(ClusterId: string, NodepoolId: string, request: ModifyClusterNodePoolRequest): Promise<ModifyClusterNodePoolResponse> {
|
|
@@ -10155,7 +11088,18 @@ export default class Client extends OpenApi {
|
|
|
10155
11088
|
headers: headers,
|
|
10156
11089
|
body: OpenApiUtil.parseToMap(body),
|
|
10157
11090
|
});
|
|
10158
|
-
|
|
11091
|
+
let params = new $OpenApi.Params({
|
|
11092
|
+
action: "ModifyClusterNodePool",
|
|
11093
|
+
version: "2015-12-15",
|
|
11094
|
+
protocol: "HTTPS",
|
|
11095
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
11096
|
+
method: "PUT",
|
|
11097
|
+
authType: "AK",
|
|
11098
|
+
style: "ROA",
|
|
11099
|
+
reqBodyType: "json",
|
|
11100
|
+
bodyType: "json",
|
|
11101
|
+
});
|
|
11102
|
+
return $tea.cast<ModifyClusterNodePoolResponse>(await this.callApi(params, req, runtime), new ModifyClusterNodePoolResponse({}));
|
|
10159
11103
|
}
|
|
10160
11104
|
|
|
10161
11105
|
async modifyClusterTags(ClusterId: string, request: ModifyClusterTagsRequest): Promise<ModifyClusterTagsResponse> {
|
|
@@ -10171,7 +11115,18 @@ export default class Client extends OpenApi {
|
|
|
10171
11115
|
headers: headers,
|
|
10172
11116
|
body: Util.toArray(request.body),
|
|
10173
11117
|
});
|
|
10174
|
-
|
|
11118
|
+
let params = new $OpenApi.Params({
|
|
11119
|
+
action: "ModifyClusterTags",
|
|
11120
|
+
version: "2015-12-15",
|
|
11121
|
+
protocol: "HTTPS",
|
|
11122
|
+
pathname: `/clusters/${ClusterId}/tags`,
|
|
11123
|
+
method: "POST",
|
|
11124
|
+
authType: "AK",
|
|
11125
|
+
style: "ROA",
|
|
11126
|
+
reqBodyType: "json",
|
|
11127
|
+
bodyType: "none",
|
|
11128
|
+
});
|
|
11129
|
+
return $tea.cast<ModifyClusterTagsResponse>(await this.callApi(params, req, runtime), new ModifyClusterTagsResponse({}));
|
|
10175
11130
|
}
|
|
10176
11131
|
|
|
10177
11132
|
async modifyPolicyInstance(clusterId: string, policyName: string, request: ModifyPolicyInstanceRequest): Promise<ModifyPolicyInstanceResponse> {
|
|
@@ -10205,7 +11160,18 @@ export default class Client extends OpenApi {
|
|
|
10205
11160
|
headers: headers,
|
|
10206
11161
|
body: OpenApiUtil.parseToMap(body),
|
|
10207
11162
|
});
|
|
10208
|
-
|
|
11163
|
+
let params = new $OpenApi.Params({
|
|
11164
|
+
action: "ModifyPolicyInstance",
|
|
11165
|
+
version: "2015-12-15",
|
|
11166
|
+
protocol: "HTTPS",
|
|
11167
|
+
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
11168
|
+
method: "PUT",
|
|
11169
|
+
authType: "AK",
|
|
11170
|
+
style: "ROA",
|
|
11171
|
+
reqBodyType: "json",
|
|
11172
|
+
bodyType: "json",
|
|
11173
|
+
});
|
|
11174
|
+
return $tea.cast<ModifyPolicyInstanceResponse>(await this.callApi(params, req, runtime), new ModifyPolicyInstanceResponse({}));
|
|
10209
11175
|
}
|
|
10210
11176
|
|
|
10211
11177
|
async openAckService(request: OpenAckServiceRequest): Promise<OpenAckServiceResponse> {
|
|
@@ -10225,7 +11191,18 @@ export default class Client extends OpenApi {
|
|
|
10225
11191
|
headers: headers,
|
|
10226
11192
|
query: OpenApiUtil.query(query),
|
|
10227
11193
|
});
|
|
10228
|
-
|
|
11194
|
+
let params = new $OpenApi.Params({
|
|
11195
|
+
action: "OpenAckService",
|
|
11196
|
+
version: "2015-12-15",
|
|
11197
|
+
protocol: "HTTPS",
|
|
11198
|
+
pathname: `/service/open`,
|
|
11199
|
+
method: "POST",
|
|
11200
|
+
authType: "AK",
|
|
11201
|
+
style: "ROA",
|
|
11202
|
+
reqBodyType: "json",
|
|
11203
|
+
bodyType: "json",
|
|
11204
|
+
});
|
|
11205
|
+
return $tea.cast<OpenAckServiceResponse>(await this.callApi(params, req, runtime), new OpenAckServiceResponse({}));
|
|
10229
11206
|
}
|
|
10230
11207
|
|
|
10231
11208
|
async pauseClusterUpgrade(ClusterId: string): Promise<PauseClusterUpgradeResponse> {
|
|
@@ -10239,7 +11216,18 @@ export default class Client extends OpenApi {
|
|
|
10239
11216
|
let req = new $OpenApi.OpenApiRequest({
|
|
10240
11217
|
headers: headers,
|
|
10241
11218
|
});
|
|
10242
|
-
|
|
11219
|
+
let params = new $OpenApi.Params({
|
|
11220
|
+
action: "PauseClusterUpgrade",
|
|
11221
|
+
version: "2015-12-15",
|
|
11222
|
+
protocol: "HTTPS",
|
|
11223
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/pause`,
|
|
11224
|
+
method: "POST",
|
|
11225
|
+
authType: "AK",
|
|
11226
|
+
style: "ROA",
|
|
11227
|
+
reqBodyType: "json",
|
|
11228
|
+
bodyType: "none",
|
|
11229
|
+
});
|
|
11230
|
+
return $tea.cast<PauseClusterUpgradeResponse>(await this.callApi(params, req, runtime), new PauseClusterUpgradeResponse({}));
|
|
10243
11231
|
}
|
|
10244
11232
|
|
|
10245
11233
|
async pauseComponentUpgrade(clusterid: string, componentid: string): Promise<PauseComponentUpgradeResponse> {
|
|
@@ -10254,7 +11242,18 @@ export default class Client extends OpenApi {
|
|
|
10254
11242
|
let req = new $OpenApi.OpenApiRequest({
|
|
10255
11243
|
headers: headers,
|
|
10256
11244
|
});
|
|
10257
|
-
|
|
11245
|
+
let params = new $OpenApi.Params({
|
|
11246
|
+
action: "PauseComponentUpgrade",
|
|
11247
|
+
version: "2015-12-15",
|
|
11248
|
+
protocol: "HTTPS",
|
|
11249
|
+
pathname: `/clusters/${clusterid}/components/${componentid}/pause`,
|
|
11250
|
+
method: "POST",
|
|
11251
|
+
authType: "AK",
|
|
11252
|
+
style: "ROA",
|
|
11253
|
+
reqBodyType: "json",
|
|
11254
|
+
bodyType: "none",
|
|
11255
|
+
});
|
|
11256
|
+
return $tea.cast<PauseComponentUpgradeResponse>(await this.callApi(params, req, runtime), new PauseComponentUpgradeResponse({}));
|
|
10258
11257
|
}
|
|
10259
11258
|
|
|
10260
11259
|
async removeClusterNodes(ClusterId: string, request: RemoveClusterNodesRequest): Promise<RemoveClusterNodesResponse> {
|
|
@@ -10283,7 +11282,18 @@ export default class Client extends OpenApi {
|
|
|
10283
11282
|
headers: headers,
|
|
10284
11283
|
body: OpenApiUtil.parseToMap(body),
|
|
10285
11284
|
});
|
|
10286
|
-
|
|
11285
|
+
let params = new $OpenApi.Params({
|
|
11286
|
+
action: "RemoveClusterNodes",
|
|
11287
|
+
version: "2015-12-15",
|
|
11288
|
+
protocol: "HTTPS",
|
|
11289
|
+
pathname: `/api/v2/clusters/${ClusterId}/nodes/remove`,
|
|
11290
|
+
method: "POST",
|
|
11291
|
+
authType: "AK",
|
|
11292
|
+
style: "ROA",
|
|
11293
|
+
reqBodyType: "json",
|
|
11294
|
+
bodyType: "none",
|
|
11295
|
+
});
|
|
11296
|
+
return $tea.cast<RemoveClusterNodesResponse>(await this.callApi(params, req, runtime), new RemoveClusterNodesResponse({}));
|
|
10287
11297
|
}
|
|
10288
11298
|
|
|
10289
11299
|
async removeWorkflow(workflowName: string): Promise<RemoveWorkflowResponse> {
|
|
@@ -10297,7 +11307,18 @@ export default class Client extends OpenApi {
|
|
|
10297
11307
|
let req = new $OpenApi.OpenApiRequest({
|
|
10298
11308
|
headers: headers,
|
|
10299
11309
|
});
|
|
10300
|
-
|
|
11310
|
+
let params = new $OpenApi.Params({
|
|
11311
|
+
action: "RemoveWorkflow",
|
|
11312
|
+
version: "2015-12-15",
|
|
11313
|
+
protocol: "HTTPS",
|
|
11314
|
+
pathname: `/gs/workflow/${workflowName}`,
|
|
11315
|
+
method: "DELETE",
|
|
11316
|
+
authType: "AK",
|
|
11317
|
+
style: "ROA",
|
|
11318
|
+
reqBodyType: "json",
|
|
11319
|
+
bodyType: "none",
|
|
11320
|
+
});
|
|
11321
|
+
return $tea.cast<RemoveWorkflowResponse>(await this.callApi(params, req, runtime), new RemoveWorkflowResponse({}));
|
|
10301
11322
|
}
|
|
10302
11323
|
|
|
10303
11324
|
async resumeComponentUpgrade(clusterid: string, componentid: string): Promise<ResumeComponentUpgradeResponse> {
|
|
@@ -10312,7 +11333,18 @@ export default class Client extends OpenApi {
|
|
|
10312
11333
|
let req = new $OpenApi.OpenApiRequest({
|
|
10313
11334
|
headers: headers,
|
|
10314
11335
|
});
|
|
10315
|
-
|
|
11336
|
+
let params = new $OpenApi.Params({
|
|
11337
|
+
action: "ResumeComponentUpgrade",
|
|
11338
|
+
version: "2015-12-15",
|
|
11339
|
+
protocol: "HTTPS",
|
|
11340
|
+
pathname: `/clusters/${clusterid}/components/${componentid}/resume`,
|
|
11341
|
+
method: "POST",
|
|
11342
|
+
authType: "AK",
|
|
11343
|
+
style: "ROA",
|
|
11344
|
+
reqBodyType: "json",
|
|
11345
|
+
bodyType: "none",
|
|
11346
|
+
});
|
|
11347
|
+
return $tea.cast<ResumeComponentUpgradeResponse>(await this.callApi(params, req, runtime), new ResumeComponentUpgradeResponse({}));
|
|
10316
11348
|
}
|
|
10317
11349
|
|
|
10318
11350
|
async resumeUpgradeCluster(ClusterId: string): Promise<ResumeUpgradeClusterResponse> {
|
|
@@ -10326,7 +11358,18 @@ export default class Client extends OpenApi {
|
|
|
10326
11358
|
let req = new $OpenApi.OpenApiRequest({
|
|
10327
11359
|
headers: headers,
|
|
10328
11360
|
});
|
|
10329
|
-
|
|
11361
|
+
let params = new $OpenApi.Params({
|
|
11362
|
+
action: "ResumeUpgradeCluster",
|
|
11363
|
+
version: "2015-12-15",
|
|
11364
|
+
protocol: "HTTPS",
|
|
11365
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/resume`,
|
|
11366
|
+
method: "POST",
|
|
11367
|
+
authType: "AK",
|
|
11368
|
+
style: "ROA",
|
|
11369
|
+
reqBodyType: "json",
|
|
11370
|
+
bodyType: "none",
|
|
11371
|
+
});
|
|
11372
|
+
return $tea.cast<ResumeUpgradeClusterResponse>(await this.callApi(params, req, runtime), new ResumeUpgradeClusterResponse({}));
|
|
10330
11373
|
}
|
|
10331
11374
|
|
|
10332
11375
|
async scaleCluster(ClusterId: string, request: ScaleClusterRequest): Promise<ScaleClusterResponse> {
|
|
@@ -10419,7 +11462,18 @@ export default class Client extends OpenApi {
|
|
|
10419
11462
|
headers: headers,
|
|
10420
11463
|
body: OpenApiUtil.parseToMap(body),
|
|
10421
11464
|
});
|
|
10422
|
-
|
|
11465
|
+
let params = new $OpenApi.Params({
|
|
11466
|
+
action: "ScaleCluster",
|
|
11467
|
+
version: "2015-12-15",
|
|
11468
|
+
protocol: "HTTPS",
|
|
11469
|
+
pathname: `/clusters/${ClusterId}`,
|
|
11470
|
+
method: "PUT",
|
|
11471
|
+
authType: "AK",
|
|
11472
|
+
style: "ROA",
|
|
11473
|
+
reqBodyType: "json",
|
|
11474
|
+
bodyType: "json",
|
|
11475
|
+
});
|
|
11476
|
+
return $tea.cast<ScaleClusterResponse>(await this.callApi(params, req, runtime), new ScaleClusterResponse({}));
|
|
10423
11477
|
}
|
|
10424
11478
|
|
|
10425
11479
|
async scaleClusterNodePool(ClusterId: string, NodepoolId: string, request: ScaleClusterNodePoolRequest): Promise<ScaleClusterNodePoolResponse> {
|
|
@@ -10441,7 +11495,18 @@ export default class Client extends OpenApi {
|
|
|
10441
11495
|
headers: headers,
|
|
10442
11496
|
body: OpenApiUtil.parseToMap(body),
|
|
10443
11497
|
});
|
|
10444
|
-
|
|
11498
|
+
let params = new $OpenApi.Params({
|
|
11499
|
+
action: "ScaleClusterNodePool",
|
|
11500
|
+
version: "2015-12-15",
|
|
11501
|
+
protocol: "HTTPS",
|
|
11502
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
11503
|
+
method: "POST",
|
|
11504
|
+
authType: "AK",
|
|
11505
|
+
style: "ROA",
|
|
11506
|
+
reqBodyType: "json",
|
|
11507
|
+
bodyType: "json",
|
|
11508
|
+
});
|
|
11509
|
+
return $tea.cast<ScaleClusterNodePoolResponse>(await this.callApi(params, req, runtime), new ScaleClusterNodePoolResponse({}));
|
|
10445
11510
|
}
|
|
10446
11511
|
|
|
10447
11512
|
async scaleOutCluster(ClusterId: string, request: ScaleOutClusterRequest): Promise<ScaleOutClusterResponse> {
|
|
@@ -10542,7 +11607,18 @@ export default class Client extends OpenApi {
|
|
|
10542
11607
|
headers: headers,
|
|
10543
11608
|
body: OpenApiUtil.parseToMap(body),
|
|
10544
11609
|
});
|
|
10545
|
-
|
|
11610
|
+
let params = new $OpenApi.Params({
|
|
11611
|
+
action: "ScaleOutCluster",
|
|
11612
|
+
version: "2015-12-15",
|
|
11613
|
+
protocol: "HTTPS",
|
|
11614
|
+
pathname: `/api/v2/clusters/${ClusterId}`,
|
|
11615
|
+
method: "POST",
|
|
11616
|
+
authType: "AK",
|
|
11617
|
+
style: "ROA",
|
|
11618
|
+
reqBodyType: "json",
|
|
11619
|
+
bodyType: "json",
|
|
11620
|
+
});
|
|
11621
|
+
return $tea.cast<ScaleOutClusterResponse>(await this.callApi(params, req, runtime), new ScaleOutClusterResponse({}));
|
|
10546
11622
|
}
|
|
10547
11623
|
|
|
10548
11624
|
async startWorkflow(request: StartWorkflowRequest): Promise<StartWorkflowResponse> {
|
|
@@ -10634,7 +11710,18 @@ export default class Client extends OpenApi {
|
|
|
10634
11710
|
headers: headers,
|
|
10635
11711
|
body: OpenApiUtil.parseToMap(body),
|
|
10636
11712
|
});
|
|
10637
|
-
|
|
11713
|
+
let params = new $OpenApi.Params({
|
|
11714
|
+
action: "StartWorkflow",
|
|
11715
|
+
version: "2015-12-15",
|
|
11716
|
+
protocol: "HTTPS",
|
|
11717
|
+
pathname: `/gs/workflow`,
|
|
11718
|
+
method: "POST",
|
|
11719
|
+
authType: "AK",
|
|
11720
|
+
style: "ROA",
|
|
11721
|
+
reqBodyType: "json",
|
|
11722
|
+
bodyType: "json",
|
|
11723
|
+
});
|
|
11724
|
+
return $tea.cast<StartWorkflowResponse>(await this.callApi(params, req, runtime), new StartWorkflowResponse({}));
|
|
10638
11725
|
}
|
|
10639
11726
|
|
|
10640
11727
|
async tagResources(request: TagResourcesRequest): Promise<TagResourcesResponse> {
|
|
@@ -10666,7 +11753,18 @@ export default class Client extends OpenApi {
|
|
|
10666
11753
|
headers: headers,
|
|
10667
11754
|
body: OpenApiUtil.parseToMap(body),
|
|
10668
11755
|
});
|
|
10669
|
-
|
|
11756
|
+
let params = new $OpenApi.Params({
|
|
11757
|
+
action: "TagResources",
|
|
11758
|
+
version: "2015-12-15",
|
|
11759
|
+
protocol: "HTTPS",
|
|
11760
|
+
pathname: `/tags`,
|
|
11761
|
+
method: "PUT",
|
|
11762
|
+
authType: "AK",
|
|
11763
|
+
style: "ROA",
|
|
11764
|
+
reqBodyType: "json",
|
|
11765
|
+
bodyType: "json",
|
|
11766
|
+
});
|
|
11767
|
+
return $tea.cast<TagResourcesResponse>(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
|
|
10670
11768
|
}
|
|
10671
11769
|
|
|
10672
11770
|
async unInstallClusterAddons(ClusterId: string, request: UnInstallClusterAddonsRequest): Promise<UnInstallClusterAddonsResponse> {
|
|
@@ -10682,7 +11780,18 @@ export default class Client extends OpenApi {
|
|
|
10682
11780
|
headers: headers,
|
|
10683
11781
|
body: Util.toArray(request.addons),
|
|
10684
11782
|
});
|
|
10685
|
-
|
|
11783
|
+
let params = new $OpenApi.Params({
|
|
11784
|
+
action: "UnInstallClusterAddons",
|
|
11785
|
+
version: "2015-12-15",
|
|
11786
|
+
protocol: "HTTPS",
|
|
11787
|
+
pathname: `/clusters/${ClusterId}/components/uninstall`,
|
|
11788
|
+
method: "POST",
|
|
11789
|
+
authType: "AK",
|
|
11790
|
+
style: "ROA",
|
|
11791
|
+
reqBodyType: "json",
|
|
11792
|
+
bodyType: "none",
|
|
11793
|
+
});
|
|
11794
|
+
return $tea.cast<UnInstallClusterAddonsResponse>(await this.callApi(params, req, runtime), new UnInstallClusterAddonsResponse({}));
|
|
10686
11795
|
}
|
|
10687
11796
|
|
|
10688
11797
|
async untagResources(request: UntagResourcesRequest): Promise<UntagResourcesResponse> {
|
|
@@ -10694,6 +11803,10 @@ export default class Client extends OpenApi {
|
|
|
10694
11803
|
async untagResourcesWithOptions(request: UntagResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UntagResourcesResponse> {
|
|
10695
11804
|
Util.validateModel(request);
|
|
10696
11805
|
let query : {[key: string ]: any} = { };
|
|
11806
|
+
if (!Util.isUnset(request.all)) {
|
|
11807
|
+
query["all"] = request.all;
|
|
11808
|
+
}
|
|
11809
|
+
|
|
10697
11810
|
if (!Util.isUnset(request.regionId)) {
|
|
10698
11811
|
query["region_id"] = request.regionId;
|
|
10699
11812
|
}
|
|
@@ -10714,7 +11827,18 @@ export default class Client extends OpenApi {
|
|
|
10714
11827
|
headers: headers,
|
|
10715
11828
|
query: OpenApiUtil.query(query),
|
|
10716
11829
|
});
|
|
10717
|
-
|
|
11830
|
+
let params = new $OpenApi.Params({
|
|
11831
|
+
action: "UntagResources",
|
|
11832
|
+
version: "2015-12-15",
|
|
11833
|
+
protocol: "HTTPS",
|
|
11834
|
+
pathname: `/tags`,
|
|
11835
|
+
method: "DELETE",
|
|
11836
|
+
authType: "AK",
|
|
11837
|
+
style: "ROA",
|
|
11838
|
+
reqBodyType: "json",
|
|
11839
|
+
bodyType: "json",
|
|
11840
|
+
});
|
|
11841
|
+
return $tea.cast<UntagResourcesResponse>(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
|
|
10718
11842
|
}
|
|
10719
11843
|
|
|
10720
11844
|
async updateK8sClusterUserConfigExpire(ClusterId: string): Promise<UpdateK8sClusterUserConfigExpireResponse> {
|
|
@@ -10728,7 +11852,18 @@ export default class Client extends OpenApi {
|
|
|
10728
11852
|
let req = new $OpenApi.OpenApiRequest({
|
|
10729
11853
|
headers: headers,
|
|
10730
11854
|
});
|
|
10731
|
-
|
|
11855
|
+
let params = new $OpenApi.Params({
|
|
11856
|
+
action: "UpdateK8sClusterUserConfigExpire",
|
|
11857
|
+
version: "2015-12-15",
|
|
11858
|
+
protocol: "HTTPS",
|
|
11859
|
+
pathname: `/k8s/${ClusterId}/user_config/expire`,
|
|
11860
|
+
method: "POST",
|
|
11861
|
+
authType: "AK",
|
|
11862
|
+
style: "ROA",
|
|
11863
|
+
reqBodyType: "json",
|
|
11864
|
+
bodyType: "none",
|
|
11865
|
+
});
|
|
11866
|
+
return $tea.cast<UpdateK8sClusterUserConfigExpireResponse>(await this.callApi(params, req, runtime), new UpdateK8sClusterUserConfigExpireResponse({}));
|
|
10732
11867
|
}
|
|
10733
11868
|
|
|
10734
11869
|
async updateTemplate(TemplateId: string, request: UpdateTemplateRequest): Promise<UpdateTemplateResponse> {
|
|
@@ -10765,7 +11900,18 @@ export default class Client extends OpenApi {
|
|
|
10765
11900
|
headers: headers,
|
|
10766
11901
|
body: OpenApiUtil.parseToMap(body),
|
|
10767
11902
|
});
|
|
10768
|
-
|
|
11903
|
+
let params = new $OpenApi.Params({
|
|
11904
|
+
action: "UpdateTemplate",
|
|
11905
|
+
version: "2015-12-15",
|
|
11906
|
+
protocol: "HTTPS",
|
|
11907
|
+
pathname: `/templates/${TemplateId}`,
|
|
11908
|
+
method: "PUT",
|
|
11909
|
+
authType: "AK",
|
|
11910
|
+
style: "ROA",
|
|
11911
|
+
reqBodyType: "json",
|
|
11912
|
+
bodyType: "none",
|
|
11913
|
+
});
|
|
11914
|
+
return $tea.cast<UpdateTemplateResponse>(await this.callApi(params, req, runtime), new UpdateTemplateResponse({}));
|
|
10769
11915
|
}
|
|
10770
11916
|
|
|
10771
11917
|
async upgradeCluster(ClusterId: string, request: UpgradeClusterRequest): Promise<UpgradeClusterResponse> {
|
|
@@ -10794,7 +11940,18 @@ export default class Client extends OpenApi {
|
|
|
10794
11940
|
headers: headers,
|
|
10795
11941
|
body: OpenApiUtil.parseToMap(body),
|
|
10796
11942
|
});
|
|
10797
|
-
|
|
11943
|
+
let params = new $OpenApi.Params({
|
|
11944
|
+
action: "UpgradeCluster",
|
|
11945
|
+
version: "2015-12-15",
|
|
11946
|
+
protocol: "HTTPS",
|
|
11947
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade`,
|
|
11948
|
+
method: "POST",
|
|
11949
|
+
authType: "AK",
|
|
11950
|
+
style: "ROA",
|
|
11951
|
+
reqBodyType: "json",
|
|
11952
|
+
bodyType: "none",
|
|
11953
|
+
});
|
|
11954
|
+
return $tea.cast<UpgradeClusterResponse>(await this.callApi(params, req, runtime), new UpgradeClusterResponse({}));
|
|
10798
11955
|
}
|
|
10799
11956
|
|
|
10800
11957
|
async upgradeClusterAddons(ClusterId: string, request: UpgradeClusterAddonsRequest): Promise<UpgradeClusterAddonsResponse> {
|
|
@@ -10810,7 +11967,18 @@ export default class Client extends OpenApi {
|
|
|
10810
11967
|
headers: headers,
|
|
10811
11968
|
body: Util.toArray(request.body),
|
|
10812
11969
|
});
|
|
10813
|
-
|
|
11970
|
+
let params = new $OpenApi.Params({
|
|
11971
|
+
action: "UpgradeClusterAddons",
|
|
11972
|
+
version: "2015-12-15",
|
|
11973
|
+
protocol: "HTTPS",
|
|
11974
|
+
pathname: `/clusters/${ClusterId}/components/upgrade`,
|
|
11975
|
+
method: "POST",
|
|
11976
|
+
authType: "AK",
|
|
11977
|
+
style: "ROA",
|
|
11978
|
+
reqBodyType: "json",
|
|
11979
|
+
bodyType: "none",
|
|
11980
|
+
});
|
|
11981
|
+
return $tea.cast<UpgradeClusterAddonsResponse>(await this.callApi(params, req, runtime), new UpgradeClusterAddonsResponse({}));
|
|
10814
11982
|
}
|
|
10815
11983
|
|
|
10816
11984
|
}
|