@alicloud/cs20151215 3.0.0 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +148 -2
- package/dist/client.js +1309 -92
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +1383 -92
package/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;
|
|
@@ -412,6 +413,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
412
413
|
keepInstanceName?: boolean;
|
|
413
414
|
keyPair?: string;
|
|
414
415
|
kubernetesVersion?: string;
|
|
416
|
+
loadBalancerSpec?: string;
|
|
415
417
|
loggingType?: string;
|
|
416
418
|
loginPassword?: string;
|
|
417
419
|
masterAutoRenew?: boolean;
|
|
@@ -485,6 +487,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
485
487
|
customSan: 'custom_san',
|
|
486
488
|
deletionProtection: 'deletion_protection',
|
|
487
489
|
disableRollback: 'disable_rollback',
|
|
490
|
+
enableRrsa: 'enable_rrsa',
|
|
488
491
|
encryptionProviderKey: 'encryption_provider_key',
|
|
489
492
|
endpointPublicAccess: 'endpoint_public_access',
|
|
490
493
|
formatDisk: 'format_disk',
|
|
@@ -495,6 +498,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
495
498
|
keepInstanceName: 'keep_instance_name',
|
|
496
499
|
keyPair: 'key_pair',
|
|
497
500
|
kubernetesVersion: 'kubernetes_version',
|
|
501
|
+
loadBalancerSpec: 'load_balancer_spec',
|
|
498
502
|
loggingType: 'logging_type',
|
|
499
503
|
loginPassword: 'login_password',
|
|
500
504
|
masterAutoRenew: 'master_auto_renew',
|
|
@@ -571,6 +575,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
571
575
|
customSan: 'string',
|
|
572
576
|
deletionProtection: 'boolean',
|
|
573
577
|
disableRollback: 'boolean',
|
|
578
|
+
enableRrsa: 'boolean',
|
|
574
579
|
encryptionProviderKey: 'string',
|
|
575
580
|
endpointPublicAccess: 'boolean',
|
|
576
581
|
formatDisk: 'boolean',
|
|
@@ -581,6 +586,7 @@ export class CreateClusterRequest extends $tea.Model {
|
|
|
581
586
|
keepInstanceName: 'boolean',
|
|
582
587
|
keyPair: 'string',
|
|
583
588
|
kubernetesVersion: 'string',
|
|
589
|
+
loadBalancerSpec: 'string',
|
|
584
590
|
loggingType: 'string',
|
|
585
591
|
loginPassword: 'string',
|
|
586
592
|
masterAutoRenew: 'boolean',
|
|
@@ -695,8 +701,11 @@ export class CreateClusterResponse extends $tea.Model {
|
|
|
695
701
|
export class CreateClusterNodePoolRequest extends $tea.Model {
|
|
696
702
|
autoScaling?: CreateClusterNodePoolRequestAutoScaling;
|
|
697
703
|
count?: number;
|
|
704
|
+
interconnectConfig?: CreateClusterNodePoolRequestInterconnectConfig;
|
|
705
|
+
interconnectMode?: string;
|
|
698
706
|
kubernetesConfig?: CreateClusterNodePoolRequestKubernetesConfig;
|
|
699
707
|
management?: CreateClusterNodePoolRequestManagement;
|
|
708
|
+
maxNodes?: number;
|
|
700
709
|
nodepoolInfo?: CreateClusterNodePoolRequestNodepoolInfo;
|
|
701
710
|
scalingGroup?: CreateClusterNodePoolRequestScalingGroup;
|
|
702
711
|
teeConfig?: CreateClusterNodePoolRequestTeeConfig;
|
|
@@ -704,8 +713,11 @@ export class CreateClusterNodePoolRequest extends $tea.Model {
|
|
|
704
713
|
return {
|
|
705
714
|
autoScaling: 'auto_scaling',
|
|
706
715
|
count: 'count',
|
|
716
|
+
interconnectConfig: 'interconnect_config',
|
|
717
|
+
interconnectMode: 'interconnect_mode',
|
|
707
718
|
kubernetesConfig: 'kubernetes_config',
|
|
708
719
|
management: 'management',
|
|
720
|
+
maxNodes: 'max_nodes',
|
|
709
721
|
nodepoolInfo: 'nodepool_info',
|
|
710
722
|
scalingGroup: 'scaling_group',
|
|
711
723
|
teeConfig: 'tee_config',
|
|
@@ -716,8 +728,11 @@ export class CreateClusterNodePoolRequest extends $tea.Model {
|
|
|
716
728
|
return {
|
|
717
729
|
autoScaling: CreateClusterNodePoolRequestAutoScaling,
|
|
718
730
|
count: 'number',
|
|
731
|
+
interconnectConfig: CreateClusterNodePoolRequestInterconnectConfig,
|
|
732
|
+
interconnectMode: 'string',
|
|
719
733
|
kubernetesConfig: CreateClusterNodePoolRequestKubernetesConfig,
|
|
720
734
|
management: CreateClusterNodePoolRequestManagement,
|
|
735
|
+
maxNodes: 'number',
|
|
721
736
|
nodepoolInfo: CreateClusterNodePoolRequestNodepoolInfo,
|
|
722
737
|
scalingGroup: CreateClusterNodePoolRequestScalingGroup,
|
|
723
738
|
teeConfig: CreateClusterNodePoolRequestTeeConfig,
|
|
@@ -1312,17 +1327,58 @@ export class DeleteKubernetesTriggerResponse extends $tea.Model {
|
|
|
1312
1327
|
}
|
|
1313
1328
|
}
|
|
1314
1329
|
|
|
1330
|
+
export class DeletePolicyInstanceRequest extends $tea.Model {
|
|
1331
|
+
instanceName?: string;
|
|
1332
|
+
static names(): { [key: string]: string } {
|
|
1333
|
+
return {
|
|
1334
|
+
instanceName: 'instance_name',
|
|
1335
|
+
};
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
static types(): { [key: string]: any } {
|
|
1339
|
+
return {
|
|
1340
|
+
instanceName: 'string',
|
|
1341
|
+
};
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
constructor(map?: { [key: string]: any }) {
|
|
1345
|
+
super(map);
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
export class DeletePolicyInstanceResponseBody extends $tea.Model {
|
|
1350
|
+
instances?: string[];
|
|
1351
|
+
static names(): { [key: string]: string } {
|
|
1352
|
+
return {
|
|
1353
|
+
instances: 'instances',
|
|
1354
|
+
};
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
static types(): { [key: string]: any } {
|
|
1358
|
+
return {
|
|
1359
|
+
instances: { 'type': 'array', 'itemType': 'string' },
|
|
1360
|
+
};
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
constructor(map?: { [key: string]: any }) {
|
|
1364
|
+
super(map);
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1315
1368
|
export class DeletePolicyInstanceResponse extends $tea.Model {
|
|
1316
1369
|
headers: { [key: string]: string };
|
|
1370
|
+
body: DeletePolicyInstanceResponseBody;
|
|
1317
1371
|
static names(): { [key: string]: string } {
|
|
1318
1372
|
return {
|
|
1319
1373
|
headers: 'headers',
|
|
1374
|
+
body: 'body',
|
|
1320
1375
|
};
|
|
1321
1376
|
}
|
|
1322
1377
|
|
|
1323
1378
|
static types(): { [key: string]: any } {
|
|
1324
1379
|
return {
|
|
1325
1380
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1381
|
+
body: DeletePolicyInstanceResponseBody,
|
|
1326
1382
|
};
|
|
1327
1383
|
}
|
|
1328
1384
|
|
|
@@ -1394,17 +1450,39 @@ export class DeployPolicyInstanceRequest extends $tea.Model {
|
|
|
1394
1450
|
}
|
|
1395
1451
|
}
|
|
1396
1452
|
|
|
1453
|
+
export class DeployPolicyInstanceResponseBody extends $tea.Model {
|
|
1454
|
+
instances?: string[];
|
|
1455
|
+
static names(): { [key: string]: string } {
|
|
1456
|
+
return {
|
|
1457
|
+
instances: 'instances',
|
|
1458
|
+
};
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
static types(): { [key: string]: any } {
|
|
1462
|
+
return {
|
|
1463
|
+
instances: { 'type': 'array', 'itemType': 'string' },
|
|
1464
|
+
};
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
constructor(map?: { [key: string]: any }) {
|
|
1468
|
+
super(map);
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1397
1472
|
export class DeployPolicyInstanceResponse extends $tea.Model {
|
|
1398
1473
|
headers: { [key: string]: string };
|
|
1474
|
+
body: DeployPolicyInstanceResponseBody;
|
|
1399
1475
|
static names(): { [key: string]: string } {
|
|
1400
1476
|
return {
|
|
1401
1477
|
headers: 'headers',
|
|
1478
|
+
body: 'body',
|
|
1402
1479
|
};
|
|
1403
1480
|
}
|
|
1404
1481
|
|
|
1405
1482
|
static types(): { [key: string]: any } {
|
|
1406
1483
|
return {
|
|
1407
1484
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1485
|
+
body: DeployPolicyInstanceResponseBody,
|
|
1408
1486
|
};
|
|
1409
1487
|
}
|
|
1410
1488
|
|
|
@@ -1928,8 +2006,11 @@ export class DescribeClusterNamespacesResponse extends $tea.Model {
|
|
|
1928
2006
|
|
|
1929
2007
|
export class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
|
|
1930
2008
|
autoScaling?: DescribeClusterNodePoolDetailResponseBodyAutoScaling;
|
|
2009
|
+
interconnectConfig?: DescribeClusterNodePoolDetailResponseBodyInterconnectConfig;
|
|
2010
|
+
interconnectMode?: string;
|
|
1931
2011
|
kubernetesConfig?: DescribeClusterNodePoolDetailResponseBodyKubernetesConfig;
|
|
1932
2012
|
management?: DescribeClusterNodePoolDetailResponseBodyManagement;
|
|
2013
|
+
maxNodes?: number;
|
|
1933
2014
|
nodepoolInfo?: DescribeClusterNodePoolDetailResponseBodyNodepoolInfo;
|
|
1934
2015
|
scalingGroup?: DescribeClusterNodePoolDetailResponseBodyScalingGroup;
|
|
1935
2016
|
status?: DescribeClusterNodePoolDetailResponseBodyStatus;
|
|
@@ -1937,8 +2018,11 @@ export class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
|
|
|
1937
2018
|
static names(): { [key: string]: string } {
|
|
1938
2019
|
return {
|
|
1939
2020
|
autoScaling: 'auto_scaling',
|
|
2021
|
+
interconnectConfig: 'interconnect_config',
|
|
2022
|
+
interconnectMode: 'interconnect_mode',
|
|
1940
2023
|
kubernetesConfig: 'kubernetes_config',
|
|
1941
2024
|
management: 'management',
|
|
2025
|
+
maxNodes: 'max_nodes',
|
|
1942
2026
|
nodepoolInfo: 'nodepool_info',
|
|
1943
2027
|
scalingGroup: 'scaling_group',
|
|
1944
2028
|
status: 'status',
|
|
@@ -1949,8 +2033,11 @@ export class DescribeClusterNodePoolDetailResponseBody extends $tea.Model {
|
|
|
1949
2033
|
static types(): { [key: string]: any } {
|
|
1950
2034
|
return {
|
|
1951
2035
|
autoScaling: DescribeClusterNodePoolDetailResponseBodyAutoScaling,
|
|
2036
|
+
interconnectConfig: DescribeClusterNodePoolDetailResponseBodyInterconnectConfig,
|
|
2037
|
+
interconnectMode: 'string',
|
|
1952
2038
|
kubernetesConfig: DescribeClusterNodePoolDetailResponseBodyKubernetesConfig,
|
|
1953
2039
|
management: DescribeClusterNodePoolDetailResponseBodyManagement,
|
|
2040
|
+
maxNodes: 'number',
|
|
1954
2041
|
nodepoolInfo: DescribeClusterNodePoolDetailResponseBodyNodepoolInfo,
|
|
1955
2042
|
scalingGroup: DescribeClusterNodePoolDetailResponseBodyScalingGroup,
|
|
1956
2043
|
status: DescribeClusterNodePoolDetailResponseBodyStatus,
|
|
@@ -2739,12 +2826,14 @@ export class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
|
|
|
2739
2826
|
kubernetesVersion?: string;
|
|
2740
2827
|
profile?: string;
|
|
2741
2828
|
region?: string;
|
|
2829
|
+
runtime?: string;
|
|
2742
2830
|
static names(): { [key: string]: string } {
|
|
2743
2831
|
return {
|
|
2744
2832
|
clusterType: 'ClusterType',
|
|
2745
2833
|
kubernetesVersion: 'KubernetesVersion',
|
|
2746
2834
|
profile: 'Profile',
|
|
2747
2835
|
region: 'Region',
|
|
2836
|
+
runtime: 'runtime',
|
|
2748
2837
|
};
|
|
2749
2838
|
}
|
|
2750
2839
|
|
|
@@ -2754,6 +2843,7 @@ export class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
|
|
|
2754
2843
|
kubernetesVersion: 'string',
|
|
2755
2844
|
profile: 'string',
|
|
2756
2845
|
region: 'string',
|
|
2846
|
+
runtime: 'string',
|
|
2757
2847
|
};
|
|
2758
2848
|
}
|
|
2759
2849
|
|
|
@@ -3721,6 +3811,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
3721
3811
|
apiServerEip?: boolean;
|
|
3722
3812
|
apiServerEipId?: string;
|
|
3723
3813
|
deletionProtection?: boolean;
|
|
3814
|
+
enableRrsa?: boolean;
|
|
3724
3815
|
ingressDomainRebinding?: string;
|
|
3725
3816
|
ingressLoadbalancerId?: string;
|
|
3726
3817
|
instanceDeletionProtection?: boolean;
|
|
@@ -3731,6 +3822,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
3731
3822
|
apiServerEip: 'api_server_eip',
|
|
3732
3823
|
apiServerEipId: 'api_server_eip_id',
|
|
3733
3824
|
deletionProtection: 'deletion_protection',
|
|
3825
|
+
enableRrsa: 'enable_rrsa',
|
|
3734
3826
|
ingressDomainRebinding: 'ingress_domain_rebinding',
|
|
3735
3827
|
ingressLoadbalancerId: 'ingress_loadbalancer_id',
|
|
3736
3828
|
instanceDeletionProtection: 'instance_deletion_protection',
|
|
@@ -3744,6 +3836,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
3744
3836
|
apiServerEip: 'boolean',
|
|
3745
3837
|
apiServerEipId: 'string',
|
|
3746
3838
|
deletionProtection: 'boolean',
|
|
3839
|
+
enableRrsa: 'boolean',
|
|
3747
3840
|
ingressDomainRebinding: 'string',
|
|
3748
3841
|
ingressLoadbalancerId: 'string',
|
|
3749
3842
|
instanceDeletionProtection: 'boolean',
|
|
@@ -4027,17 +4120,39 @@ export class ModifyPolicyInstanceRequest extends $tea.Model {
|
|
|
4027
4120
|
}
|
|
4028
4121
|
}
|
|
4029
4122
|
|
|
4123
|
+
export class ModifyPolicyInstanceResponseBody extends $tea.Model {
|
|
4124
|
+
instances?: string[];
|
|
4125
|
+
static names(): { [key: string]: string } {
|
|
4126
|
+
return {
|
|
4127
|
+
instances: 'instances',
|
|
4128
|
+
};
|
|
4129
|
+
}
|
|
4130
|
+
|
|
4131
|
+
static types(): { [key: string]: any } {
|
|
4132
|
+
return {
|
|
4133
|
+
instances: { 'type': 'array', 'itemType': 'string' },
|
|
4134
|
+
};
|
|
4135
|
+
}
|
|
4136
|
+
|
|
4137
|
+
constructor(map?: { [key: string]: any }) {
|
|
4138
|
+
super(map);
|
|
4139
|
+
}
|
|
4140
|
+
}
|
|
4141
|
+
|
|
4030
4142
|
export class ModifyPolicyInstanceResponse extends $tea.Model {
|
|
4031
4143
|
headers: { [key: string]: string };
|
|
4144
|
+
body: ModifyPolicyInstanceResponseBody;
|
|
4032
4145
|
static names(): { [key: string]: string } {
|
|
4033
4146
|
return {
|
|
4034
4147
|
headers: 'headers',
|
|
4148
|
+
body: 'body',
|
|
4035
4149
|
};
|
|
4036
4150
|
}
|
|
4037
4151
|
|
|
4038
4152
|
static types(): { [key: string]: any } {
|
|
4039
4153
|
return {
|
|
4040
4154
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4155
|
+
body: ModifyPolicyInstanceResponseBody,
|
|
4041
4156
|
};
|
|
4042
4157
|
}
|
|
4043
4158
|
|
|
@@ -4696,17 +4811,39 @@ export class TagResourcesRequest extends $tea.Model {
|
|
|
4696
4811
|
}
|
|
4697
4812
|
}
|
|
4698
4813
|
|
|
4814
|
+
export class TagResourcesResponseBody extends $tea.Model {
|
|
4815
|
+
requestId?: string;
|
|
4816
|
+
static names(): { [key: string]: string } {
|
|
4817
|
+
return {
|
|
4818
|
+
requestId: 'RequestId',
|
|
4819
|
+
};
|
|
4820
|
+
}
|
|
4821
|
+
|
|
4822
|
+
static types(): { [key: string]: any } {
|
|
4823
|
+
return {
|
|
4824
|
+
requestId: 'string',
|
|
4825
|
+
};
|
|
4826
|
+
}
|
|
4827
|
+
|
|
4828
|
+
constructor(map?: { [key: string]: any }) {
|
|
4829
|
+
super(map);
|
|
4830
|
+
}
|
|
4831
|
+
}
|
|
4832
|
+
|
|
4699
4833
|
export class TagResourcesResponse extends $tea.Model {
|
|
4700
4834
|
headers: { [key: string]: string };
|
|
4835
|
+
body: TagResourcesResponseBody;
|
|
4701
4836
|
static names(): { [key: string]: string } {
|
|
4702
4837
|
return {
|
|
4703
4838
|
headers: 'headers',
|
|
4839
|
+
body: 'body',
|
|
4704
4840
|
};
|
|
4705
4841
|
}
|
|
4706
4842
|
|
|
4707
4843
|
static types(): { [key: string]: any } {
|
|
4708
4844
|
return {
|
|
4709
4845
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4846
|
+
body: TagResourcesResponseBody,
|
|
4710
4847
|
};
|
|
4711
4848
|
}
|
|
4712
4849
|
|
|
@@ -4754,12 +4891,14 @@ export class UnInstallClusterAddonsResponse extends $tea.Model {
|
|
|
4754
4891
|
}
|
|
4755
4892
|
|
|
4756
4893
|
export class UntagResourcesRequest extends $tea.Model {
|
|
4894
|
+
all?: boolean;
|
|
4757
4895
|
regionId?: string;
|
|
4758
4896
|
resourceIds?: string[];
|
|
4759
4897
|
resourceType?: string;
|
|
4760
4898
|
tagKeys?: string[];
|
|
4761
4899
|
static names(): { [key: string]: string } {
|
|
4762
4900
|
return {
|
|
4901
|
+
all: 'all',
|
|
4763
4902
|
regionId: 'region_id',
|
|
4764
4903
|
resourceIds: 'resource_ids',
|
|
4765
4904
|
resourceType: 'resource_type',
|
|
@@ -4769,6 +4908,7 @@ export class UntagResourcesRequest extends $tea.Model {
|
|
|
4769
4908
|
|
|
4770
4909
|
static types(): { [key: string]: any } {
|
|
4771
4910
|
return {
|
|
4911
|
+
all: 'boolean',
|
|
4772
4912
|
regionId: 'string',
|
|
4773
4913
|
resourceIds: { 'type': 'array', 'itemType': 'string' },
|
|
4774
4914
|
resourceType: 'string',
|
|
@@ -4781,17 +4921,39 @@ export class UntagResourcesRequest extends $tea.Model {
|
|
|
4781
4921
|
}
|
|
4782
4922
|
}
|
|
4783
4923
|
|
|
4924
|
+
export class UntagResourcesResponseBody extends $tea.Model {
|
|
4925
|
+
requestId?: string;
|
|
4926
|
+
static names(): { [key: string]: string } {
|
|
4927
|
+
return {
|
|
4928
|
+
requestId: 'RequestId',
|
|
4929
|
+
};
|
|
4930
|
+
}
|
|
4931
|
+
|
|
4932
|
+
static types(): { [key: string]: any } {
|
|
4933
|
+
return {
|
|
4934
|
+
requestId: 'string',
|
|
4935
|
+
};
|
|
4936
|
+
}
|
|
4937
|
+
|
|
4938
|
+
constructor(map?: { [key: string]: any }) {
|
|
4939
|
+
super(map);
|
|
4940
|
+
}
|
|
4941
|
+
}
|
|
4942
|
+
|
|
4784
4943
|
export class UntagResourcesResponse extends $tea.Model {
|
|
4785
4944
|
headers: { [key: string]: string };
|
|
4945
|
+
body: UntagResourcesResponseBody;
|
|
4786
4946
|
static names(): { [key: string]: string } {
|
|
4787
4947
|
return {
|
|
4788
4948
|
headers: 'headers',
|
|
4949
|
+
body: 'body',
|
|
4789
4950
|
};
|
|
4790
4951
|
}
|
|
4791
4952
|
|
|
4792
4953
|
static types(): { [key: string]: any } {
|
|
4793
4954
|
return {
|
|
4794
4955
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4956
|
+
body: UntagResourcesResponseBody,
|
|
4795
4957
|
};
|
|
4796
4958
|
}
|
|
4797
4959
|
|
|
@@ -5072,10 +5234,42 @@ export class CreateClusterNodePoolRequestAutoScaling extends $tea.Model {
|
|
|
5072
5234
|
}
|
|
5073
5235
|
}
|
|
5074
5236
|
|
|
5237
|
+
export class CreateClusterNodePoolRequestInterconnectConfig extends $tea.Model {
|
|
5238
|
+
bandwidth?: number;
|
|
5239
|
+
ccnId?: string;
|
|
5240
|
+
ccnRegionId?: string;
|
|
5241
|
+
cenId?: string;
|
|
5242
|
+
improvedPeriod?: string;
|
|
5243
|
+
static names(): { [key: string]: string } {
|
|
5244
|
+
return {
|
|
5245
|
+
bandwidth: 'bandwidth',
|
|
5246
|
+
ccnId: 'ccn_id',
|
|
5247
|
+
ccnRegionId: 'ccn_region_id',
|
|
5248
|
+
cenId: 'cen_id',
|
|
5249
|
+
improvedPeriod: 'improved_period',
|
|
5250
|
+
};
|
|
5251
|
+
}
|
|
5252
|
+
|
|
5253
|
+
static types(): { [key: string]: any } {
|
|
5254
|
+
return {
|
|
5255
|
+
bandwidth: 'number',
|
|
5256
|
+
ccnId: 'string',
|
|
5257
|
+
ccnRegionId: 'string',
|
|
5258
|
+
cenId: 'string',
|
|
5259
|
+
improvedPeriod: 'string',
|
|
5260
|
+
};
|
|
5261
|
+
}
|
|
5262
|
+
|
|
5263
|
+
constructor(map?: { [key: string]: any }) {
|
|
5264
|
+
super(map);
|
|
5265
|
+
}
|
|
5266
|
+
}
|
|
5267
|
+
|
|
5075
5268
|
export class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
|
|
5076
5269
|
cmsEnabled?: boolean;
|
|
5077
5270
|
cpuPolicy?: string;
|
|
5078
5271
|
labels?: Tag[];
|
|
5272
|
+
nodeNameMode?: string;
|
|
5079
5273
|
runtime?: string;
|
|
5080
5274
|
runtimeVersion?: string;
|
|
5081
5275
|
taints?: Taint[];
|
|
@@ -5085,6 +5279,7 @@ export class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
|
|
|
5085
5279
|
cmsEnabled: 'cms_enabled',
|
|
5086
5280
|
cpuPolicy: 'cpu_policy',
|
|
5087
5281
|
labels: 'labels',
|
|
5282
|
+
nodeNameMode: 'node_name_mode',
|
|
5088
5283
|
runtime: 'runtime',
|
|
5089
5284
|
runtimeVersion: 'runtime_version',
|
|
5090
5285
|
taints: 'taints',
|
|
@@ -5097,6 +5292,7 @@ export class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
|
|
|
5097
5292
|
cmsEnabled: 'boolean',
|
|
5098
5293
|
cpuPolicy: 'string',
|
|
5099
5294
|
labels: { 'type': 'array', 'itemType': Tag },
|
|
5295
|
+
nodeNameMode: 'string',
|
|
5100
5296
|
runtime: 'string',
|
|
5101
5297
|
runtimeVersion: 'string',
|
|
5102
5298
|
taints: { 'type': 'array', 'itemType': Taint },
|
|
@@ -5165,10 +5361,12 @@ export class CreateClusterNodePoolRequestManagement extends $tea.Model {
|
|
|
5165
5361
|
export class CreateClusterNodePoolRequestNodepoolInfo extends $tea.Model {
|
|
5166
5362
|
name?: string;
|
|
5167
5363
|
resourceGroupId?: string;
|
|
5364
|
+
type?: string;
|
|
5168
5365
|
static names(): { [key: string]: string } {
|
|
5169
5366
|
return {
|
|
5170
5367
|
name: 'name',
|
|
5171
5368
|
resourceGroupId: 'resource_group_id',
|
|
5369
|
+
type: 'type',
|
|
5172
5370
|
};
|
|
5173
5371
|
}
|
|
5174
5372
|
|
|
@@ -5176,6 +5374,7 @@ export class CreateClusterNodePoolRequestNodepoolInfo extends $tea.Model {
|
|
|
5176
5374
|
return {
|
|
5177
5375
|
name: 'string',
|
|
5178
5376
|
resourceGroupId: 'string',
|
|
5377
|
+
type: 'string',
|
|
5179
5378
|
};
|
|
5180
5379
|
}
|
|
5181
5380
|
|
|
@@ -5233,6 +5432,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
5233
5432
|
autoRenewPeriod?: number;
|
|
5234
5433
|
compensateWithOnDemand?: boolean;
|
|
5235
5434
|
dataDisks?: DataDisk[];
|
|
5435
|
+
deploymentsetId?: string;
|
|
5236
5436
|
imageId?: string;
|
|
5237
5437
|
imageType?: string;
|
|
5238
5438
|
instanceChargeType?: string;
|
|
@@ -5266,6 +5466,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
5266
5466
|
autoRenewPeriod: 'auto_renew_period',
|
|
5267
5467
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
5268
5468
|
dataDisks: 'data_disks',
|
|
5469
|
+
deploymentsetId: 'deploymentset_id',
|
|
5269
5470
|
imageId: 'image_id',
|
|
5270
5471
|
imageType: 'image_type',
|
|
5271
5472
|
instanceChargeType: 'instance_charge_type',
|
|
@@ -5302,6 +5503,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
5302
5503
|
autoRenewPeriod: 'number',
|
|
5303
5504
|
compensateWithOnDemand: 'boolean',
|
|
5304
5505
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
5506
|
+
deploymentsetId: 'string',
|
|
5305
5507
|
imageId: 'string',
|
|
5306
5508
|
imageType: 'string',
|
|
5307
5509
|
instanceChargeType: 'string',
|
|
@@ -5468,10 +5670,42 @@ export class DescribeClusterNodePoolDetailResponseBodyAutoScaling extends $tea.M
|
|
|
5468
5670
|
}
|
|
5469
5671
|
}
|
|
5470
5672
|
|
|
5673
|
+
export class DescribeClusterNodePoolDetailResponseBodyInterconnectConfig extends $tea.Model {
|
|
5674
|
+
bandwidth?: number;
|
|
5675
|
+
ccnId?: string;
|
|
5676
|
+
ccnRegionId?: string;
|
|
5677
|
+
cenId?: string;
|
|
5678
|
+
improvedPeriod?: string;
|
|
5679
|
+
static names(): { [key: string]: string } {
|
|
5680
|
+
return {
|
|
5681
|
+
bandwidth: 'bandwidth',
|
|
5682
|
+
ccnId: 'ccn_id',
|
|
5683
|
+
ccnRegionId: 'ccn_region_id',
|
|
5684
|
+
cenId: 'cen_id',
|
|
5685
|
+
improvedPeriod: 'improved_period',
|
|
5686
|
+
};
|
|
5687
|
+
}
|
|
5688
|
+
|
|
5689
|
+
static types(): { [key: string]: any } {
|
|
5690
|
+
return {
|
|
5691
|
+
bandwidth: 'number',
|
|
5692
|
+
ccnId: 'string',
|
|
5693
|
+
ccnRegionId: 'string',
|
|
5694
|
+
cenId: 'string',
|
|
5695
|
+
improvedPeriod: 'string',
|
|
5696
|
+
};
|
|
5697
|
+
}
|
|
5698
|
+
|
|
5699
|
+
constructor(map?: { [key: string]: any }) {
|
|
5700
|
+
super(map);
|
|
5701
|
+
}
|
|
5702
|
+
}
|
|
5703
|
+
|
|
5471
5704
|
export class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $tea.Model {
|
|
5472
5705
|
cmsEnabled?: boolean;
|
|
5473
5706
|
cpuPolicy?: string;
|
|
5474
5707
|
labels?: Tag[];
|
|
5708
|
+
nodeNameMode?: string;
|
|
5475
5709
|
runtime?: string;
|
|
5476
5710
|
runtimeVersion?: string;
|
|
5477
5711
|
taints?: Taint[];
|
|
@@ -5481,6 +5715,7 @@ export class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $
|
|
|
5481
5715
|
cmsEnabled: 'cms_enabled',
|
|
5482
5716
|
cpuPolicy: 'cpu_policy',
|
|
5483
5717
|
labels: 'labels',
|
|
5718
|
+
nodeNameMode: 'node_name_mode',
|
|
5484
5719
|
runtime: 'runtime',
|
|
5485
5720
|
runtimeVersion: 'runtime_version',
|
|
5486
5721
|
taints: 'taints',
|
|
@@ -5493,6 +5728,7 @@ export class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $
|
|
|
5493
5728
|
cmsEnabled: 'boolean',
|
|
5494
5729
|
cpuPolicy: 'string',
|
|
5495
5730
|
labels: { 'type': 'array', 'itemType': Tag },
|
|
5731
|
+
nodeNameMode: 'string',
|
|
5496
5732
|
runtime: 'string',
|
|
5497
5733
|
runtimeVersion: 'string',
|
|
5498
5734
|
taints: { 'type': 'array', 'itemType': Taint },
|
|
@@ -5625,6 +5861,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
5625
5861
|
autoRenewPeriod?: number;
|
|
5626
5862
|
compensateWithOnDemand?: boolean;
|
|
5627
5863
|
dataDisks?: DataDisk[];
|
|
5864
|
+
deploymentsetId?: string;
|
|
5628
5865
|
imageId?: string;
|
|
5629
5866
|
instanceChargeType?: string;
|
|
5630
5867
|
instanceTypes?: string[];
|
|
@@ -5659,6 +5896,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
5659
5896
|
autoRenewPeriod: 'auto_renew_period',
|
|
5660
5897
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
5661
5898
|
dataDisks: 'data_disks',
|
|
5899
|
+
deploymentsetId: 'deploymentset_id',
|
|
5662
5900
|
imageId: 'image_id',
|
|
5663
5901
|
instanceChargeType: 'instance_charge_type',
|
|
5664
5902
|
instanceTypes: 'instance_types',
|
|
@@ -5696,6 +5934,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
5696
5934
|
autoRenewPeriod: 'number',
|
|
5697
5935
|
compensateWithOnDemand: 'boolean',
|
|
5698
5936
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
5937
|
+
deploymentsetId: 'string',
|
|
5699
5938
|
imageId: 'string',
|
|
5700
5939
|
instanceChargeType: 'string',
|
|
5701
5940
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -5828,10 +6067,42 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsAutoScaling extends $t
|
|
|
5828
6067
|
}
|
|
5829
6068
|
}
|
|
5830
6069
|
|
|
6070
|
+
export class DescribeClusterNodePoolsResponseBodyNodepoolsInterconnectConfig extends $tea.Model {
|
|
6071
|
+
bandwidth?: number;
|
|
6072
|
+
ccnId?: string;
|
|
6073
|
+
ccnRegionId?: string;
|
|
6074
|
+
cenId?: string;
|
|
6075
|
+
improvedPeriod?: string;
|
|
6076
|
+
static names(): { [key: string]: string } {
|
|
6077
|
+
return {
|
|
6078
|
+
bandwidth: 'bandwidth',
|
|
6079
|
+
ccnId: 'ccn_id',
|
|
6080
|
+
ccnRegionId: 'ccn_region_id',
|
|
6081
|
+
cenId: 'cen_id',
|
|
6082
|
+
improvedPeriod: 'improved_period',
|
|
6083
|
+
};
|
|
6084
|
+
}
|
|
6085
|
+
|
|
6086
|
+
static types(): { [key: string]: any } {
|
|
6087
|
+
return {
|
|
6088
|
+
bandwidth: 'number',
|
|
6089
|
+
ccnId: 'string',
|
|
6090
|
+
ccnRegionId: 'string',
|
|
6091
|
+
cenId: 'string',
|
|
6092
|
+
improvedPeriod: 'string',
|
|
6093
|
+
};
|
|
6094
|
+
}
|
|
6095
|
+
|
|
6096
|
+
constructor(map?: { [key: string]: any }) {
|
|
6097
|
+
super(map);
|
|
6098
|
+
}
|
|
6099
|
+
}
|
|
6100
|
+
|
|
5831
6101
|
export class DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig extends $tea.Model {
|
|
5832
6102
|
cmsEnabled?: boolean;
|
|
5833
6103
|
cpuPolicy?: string;
|
|
5834
6104
|
labels?: Tag[];
|
|
6105
|
+
nodeNameMode?: string;
|
|
5835
6106
|
runtime?: string;
|
|
5836
6107
|
runtimeVersion?: string;
|
|
5837
6108
|
taints?: Taint[];
|
|
@@ -5841,6 +6112,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig exten
|
|
|
5841
6112
|
cmsEnabled: 'cms_enabled',
|
|
5842
6113
|
cpuPolicy: 'cpu_policy',
|
|
5843
6114
|
labels: 'labels',
|
|
6115
|
+
nodeNameMode: 'node_name_mode',
|
|
5844
6116
|
runtime: 'runtime',
|
|
5845
6117
|
runtimeVersion: 'runtime_version',
|
|
5846
6118
|
taints: 'taints',
|
|
@@ -5853,6 +6125,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig exten
|
|
|
5853
6125
|
cmsEnabled: 'boolean',
|
|
5854
6126
|
cpuPolicy: 'string',
|
|
5855
6127
|
labels: { 'type': 'array', 'itemType': Tag },
|
|
6128
|
+
nodeNameMode: 'string',
|
|
5856
6129
|
runtime: 'string',
|
|
5857
6130
|
runtimeVersion: 'string',
|
|
5858
6131
|
taints: { 'type': 'array', 'itemType': Taint },
|
|
@@ -5985,6 +6258,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
5985
6258
|
autoRenewPeriod?: number;
|
|
5986
6259
|
compensateWithOnDemand?: boolean;
|
|
5987
6260
|
dataDisks?: DataDisk[];
|
|
6261
|
+
deploymentsetId?: string;
|
|
5988
6262
|
imageId?: string;
|
|
5989
6263
|
instanceChargeType?: string;
|
|
5990
6264
|
instanceTypes?: string[];
|
|
@@ -6019,6 +6293,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
6019
6293
|
autoRenewPeriod: 'auto_renew_period',
|
|
6020
6294
|
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
6021
6295
|
dataDisks: 'data_disks',
|
|
6296
|
+
deploymentsetId: 'deploymentset_id',
|
|
6022
6297
|
imageId: 'image_id',
|
|
6023
6298
|
instanceChargeType: 'instance_charge_type',
|
|
6024
6299
|
instanceTypes: 'instance_types',
|
|
@@ -6056,6 +6331,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
6056
6331
|
autoRenewPeriod: 'number',
|
|
6057
6332
|
compensateWithOnDemand: 'boolean',
|
|
6058
6333
|
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
6334
|
+
deploymentsetId: 'string',
|
|
6059
6335
|
imageId: 'string',
|
|
6060
6336
|
instanceChargeType: 'string',
|
|
6061
6337
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -6153,8 +6429,11 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsTeeConfig extends $tea
|
|
|
6153
6429
|
|
|
6154
6430
|
export class DescribeClusterNodePoolsResponseBodyNodepools extends $tea.Model {
|
|
6155
6431
|
autoScaling?: DescribeClusterNodePoolsResponseBodyNodepoolsAutoScaling;
|
|
6432
|
+
interconnectConfig?: DescribeClusterNodePoolsResponseBodyNodepoolsInterconnectConfig;
|
|
6433
|
+
interconnectMode?: string;
|
|
6156
6434
|
kubernetesConfig?: DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig;
|
|
6157
6435
|
management?: DescribeClusterNodePoolsResponseBodyNodepoolsManagement;
|
|
6436
|
+
maxNodes?: number;
|
|
6158
6437
|
nodepoolInfo?: DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo;
|
|
6159
6438
|
scalingGroup?: DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup;
|
|
6160
6439
|
status?: DescribeClusterNodePoolsResponseBodyNodepoolsStatus;
|
|
@@ -6162,8 +6441,11 @@ export class DescribeClusterNodePoolsResponseBodyNodepools extends $tea.Model {
|
|
|
6162
6441
|
static names(): { [key: string]: string } {
|
|
6163
6442
|
return {
|
|
6164
6443
|
autoScaling: 'auto_scaling',
|
|
6444
|
+
interconnectConfig: 'interconnect_config',
|
|
6445
|
+
interconnectMode: 'interconnect_mode',
|
|
6165
6446
|
kubernetesConfig: 'kubernetes_config',
|
|
6166
6447
|
management: 'management',
|
|
6448
|
+
maxNodes: 'max_nodes',
|
|
6167
6449
|
nodepoolInfo: 'nodepool_info',
|
|
6168
6450
|
scalingGroup: 'scaling_group',
|
|
6169
6451
|
status: 'status',
|
|
@@ -6174,8 +6456,11 @@ export class DescribeClusterNodePoolsResponseBodyNodepools extends $tea.Model {
|
|
|
6174
6456
|
static types(): { [key: string]: any } {
|
|
6175
6457
|
return {
|
|
6176
6458
|
autoScaling: DescribeClusterNodePoolsResponseBodyNodepoolsAutoScaling,
|
|
6459
|
+
interconnectConfig: DescribeClusterNodePoolsResponseBodyNodepoolsInterconnectConfig,
|
|
6460
|
+
interconnectMode: 'string',
|
|
6177
6461
|
kubernetesConfig: DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig,
|
|
6178
6462
|
management: DescribeClusterNodePoolsResponseBodyNodepoolsManagement,
|
|
6463
|
+
maxNodes: 'number',
|
|
6179
6464
|
nodepoolInfo: DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo,
|
|
6180
6465
|
scalingGroup: DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup,
|
|
6181
6466
|
status: DescribeClusterNodePoolsResponseBodyNodepoolsStatus,
|
|
@@ -8151,7 +8436,18 @@ export default class Client extends OpenApi {
|
|
|
8151
8436
|
headers: headers,
|
|
8152
8437
|
body: OpenApiUtil.parseToMap(body),
|
|
8153
8438
|
});
|
|
8154
|
-
|
|
8439
|
+
let params = new $OpenApi.Params({
|
|
8440
|
+
action: "AttachInstances",
|
|
8441
|
+
version: "2015-12-15",
|
|
8442
|
+
protocol: "HTTPS",
|
|
8443
|
+
pathname: `/clusters/${ClusterId}/attach`,
|
|
8444
|
+
method: "POST",
|
|
8445
|
+
authType: "AK",
|
|
8446
|
+
style: "ROA",
|
|
8447
|
+
reqBodyType: "json",
|
|
8448
|
+
bodyType: "json",
|
|
8449
|
+
});
|
|
8450
|
+
return $tea.cast<AttachInstancesResponse>(await this.callApi(params, req, runtime), new AttachInstancesResponse({}));
|
|
8155
8451
|
}
|
|
8156
8452
|
|
|
8157
8453
|
async cancelClusterUpgrade(ClusterId: string): Promise<CancelClusterUpgradeResponse> {
|
|
@@ -8165,7 +8461,18 @@ export default class Client extends OpenApi {
|
|
|
8165
8461
|
let req = new $OpenApi.OpenApiRequest({
|
|
8166
8462
|
headers: headers,
|
|
8167
8463
|
});
|
|
8168
|
-
|
|
8464
|
+
let params = new $OpenApi.Params({
|
|
8465
|
+
action: "CancelClusterUpgrade",
|
|
8466
|
+
version: "2015-12-15",
|
|
8467
|
+
protocol: "HTTPS",
|
|
8468
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/cancel`,
|
|
8469
|
+
method: "POST",
|
|
8470
|
+
authType: "AK",
|
|
8471
|
+
style: "ROA",
|
|
8472
|
+
reqBodyType: "json",
|
|
8473
|
+
bodyType: "none",
|
|
8474
|
+
});
|
|
8475
|
+
return $tea.cast<CancelClusterUpgradeResponse>(await this.callApi(params, req, runtime), new CancelClusterUpgradeResponse({}));
|
|
8169
8476
|
}
|
|
8170
8477
|
|
|
8171
8478
|
async cancelComponentUpgrade(clusterId: string, componentId: string): Promise<CancelComponentUpgradeResponse> {
|
|
@@ -8180,7 +8487,18 @@ export default class Client extends OpenApi {
|
|
|
8180
8487
|
let req = new $OpenApi.OpenApiRequest({
|
|
8181
8488
|
headers: headers,
|
|
8182
8489
|
});
|
|
8183
|
-
|
|
8490
|
+
let params = new $OpenApi.Params({
|
|
8491
|
+
action: "CancelComponentUpgrade",
|
|
8492
|
+
version: "2015-12-15",
|
|
8493
|
+
protocol: "HTTPS",
|
|
8494
|
+
pathname: `/clusters/${clusterId}/components/${componentId}/cancel`,
|
|
8495
|
+
method: "POST",
|
|
8496
|
+
authType: "AK",
|
|
8497
|
+
style: "ROA",
|
|
8498
|
+
reqBodyType: "json",
|
|
8499
|
+
bodyType: "none",
|
|
8500
|
+
});
|
|
8501
|
+
return $tea.cast<CancelComponentUpgradeResponse>(await this.callApi(params, req, runtime), new CancelComponentUpgradeResponse({}));
|
|
8184
8502
|
}
|
|
8185
8503
|
|
|
8186
8504
|
async cancelWorkflow(workflowName: string, request: CancelWorkflowRequest): Promise<CancelWorkflowResponse> {
|
|
@@ -8201,7 +8519,18 @@ export default class Client extends OpenApi {
|
|
|
8201
8519
|
headers: headers,
|
|
8202
8520
|
body: OpenApiUtil.parseToMap(body),
|
|
8203
8521
|
});
|
|
8204
|
-
|
|
8522
|
+
let params = new $OpenApi.Params({
|
|
8523
|
+
action: "CancelWorkflow",
|
|
8524
|
+
version: "2015-12-15",
|
|
8525
|
+
protocol: "HTTPS",
|
|
8526
|
+
pathname: `/gs/workflow/${workflowName}`,
|
|
8527
|
+
method: "PUT",
|
|
8528
|
+
authType: "AK",
|
|
8529
|
+
style: "ROA",
|
|
8530
|
+
reqBodyType: "json",
|
|
8531
|
+
bodyType: "none",
|
|
8532
|
+
});
|
|
8533
|
+
return $tea.cast<CancelWorkflowResponse>(await this.callApi(params, req, runtime), new CancelWorkflowResponse({}));
|
|
8205
8534
|
}
|
|
8206
8535
|
|
|
8207
8536
|
async createAutoscalingConfig(ClusterId: string, request: CreateAutoscalingConfigRequest): Promise<CreateAutoscalingConfigResponse> {
|
|
@@ -8238,7 +8567,18 @@ export default class Client extends OpenApi {
|
|
|
8238
8567
|
headers: headers,
|
|
8239
8568
|
body: OpenApiUtil.parseToMap(body),
|
|
8240
8569
|
});
|
|
8241
|
-
|
|
8570
|
+
let params = new $OpenApi.Params({
|
|
8571
|
+
action: "CreateAutoscalingConfig",
|
|
8572
|
+
version: "2015-12-15",
|
|
8573
|
+
protocol: "HTTPS",
|
|
8574
|
+
pathname: `/cluster/${ClusterId}/autoscale/config/`,
|
|
8575
|
+
method: "POST",
|
|
8576
|
+
authType: "AK",
|
|
8577
|
+
style: "ROA",
|
|
8578
|
+
reqBodyType: "json",
|
|
8579
|
+
bodyType: "none",
|
|
8580
|
+
});
|
|
8581
|
+
return $tea.cast<CreateAutoscalingConfigResponse>(await this.callApi(params, req, runtime), new CreateAutoscalingConfigResponse({}));
|
|
8242
8582
|
}
|
|
8243
8583
|
|
|
8244
8584
|
async createCluster(request: CreateClusterRequest): Promise<CreateClusterResponse> {
|
|
@@ -8310,6 +8650,10 @@ export default class Client extends OpenApi {
|
|
|
8310
8650
|
body["disable_rollback"] = request.disableRollback;
|
|
8311
8651
|
}
|
|
8312
8652
|
|
|
8653
|
+
if (!Util.isUnset(request.enableRrsa)) {
|
|
8654
|
+
body["enable_rrsa"] = request.enableRrsa;
|
|
8655
|
+
}
|
|
8656
|
+
|
|
8313
8657
|
if (!Util.isUnset(request.encryptionProviderKey)) {
|
|
8314
8658
|
body["encryption_provider_key"] = request.encryptionProviderKey;
|
|
8315
8659
|
}
|
|
@@ -8350,6 +8694,10 @@ export default class Client extends OpenApi {
|
|
|
8350
8694
|
body["kubernetes_version"] = request.kubernetesVersion;
|
|
8351
8695
|
}
|
|
8352
8696
|
|
|
8697
|
+
if (!Util.isUnset(request.loadBalancerSpec)) {
|
|
8698
|
+
body["load_balancer_spec"] = request.loadBalancerSpec;
|
|
8699
|
+
}
|
|
8700
|
+
|
|
8353
8701
|
if (!Util.isUnset(request.loggingType)) {
|
|
8354
8702
|
body["logging_type"] = request.loggingType;
|
|
8355
8703
|
}
|
|
@@ -8578,7 +8926,18 @@ export default class Client extends OpenApi {
|
|
|
8578
8926
|
headers: headers,
|
|
8579
8927
|
body: OpenApiUtil.parseToMap(body),
|
|
8580
8928
|
});
|
|
8581
|
-
|
|
8929
|
+
let params = new $OpenApi.Params({
|
|
8930
|
+
action: "CreateCluster",
|
|
8931
|
+
version: "2015-12-15",
|
|
8932
|
+
protocol: "HTTPS",
|
|
8933
|
+
pathname: `/clusters`,
|
|
8934
|
+
method: "POST",
|
|
8935
|
+
authType: "AK",
|
|
8936
|
+
style: "ROA",
|
|
8937
|
+
reqBodyType: "json",
|
|
8938
|
+
bodyType: "json",
|
|
8939
|
+
});
|
|
8940
|
+
return $tea.cast<CreateClusterResponse>(await this.callApi(params, req, runtime), new CreateClusterResponse({}));
|
|
8582
8941
|
}
|
|
8583
8942
|
|
|
8584
8943
|
async createClusterNodePool(ClusterId: string, request: CreateClusterNodePoolRequest): Promise<CreateClusterNodePoolResponse> {
|
|
@@ -8599,6 +8958,14 @@ export default class Client extends OpenApi {
|
|
|
8599
8958
|
body["count"] = request.count;
|
|
8600
8959
|
}
|
|
8601
8960
|
|
|
8961
|
+
if (!Util.isUnset($tea.toMap(request.interconnectConfig))) {
|
|
8962
|
+
body["interconnect_config"] = request.interconnectConfig;
|
|
8963
|
+
}
|
|
8964
|
+
|
|
8965
|
+
if (!Util.isUnset(request.interconnectMode)) {
|
|
8966
|
+
body["interconnect_mode"] = request.interconnectMode;
|
|
8967
|
+
}
|
|
8968
|
+
|
|
8602
8969
|
if (!Util.isUnset($tea.toMap(request.kubernetesConfig))) {
|
|
8603
8970
|
body["kubernetes_config"] = request.kubernetesConfig;
|
|
8604
8971
|
}
|
|
@@ -8607,6 +8974,10 @@ export default class Client extends OpenApi {
|
|
|
8607
8974
|
body["management"] = request.management;
|
|
8608
8975
|
}
|
|
8609
8976
|
|
|
8977
|
+
if (!Util.isUnset(request.maxNodes)) {
|
|
8978
|
+
body["max_nodes"] = request.maxNodes;
|
|
8979
|
+
}
|
|
8980
|
+
|
|
8610
8981
|
if (!Util.isUnset($tea.toMap(request.nodepoolInfo))) {
|
|
8611
8982
|
body["nodepool_info"] = request.nodepoolInfo;
|
|
8612
8983
|
}
|
|
@@ -8623,7 +8994,18 @@ export default class Client extends OpenApi {
|
|
|
8623
8994
|
headers: headers,
|
|
8624
8995
|
body: OpenApiUtil.parseToMap(body),
|
|
8625
8996
|
});
|
|
8626
|
-
|
|
8997
|
+
let params = new $OpenApi.Params({
|
|
8998
|
+
action: "CreateClusterNodePool",
|
|
8999
|
+
version: "2015-12-15",
|
|
9000
|
+
protocol: "HTTPS",
|
|
9001
|
+
pathname: `/clusters/${ClusterId}/nodepools`,
|
|
9002
|
+
method: "POST",
|
|
9003
|
+
authType: "AK",
|
|
9004
|
+
style: "ROA",
|
|
9005
|
+
reqBodyType: "json",
|
|
9006
|
+
bodyType: "json",
|
|
9007
|
+
});
|
|
9008
|
+
return $tea.cast<CreateClusterNodePoolResponse>(await this.callApi(params, req, runtime), new CreateClusterNodePoolResponse({}));
|
|
8627
9009
|
}
|
|
8628
9010
|
|
|
8629
9011
|
async createEdgeMachine(request: CreateEdgeMachineRequest): Promise<CreateEdgeMachineResponse> {
|
|
@@ -8651,7 +9033,18 @@ export default class Client extends OpenApi {
|
|
|
8651
9033
|
headers: headers,
|
|
8652
9034
|
body: OpenApiUtil.parseToMap(body),
|
|
8653
9035
|
});
|
|
8654
|
-
|
|
9036
|
+
let params = new $OpenApi.Params({
|
|
9037
|
+
action: "CreateEdgeMachine",
|
|
9038
|
+
version: "2015-12-15",
|
|
9039
|
+
protocol: "HTTPS",
|
|
9040
|
+
pathname: `/edge_machines`,
|
|
9041
|
+
method: "POST",
|
|
9042
|
+
authType: "AK",
|
|
9043
|
+
style: "ROA",
|
|
9044
|
+
reqBodyType: "json",
|
|
9045
|
+
bodyType: "json",
|
|
9046
|
+
});
|
|
9047
|
+
return $tea.cast<CreateEdgeMachineResponse>(await this.callApi(params, req, runtime), new CreateEdgeMachineResponse({}));
|
|
8655
9048
|
}
|
|
8656
9049
|
|
|
8657
9050
|
async createKubernetesTrigger(request: CreateKubernetesTriggerRequest): Promise<CreateKubernetesTriggerResponse> {
|
|
@@ -8683,7 +9076,18 @@ export default class Client extends OpenApi {
|
|
|
8683
9076
|
headers: headers,
|
|
8684
9077
|
body: OpenApiUtil.parseToMap(body),
|
|
8685
9078
|
});
|
|
8686
|
-
|
|
9079
|
+
let params = new $OpenApi.Params({
|
|
9080
|
+
action: "CreateKubernetesTrigger",
|
|
9081
|
+
version: "2015-12-15",
|
|
9082
|
+
protocol: "HTTPS",
|
|
9083
|
+
pathname: `/triggers`,
|
|
9084
|
+
method: "POST",
|
|
9085
|
+
authType: "AK",
|
|
9086
|
+
style: "ROA",
|
|
9087
|
+
reqBodyType: "json",
|
|
9088
|
+
bodyType: "json",
|
|
9089
|
+
});
|
|
9090
|
+
return $tea.cast<CreateKubernetesTriggerResponse>(await this.callApi(params, req, runtime), new CreateKubernetesTriggerResponse({}));
|
|
8687
9091
|
}
|
|
8688
9092
|
|
|
8689
9093
|
async createTemplate(request: CreateTemplateRequest): Promise<CreateTemplateResponse> {
|
|
@@ -8719,7 +9123,18 @@ export default class Client extends OpenApi {
|
|
|
8719
9123
|
headers: headers,
|
|
8720
9124
|
body: OpenApiUtil.parseToMap(body),
|
|
8721
9125
|
});
|
|
8722
|
-
|
|
9126
|
+
let params = new $OpenApi.Params({
|
|
9127
|
+
action: "CreateTemplate",
|
|
9128
|
+
version: "2015-12-15",
|
|
9129
|
+
protocol: "HTTPS",
|
|
9130
|
+
pathname: `/templates`,
|
|
9131
|
+
method: "POST",
|
|
9132
|
+
authType: "AK",
|
|
9133
|
+
style: "ROA",
|
|
9134
|
+
reqBodyType: "json",
|
|
9135
|
+
bodyType: "json",
|
|
9136
|
+
});
|
|
9137
|
+
return $tea.cast<CreateTemplateResponse>(await this.callApi(params, req, runtime), new CreateTemplateResponse({}));
|
|
8723
9138
|
}
|
|
8724
9139
|
|
|
8725
9140
|
async createTrigger(clusterId: string, request: CreateTriggerRequest): Promise<CreateTriggerResponse> {
|
|
@@ -8752,7 +9167,18 @@ export default class Client extends OpenApi {
|
|
|
8752
9167
|
headers: headers,
|
|
8753
9168
|
body: OpenApiUtil.parseToMap(body),
|
|
8754
9169
|
});
|
|
8755
|
-
|
|
9170
|
+
let params = new $OpenApi.Params({
|
|
9171
|
+
action: "CreateTrigger",
|
|
9172
|
+
version: "2015-12-15",
|
|
9173
|
+
protocol: "HTTPS",
|
|
9174
|
+
pathname: `/clusters/${clusterId}/triggers`,
|
|
9175
|
+
method: "POST",
|
|
9176
|
+
authType: "AK",
|
|
9177
|
+
style: "ROA",
|
|
9178
|
+
reqBodyType: "json",
|
|
9179
|
+
bodyType: "json",
|
|
9180
|
+
});
|
|
9181
|
+
return $tea.cast<CreateTriggerResponse>(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
|
|
8756
9182
|
}
|
|
8757
9183
|
|
|
8758
9184
|
async deleteCluster(ClusterId: string, request: DeleteClusterRequest): Promise<DeleteClusterResponse> {
|
|
@@ -8787,7 +9213,18 @@ export default class Client extends OpenApi {
|
|
|
8787
9213
|
headers: headers,
|
|
8788
9214
|
query: OpenApiUtil.query(query),
|
|
8789
9215
|
});
|
|
8790
|
-
|
|
9216
|
+
let params = new $OpenApi.Params({
|
|
9217
|
+
action: "DeleteCluster",
|
|
9218
|
+
version: "2015-12-15",
|
|
9219
|
+
protocol: "HTTPS",
|
|
9220
|
+
pathname: `/clusters/${ClusterId}`,
|
|
9221
|
+
method: "DELETE",
|
|
9222
|
+
authType: "AK",
|
|
9223
|
+
style: "ROA",
|
|
9224
|
+
reqBodyType: "json",
|
|
9225
|
+
bodyType: "none",
|
|
9226
|
+
});
|
|
9227
|
+
return $tea.cast<DeleteClusterResponse>(await this.callApi(params, req, runtime), new DeleteClusterResponse({}));
|
|
8791
9228
|
}
|
|
8792
9229
|
|
|
8793
9230
|
async deleteClusterNodepool(ClusterId: string, NodepoolId: string): Promise<DeleteClusterNodepoolResponse> {
|
|
@@ -8802,7 +9239,18 @@ export default class Client extends OpenApi {
|
|
|
8802
9239
|
let req = new $OpenApi.OpenApiRequest({
|
|
8803
9240
|
headers: headers,
|
|
8804
9241
|
});
|
|
8805
|
-
|
|
9242
|
+
let params = new $OpenApi.Params({
|
|
9243
|
+
action: "DeleteClusterNodepool",
|
|
9244
|
+
version: "2015-12-15",
|
|
9245
|
+
protocol: "HTTPS",
|
|
9246
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
9247
|
+
method: "DELETE",
|
|
9248
|
+
authType: "AK",
|
|
9249
|
+
style: "ROA",
|
|
9250
|
+
reqBodyType: "json",
|
|
9251
|
+
bodyType: "json",
|
|
9252
|
+
});
|
|
9253
|
+
return $tea.cast<DeleteClusterNodepoolResponse>(await this.callApi(params, req, runtime), new DeleteClusterNodepoolResponse({}));
|
|
8806
9254
|
}
|
|
8807
9255
|
|
|
8808
9256
|
async deleteClusterNodes(ClusterId: string, request: DeleteClusterNodesRequest): Promise<DeleteClusterNodesResponse> {
|
|
@@ -8831,7 +9279,18 @@ export default class Client extends OpenApi {
|
|
|
8831
9279
|
headers: headers,
|
|
8832
9280
|
body: OpenApiUtil.parseToMap(body),
|
|
8833
9281
|
});
|
|
8834
|
-
|
|
9282
|
+
let params = new $OpenApi.Params({
|
|
9283
|
+
action: "DeleteClusterNodes",
|
|
9284
|
+
version: "2015-12-15",
|
|
9285
|
+
protocol: "HTTPS",
|
|
9286
|
+
pathname: `/clusters/${ClusterId}/nodes`,
|
|
9287
|
+
method: "POST",
|
|
9288
|
+
authType: "AK",
|
|
9289
|
+
style: "ROA",
|
|
9290
|
+
reqBodyType: "json",
|
|
9291
|
+
bodyType: "json",
|
|
9292
|
+
});
|
|
9293
|
+
return $tea.cast<DeleteClusterNodesResponse>(await this.callApi(params, req, runtime), new DeleteClusterNodesResponse({}));
|
|
8835
9294
|
}
|
|
8836
9295
|
|
|
8837
9296
|
async deleteEdgeMachine(edgeMachineid: string, request: DeleteEdgeMachineRequest): Promise<DeleteEdgeMachineResponse> {
|
|
@@ -8852,7 +9311,18 @@ export default class Client extends OpenApi {
|
|
|
8852
9311
|
headers: headers,
|
|
8853
9312
|
query: OpenApiUtil.query(query),
|
|
8854
9313
|
});
|
|
8855
|
-
|
|
9314
|
+
let params = new $OpenApi.Params({
|
|
9315
|
+
action: "DeleteEdgeMachine",
|
|
9316
|
+
version: "2015-12-15",
|
|
9317
|
+
protocol: "HTTPS",
|
|
9318
|
+
pathname: `/edge_machines/[edge_machineid]`,
|
|
9319
|
+
method: "DELETE",
|
|
9320
|
+
authType: "AK",
|
|
9321
|
+
style: "ROA",
|
|
9322
|
+
reqBodyType: "json",
|
|
9323
|
+
bodyType: "none",
|
|
9324
|
+
});
|
|
9325
|
+
return $tea.cast<DeleteEdgeMachineResponse>(await this.callApi(params, req, runtime), new DeleteEdgeMachineResponse({}));
|
|
8856
9326
|
}
|
|
8857
9327
|
|
|
8858
9328
|
async deleteKubernetesTrigger(Id: string): Promise<DeleteKubernetesTriggerResponse> {
|
|
@@ -8866,23 +9336,51 @@ export default class Client extends OpenApi {
|
|
|
8866
9336
|
let req = new $OpenApi.OpenApiRequest({
|
|
8867
9337
|
headers: headers,
|
|
8868
9338
|
});
|
|
8869
|
-
|
|
9339
|
+
let params = new $OpenApi.Params({
|
|
9340
|
+
action: "DeleteKubernetesTrigger",
|
|
9341
|
+
version: "2015-12-15",
|
|
9342
|
+
protocol: "HTTPS",
|
|
9343
|
+
pathname: `/triggers/revoke/${Id}`,
|
|
9344
|
+
method: "DELETE",
|
|
9345
|
+
authType: "AK",
|
|
9346
|
+
style: "ROA",
|
|
9347
|
+
reqBodyType: "json",
|
|
9348
|
+
bodyType: "none",
|
|
9349
|
+
});
|
|
9350
|
+
return $tea.cast<DeleteKubernetesTriggerResponse>(await this.callApi(params, req, runtime), new DeleteKubernetesTriggerResponse({}));
|
|
8870
9351
|
}
|
|
8871
9352
|
|
|
8872
|
-
async deletePolicyInstance(clusterId: string, policyName: string,
|
|
9353
|
+
async deletePolicyInstance(clusterId: string, policyName: string, request: DeletePolicyInstanceRequest): Promise<DeletePolicyInstanceResponse> {
|
|
8873
9354
|
let runtime = new $Util.RuntimeOptions({ });
|
|
8874
9355
|
let headers : {[key: string ]: string} = { };
|
|
8875
|
-
return await this.deletePolicyInstanceWithOptions(clusterId, policyName,
|
|
9356
|
+
return await this.deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
|
|
8876
9357
|
}
|
|
8877
9358
|
|
|
8878
|
-
async deletePolicyInstanceWithOptions(clusterId: string, policyName: string,
|
|
9359
|
+
async deletePolicyInstanceWithOptions(clusterId: string, policyName: string, request: DeletePolicyInstanceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeletePolicyInstanceResponse> {
|
|
9360
|
+
Util.validateModel(request);
|
|
8879
9361
|
clusterId = OpenApiUtil.getEncodeParam(clusterId);
|
|
8880
9362
|
policyName = OpenApiUtil.getEncodeParam(policyName);
|
|
8881
|
-
|
|
9363
|
+
let query : {[key: string ]: any} = { };
|
|
9364
|
+
if (!Util.isUnset(request.instanceName)) {
|
|
9365
|
+
query["instance_name"] = request.instanceName;
|
|
9366
|
+
}
|
|
9367
|
+
|
|
8882
9368
|
let req = new $OpenApi.OpenApiRequest({
|
|
8883
9369
|
headers: headers,
|
|
9370
|
+
query: OpenApiUtil.query(query),
|
|
8884
9371
|
});
|
|
8885
|
-
|
|
9372
|
+
let params = new $OpenApi.Params({
|
|
9373
|
+
action: "DeletePolicyInstance",
|
|
9374
|
+
version: "2015-12-15",
|
|
9375
|
+
protocol: "HTTPS",
|
|
9376
|
+
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
9377
|
+
method: "DELETE",
|
|
9378
|
+
authType: "AK",
|
|
9379
|
+
style: "ROA",
|
|
9380
|
+
reqBodyType: "json",
|
|
9381
|
+
bodyType: "json",
|
|
9382
|
+
});
|
|
9383
|
+
return $tea.cast<DeletePolicyInstanceResponse>(await this.callApi(params, req, runtime), new DeletePolicyInstanceResponse({}));
|
|
8886
9384
|
}
|
|
8887
9385
|
|
|
8888
9386
|
async deleteTemplate(TemplateId: string): Promise<DeleteTemplateResponse> {
|
|
@@ -8896,7 +9394,18 @@ export default class Client extends OpenApi {
|
|
|
8896
9394
|
let req = new $OpenApi.OpenApiRequest({
|
|
8897
9395
|
headers: headers,
|
|
8898
9396
|
});
|
|
8899
|
-
|
|
9397
|
+
let params = new $OpenApi.Params({
|
|
9398
|
+
action: "DeleteTemplate",
|
|
9399
|
+
version: "2015-12-15",
|
|
9400
|
+
protocol: "HTTPS",
|
|
9401
|
+
pathname: `/templates/${TemplateId}`,
|
|
9402
|
+
method: "DELETE",
|
|
9403
|
+
authType: "AK",
|
|
9404
|
+
style: "ROA",
|
|
9405
|
+
reqBodyType: "json",
|
|
9406
|
+
bodyType: "none",
|
|
9407
|
+
});
|
|
9408
|
+
return $tea.cast<DeleteTemplateResponse>(await this.callApi(params, req, runtime), new DeleteTemplateResponse({}));
|
|
8900
9409
|
}
|
|
8901
9410
|
|
|
8902
9411
|
async deleteTrigger(clusterId: string, Id: string): Promise<DeleteTriggerResponse> {
|
|
@@ -8911,7 +9420,18 @@ export default class Client extends OpenApi {
|
|
|
8911
9420
|
let req = new $OpenApi.OpenApiRequest({
|
|
8912
9421
|
headers: headers,
|
|
8913
9422
|
});
|
|
8914
|
-
|
|
9423
|
+
let params = new $OpenApi.Params({
|
|
9424
|
+
action: "DeleteTrigger",
|
|
9425
|
+
version: "2015-12-15",
|
|
9426
|
+
protocol: "HTTPS",
|
|
9427
|
+
pathname: `/clusters/[cluster_id]/triggers/[Id]`,
|
|
9428
|
+
method: "DELETE",
|
|
9429
|
+
authType: "AK",
|
|
9430
|
+
style: "ROA",
|
|
9431
|
+
reqBodyType: "json",
|
|
9432
|
+
bodyType: "none",
|
|
9433
|
+
});
|
|
9434
|
+
return $tea.cast<DeleteTriggerResponse>(await this.callApi(params, req, runtime), new DeleteTriggerResponse({}));
|
|
8915
9435
|
}
|
|
8916
9436
|
|
|
8917
9437
|
async deployPolicyInstance(clusterId: string, policyName: string, request: DeployPolicyInstanceRequest): Promise<DeployPolicyInstanceResponse> {
|
|
@@ -8941,7 +9461,18 @@ export default class Client extends OpenApi {
|
|
|
8941
9461
|
headers: headers,
|
|
8942
9462
|
body: OpenApiUtil.parseToMap(body),
|
|
8943
9463
|
});
|
|
8944
|
-
|
|
9464
|
+
let params = new $OpenApi.Params({
|
|
9465
|
+
action: "DeployPolicyInstance",
|
|
9466
|
+
version: "2015-12-15",
|
|
9467
|
+
protocol: "HTTPS",
|
|
9468
|
+
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
9469
|
+
method: "POST",
|
|
9470
|
+
authType: "AK",
|
|
9471
|
+
style: "ROA",
|
|
9472
|
+
reqBodyType: "json",
|
|
9473
|
+
bodyType: "json",
|
|
9474
|
+
});
|
|
9475
|
+
return $tea.cast<DeployPolicyInstanceResponse>(await this.callApi(params, req, runtime), new DeployPolicyInstanceResponse({}));
|
|
8945
9476
|
}
|
|
8946
9477
|
|
|
8947
9478
|
async descirbeWorkflow(workflowName: string): Promise<DescirbeWorkflowResponse> {
|
|
@@ -8955,7 +9486,18 @@ export default class Client extends OpenApi {
|
|
|
8955
9486
|
let req = new $OpenApi.OpenApiRequest({
|
|
8956
9487
|
headers: headers,
|
|
8957
9488
|
});
|
|
8958
|
-
|
|
9489
|
+
let params = new $OpenApi.Params({
|
|
9490
|
+
action: "DescirbeWorkflow",
|
|
9491
|
+
version: "2015-12-15",
|
|
9492
|
+
protocol: "HTTPS",
|
|
9493
|
+
pathname: `/gs/workflow/${workflowName}`,
|
|
9494
|
+
method: "GET",
|
|
9495
|
+
authType: "AK",
|
|
9496
|
+
style: "ROA",
|
|
9497
|
+
reqBodyType: "json",
|
|
9498
|
+
bodyType: "json",
|
|
9499
|
+
});
|
|
9500
|
+
return $tea.cast<DescirbeWorkflowResponse>(await this.callApi(params, req, runtime), new DescirbeWorkflowResponse({}));
|
|
8959
9501
|
}
|
|
8960
9502
|
|
|
8961
9503
|
async describeAddons(request: DescribeAddonsRequest): Promise<DescribeAddonsResponse> {
|
|
@@ -8979,7 +9521,18 @@ export default class Client extends OpenApi {
|
|
|
8979
9521
|
headers: headers,
|
|
8980
9522
|
query: OpenApiUtil.query(query),
|
|
8981
9523
|
});
|
|
8982
|
-
|
|
9524
|
+
let params = new $OpenApi.Params({
|
|
9525
|
+
action: "DescribeAddons",
|
|
9526
|
+
version: "2015-12-15",
|
|
9527
|
+
protocol: "HTTPS",
|
|
9528
|
+
pathname: `/clusters/components/metadata`,
|
|
9529
|
+
method: "GET",
|
|
9530
|
+
authType: "AK",
|
|
9531
|
+
style: "ROA",
|
|
9532
|
+
reqBodyType: "json",
|
|
9533
|
+
bodyType: "json",
|
|
9534
|
+
});
|
|
9535
|
+
return $tea.cast<DescribeAddonsResponse>(await this.callApi(params, req, runtime), new DescribeAddonsResponse({}));
|
|
8983
9536
|
}
|
|
8984
9537
|
|
|
8985
9538
|
async describeClusterAddonMetadata(clusterId: string, componentId: string, version: string): Promise<DescribeClusterAddonMetadataResponse> {
|
|
@@ -8995,7 +9548,18 @@ export default class Client extends OpenApi {
|
|
|
8995
9548
|
let req = new $OpenApi.OpenApiRequest({
|
|
8996
9549
|
headers: headers,
|
|
8997
9550
|
});
|
|
8998
|
-
|
|
9551
|
+
let params = new $OpenApi.Params({
|
|
9552
|
+
action: "DescribeClusterAddonMetadata",
|
|
9553
|
+
version: "2015-12-15",
|
|
9554
|
+
protocol: "HTTPS",
|
|
9555
|
+
pathname: `/clusters/${clusterId}/components/${componentId}/metadata`,
|
|
9556
|
+
method: "GET",
|
|
9557
|
+
authType: "AK",
|
|
9558
|
+
style: "ROA",
|
|
9559
|
+
reqBodyType: "json",
|
|
9560
|
+
bodyType: "json",
|
|
9561
|
+
});
|
|
9562
|
+
return $tea.cast<DescribeClusterAddonMetadataResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonMetadataResponse({}));
|
|
8999
9563
|
}
|
|
9000
9564
|
|
|
9001
9565
|
async describeClusterAddonUpgradeStatus(ClusterId: string, ComponentId: string): Promise<DescribeClusterAddonUpgradeStatusResponse> {
|
|
@@ -9010,7 +9574,18 @@ export default class Client extends OpenApi {
|
|
|
9010
9574
|
let req = new $OpenApi.OpenApiRequest({
|
|
9011
9575
|
headers: headers,
|
|
9012
9576
|
});
|
|
9013
|
-
|
|
9577
|
+
let params = new $OpenApi.Params({
|
|
9578
|
+
action: "DescribeClusterAddonUpgradeStatus",
|
|
9579
|
+
version: "2015-12-15",
|
|
9580
|
+
protocol: "HTTPS",
|
|
9581
|
+
pathname: `/clusters/${ClusterId}/components/${ComponentId}/upgradestatus`,
|
|
9582
|
+
method: "GET",
|
|
9583
|
+
authType: "AK",
|
|
9584
|
+
style: "ROA",
|
|
9585
|
+
reqBodyType: "json",
|
|
9586
|
+
bodyType: "json",
|
|
9587
|
+
});
|
|
9588
|
+
return $tea.cast<DescribeClusterAddonUpgradeStatusResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonUpgradeStatusResponse({}));
|
|
9014
9589
|
}
|
|
9015
9590
|
|
|
9016
9591
|
async describeClusterAddonsUpgradeStatus(ClusterId: string, request: DescribeClusterAddonsUpgradeStatusRequest): Promise<DescribeClusterAddonsUpgradeStatusResponse> {
|
|
@@ -9037,7 +9612,18 @@ export default class Client extends OpenApi {
|
|
|
9037
9612
|
headers: headers,
|
|
9038
9613
|
query: OpenApiUtil.query(query),
|
|
9039
9614
|
});
|
|
9040
|
-
|
|
9615
|
+
let params = new $OpenApi.Params({
|
|
9616
|
+
action: "DescribeClusterAddonsUpgradeStatus",
|
|
9617
|
+
version: "2015-12-15",
|
|
9618
|
+
protocol: "HTTPS",
|
|
9619
|
+
pathname: `/clusters/${ClusterId}/components/upgradestatus`,
|
|
9620
|
+
method: "GET",
|
|
9621
|
+
authType: "AK",
|
|
9622
|
+
style: "ROA",
|
|
9623
|
+
reqBodyType: "json",
|
|
9624
|
+
bodyType: "json",
|
|
9625
|
+
});
|
|
9626
|
+
return $tea.cast<DescribeClusterAddonsUpgradeStatusResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonsUpgradeStatusResponse({}));
|
|
9041
9627
|
}
|
|
9042
9628
|
|
|
9043
9629
|
async describeClusterAddonsVersion(ClusterId: string): Promise<DescribeClusterAddonsVersionResponse> {
|
|
@@ -9051,7 +9637,18 @@ export default class Client extends OpenApi {
|
|
|
9051
9637
|
let req = new $OpenApi.OpenApiRequest({
|
|
9052
9638
|
headers: headers,
|
|
9053
9639
|
});
|
|
9054
|
-
|
|
9640
|
+
let params = new $OpenApi.Params({
|
|
9641
|
+
action: "DescribeClusterAddonsVersion",
|
|
9642
|
+
version: "2015-12-15",
|
|
9643
|
+
protocol: "HTTPS",
|
|
9644
|
+
pathname: `/clusters/${ClusterId}/components/version`,
|
|
9645
|
+
method: "GET",
|
|
9646
|
+
authType: "AK",
|
|
9647
|
+
style: "ROA",
|
|
9648
|
+
reqBodyType: "json",
|
|
9649
|
+
bodyType: "json",
|
|
9650
|
+
});
|
|
9651
|
+
return $tea.cast<DescribeClusterAddonsVersionResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonsVersionResponse({}));
|
|
9055
9652
|
}
|
|
9056
9653
|
|
|
9057
9654
|
async describeClusterAttachScripts(ClusterId: string, request: DescribeClusterAttachScriptsRequest): Promise<DescribeClusterAttachScriptsResponse> {
|
|
@@ -9092,7 +9689,18 @@ export default class Client extends OpenApi {
|
|
|
9092
9689
|
headers: headers,
|
|
9093
9690
|
body: OpenApiUtil.parseToMap(body),
|
|
9094
9691
|
});
|
|
9095
|
-
|
|
9692
|
+
let params = new $OpenApi.Params({
|
|
9693
|
+
action: "DescribeClusterAttachScripts",
|
|
9694
|
+
version: "2015-12-15",
|
|
9695
|
+
protocol: "HTTPS",
|
|
9696
|
+
pathname: `/clusters/${ClusterId}/attachscript`,
|
|
9697
|
+
method: "POST",
|
|
9698
|
+
authType: "AK",
|
|
9699
|
+
style: "ROA",
|
|
9700
|
+
reqBodyType: "json",
|
|
9701
|
+
bodyType: "string",
|
|
9702
|
+
});
|
|
9703
|
+
return $tea.cast<DescribeClusterAttachScriptsResponse>(await this.callApi(params, req, runtime), new DescribeClusterAttachScriptsResponse({}));
|
|
9096
9704
|
}
|
|
9097
9705
|
|
|
9098
9706
|
async describeClusterDetail(ClusterId: string): Promise<DescribeClusterDetailResponse> {
|
|
@@ -9106,7 +9714,18 @@ export default class Client extends OpenApi {
|
|
|
9106
9714
|
let req = new $OpenApi.OpenApiRequest({
|
|
9107
9715
|
headers: headers,
|
|
9108
9716
|
});
|
|
9109
|
-
|
|
9717
|
+
let params = new $OpenApi.Params({
|
|
9718
|
+
action: "DescribeClusterDetail",
|
|
9719
|
+
version: "2015-12-15",
|
|
9720
|
+
protocol: "HTTPS",
|
|
9721
|
+
pathname: `/clusters/${ClusterId}`,
|
|
9722
|
+
method: "GET",
|
|
9723
|
+
authType: "AK",
|
|
9724
|
+
style: "ROA",
|
|
9725
|
+
reqBodyType: "json",
|
|
9726
|
+
bodyType: "json",
|
|
9727
|
+
});
|
|
9728
|
+
return $tea.cast<DescribeClusterDetailResponse>(await this.callApi(params, req, runtime), new DescribeClusterDetailResponse({}));
|
|
9110
9729
|
}
|
|
9111
9730
|
|
|
9112
9731
|
async describeClusterLogs(ClusterId: string): Promise<DescribeClusterLogsResponse> {
|
|
@@ -9120,7 +9739,18 @@ export default class Client extends OpenApi {
|
|
|
9120
9739
|
let req = new $OpenApi.OpenApiRequest({
|
|
9121
9740
|
headers: headers,
|
|
9122
9741
|
});
|
|
9123
|
-
|
|
9742
|
+
let params = new $OpenApi.Params({
|
|
9743
|
+
action: "DescribeClusterLogs",
|
|
9744
|
+
version: "2015-12-15",
|
|
9745
|
+
protocol: "HTTPS",
|
|
9746
|
+
pathname: `/clusters/${ClusterId}/logs`,
|
|
9747
|
+
method: "GET",
|
|
9748
|
+
authType: "AK",
|
|
9749
|
+
style: "ROA",
|
|
9750
|
+
reqBodyType: "json",
|
|
9751
|
+
bodyType: "array",
|
|
9752
|
+
});
|
|
9753
|
+
return $tea.cast<DescribeClusterLogsResponse>(await this.callApi(params, req, runtime), new DescribeClusterLogsResponse({}));
|
|
9124
9754
|
}
|
|
9125
9755
|
|
|
9126
9756
|
async describeClusterNamespaces(ClusterId: string): Promise<DescribeClusterNamespacesResponse> {
|
|
@@ -9134,7 +9764,18 @@ export default class Client extends OpenApi {
|
|
|
9134
9764
|
let req = new $OpenApi.OpenApiRequest({
|
|
9135
9765
|
headers: headers,
|
|
9136
9766
|
});
|
|
9137
|
-
|
|
9767
|
+
let params = new $OpenApi.Params({
|
|
9768
|
+
action: "DescribeClusterNamespaces",
|
|
9769
|
+
version: "2015-12-15",
|
|
9770
|
+
protocol: "HTTPS",
|
|
9771
|
+
pathname: `/k8s/${ClusterId}/namespaces`,
|
|
9772
|
+
method: "GET",
|
|
9773
|
+
authType: "AK",
|
|
9774
|
+
style: "ROA",
|
|
9775
|
+
reqBodyType: "json",
|
|
9776
|
+
bodyType: "array",
|
|
9777
|
+
});
|
|
9778
|
+
return $tea.cast<DescribeClusterNamespacesResponse>(await this.callApi(params, req, runtime), new DescribeClusterNamespacesResponse({}));
|
|
9138
9779
|
}
|
|
9139
9780
|
|
|
9140
9781
|
async describeClusterNodePoolDetail(ClusterId: string, NodepoolId: string): Promise<DescribeClusterNodePoolDetailResponse> {
|
|
@@ -9149,7 +9790,18 @@ export default class Client extends OpenApi {
|
|
|
9149
9790
|
let req = new $OpenApi.OpenApiRequest({
|
|
9150
9791
|
headers: headers,
|
|
9151
9792
|
});
|
|
9152
|
-
|
|
9793
|
+
let params = new $OpenApi.Params({
|
|
9794
|
+
action: "DescribeClusterNodePoolDetail",
|
|
9795
|
+
version: "2015-12-15",
|
|
9796
|
+
protocol: "HTTPS",
|
|
9797
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
9798
|
+
method: "GET",
|
|
9799
|
+
authType: "AK",
|
|
9800
|
+
style: "ROA",
|
|
9801
|
+
reqBodyType: "json",
|
|
9802
|
+
bodyType: "json",
|
|
9803
|
+
});
|
|
9804
|
+
return $tea.cast<DescribeClusterNodePoolDetailResponse>(await this.callApi(params, req, runtime), new DescribeClusterNodePoolDetailResponse({}));
|
|
9153
9805
|
}
|
|
9154
9806
|
|
|
9155
9807
|
async describeClusterNodePools(ClusterId: string): Promise<DescribeClusterNodePoolsResponse> {
|
|
@@ -9163,7 +9815,18 @@ export default class Client extends OpenApi {
|
|
|
9163
9815
|
let req = new $OpenApi.OpenApiRequest({
|
|
9164
9816
|
headers: headers,
|
|
9165
9817
|
});
|
|
9166
|
-
|
|
9818
|
+
let params = new $OpenApi.Params({
|
|
9819
|
+
action: "DescribeClusterNodePools",
|
|
9820
|
+
version: "2015-12-15",
|
|
9821
|
+
protocol: "HTTPS",
|
|
9822
|
+
pathname: `/clusters/${ClusterId}/nodepools`,
|
|
9823
|
+
method: "GET",
|
|
9824
|
+
authType: "AK",
|
|
9825
|
+
style: "ROA",
|
|
9826
|
+
reqBodyType: "json",
|
|
9827
|
+
bodyType: "json",
|
|
9828
|
+
});
|
|
9829
|
+
return $tea.cast<DescribeClusterNodePoolsResponse>(await this.callApi(params, req, runtime), new DescribeClusterNodePoolsResponse({}));
|
|
9167
9830
|
}
|
|
9168
9831
|
|
|
9169
9832
|
async describeClusterNodes(ClusterId: string, request: DescribeClusterNodesRequest): Promise<DescribeClusterNodesResponse> {
|
|
@@ -9200,7 +9863,18 @@ export default class Client extends OpenApi {
|
|
|
9200
9863
|
headers: headers,
|
|
9201
9864
|
query: OpenApiUtil.query(query),
|
|
9202
9865
|
});
|
|
9203
|
-
|
|
9866
|
+
let params = new $OpenApi.Params({
|
|
9867
|
+
action: "DescribeClusterNodes",
|
|
9868
|
+
version: "2015-12-15",
|
|
9869
|
+
protocol: "HTTPS",
|
|
9870
|
+
pathname: `/clusters/${ClusterId}/nodes`,
|
|
9871
|
+
method: "GET",
|
|
9872
|
+
authType: "AK",
|
|
9873
|
+
style: "ROA",
|
|
9874
|
+
reqBodyType: "json",
|
|
9875
|
+
bodyType: "json",
|
|
9876
|
+
});
|
|
9877
|
+
return $tea.cast<DescribeClusterNodesResponse>(await this.callApi(params, req, runtime), new DescribeClusterNodesResponse({}));
|
|
9204
9878
|
}
|
|
9205
9879
|
|
|
9206
9880
|
async describeClusterResources(ClusterId: string): Promise<DescribeClusterResourcesResponse> {
|
|
@@ -9214,7 +9888,18 @@ export default class Client extends OpenApi {
|
|
|
9214
9888
|
let req = new $OpenApi.OpenApiRequest({
|
|
9215
9889
|
headers: headers,
|
|
9216
9890
|
});
|
|
9217
|
-
|
|
9891
|
+
let params = new $OpenApi.Params({
|
|
9892
|
+
action: "DescribeClusterResources",
|
|
9893
|
+
version: "2015-12-15",
|
|
9894
|
+
protocol: "HTTPS",
|
|
9895
|
+
pathname: `/clusters/${ClusterId}/resources`,
|
|
9896
|
+
method: "GET",
|
|
9897
|
+
authType: "AK",
|
|
9898
|
+
style: "ROA",
|
|
9899
|
+
reqBodyType: "json",
|
|
9900
|
+
bodyType: "array",
|
|
9901
|
+
});
|
|
9902
|
+
return $tea.cast<DescribeClusterResourcesResponse>(await this.callApi(params, req, runtime), new DescribeClusterResourcesResponse({}));
|
|
9218
9903
|
}
|
|
9219
9904
|
|
|
9220
9905
|
async describeClusterUserKubeconfig(ClusterId: string, request: DescribeClusterUserKubeconfigRequest): Promise<DescribeClusterUserKubeconfigResponse> {
|
|
@@ -9239,7 +9924,18 @@ export default class Client extends OpenApi {
|
|
|
9239
9924
|
headers: headers,
|
|
9240
9925
|
query: OpenApiUtil.query(query),
|
|
9241
9926
|
});
|
|
9242
|
-
|
|
9927
|
+
let params = new $OpenApi.Params({
|
|
9928
|
+
action: "DescribeClusterUserKubeconfig",
|
|
9929
|
+
version: "2015-12-15",
|
|
9930
|
+
protocol: "HTTPS",
|
|
9931
|
+
pathname: `/k8s/${ClusterId}/user_config`,
|
|
9932
|
+
method: "GET",
|
|
9933
|
+
authType: "AK",
|
|
9934
|
+
style: "ROA",
|
|
9935
|
+
reqBodyType: "json",
|
|
9936
|
+
bodyType: "json",
|
|
9937
|
+
});
|
|
9938
|
+
return $tea.cast<DescribeClusterUserKubeconfigResponse>(await this.callApi(params, req, runtime), new DescribeClusterUserKubeconfigResponse({}));
|
|
9243
9939
|
}
|
|
9244
9940
|
|
|
9245
9941
|
async describeClusterV2UserKubeconfig(ClusterId: string, request: DescribeClusterV2UserKubeconfigRequest): Promise<DescribeClusterV2UserKubeconfigResponse> {
|
|
@@ -9260,7 +9956,18 @@ export default class Client extends OpenApi {
|
|
|
9260
9956
|
headers: headers,
|
|
9261
9957
|
query: OpenApiUtil.query(query),
|
|
9262
9958
|
});
|
|
9263
|
-
|
|
9959
|
+
let params = new $OpenApi.Params({
|
|
9960
|
+
action: "DescribeClusterV2UserKubeconfig",
|
|
9961
|
+
version: "2015-12-15",
|
|
9962
|
+
protocol: "HTTPS",
|
|
9963
|
+
pathname: `/api/v2/k8s/${ClusterId}/user_config`,
|
|
9964
|
+
method: "GET",
|
|
9965
|
+
authType: "AK",
|
|
9966
|
+
style: "ROA",
|
|
9967
|
+
reqBodyType: "json",
|
|
9968
|
+
bodyType: "json",
|
|
9969
|
+
});
|
|
9970
|
+
return $tea.cast<DescribeClusterV2UserKubeconfigResponse>(await this.callApi(params, req, runtime), new DescribeClusterV2UserKubeconfigResponse({}));
|
|
9264
9971
|
}
|
|
9265
9972
|
|
|
9266
9973
|
async describeClusters(request: DescribeClustersRequest): Promise<DescribeClustersResponse> {
|
|
@@ -9284,7 +9991,18 @@ export default class Client extends OpenApi {
|
|
|
9284
9991
|
headers: headers,
|
|
9285
9992
|
query: OpenApiUtil.query(query),
|
|
9286
9993
|
});
|
|
9287
|
-
|
|
9994
|
+
let params = new $OpenApi.Params({
|
|
9995
|
+
action: "DescribeClusters",
|
|
9996
|
+
version: "2015-12-15",
|
|
9997
|
+
protocol: "HTTPS",
|
|
9998
|
+
pathname: `/clusters`,
|
|
9999
|
+
method: "GET",
|
|
10000
|
+
authType: "AK",
|
|
10001
|
+
style: "ROA",
|
|
10002
|
+
reqBodyType: "json",
|
|
10003
|
+
bodyType: "array",
|
|
10004
|
+
});
|
|
10005
|
+
return $tea.cast<DescribeClustersResponse>(await this.callApi(params, req, runtime), new DescribeClustersResponse({}));
|
|
9288
10006
|
}
|
|
9289
10007
|
|
|
9290
10008
|
async describeClustersV1(request: DescribeClustersV1Request): Promise<DescribeClustersV1Response> {
|
|
@@ -9324,7 +10042,18 @@ export default class Client extends OpenApi {
|
|
|
9324
10042
|
headers: headers,
|
|
9325
10043
|
query: OpenApiUtil.query(query),
|
|
9326
10044
|
});
|
|
9327
|
-
|
|
10045
|
+
let params = new $OpenApi.Params({
|
|
10046
|
+
action: "DescribeClustersV1",
|
|
10047
|
+
version: "2015-12-15",
|
|
10048
|
+
protocol: "HTTPS",
|
|
10049
|
+
pathname: `/api/v1/clusters`,
|
|
10050
|
+
method: "GET",
|
|
10051
|
+
authType: "AK",
|
|
10052
|
+
style: "ROA",
|
|
10053
|
+
reqBodyType: "json",
|
|
10054
|
+
bodyType: "json",
|
|
10055
|
+
});
|
|
10056
|
+
return $tea.cast<DescribeClustersV1Response>(await this.callApi(params, req, runtime), new DescribeClustersV1Response({}));
|
|
9328
10057
|
}
|
|
9329
10058
|
|
|
9330
10059
|
async describeEdgeMachineActiveProcess(edgeMachineid: string): Promise<DescribeEdgeMachineActiveProcessResponse> {
|
|
@@ -9338,7 +10067,18 @@ export default class Client extends OpenApi {
|
|
|
9338
10067
|
let req = new $OpenApi.OpenApiRequest({
|
|
9339
10068
|
headers: headers,
|
|
9340
10069
|
});
|
|
9341
|
-
|
|
10070
|
+
let params = new $OpenApi.Params({
|
|
10071
|
+
action: "DescribeEdgeMachineActiveProcess",
|
|
10072
|
+
version: "2015-12-15",
|
|
10073
|
+
protocol: "HTTPS",
|
|
10074
|
+
pathname: `/edge_machines/[edge_machineid]/activeprocess`,
|
|
10075
|
+
method: "GET",
|
|
10076
|
+
authType: "AK",
|
|
10077
|
+
style: "ROA",
|
|
10078
|
+
reqBodyType: "json",
|
|
10079
|
+
bodyType: "json",
|
|
10080
|
+
});
|
|
10081
|
+
return $tea.cast<DescribeEdgeMachineActiveProcessResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachineActiveProcessResponse({}));
|
|
9342
10082
|
}
|
|
9343
10083
|
|
|
9344
10084
|
async describeEdgeMachineModels(): Promise<DescribeEdgeMachineModelsResponse> {
|
|
@@ -9351,7 +10091,18 @@ export default class Client extends OpenApi {
|
|
|
9351
10091
|
let req = new $OpenApi.OpenApiRequest({
|
|
9352
10092
|
headers: headers,
|
|
9353
10093
|
});
|
|
9354
|
-
|
|
10094
|
+
let params = new $OpenApi.Params({
|
|
10095
|
+
action: "DescribeEdgeMachineModels",
|
|
10096
|
+
version: "2015-12-15",
|
|
10097
|
+
protocol: "HTTPS",
|
|
10098
|
+
pathname: `/edge_machines/models`,
|
|
10099
|
+
method: "GET",
|
|
10100
|
+
authType: "AK",
|
|
10101
|
+
style: "ROA",
|
|
10102
|
+
reqBodyType: "json",
|
|
10103
|
+
bodyType: "json",
|
|
10104
|
+
});
|
|
10105
|
+
return $tea.cast<DescribeEdgeMachineModelsResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachineModelsResponse({}));
|
|
9355
10106
|
}
|
|
9356
10107
|
|
|
9357
10108
|
async describeEdgeMachineTunnelConfigDetail(edgeMachineid: string): Promise<DescribeEdgeMachineTunnelConfigDetailResponse> {
|
|
@@ -9365,7 +10116,18 @@ export default class Client extends OpenApi {
|
|
|
9365
10116
|
let req = new $OpenApi.OpenApiRequest({
|
|
9366
10117
|
headers: headers,
|
|
9367
10118
|
});
|
|
9368
|
-
|
|
10119
|
+
let params = new $OpenApi.Params({
|
|
10120
|
+
action: "DescribeEdgeMachineTunnelConfigDetail",
|
|
10121
|
+
version: "2015-12-15",
|
|
10122
|
+
protocol: "HTTPS",
|
|
10123
|
+
pathname: `/edge_machines/[edge_machineid]/tunnelconfig`,
|
|
10124
|
+
method: "POST",
|
|
10125
|
+
authType: "AK",
|
|
10126
|
+
style: "ROA",
|
|
10127
|
+
reqBodyType: "json",
|
|
10128
|
+
bodyType: "json",
|
|
10129
|
+
});
|
|
10130
|
+
return $tea.cast<DescribeEdgeMachineTunnelConfigDetailResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachineTunnelConfigDetailResponse({}));
|
|
9369
10131
|
}
|
|
9370
10132
|
|
|
9371
10133
|
async describeEdgeMachines(request: DescribeEdgeMachinesRequest): Promise<DescribeEdgeMachinesResponse> {
|
|
@@ -9405,7 +10167,18 @@ export default class Client extends OpenApi {
|
|
|
9405
10167
|
headers: headers,
|
|
9406
10168
|
query: OpenApiUtil.query(query),
|
|
9407
10169
|
});
|
|
9408
|
-
|
|
10170
|
+
let params = new $OpenApi.Params({
|
|
10171
|
+
action: "DescribeEdgeMachines",
|
|
10172
|
+
version: "2015-12-15",
|
|
10173
|
+
protocol: "HTTPS",
|
|
10174
|
+
pathname: `/edge_machines`,
|
|
10175
|
+
method: "GET",
|
|
10176
|
+
authType: "AK",
|
|
10177
|
+
style: "ROA",
|
|
10178
|
+
reqBodyType: "json",
|
|
10179
|
+
bodyType: "json",
|
|
10180
|
+
});
|
|
10181
|
+
return $tea.cast<DescribeEdgeMachinesResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachinesResponse({}));
|
|
9409
10182
|
}
|
|
9410
10183
|
|
|
9411
10184
|
async describeEvents(request: DescribeEventsRequest): Promise<DescribeEventsResponse> {
|
|
@@ -9437,7 +10210,18 @@ export default class Client extends OpenApi {
|
|
|
9437
10210
|
headers: headers,
|
|
9438
10211
|
query: OpenApiUtil.query(query),
|
|
9439
10212
|
});
|
|
9440
|
-
|
|
10213
|
+
let params = new $OpenApi.Params({
|
|
10214
|
+
action: "DescribeEvents",
|
|
10215
|
+
version: "2015-12-15",
|
|
10216
|
+
protocol: "HTTPS",
|
|
10217
|
+
pathname: `/events`,
|
|
10218
|
+
method: "GET",
|
|
10219
|
+
authType: "AK",
|
|
10220
|
+
style: "ROA",
|
|
10221
|
+
reqBodyType: "json",
|
|
10222
|
+
bodyType: "json",
|
|
10223
|
+
});
|
|
10224
|
+
return $tea.cast<DescribeEventsResponse>(await this.callApi(params, req, runtime), new DescribeEventsResponse({}));
|
|
9441
10225
|
}
|
|
9442
10226
|
|
|
9443
10227
|
async describeExternalAgent(ClusterId: string, request: DescribeExternalAgentRequest): Promise<DescribeExternalAgentResponse> {
|
|
@@ -9458,7 +10242,18 @@ export default class Client extends OpenApi {
|
|
|
9458
10242
|
headers: headers,
|
|
9459
10243
|
query: OpenApiUtil.query(query),
|
|
9460
10244
|
});
|
|
9461
|
-
|
|
10245
|
+
let params = new $OpenApi.Params({
|
|
10246
|
+
action: "DescribeExternalAgent",
|
|
10247
|
+
version: "2015-12-15",
|
|
10248
|
+
protocol: "HTTPS",
|
|
10249
|
+
pathname: `/k8s/${ClusterId}/external/agent/deployment`,
|
|
10250
|
+
method: "GET",
|
|
10251
|
+
authType: "AK",
|
|
10252
|
+
style: "ROA",
|
|
10253
|
+
reqBodyType: "json",
|
|
10254
|
+
bodyType: "json",
|
|
10255
|
+
});
|
|
10256
|
+
return $tea.cast<DescribeExternalAgentResponse>(await this.callApi(params, req, runtime), new DescribeExternalAgentResponse({}));
|
|
9462
10257
|
}
|
|
9463
10258
|
|
|
9464
10259
|
async describeKubernetesVersionMetadata(request: DescribeKubernetesVersionMetadataRequest): Promise<DescribeKubernetesVersionMetadataResponse> {
|
|
@@ -9486,11 +10281,26 @@ export default class Client extends OpenApi {
|
|
|
9486
10281
|
query["Region"] = request.region;
|
|
9487
10282
|
}
|
|
9488
10283
|
|
|
10284
|
+
if (!Util.isUnset(request.runtime)) {
|
|
10285
|
+
query["runtime"] = request.runtime;
|
|
10286
|
+
}
|
|
10287
|
+
|
|
9489
10288
|
let req = new $OpenApi.OpenApiRequest({
|
|
9490
10289
|
headers: headers,
|
|
9491
10290
|
query: OpenApiUtil.query(query),
|
|
9492
10291
|
});
|
|
9493
|
-
|
|
10292
|
+
let params = new $OpenApi.Params({
|
|
10293
|
+
action: "DescribeKubernetesVersionMetadata",
|
|
10294
|
+
version: "2015-12-15",
|
|
10295
|
+
protocol: "HTTPS",
|
|
10296
|
+
pathname: `/api/v1/metadata/versions`,
|
|
10297
|
+
method: "GET",
|
|
10298
|
+
authType: "AK",
|
|
10299
|
+
style: "ROA",
|
|
10300
|
+
reqBodyType: "json",
|
|
10301
|
+
bodyType: "array",
|
|
10302
|
+
});
|
|
10303
|
+
return $tea.cast<DescribeKubernetesVersionMetadataResponse>(await this.callApi(params, req, runtime), new DescribeKubernetesVersionMetadataResponse({}));
|
|
9494
10304
|
}
|
|
9495
10305
|
|
|
9496
10306
|
async describePolicies(): Promise<DescribePoliciesResponse> {
|
|
@@ -9503,7 +10313,18 @@ export default class Client extends OpenApi {
|
|
|
9503
10313
|
let req = new $OpenApi.OpenApiRequest({
|
|
9504
10314
|
headers: headers,
|
|
9505
10315
|
});
|
|
9506
|
-
|
|
10316
|
+
let params = new $OpenApi.Params({
|
|
10317
|
+
action: "DescribePolicies",
|
|
10318
|
+
version: "2015-12-15",
|
|
10319
|
+
protocol: "HTTPS",
|
|
10320
|
+
pathname: `/policies`,
|
|
10321
|
+
method: "GET",
|
|
10322
|
+
authType: "AK",
|
|
10323
|
+
style: "ROA",
|
|
10324
|
+
reqBodyType: "json",
|
|
10325
|
+
bodyType: "json",
|
|
10326
|
+
});
|
|
10327
|
+
return $tea.cast<DescribePoliciesResponse>(await this.callApi(params, req, runtime), new DescribePoliciesResponse({}));
|
|
9507
10328
|
}
|
|
9508
10329
|
|
|
9509
10330
|
async describePolicyDetails(policyName: string): Promise<DescribePolicyDetailsResponse> {
|
|
@@ -9517,7 +10338,18 @@ export default class Client extends OpenApi {
|
|
|
9517
10338
|
let req = new $OpenApi.OpenApiRequest({
|
|
9518
10339
|
headers: headers,
|
|
9519
10340
|
});
|
|
9520
|
-
|
|
10341
|
+
let params = new $OpenApi.Params({
|
|
10342
|
+
action: "DescribePolicyDetails",
|
|
10343
|
+
version: "2015-12-15",
|
|
10344
|
+
protocol: "HTTPS",
|
|
10345
|
+
pathname: `/policies/${policyName}`,
|
|
10346
|
+
method: "GET",
|
|
10347
|
+
authType: "AK",
|
|
10348
|
+
style: "ROA",
|
|
10349
|
+
reqBodyType: "json",
|
|
10350
|
+
bodyType: "json",
|
|
10351
|
+
});
|
|
10352
|
+
return $tea.cast<DescribePolicyDetailsResponse>(await this.callApi(params, req, runtime), new DescribePolicyDetailsResponse({}));
|
|
9521
10353
|
}
|
|
9522
10354
|
|
|
9523
10355
|
async describePolicyGovernanceInCluster(clusterId: string): Promise<DescribePolicyGovernanceInClusterResponse> {
|
|
@@ -9531,7 +10363,18 @@ export default class Client extends OpenApi {
|
|
|
9531
10363
|
let req = new $OpenApi.OpenApiRequest({
|
|
9532
10364
|
headers: headers,
|
|
9533
10365
|
});
|
|
9534
|
-
|
|
10366
|
+
let params = new $OpenApi.Params({
|
|
10367
|
+
action: "DescribePolicyGovernanceInCluster",
|
|
10368
|
+
version: "2015-12-15",
|
|
10369
|
+
protocol: "HTTPS",
|
|
10370
|
+
pathname: `/clusters/${clusterId}/policygovernance`,
|
|
10371
|
+
method: "GET",
|
|
10372
|
+
authType: "AK",
|
|
10373
|
+
style: "ROA",
|
|
10374
|
+
reqBodyType: "json",
|
|
10375
|
+
bodyType: "json",
|
|
10376
|
+
});
|
|
10377
|
+
return $tea.cast<DescribePolicyGovernanceInClusterResponse>(await this.callApi(params, req, runtime), new DescribePolicyGovernanceInClusterResponse({}));
|
|
9535
10378
|
}
|
|
9536
10379
|
|
|
9537
10380
|
async describePolicyInstances(clusterId: string, request: DescribePolicyInstancesRequest): Promise<DescribePolicyInstancesResponse> {
|
|
@@ -9556,7 +10399,18 @@ export default class Client extends OpenApi {
|
|
|
9556
10399
|
headers: headers,
|
|
9557
10400
|
query: OpenApiUtil.query(query),
|
|
9558
10401
|
});
|
|
9559
|
-
|
|
10402
|
+
let params = new $OpenApi.Params({
|
|
10403
|
+
action: "DescribePolicyInstances",
|
|
10404
|
+
version: "2015-12-15",
|
|
10405
|
+
protocol: "HTTPS",
|
|
10406
|
+
pathname: `/clusters/${clusterId}/policies`,
|
|
10407
|
+
method: "GET",
|
|
10408
|
+
authType: "AK",
|
|
10409
|
+
style: "ROA",
|
|
10410
|
+
reqBodyType: "json",
|
|
10411
|
+
bodyType: "array",
|
|
10412
|
+
});
|
|
10413
|
+
return $tea.cast<DescribePolicyInstancesResponse>(await this.callApi(params, req, runtime), new DescribePolicyInstancesResponse({}));
|
|
9560
10414
|
}
|
|
9561
10415
|
|
|
9562
10416
|
async describePolicyInstancesStatus(clusterId: string): Promise<DescribePolicyInstancesStatusResponse> {
|
|
@@ -9570,7 +10424,18 @@ export default class Client extends OpenApi {
|
|
|
9570
10424
|
let req = new $OpenApi.OpenApiRequest({
|
|
9571
10425
|
headers: headers,
|
|
9572
10426
|
});
|
|
9573
|
-
|
|
10427
|
+
let params = new $OpenApi.Params({
|
|
10428
|
+
action: "DescribePolicyInstancesStatus",
|
|
10429
|
+
version: "2015-12-15",
|
|
10430
|
+
protocol: "HTTPS",
|
|
10431
|
+
pathname: `/clusters/${clusterId}/policies/status`,
|
|
10432
|
+
method: "GET",
|
|
10433
|
+
authType: "AK",
|
|
10434
|
+
style: "ROA",
|
|
10435
|
+
reqBodyType: "json",
|
|
10436
|
+
bodyType: "json",
|
|
10437
|
+
});
|
|
10438
|
+
return $tea.cast<DescribePolicyInstancesStatusResponse>(await this.callApi(params, req, runtime), new DescribePolicyInstancesStatusResponse({}));
|
|
9574
10439
|
}
|
|
9575
10440
|
|
|
9576
10441
|
async describeTaskInfo(taskId: string): Promise<DescribeTaskInfoResponse> {
|
|
@@ -9584,7 +10449,18 @@ export default class Client extends OpenApi {
|
|
|
9584
10449
|
let req = new $OpenApi.OpenApiRequest({
|
|
9585
10450
|
headers: headers,
|
|
9586
10451
|
});
|
|
9587
|
-
|
|
10452
|
+
let params = new $OpenApi.Params({
|
|
10453
|
+
action: "DescribeTaskInfo",
|
|
10454
|
+
version: "2015-12-15",
|
|
10455
|
+
protocol: "HTTPS",
|
|
10456
|
+
pathname: `/tasks/${taskId}`,
|
|
10457
|
+
method: "GET",
|
|
10458
|
+
authType: "AK",
|
|
10459
|
+
style: "ROA",
|
|
10460
|
+
reqBodyType: "json",
|
|
10461
|
+
bodyType: "json",
|
|
10462
|
+
});
|
|
10463
|
+
return $tea.cast<DescribeTaskInfoResponse>(await this.callApi(params, req, runtime), new DescribeTaskInfoResponse({}));
|
|
9588
10464
|
}
|
|
9589
10465
|
|
|
9590
10466
|
async describeTemplateAttribute(TemplateId: string, request: DescribeTemplateAttributeRequest): Promise<DescribeTemplateAttributeResponse> {
|
|
@@ -9605,7 +10481,18 @@ export default class Client extends OpenApi {
|
|
|
9605
10481
|
headers: headers,
|
|
9606
10482
|
query: OpenApiUtil.query(query),
|
|
9607
10483
|
});
|
|
9608
|
-
|
|
10484
|
+
let params = new $OpenApi.Params({
|
|
10485
|
+
action: "DescribeTemplateAttribute",
|
|
10486
|
+
version: "2015-12-15",
|
|
10487
|
+
protocol: "HTTPS",
|
|
10488
|
+
pathname: `/templates/${TemplateId}`,
|
|
10489
|
+
method: "GET",
|
|
10490
|
+
authType: "AK",
|
|
10491
|
+
style: "ROA",
|
|
10492
|
+
reqBodyType: "json",
|
|
10493
|
+
bodyType: "array",
|
|
10494
|
+
});
|
|
10495
|
+
return $tea.cast<DescribeTemplateAttributeResponse>(await this.callApi(params, req, runtime), new DescribeTemplateAttributeResponse({}));
|
|
9609
10496
|
}
|
|
9610
10497
|
|
|
9611
10498
|
async describeTemplates(request: DescribeTemplatesRequest): Promise<DescribeTemplatesResponse> {
|
|
@@ -9633,7 +10520,18 @@ export default class Client extends OpenApi {
|
|
|
9633
10520
|
headers: headers,
|
|
9634
10521
|
query: OpenApiUtil.query(query),
|
|
9635
10522
|
});
|
|
9636
|
-
|
|
10523
|
+
let params = new $OpenApi.Params({
|
|
10524
|
+
action: "DescribeTemplates",
|
|
10525
|
+
version: "2015-12-15",
|
|
10526
|
+
protocol: "HTTPS",
|
|
10527
|
+
pathname: `/templates`,
|
|
10528
|
+
method: "GET",
|
|
10529
|
+
authType: "AK",
|
|
10530
|
+
style: "ROA",
|
|
10531
|
+
reqBodyType: "json",
|
|
10532
|
+
bodyType: "json",
|
|
10533
|
+
});
|
|
10534
|
+
return $tea.cast<DescribeTemplatesResponse>(await this.callApi(params, req, runtime), new DescribeTemplatesResponse({}));
|
|
9637
10535
|
}
|
|
9638
10536
|
|
|
9639
10537
|
async describeTrigger(clusterId: string, request: DescribeTriggerRequest): Promise<DescribeTriggerResponse> {
|
|
@@ -9666,7 +10564,18 @@ export default class Client extends OpenApi {
|
|
|
9666
10564
|
headers: headers,
|
|
9667
10565
|
query: OpenApiUtil.query(query),
|
|
9668
10566
|
});
|
|
9669
|
-
|
|
10567
|
+
let params = new $OpenApi.Params({
|
|
10568
|
+
action: "DescribeTrigger",
|
|
10569
|
+
version: "2015-12-15",
|
|
10570
|
+
protocol: "HTTPS",
|
|
10571
|
+
pathname: `/clusters/[cluster_id]/triggers`,
|
|
10572
|
+
method: "GET",
|
|
10573
|
+
authType: "AK",
|
|
10574
|
+
style: "ROA",
|
|
10575
|
+
reqBodyType: "json",
|
|
10576
|
+
bodyType: "array",
|
|
10577
|
+
});
|
|
10578
|
+
return $tea.cast<DescribeTriggerResponse>(await this.callApi(params, req, runtime), new DescribeTriggerResponse({}));
|
|
9670
10579
|
}
|
|
9671
10580
|
|
|
9672
10581
|
async describeUserPermission(uid: string): Promise<DescribeUserPermissionResponse> {
|
|
@@ -9680,7 +10589,18 @@ export default class Client extends OpenApi {
|
|
|
9680
10589
|
let req = new $OpenApi.OpenApiRequest({
|
|
9681
10590
|
headers: headers,
|
|
9682
10591
|
});
|
|
9683
|
-
|
|
10592
|
+
let params = new $OpenApi.Params({
|
|
10593
|
+
action: "DescribeUserPermission",
|
|
10594
|
+
version: "2015-12-15",
|
|
10595
|
+
protocol: "HTTPS",
|
|
10596
|
+
pathname: `/permissions/users/${uid}`,
|
|
10597
|
+
method: "GET",
|
|
10598
|
+
authType: "AK",
|
|
10599
|
+
style: "ROA",
|
|
10600
|
+
reqBodyType: "json",
|
|
10601
|
+
bodyType: "array",
|
|
10602
|
+
});
|
|
10603
|
+
return $tea.cast<DescribeUserPermissionResponse>(await this.callApi(params, req, runtime), new DescribeUserPermissionResponse({}));
|
|
9684
10604
|
}
|
|
9685
10605
|
|
|
9686
10606
|
async describeUserQuota(): Promise<DescribeUserQuotaResponse> {
|
|
@@ -9693,7 +10613,18 @@ export default class Client extends OpenApi {
|
|
|
9693
10613
|
let req = new $OpenApi.OpenApiRequest({
|
|
9694
10614
|
headers: headers,
|
|
9695
10615
|
});
|
|
9696
|
-
|
|
10616
|
+
let params = new $OpenApi.Params({
|
|
10617
|
+
action: "DescribeUserQuota",
|
|
10618
|
+
version: "2015-12-15",
|
|
10619
|
+
protocol: "HTTPS",
|
|
10620
|
+
pathname: `/quota`,
|
|
10621
|
+
method: "GET",
|
|
10622
|
+
authType: "AK",
|
|
10623
|
+
style: "ROA",
|
|
10624
|
+
reqBodyType: "json",
|
|
10625
|
+
bodyType: "json",
|
|
10626
|
+
});
|
|
10627
|
+
return $tea.cast<DescribeUserQuotaResponse>(await this.callApi(params, req, runtime), new DescribeUserQuotaResponse({}));
|
|
9697
10628
|
}
|
|
9698
10629
|
|
|
9699
10630
|
async describeWorkflows(): Promise<DescribeWorkflowsResponse> {
|
|
@@ -9706,7 +10637,18 @@ export default class Client extends OpenApi {
|
|
|
9706
10637
|
let req = new $OpenApi.OpenApiRequest({
|
|
9707
10638
|
headers: headers,
|
|
9708
10639
|
});
|
|
9709
|
-
|
|
10640
|
+
let params = new $OpenApi.Params({
|
|
10641
|
+
action: "DescribeWorkflows",
|
|
10642
|
+
version: "2015-12-15",
|
|
10643
|
+
protocol: "HTTPS",
|
|
10644
|
+
pathname: `/gs/workflows`,
|
|
10645
|
+
method: "GET",
|
|
10646
|
+
authType: "AK",
|
|
10647
|
+
style: "ROA",
|
|
10648
|
+
reqBodyType: "json",
|
|
10649
|
+
bodyType: "json",
|
|
10650
|
+
});
|
|
10651
|
+
return $tea.cast<DescribeWorkflowsResponse>(await this.callApi(params, req, runtime), new DescribeWorkflowsResponse({}));
|
|
9710
10652
|
}
|
|
9711
10653
|
|
|
9712
10654
|
async edgeClusterAddEdgeMachine(clusterid: string, edgeMachineid: string, request: EdgeClusterAddEdgeMachineRequest): Promise<EdgeClusterAddEdgeMachineResponse> {
|
|
@@ -9736,7 +10678,18 @@ export default class Client extends OpenApi {
|
|
|
9736
10678
|
headers: headers,
|
|
9737
10679
|
body: OpenApiUtil.parseToMap(body),
|
|
9738
10680
|
});
|
|
9739
|
-
|
|
10681
|
+
let params = new $OpenApi.Params({
|
|
10682
|
+
action: "EdgeClusterAddEdgeMachine",
|
|
10683
|
+
version: "2015-12-15",
|
|
10684
|
+
protocol: "HTTPS",
|
|
10685
|
+
pathname: `/clusters/[clusterid]/attachedgemachine/[edge_machineid]`,
|
|
10686
|
+
method: "POST",
|
|
10687
|
+
authType: "AK",
|
|
10688
|
+
style: "ROA",
|
|
10689
|
+
reqBodyType: "json",
|
|
10690
|
+
bodyType: "json",
|
|
10691
|
+
});
|
|
10692
|
+
return $tea.cast<EdgeClusterAddEdgeMachineResponse>(await this.callApi(params, req, runtime), new EdgeClusterAddEdgeMachineResponse({}));
|
|
9740
10693
|
}
|
|
9741
10694
|
|
|
9742
10695
|
async getKubernetesTrigger(ClusterId: string, request: GetKubernetesTriggerRequest): Promise<GetKubernetesTriggerResponse> {
|
|
@@ -9769,7 +10722,18 @@ export default class Client extends OpenApi {
|
|
|
9769
10722
|
headers: headers,
|
|
9770
10723
|
query: OpenApiUtil.query(query),
|
|
9771
10724
|
});
|
|
9772
|
-
|
|
10725
|
+
let params = new $OpenApi.Params({
|
|
10726
|
+
action: "GetKubernetesTrigger",
|
|
10727
|
+
version: "2015-12-15",
|
|
10728
|
+
protocol: "HTTPS",
|
|
10729
|
+
pathname: `/triggers/${ClusterId}`,
|
|
10730
|
+
method: "GET",
|
|
10731
|
+
authType: "AK",
|
|
10732
|
+
style: "ROA",
|
|
10733
|
+
reqBodyType: "json",
|
|
10734
|
+
bodyType: "array",
|
|
10735
|
+
});
|
|
10736
|
+
return $tea.cast<GetKubernetesTriggerResponse>(await this.callApi(params, req, runtime), new GetKubernetesTriggerResponse({}));
|
|
9773
10737
|
}
|
|
9774
10738
|
|
|
9775
10739
|
async getUpgradeStatus(ClusterId: string): Promise<GetUpgradeStatusResponse> {
|
|
@@ -9783,7 +10747,18 @@ export default class Client extends OpenApi {
|
|
|
9783
10747
|
let req = new $OpenApi.OpenApiRequest({
|
|
9784
10748
|
headers: headers,
|
|
9785
10749
|
});
|
|
9786
|
-
|
|
10750
|
+
let params = new $OpenApi.Params({
|
|
10751
|
+
action: "GetUpgradeStatus",
|
|
10752
|
+
version: "2015-12-15",
|
|
10753
|
+
protocol: "HTTPS",
|
|
10754
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/status`,
|
|
10755
|
+
method: "GET",
|
|
10756
|
+
authType: "AK",
|
|
10757
|
+
style: "ROA",
|
|
10758
|
+
reqBodyType: "json",
|
|
10759
|
+
bodyType: "json",
|
|
10760
|
+
});
|
|
10761
|
+
return $tea.cast<GetUpgradeStatusResponse>(await this.callApi(params, req, runtime), new GetUpgradeStatusResponse({}));
|
|
9787
10762
|
}
|
|
9788
10763
|
|
|
9789
10764
|
async grantPermissions(uid: string, request: GrantPermissionsRequest): Promise<GrantPermissionsResponse> {
|
|
@@ -9799,7 +10774,18 @@ export default class Client extends OpenApi {
|
|
|
9799
10774
|
headers: headers,
|
|
9800
10775
|
body: Util.toArray(request.body),
|
|
9801
10776
|
});
|
|
9802
|
-
|
|
10777
|
+
let params = new $OpenApi.Params({
|
|
10778
|
+
action: "GrantPermissions",
|
|
10779
|
+
version: "2015-12-15",
|
|
10780
|
+
protocol: "HTTPS",
|
|
10781
|
+
pathname: `/permissions/users/${uid}`,
|
|
10782
|
+
method: "POST",
|
|
10783
|
+
authType: "AK",
|
|
10784
|
+
style: "ROA",
|
|
10785
|
+
reqBodyType: "json",
|
|
10786
|
+
bodyType: "none",
|
|
10787
|
+
});
|
|
10788
|
+
return $tea.cast<GrantPermissionsResponse>(await this.callApi(params, req, runtime), new GrantPermissionsResponse({}));
|
|
9803
10789
|
}
|
|
9804
10790
|
|
|
9805
10791
|
async installClusterAddons(ClusterId: string, request: InstallClusterAddonsRequest): Promise<InstallClusterAddonsResponse> {
|
|
@@ -9815,7 +10801,18 @@ export default class Client extends OpenApi {
|
|
|
9815
10801
|
headers: headers,
|
|
9816
10802
|
body: Util.toArray(request.body),
|
|
9817
10803
|
});
|
|
9818
|
-
|
|
10804
|
+
let params = new $OpenApi.Params({
|
|
10805
|
+
action: "InstallClusterAddons",
|
|
10806
|
+
version: "2015-12-15",
|
|
10807
|
+
protocol: "HTTPS",
|
|
10808
|
+
pathname: `/clusters/${ClusterId}/components/install`,
|
|
10809
|
+
method: "POST",
|
|
10810
|
+
authType: "AK",
|
|
10811
|
+
style: "ROA",
|
|
10812
|
+
reqBodyType: "json",
|
|
10813
|
+
bodyType: "none",
|
|
10814
|
+
});
|
|
10815
|
+
return $tea.cast<InstallClusterAddonsResponse>(await this.callApi(params, req, runtime), new InstallClusterAddonsResponse({}));
|
|
9819
10816
|
}
|
|
9820
10817
|
|
|
9821
10818
|
async listTagResources(request: ListTagResourcesRequest): Promise<ListTagResourcesResponse> {
|
|
@@ -9861,7 +10858,18 @@ export default class Client extends OpenApi {
|
|
|
9861
10858
|
headers: headers,
|
|
9862
10859
|
query: OpenApiUtil.query(query),
|
|
9863
10860
|
});
|
|
9864
|
-
|
|
10861
|
+
let params = new $OpenApi.Params({
|
|
10862
|
+
action: "ListTagResources",
|
|
10863
|
+
version: "2015-12-15",
|
|
10864
|
+
protocol: "HTTPS",
|
|
10865
|
+
pathname: `/tags`,
|
|
10866
|
+
method: "GET",
|
|
10867
|
+
authType: "AK",
|
|
10868
|
+
style: "ROA",
|
|
10869
|
+
reqBodyType: "json",
|
|
10870
|
+
bodyType: "json",
|
|
10871
|
+
});
|
|
10872
|
+
return $tea.cast<ListTagResourcesResponse>(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
|
|
9865
10873
|
}
|
|
9866
10874
|
|
|
9867
10875
|
async migrateCluster(clusterId: string): Promise<MigrateClusterResponse> {
|
|
@@ -9875,7 +10883,18 @@ export default class Client extends OpenApi {
|
|
|
9875
10883
|
let req = new $OpenApi.OpenApiRequest({
|
|
9876
10884
|
headers: headers,
|
|
9877
10885
|
});
|
|
9878
|
-
|
|
10886
|
+
let params = new $OpenApi.Params({
|
|
10887
|
+
action: "MigrateCluster",
|
|
10888
|
+
version: "2015-12-15",
|
|
10889
|
+
protocol: "HTTPS",
|
|
10890
|
+
pathname: `/clusters/${clusterId}/migrate`,
|
|
10891
|
+
method: "POST",
|
|
10892
|
+
authType: "AK",
|
|
10893
|
+
style: "ROA",
|
|
10894
|
+
reqBodyType: "json",
|
|
10895
|
+
bodyType: "none",
|
|
10896
|
+
});
|
|
10897
|
+
return $tea.cast<MigrateClusterResponse>(await this.callApi(params, req, runtime), new MigrateClusterResponse({}));
|
|
9879
10898
|
}
|
|
9880
10899
|
|
|
9881
10900
|
async modifyCluster(ClusterId: string, request: ModifyClusterRequest): Promise<ModifyClusterResponse> {
|
|
@@ -9900,6 +10919,10 @@ export default class Client extends OpenApi {
|
|
|
9900
10919
|
body["deletion_protection"] = request.deletionProtection;
|
|
9901
10920
|
}
|
|
9902
10921
|
|
|
10922
|
+
if (!Util.isUnset(request.enableRrsa)) {
|
|
10923
|
+
body["enable_rrsa"] = request.enableRrsa;
|
|
10924
|
+
}
|
|
10925
|
+
|
|
9903
10926
|
if (!Util.isUnset(request.ingressDomainRebinding)) {
|
|
9904
10927
|
body["ingress_domain_rebinding"] = request.ingressDomainRebinding;
|
|
9905
10928
|
}
|
|
@@ -9924,7 +10947,18 @@ export default class Client extends OpenApi {
|
|
|
9924
10947
|
headers: headers,
|
|
9925
10948
|
body: OpenApiUtil.parseToMap(body),
|
|
9926
10949
|
});
|
|
9927
|
-
|
|
10950
|
+
let params = new $OpenApi.Params({
|
|
10951
|
+
action: "ModifyCluster",
|
|
10952
|
+
version: "2015-12-15",
|
|
10953
|
+
protocol: "HTTPS",
|
|
10954
|
+
pathname: `/api/v2/clusters/${ClusterId}`,
|
|
10955
|
+
method: "PUT",
|
|
10956
|
+
authType: "AK",
|
|
10957
|
+
style: "ROA",
|
|
10958
|
+
reqBodyType: "json",
|
|
10959
|
+
bodyType: "json",
|
|
10960
|
+
});
|
|
10961
|
+
return $tea.cast<ModifyClusterResponse>(await this.callApi(params, req, runtime), new ModifyClusterResponse({}));
|
|
9928
10962
|
}
|
|
9929
10963
|
|
|
9930
10964
|
async modifyClusterAddon(clusterId: string, componentId: string, request: ModifyClusterAddonRequest): Promise<ModifyClusterAddonResponse> {
|
|
@@ -9946,7 +10980,18 @@ export default class Client extends OpenApi {
|
|
|
9946
10980
|
headers: headers,
|
|
9947
10981
|
body: OpenApiUtil.parseToMap(body),
|
|
9948
10982
|
});
|
|
9949
|
-
|
|
10983
|
+
let params = new $OpenApi.Params({
|
|
10984
|
+
action: "ModifyClusterAddon",
|
|
10985
|
+
version: "2015-12-15",
|
|
10986
|
+
protocol: "HTTPS",
|
|
10987
|
+
pathname: `/clusters/${clusterId}/components/${componentId}/config`,
|
|
10988
|
+
method: "POST",
|
|
10989
|
+
authType: "AK",
|
|
10990
|
+
style: "ROA",
|
|
10991
|
+
reqBodyType: "json",
|
|
10992
|
+
bodyType: "none",
|
|
10993
|
+
});
|
|
10994
|
+
return $tea.cast<ModifyClusterAddonResponse>(await this.callApi(params, req, runtime), new ModifyClusterAddonResponse({}));
|
|
9950
10995
|
}
|
|
9951
10996
|
|
|
9952
10997
|
async modifyClusterConfiguration(ClusterId: string, request: ModifyClusterConfigurationRequest): Promise<ModifyClusterConfigurationResponse> {
|
|
@@ -9967,7 +11012,18 @@ export default class Client extends OpenApi {
|
|
|
9967
11012
|
headers: headers,
|
|
9968
11013
|
body: OpenApiUtil.parseToMap(body),
|
|
9969
11014
|
});
|
|
9970
|
-
|
|
11015
|
+
let params = new $OpenApi.Params({
|
|
11016
|
+
action: "ModifyClusterConfiguration",
|
|
11017
|
+
version: "2015-12-15",
|
|
11018
|
+
protocol: "HTTPS",
|
|
11019
|
+
pathname: `/clusters/${ClusterId}/configuration`,
|
|
11020
|
+
method: "PUT",
|
|
11021
|
+
authType: "AK",
|
|
11022
|
+
style: "ROA",
|
|
11023
|
+
reqBodyType: "json",
|
|
11024
|
+
bodyType: "none",
|
|
11025
|
+
});
|
|
11026
|
+
return $tea.cast<ModifyClusterConfigurationResponse>(await this.callApi(params, req, runtime), new ModifyClusterConfigurationResponse({}));
|
|
9971
11027
|
}
|
|
9972
11028
|
|
|
9973
11029
|
async modifyClusterNodePool(ClusterId: string, NodepoolId: string, request: ModifyClusterNodePoolRequest): Promise<ModifyClusterNodePoolResponse> {
|
|
@@ -10013,7 +11069,18 @@ export default class Client extends OpenApi {
|
|
|
10013
11069
|
headers: headers,
|
|
10014
11070
|
body: OpenApiUtil.parseToMap(body),
|
|
10015
11071
|
});
|
|
10016
|
-
|
|
11072
|
+
let params = new $OpenApi.Params({
|
|
11073
|
+
action: "ModifyClusterNodePool",
|
|
11074
|
+
version: "2015-12-15",
|
|
11075
|
+
protocol: "HTTPS",
|
|
11076
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
11077
|
+
method: "PUT",
|
|
11078
|
+
authType: "AK",
|
|
11079
|
+
style: "ROA",
|
|
11080
|
+
reqBodyType: "json",
|
|
11081
|
+
bodyType: "json",
|
|
11082
|
+
});
|
|
11083
|
+
return $tea.cast<ModifyClusterNodePoolResponse>(await this.callApi(params, req, runtime), new ModifyClusterNodePoolResponse({}));
|
|
10017
11084
|
}
|
|
10018
11085
|
|
|
10019
11086
|
async modifyClusterTags(ClusterId: string, request: ModifyClusterTagsRequest): Promise<ModifyClusterTagsResponse> {
|
|
@@ -10029,7 +11096,18 @@ export default class Client extends OpenApi {
|
|
|
10029
11096
|
headers: headers,
|
|
10030
11097
|
body: Util.toArray(request.body),
|
|
10031
11098
|
});
|
|
10032
|
-
|
|
11099
|
+
let params = new $OpenApi.Params({
|
|
11100
|
+
action: "ModifyClusterTags",
|
|
11101
|
+
version: "2015-12-15",
|
|
11102
|
+
protocol: "HTTPS",
|
|
11103
|
+
pathname: `/clusters/${ClusterId}/tags`,
|
|
11104
|
+
method: "POST",
|
|
11105
|
+
authType: "AK",
|
|
11106
|
+
style: "ROA",
|
|
11107
|
+
reqBodyType: "json",
|
|
11108
|
+
bodyType: "none",
|
|
11109
|
+
});
|
|
11110
|
+
return $tea.cast<ModifyClusterTagsResponse>(await this.callApi(params, req, runtime), new ModifyClusterTagsResponse({}));
|
|
10033
11111
|
}
|
|
10034
11112
|
|
|
10035
11113
|
async modifyPolicyInstance(clusterId: string, policyName: string, request: ModifyPolicyInstanceRequest): Promise<ModifyPolicyInstanceResponse> {
|
|
@@ -10063,7 +11141,18 @@ export default class Client extends OpenApi {
|
|
|
10063
11141
|
headers: headers,
|
|
10064
11142
|
body: OpenApiUtil.parseToMap(body),
|
|
10065
11143
|
});
|
|
10066
|
-
|
|
11144
|
+
let params = new $OpenApi.Params({
|
|
11145
|
+
action: "ModifyPolicyInstance",
|
|
11146
|
+
version: "2015-12-15",
|
|
11147
|
+
protocol: "HTTPS",
|
|
11148
|
+
pathname: `/clusters/${clusterId}/policies/${policyName}`,
|
|
11149
|
+
method: "PUT",
|
|
11150
|
+
authType: "AK",
|
|
11151
|
+
style: "ROA",
|
|
11152
|
+
reqBodyType: "json",
|
|
11153
|
+
bodyType: "json",
|
|
11154
|
+
});
|
|
11155
|
+
return $tea.cast<ModifyPolicyInstanceResponse>(await this.callApi(params, req, runtime), new ModifyPolicyInstanceResponse({}));
|
|
10067
11156
|
}
|
|
10068
11157
|
|
|
10069
11158
|
async openAckService(request: OpenAckServiceRequest): Promise<OpenAckServiceResponse> {
|
|
@@ -10083,7 +11172,18 @@ export default class Client extends OpenApi {
|
|
|
10083
11172
|
headers: headers,
|
|
10084
11173
|
query: OpenApiUtil.query(query),
|
|
10085
11174
|
});
|
|
10086
|
-
|
|
11175
|
+
let params = new $OpenApi.Params({
|
|
11176
|
+
action: "OpenAckService",
|
|
11177
|
+
version: "2015-12-15",
|
|
11178
|
+
protocol: "HTTPS",
|
|
11179
|
+
pathname: `/service/open`,
|
|
11180
|
+
method: "POST",
|
|
11181
|
+
authType: "AK",
|
|
11182
|
+
style: "ROA",
|
|
11183
|
+
reqBodyType: "json",
|
|
11184
|
+
bodyType: "json",
|
|
11185
|
+
});
|
|
11186
|
+
return $tea.cast<OpenAckServiceResponse>(await this.callApi(params, req, runtime), new OpenAckServiceResponse({}));
|
|
10087
11187
|
}
|
|
10088
11188
|
|
|
10089
11189
|
async pauseClusterUpgrade(ClusterId: string): Promise<PauseClusterUpgradeResponse> {
|
|
@@ -10097,7 +11197,18 @@ export default class Client extends OpenApi {
|
|
|
10097
11197
|
let req = new $OpenApi.OpenApiRequest({
|
|
10098
11198
|
headers: headers,
|
|
10099
11199
|
});
|
|
10100
|
-
|
|
11200
|
+
let params = new $OpenApi.Params({
|
|
11201
|
+
action: "PauseClusterUpgrade",
|
|
11202
|
+
version: "2015-12-15",
|
|
11203
|
+
protocol: "HTTPS",
|
|
11204
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/pause`,
|
|
11205
|
+
method: "POST",
|
|
11206
|
+
authType: "AK",
|
|
11207
|
+
style: "ROA",
|
|
11208
|
+
reqBodyType: "json",
|
|
11209
|
+
bodyType: "none",
|
|
11210
|
+
});
|
|
11211
|
+
return $tea.cast<PauseClusterUpgradeResponse>(await this.callApi(params, req, runtime), new PauseClusterUpgradeResponse({}));
|
|
10101
11212
|
}
|
|
10102
11213
|
|
|
10103
11214
|
async pauseComponentUpgrade(clusterid: string, componentid: string): Promise<PauseComponentUpgradeResponse> {
|
|
@@ -10112,7 +11223,18 @@ export default class Client extends OpenApi {
|
|
|
10112
11223
|
let req = new $OpenApi.OpenApiRequest({
|
|
10113
11224
|
headers: headers,
|
|
10114
11225
|
});
|
|
10115
|
-
|
|
11226
|
+
let params = new $OpenApi.Params({
|
|
11227
|
+
action: "PauseComponentUpgrade",
|
|
11228
|
+
version: "2015-12-15",
|
|
11229
|
+
protocol: "HTTPS",
|
|
11230
|
+
pathname: `/clusters/${clusterid}/components/${componentid}/pause`,
|
|
11231
|
+
method: "POST",
|
|
11232
|
+
authType: "AK",
|
|
11233
|
+
style: "ROA",
|
|
11234
|
+
reqBodyType: "json",
|
|
11235
|
+
bodyType: "none",
|
|
11236
|
+
});
|
|
11237
|
+
return $tea.cast<PauseComponentUpgradeResponse>(await this.callApi(params, req, runtime), new PauseComponentUpgradeResponse({}));
|
|
10116
11238
|
}
|
|
10117
11239
|
|
|
10118
11240
|
async removeClusterNodes(ClusterId: string, request: RemoveClusterNodesRequest): Promise<RemoveClusterNodesResponse> {
|
|
@@ -10141,7 +11263,18 @@ export default class Client extends OpenApi {
|
|
|
10141
11263
|
headers: headers,
|
|
10142
11264
|
body: OpenApiUtil.parseToMap(body),
|
|
10143
11265
|
});
|
|
10144
|
-
|
|
11266
|
+
let params = new $OpenApi.Params({
|
|
11267
|
+
action: "RemoveClusterNodes",
|
|
11268
|
+
version: "2015-12-15",
|
|
11269
|
+
protocol: "HTTPS",
|
|
11270
|
+
pathname: `/api/v2/clusters/${ClusterId}/nodes/remove`,
|
|
11271
|
+
method: "POST",
|
|
11272
|
+
authType: "AK",
|
|
11273
|
+
style: "ROA",
|
|
11274
|
+
reqBodyType: "json",
|
|
11275
|
+
bodyType: "none",
|
|
11276
|
+
});
|
|
11277
|
+
return $tea.cast<RemoveClusterNodesResponse>(await this.callApi(params, req, runtime), new RemoveClusterNodesResponse({}));
|
|
10145
11278
|
}
|
|
10146
11279
|
|
|
10147
11280
|
async removeWorkflow(workflowName: string): Promise<RemoveWorkflowResponse> {
|
|
@@ -10155,7 +11288,18 @@ export default class Client extends OpenApi {
|
|
|
10155
11288
|
let req = new $OpenApi.OpenApiRequest({
|
|
10156
11289
|
headers: headers,
|
|
10157
11290
|
});
|
|
10158
|
-
|
|
11291
|
+
let params = new $OpenApi.Params({
|
|
11292
|
+
action: "RemoveWorkflow",
|
|
11293
|
+
version: "2015-12-15",
|
|
11294
|
+
protocol: "HTTPS",
|
|
11295
|
+
pathname: `/gs/workflow/${workflowName}`,
|
|
11296
|
+
method: "DELETE",
|
|
11297
|
+
authType: "AK",
|
|
11298
|
+
style: "ROA",
|
|
11299
|
+
reqBodyType: "json",
|
|
11300
|
+
bodyType: "none",
|
|
11301
|
+
});
|
|
11302
|
+
return $tea.cast<RemoveWorkflowResponse>(await this.callApi(params, req, runtime), new RemoveWorkflowResponse({}));
|
|
10159
11303
|
}
|
|
10160
11304
|
|
|
10161
11305
|
async resumeComponentUpgrade(clusterid: string, componentid: string): Promise<ResumeComponentUpgradeResponse> {
|
|
@@ -10170,7 +11314,18 @@ export default class Client extends OpenApi {
|
|
|
10170
11314
|
let req = new $OpenApi.OpenApiRequest({
|
|
10171
11315
|
headers: headers,
|
|
10172
11316
|
});
|
|
10173
|
-
|
|
11317
|
+
let params = new $OpenApi.Params({
|
|
11318
|
+
action: "ResumeComponentUpgrade",
|
|
11319
|
+
version: "2015-12-15",
|
|
11320
|
+
protocol: "HTTPS",
|
|
11321
|
+
pathname: `/clusters/${clusterid}/components/${componentid}/resume`,
|
|
11322
|
+
method: "POST",
|
|
11323
|
+
authType: "AK",
|
|
11324
|
+
style: "ROA",
|
|
11325
|
+
reqBodyType: "json",
|
|
11326
|
+
bodyType: "none",
|
|
11327
|
+
});
|
|
11328
|
+
return $tea.cast<ResumeComponentUpgradeResponse>(await this.callApi(params, req, runtime), new ResumeComponentUpgradeResponse({}));
|
|
10174
11329
|
}
|
|
10175
11330
|
|
|
10176
11331
|
async resumeUpgradeCluster(ClusterId: string): Promise<ResumeUpgradeClusterResponse> {
|
|
@@ -10184,7 +11339,18 @@ export default class Client extends OpenApi {
|
|
|
10184
11339
|
let req = new $OpenApi.OpenApiRequest({
|
|
10185
11340
|
headers: headers,
|
|
10186
11341
|
});
|
|
10187
|
-
|
|
11342
|
+
let params = new $OpenApi.Params({
|
|
11343
|
+
action: "ResumeUpgradeCluster",
|
|
11344
|
+
version: "2015-12-15",
|
|
11345
|
+
protocol: "HTTPS",
|
|
11346
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade/resume`,
|
|
11347
|
+
method: "POST",
|
|
11348
|
+
authType: "AK",
|
|
11349
|
+
style: "ROA",
|
|
11350
|
+
reqBodyType: "json",
|
|
11351
|
+
bodyType: "none",
|
|
11352
|
+
});
|
|
11353
|
+
return $tea.cast<ResumeUpgradeClusterResponse>(await this.callApi(params, req, runtime), new ResumeUpgradeClusterResponse({}));
|
|
10188
11354
|
}
|
|
10189
11355
|
|
|
10190
11356
|
async scaleCluster(ClusterId: string, request: ScaleClusterRequest): Promise<ScaleClusterResponse> {
|
|
@@ -10277,7 +11443,18 @@ export default class Client extends OpenApi {
|
|
|
10277
11443
|
headers: headers,
|
|
10278
11444
|
body: OpenApiUtil.parseToMap(body),
|
|
10279
11445
|
});
|
|
10280
|
-
|
|
11446
|
+
let params = new $OpenApi.Params({
|
|
11447
|
+
action: "ScaleCluster",
|
|
11448
|
+
version: "2015-12-15",
|
|
11449
|
+
protocol: "HTTPS",
|
|
11450
|
+
pathname: `/clusters/${ClusterId}`,
|
|
11451
|
+
method: "PUT",
|
|
11452
|
+
authType: "AK",
|
|
11453
|
+
style: "ROA",
|
|
11454
|
+
reqBodyType: "json",
|
|
11455
|
+
bodyType: "json",
|
|
11456
|
+
});
|
|
11457
|
+
return $tea.cast<ScaleClusterResponse>(await this.callApi(params, req, runtime), new ScaleClusterResponse({}));
|
|
10281
11458
|
}
|
|
10282
11459
|
|
|
10283
11460
|
async scaleClusterNodePool(ClusterId: string, NodepoolId: string, request: ScaleClusterNodePoolRequest): Promise<ScaleClusterNodePoolResponse> {
|
|
@@ -10299,7 +11476,18 @@ export default class Client extends OpenApi {
|
|
|
10299
11476
|
headers: headers,
|
|
10300
11477
|
body: OpenApiUtil.parseToMap(body),
|
|
10301
11478
|
});
|
|
10302
|
-
|
|
11479
|
+
let params = new $OpenApi.Params({
|
|
11480
|
+
action: "ScaleClusterNodePool",
|
|
11481
|
+
version: "2015-12-15",
|
|
11482
|
+
protocol: "HTTPS",
|
|
11483
|
+
pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}`,
|
|
11484
|
+
method: "POST",
|
|
11485
|
+
authType: "AK",
|
|
11486
|
+
style: "ROA",
|
|
11487
|
+
reqBodyType: "json",
|
|
11488
|
+
bodyType: "json",
|
|
11489
|
+
});
|
|
11490
|
+
return $tea.cast<ScaleClusterNodePoolResponse>(await this.callApi(params, req, runtime), new ScaleClusterNodePoolResponse({}));
|
|
10303
11491
|
}
|
|
10304
11492
|
|
|
10305
11493
|
async scaleOutCluster(ClusterId: string, request: ScaleOutClusterRequest): Promise<ScaleOutClusterResponse> {
|
|
@@ -10400,7 +11588,18 @@ export default class Client extends OpenApi {
|
|
|
10400
11588
|
headers: headers,
|
|
10401
11589
|
body: OpenApiUtil.parseToMap(body),
|
|
10402
11590
|
});
|
|
10403
|
-
|
|
11591
|
+
let params = new $OpenApi.Params({
|
|
11592
|
+
action: "ScaleOutCluster",
|
|
11593
|
+
version: "2015-12-15",
|
|
11594
|
+
protocol: "HTTPS",
|
|
11595
|
+
pathname: `/api/v2/clusters/${ClusterId}`,
|
|
11596
|
+
method: "POST",
|
|
11597
|
+
authType: "AK",
|
|
11598
|
+
style: "ROA",
|
|
11599
|
+
reqBodyType: "json",
|
|
11600
|
+
bodyType: "json",
|
|
11601
|
+
});
|
|
11602
|
+
return $tea.cast<ScaleOutClusterResponse>(await this.callApi(params, req, runtime), new ScaleOutClusterResponse({}));
|
|
10404
11603
|
}
|
|
10405
11604
|
|
|
10406
11605
|
async startWorkflow(request: StartWorkflowRequest): Promise<StartWorkflowResponse> {
|
|
@@ -10492,7 +11691,18 @@ export default class Client extends OpenApi {
|
|
|
10492
11691
|
headers: headers,
|
|
10493
11692
|
body: OpenApiUtil.parseToMap(body),
|
|
10494
11693
|
});
|
|
10495
|
-
|
|
11694
|
+
let params = new $OpenApi.Params({
|
|
11695
|
+
action: "StartWorkflow",
|
|
11696
|
+
version: "2015-12-15",
|
|
11697
|
+
protocol: "HTTPS",
|
|
11698
|
+
pathname: `/gs/workflow`,
|
|
11699
|
+
method: "POST",
|
|
11700
|
+
authType: "AK",
|
|
11701
|
+
style: "ROA",
|
|
11702
|
+
reqBodyType: "json",
|
|
11703
|
+
bodyType: "json",
|
|
11704
|
+
});
|
|
11705
|
+
return $tea.cast<StartWorkflowResponse>(await this.callApi(params, req, runtime), new StartWorkflowResponse({}));
|
|
10496
11706
|
}
|
|
10497
11707
|
|
|
10498
11708
|
async tagResources(request: TagResourcesRequest): Promise<TagResourcesResponse> {
|
|
@@ -10524,7 +11734,18 @@ export default class Client extends OpenApi {
|
|
|
10524
11734
|
headers: headers,
|
|
10525
11735
|
body: OpenApiUtil.parseToMap(body),
|
|
10526
11736
|
});
|
|
10527
|
-
|
|
11737
|
+
let params = new $OpenApi.Params({
|
|
11738
|
+
action: "TagResources",
|
|
11739
|
+
version: "2015-12-15",
|
|
11740
|
+
protocol: "HTTPS",
|
|
11741
|
+
pathname: `/tags`,
|
|
11742
|
+
method: "PUT",
|
|
11743
|
+
authType: "AK",
|
|
11744
|
+
style: "ROA",
|
|
11745
|
+
reqBodyType: "json",
|
|
11746
|
+
bodyType: "json",
|
|
11747
|
+
});
|
|
11748
|
+
return $tea.cast<TagResourcesResponse>(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
|
|
10528
11749
|
}
|
|
10529
11750
|
|
|
10530
11751
|
async unInstallClusterAddons(ClusterId: string, request: UnInstallClusterAddonsRequest): Promise<UnInstallClusterAddonsResponse> {
|
|
@@ -10540,7 +11761,18 @@ export default class Client extends OpenApi {
|
|
|
10540
11761
|
headers: headers,
|
|
10541
11762
|
body: Util.toArray(request.addons),
|
|
10542
11763
|
});
|
|
10543
|
-
|
|
11764
|
+
let params = new $OpenApi.Params({
|
|
11765
|
+
action: "UnInstallClusterAddons",
|
|
11766
|
+
version: "2015-12-15",
|
|
11767
|
+
protocol: "HTTPS",
|
|
11768
|
+
pathname: `/clusters/${ClusterId}/components/uninstall`,
|
|
11769
|
+
method: "POST",
|
|
11770
|
+
authType: "AK",
|
|
11771
|
+
style: "ROA",
|
|
11772
|
+
reqBodyType: "json",
|
|
11773
|
+
bodyType: "none",
|
|
11774
|
+
});
|
|
11775
|
+
return $tea.cast<UnInstallClusterAddonsResponse>(await this.callApi(params, req, runtime), new UnInstallClusterAddonsResponse({}));
|
|
10544
11776
|
}
|
|
10545
11777
|
|
|
10546
11778
|
async untagResources(request: UntagResourcesRequest): Promise<UntagResourcesResponse> {
|
|
@@ -10552,6 +11784,10 @@ export default class Client extends OpenApi {
|
|
|
10552
11784
|
async untagResourcesWithOptions(request: UntagResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UntagResourcesResponse> {
|
|
10553
11785
|
Util.validateModel(request);
|
|
10554
11786
|
let query : {[key: string ]: any} = { };
|
|
11787
|
+
if (!Util.isUnset(request.all)) {
|
|
11788
|
+
query["all"] = request.all;
|
|
11789
|
+
}
|
|
11790
|
+
|
|
10555
11791
|
if (!Util.isUnset(request.regionId)) {
|
|
10556
11792
|
query["region_id"] = request.regionId;
|
|
10557
11793
|
}
|
|
@@ -10572,7 +11808,18 @@ export default class Client extends OpenApi {
|
|
|
10572
11808
|
headers: headers,
|
|
10573
11809
|
query: OpenApiUtil.query(query),
|
|
10574
11810
|
});
|
|
10575
|
-
|
|
11811
|
+
let params = new $OpenApi.Params({
|
|
11812
|
+
action: "UntagResources",
|
|
11813
|
+
version: "2015-12-15",
|
|
11814
|
+
protocol: "HTTPS",
|
|
11815
|
+
pathname: `/tags`,
|
|
11816
|
+
method: "DELETE",
|
|
11817
|
+
authType: "AK",
|
|
11818
|
+
style: "ROA",
|
|
11819
|
+
reqBodyType: "json",
|
|
11820
|
+
bodyType: "json",
|
|
11821
|
+
});
|
|
11822
|
+
return $tea.cast<UntagResourcesResponse>(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
|
|
10576
11823
|
}
|
|
10577
11824
|
|
|
10578
11825
|
async updateK8sClusterUserConfigExpire(ClusterId: string): Promise<UpdateK8sClusterUserConfigExpireResponse> {
|
|
@@ -10586,7 +11833,18 @@ export default class Client extends OpenApi {
|
|
|
10586
11833
|
let req = new $OpenApi.OpenApiRequest({
|
|
10587
11834
|
headers: headers,
|
|
10588
11835
|
});
|
|
10589
|
-
|
|
11836
|
+
let params = new $OpenApi.Params({
|
|
11837
|
+
action: "UpdateK8sClusterUserConfigExpire",
|
|
11838
|
+
version: "2015-12-15",
|
|
11839
|
+
protocol: "HTTPS",
|
|
11840
|
+
pathname: `/k8s/${ClusterId}/user_config/expire`,
|
|
11841
|
+
method: "POST",
|
|
11842
|
+
authType: "AK",
|
|
11843
|
+
style: "ROA",
|
|
11844
|
+
reqBodyType: "json",
|
|
11845
|
+
bodyType: "none",
|
|
11846
|
+
});
|
|
11847
|
+
return $tea.cast<UpdateK8sClusterUserConfigExpireResponse>(await this.callApi(params, req, runtime), new UpdateK8sClusterUserConfigExpireResponse({}));
|
|
10590
11848
|
}
|
|
10591
11849
|
|
|
10592
11850
|
async updateTemplate(TemplateId: string, request: UpdateTemplateRequest): Promise<UpdateTemplateResponse> {
|
|
@@ -10623,7 +11881,18 @@ export default class Client extends OpenApi {
|
|
|
10623
11881
|
headers: headers,
|
|
10624
11882
|
body: OpenApiUtil.parseToMap(body),
|
|
10625
11883
|
});
|
|
10626
|
-
|
|
11884
|
+
let params = new $OpenApi.Params({
|
|
11885
|
+
action: "UpdateTemplate",
|
|
11886
|
+
version: "2015-12-15",
|
|
11887
|
+
protocol: "HTTPS",
|
|
11888
|
+
pathname: `/templates/${TemplateId}`,
|
|
11889
|
+
method: "PUT",
|
|
11890
|
+
authType: "AK",
|
|
11891
|
+
style: "ROA",
|
|
11892
|
+
reqBodyType: "json",
|
|
11893
|
+
bodyType: "none",
|
|
11894
|
+
});
|
|
11895
|
+
return $tea.cast<UpdateTemplateResponse>(await this.callApi(params, req, runtime), new UpdateTemplateResponse({}));
|
|
10627
11896
|
}
|
|
10628
11897
|
|
|
10629
11898
|
async upgradeCluster(ClusterId: string, request: UpgradeClusterRequest): Promise<UpgradeClusterResponse> {
|
|
@@ -10652,7 +11921,18 @@ export default class Client extends OpenApi {
|
|
|
10652
11921
|
headers: headers,
|
|
10653
11922
|
body: OpenApiUtil.parseToMap(body),
|
|
10654
11923
|
});
|
|
10655
|
-
|
|
11924
|
+
let params = new $OpenApi.Params({
|
|
11925
|
+
action: "UpgradeCluster",
|
|
11926
|
+
version: "2015-12-15",
|
|
11927
|
+
protocol: "HTTPS",
|
|
11928
|
+
pathname: `/api/v2/clusters/${ClusterId}/upgrade`,
|
|
11929
|
+
method: "POST",
|
|
11930
|
+
authType: "AK",
|
|
11931
|
+
style: "ROA",
|
|
11932
|
+
reqBodyType: "json",
|
|
11933
|
+
bodyType: "none",
|
|
11934
|
+
});
|
|
11935
|
+
return $tea.cast<UpgradeClusterResponse>(await this.callApi(params, req, runtime), new UpgradeClusterResponse({}));
|
|
10656
11936
|
}
|
|
10657
11937
|
|
|
10658
11938
|
async upgradeClusterAddons(ClusterId: string, request: UpgradeClusterAddonsRequest): Promise<UpgradeClusterAddonsResponse> {
|
|
@@ -10668,7 +11948,18 @@ export default class Client extends OpenApi {
|
|
|
10668
11948
|
headers: headers,
|
|
10669
11949
|
body: Util.toArray(request.body),
|
|
10670
11950
|
});
|
|
10671
|
-
|
|
11951
|
+
let params = new $OpenApi.Params({
|
|
11952
|
+
action: "UpgradeClusterAddons",
|
|
11953
|
+
version: "2015-12-15",
|
|
11954
|
+
protocol: "HTTPS",
|
|
11955
|
+
pathname: `/clusters/${ClusterId}/components/upgrade`,
|
|
11956
|
+
method: "POST",
|
|
11957
|
+
authType: "AK",
|
|
11958
|
+
style: "ROA",
|
|
11959
|
+
reqBodyType: "json",
|
|
11960
|
+
bodyType: "none",
|
|
11961
|
+
});
|
|
11962
|
+
return $tea.cast<UpgradeClusterAddonsResponse>(await this.callApi(params, req, runtime), new UpgradeClusterAddonsResponse({}));
|
|
10672
11963
|
}
|
|
10673
11964
|
|
|
10674
11965
|
}
|