@alicloud/ess20220222 1.0.13 → 1.1.1
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 +388 -231
- package/dist/client.js +280 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +599 -231
package/dist/client.js
CHANGED
|
@@ -19,6 +19,64 @@ const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $Ope
|
|
|
19
19
|
const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
|
|
20
20
|
const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
|
|
21
21
|
const $tea = __importStar(require("@alicloud/tea-typescript"));
|
|
22
|
+
class ApplyScalingGroupRequest extends $tea.Model {
|
|
23
|
+
constructor(map) {
|
|
24
|
+
super(map);
|
|
25
|
+
}
|
|
26
|
+
static names() {
|
|
27
|
+
return {
|
|
28
|
+
content: 'Content',
|
|
29
|
+
format: 'Format',
|
|
30
|
+
regionId: 'RegionId',
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
static types() {
|
|
34
|
+
return {
|
|
35
|
+
content: 'string',
|
|
36
|
+
format: 'string',
|
|
37
|
+
regionId: 'string',
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.ApplyScalingGroupRequest = ApplyScalingGroupRequest;
|
|
42
|
+
class ApplyScalingGroupResponseBody extends $tea.Model {
|
|
43
|
+
constructor(map) {
|
|
44
|
+
super(map);
|
|
45
|
+
}
|
|
46
|
+
static names() {
|
|
47
|
+
return {
|
|
48
|
+
requestId: 'RequestId',
|
|
49
|
+
scalingGroupId: 'ScalingGroupId',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
static types() {
|
|
53
|
+
return {
|
|
54
|
+
requestId: 'string',
|
|
55
|
+
scalingGroupId: 'string',
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.ApplyScalingGroupResponseBody = ApplyScalingGroupResponseBody;
|
|
60
|
+
class ApplyScalingGroupResponse extends $tea.Model {
|
|
61
|
+
constructor(map) {
|
|
62
|
+
super(map);
|
|
63
|
+
}
|
|
64
|
+
static names() {
|
|
65
|
+
return {
|
|
66
|
+
headers: 'headers',
|
|
67
|
+
statusCode: 'statusCode',
|
|
68
|
+
body: 'body',
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
static types() {
|
|
72
|
+
return {
|
|
73
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
74
|
+
statusCode: 'number',
|
|
75
|
+
body: ApplyScalingGroupResponseBody,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.ApplyScalingGroupResponse = ApplyScalingGroupResponse;
|
|
22
80
|
class AttachAlbServerGroupsRequest extends $tea.Model {
|
|
23
81
|
constructor(map) {
|
|
24
82
|
super(map);
|
|
@@ -936,6 +994,7 @@ class CreateScalingConfigurationRequest extends $tea.Model {
|
|
|
936
994
|
clientToken: 'ClientToken',
|
|
937
995
|
cpu: 'Cpu',
|
|
938
996
|
creditSpecification: 'CreditSpecification',
|
|
997
|
+
customPriorities: 'CustomPriorities',
|
|
939
998
|
dataDisks: 'DataDisks',
|
|
940
999
|
dedicatedHostId: 'DedicatedHostId',
|
|
941
1000
|
deletionProtection: 'DeletionProtection',
|
|
@@ -994,6 +1053,7 @@ class CreateScalingConfigurationRequest extends $tea.Model {
|
|
|
994
1053
|
clientToken: 'string',
|
|
995
1054
|
cpu: 'number',
|
|
996
1055
|
creditSpecification: 'string',
|
|
1056
|
+
customPriorities: { 'type': 'array', 'itemType': CreateScalingConfigurationRequestCustomPriorities },
|
|
997
1057
|
dataDisks: { 'type': 'array', 'itemType': CreateScalingConfigurationRequestDataDisks },
|
|
998
1058
|
dedicatedHostId: 'string',
|
|
999
1059
|
deletionProtection: 'boolean',
|
|
@@ -1058,6 +1118,7 @@ class CreateScalingConfigurationShrinkRequest extends $tea.Model {
|
|
|
1058
1118
|
clientToken: 'ClientToken',
|
|
1059
1119
|
cpu: 'Cpu',
|
|
1060
1120
|
creditSpecification: 'CreditSpecification',
|
|
1121
|
+
customPriorities: 'CustomPriorities',
|
|
1061
1122
|
dataDisks: 'DataDisks',
|
|
1062
1123
|
dedicatedHostId: 'DedicatedHostId',
|
|
1063
1124
|
deletionProtection: 'DeletionProtection',
|
|
@@ -1116,6 +1177,7 @@ class CreateScalingConfigurationShrinkRequest extends $tea.Model {
|
|
|
1116
1177
|
clientToken: 'string',
|
|
1117
1178
|
cpu: 'number',
|
|
1118
1179
|
creditSpecification: 'string',
|
|
1180
|
+
customPriorities: { 'type': 'array', 'itemType': CreateScalingConfigurationShrinkRequestCustomPriorities },
|
|
1119
1181
|
dataDisks: { 'type': 'array', 'itemType': CreateScalingConfigurationShrinkRequestDataDisks },
|
|
1120
1182
|
dedicatedHostId: 'string',
|
|
1121
1183
|
deletionProtection: 'boolean',
|
|
@@ -4641,6 +4703,7 @@ class ModifyScalingConfigurationRequest extends $tea.Model {
|
|
|
4641
4703
|
affinity: 'Affinity',
|
|
4642
4704
|
cpu: 'Cpu',
|
|
4643
4705
|
creditSpecification: 'CreditSpecification',
|
|
4706
|
+
customPriorities: 'CustomPriorities',
|
|
4644
4707
|
dataDisks: 'DataDisks',
|
|
4645
4708
|
dedicatedHostId: 'DedicatedHostId',
|
|
4646
4709
|
deletionProtection: 'DeletionProtection',
|
|
@@ -4695,6 +4758,7 @@ class ModifyScalingConfigurationRequest extends $tea.Model {
|
|
|
4695
4758
|
affinity: 'string',
|
|
4696
4759
|
cpu: 'number',
|
|
4697
4760
|
creditSpecification: 'string',
|
|
4761
|
+
customPriorities: { 'type': 'array', 'itemType': ModifyScalingConfigurationRequestCustomPriorities },
|
|
4698
4762
|
dataDisks: { 'type': 'array', 'itemType': ModifyScalingConfigurationRequestDataDisks },
|
|
4699
4763
|
dedicatedHostId: 'string',
|
|
4700
4764
|
deletionProtection: 'boolean',
|
|
@@ -4755,6 +4819,7 @@ class ModifyScalingConfigurationShrinkRequest extends $tea.Model {
|
|
|
4755
4819
|
affinity: 'Affinity',
|
|
4756
4820
|
cpu: 'Cpu',
|
|
4757
4821
|
creditSpecification: 'CreditSpecification',
|
|
4822
|
+
customPriorities: 'CustomPriorities',
|
|
4758
4823
|
dataDisks: 'DataDisks',
|
|
4759
4824
|
dedicatedHostId: 'DedicatedHostId',
|
|
4760
4825
|
deletionProtection: 'DeletionProtection',
|
|
@@ -4809,6 +4874,7 @@ class ModifyScalingConfigurationShrinkRequest extends $tea.Model {
|
|
|
4809
4874
|
affinity: 'string',
|
|
4810
4875
|
cpu: 'number',
|
|
4811
4876
|
creditSpecification: 'string',
|
|
4877
|
+
customPriorities: { 'type': 'array', 'itemType': ModifyScalingConfigurationShrinkRequestCustomPriorities },
|
|
4812
4878
|
dataDisks: { 'type': 'array', 'itemType': ModifyScalingConfigurationShrinkRequestDataDisks },
|
|
4813
4879
|
dedicatedHostId: 'string',
|
|
4814
4880
|
deletionProtection: 'boolean',
|
|
@@ -6475,6 +6541,20 @@ class CreateEciScalingConfigurationRequestContainers extends $tea.Model {
|
|
|
6475
6541
|
gpu: 'Gpu',
|
|
6476
6542
|
image: 'Image',
|
|
6477
6543
|
imagePullPolicy: 'ImagePullPolicy',
|
|
6544
|
+
lifecyclePostStartHandlerExecs: 'LifecyclePostStartHandlerExecs',
|
|
6545
|
+
lifecyclePostStartHandlerHttpGetHost: 'LifecyclePostStartHandlerHttpGetHost',
|
|
6546
|
+
lifecyclePostStartHandlerHttpGetPath: 'LifecyclePostStartHandlerHttpGetPath',
|
|
6547
|
+
lifecyclePostStartHandlerHttpGetPort: 'LifecyclePostStartHandlerHttpGetPort',
|
|
6548
|
+
lifecyclePostStartHandlerHttpGetScheme: 'LifecyclePostStartHandlerHttpGetScheme',
|
|
6549
|
+
lifecyclePostStartHandlerTcpSocketHost: 'LifecyclePostStartHandlerTcpSocketHost',
|
|
6550
|
+
lifecyclePostStartHandlerTcpSocketPort: 'LifecyclePostStartHandlerTcpSocketPort',
|
|
6551
|
+
lifecyclePreStopHandlerExecs: 'LifecyclePreStopHandlerExecs',
|
|
6552
|
+
lifecyclePreStopHandlerHttpGetHost: 'LifecyclePreStopHandlerHttpGetHost',
|
|
6553
|
+
lifecyclePreStopHandlerHttpGetPath: 'LifecyclePreStopHandlerHttpGetPath',
|
|
6554
|
+
lifecyclePreStopHandlerHttpGetPort: 'LifecyclePreStopHandlerHttpGetPort',
|
|
6555
|
+
lifecyclePreStopHandlerHttpGetScheme: 'LifecyclePreStopHandlerHttpGetScheme',
|
|
6556
|
+
lifecyclePreStopHandlerTcpSocketHost: 'LifecyclePreStopHandlerTcpSocketHost',
|
|
6557
|
+
lifecyclePreStopHandlerTcpSocketPort: 'LifecyclePreStopHandlerTcpSocketPort',
|
|
6478
6558
|
memory: 'Memory',
|
|
6479
6559
|
name: 'Name',
|
|
6480
6560
|
ports: 'Ports',
|
|
@@ -6497,6 +6577,20 @@ class CreateEciScalingConfigurationRequestContainers extends $tea.Model {
|
|
|
6497
6577
|
gpu: 'number',
|
|
6498
6578
|
image: 'string',
|
|
6499
6579
|
imagePullPolicy: 'string',
|
|
6580
|
+
lifecyclePostStartHandlerExecs: { 'type': 'array', 'itemType': 'string' },
|
|
6581
|
+
lifecyclePostStartHandlerHttpGetHost: 'string',
|
|
6582
|
+
lifecyclePostStartHandlerHttpGetPath: 'string',
|
|
6583
|
+
lifecyclePostStartHandlerHttpGetPort: 'number',
|
|
6584
|
+
lifecyclePostStartHandlerHttpGetScheme: 'string',
|
|
6585
|
+
lifecyclePostStartHandlerTcpSocketHost: 'string',
|
|
6586
|
+
lifecyclePostStartHandlerTcpSocketPort: 'number',
|
|
6587
|
+
lifecyclePreStopHandlerExecs: { 'type': 'array', 'itemType': 'string' },
|
|
6588
|
+
lifecyclePreStopHandlerHttpGetHost: 'string',
|
|
6589
|
+
lifecyclePreStopHandlerHttpGetPath: 'string',
|
|
6590
|
+
lifecyclePreStopHandlerHttpGetPort: 'number',
|
|
6591
|
+
lifecyclePreStopHandlerHttpGetScheme: 'string',
|
|
6592
|
+
lifecyclePreStopHandlerTcpSocketHost: 'string',
|
|
6593
|
+
lifecyclePreStopHandlerTcpSocketPort: 'number',
|
|
6500
6594
|
memory: 'number',
|
|
6501
6595
|
name: 'string',
|
|
6502
6596
|
ports: { 'type': 'array', 'itemType': CreateEciScalingConfigurationRequestContainersPorts },
|
|
@@ -6957,6 +7051,24 @@ class CreateScalingConfigurationRequestSystemDisk extends $tea.Model {
|
|
|
6957
7051
|
}
|
|
6958
7052
|
}
|
|
6959
7053
|
exports.CreateScalingConfigurationRequestSystemDisk = CreateScalingConfigurationRequestSystemDisk;
|
|
7054
|
+
class CreateScalingConfigurationRequestCustomPriorities extends $tea.Model {
|
|
7055
|
+
constructor(map) {
|
|
7056
|
+
super(map);
|
|
7057
|
+
}
|
|
7058
|
+
static names() {
|
|
7059
|
+
return {
|
|
7060
|
+
instanceType: 'InstanceType',
|
|
7061
|
+
vswitchId: 'VswitchId',
|
|
7062
|
+
};
|
|
7063
|
+
}
|
|
7064
|
+
static types() {
|
|
7065
|
+
return {
|
|
7066
|
+
instanceType: 'string',
|
|
7067
|
+
vswitchId: 'string',
|
|
7068
|
+
};
|
|
7069
|
+
}
|
|
7070
|
+
}
|
|
7071
|
+
exports.CreateScalingConfigurationRequestCustomPriorities = CreateScalingConfigurationRequestCustomPriorities;
|
|
6960
7072
|
class CreateScalingConfigurationRequestDataDisks extends $tea.Model {
|
|
6961
7073
|
constructor(map) {
|
|
6962
7074
|
super(map);
|
|
@@ -7133,6 +7245,24 @@ class CreateScalingConfigurationShrinkRequestSystemDisk extends $tea.Model {
|
|
|
7133
7245
|
}
|
|
7134
7246
|
}
|
|
7135
7247
|
exports.CreateScalingConfigurationShrinkRequestSystemDisk = CreateScalingConfigurationShrinkRequestSystemDisk;
|
|
7248
|
+
class CreateScalingConfigurationShrinkRequestCustomPriorities extends $tea.Model {
|
|
7249
|
+
constructor(map) {
|
|
7250
|
+
super(map);
|
|
7251
|
+
}
|
|
7252
|
+
static names() {
|
|
7253
|
+
return {
|
|
7254
|
+
instanceType: 'InstanceType',
|
|
7255
|
+
vswitchId: 'VswitchId',
|
|
7256
|
+
};
|
|
7257
|
+
}
|
|
7258
|
+
static types() {
|
|
7259
|
+
return {
|
|
7260
|
+
instanceType: 'string',
|
|
7261
|
+
vswitchId: 'string',
|
|
7262
|
+
};
|
|
7263
|
+
}
|
|
7264
|
+
}
|
|
7265
|
+
exports.CreateScalingConfigurationShrinkRequestCustomPriorities = CreateScalingConfigurationShrinkRequestCustomPriorities;
|
|
7136
7266
|
class CreateScalingConfigurationShrinkRequestDataDisks extends $tea.Model {
|
|
7137
7267
|
constructor(map) {
|
|
7138
7268
|
super(map);
|
|
@@ -7630,6 +7760,20 @@ class DescribeEciScalingConfigurationsResponseBodyScalingConfigurationsContainer
|
|
|
7630
7760
|
gpu: 'Gpu',
|
|
7631
7761
|
image: 'Image',
|
|
7632
7762
|
imagePullPolicy: 'ImagePullPolicy',
|
|
7763
|
+
lifecyclePostStartHandlerExecs: 'LifecyclePostStartHandlerExecs',
|
|
7764
|
+
lifecyclePostStartHandlerHttpGetHost: 'LifecyclePostStartHandlerHttpGetHost',
|
|
7765
|
+
lifecyclePostStartHandlerHttpGetPath: 'LifecyclePostStartHandlerHttpGetPath',
|
|
7766
|
+
lifecyclePostStartHandlerHttpGetPort: 'LifecyclePostStartHandlerHttpGetPort',
|
|
7767
|
+
lifecyclePostStartHandlerHttpGetScheme: 'LifecyclePostStartHandlerHttpGetScheme',
|
|
7768
|
+
lifecyclePostStartHandlerTcpSocketHost: 'LifecyclePostStartHandlerTcpSocketHost',
|
|
7769
|
+
lifecyclePostStartHandlerTcpSocketPort: 'LifecyclePostStartHandlerTcpSocketPort',
|
|
7770
|
+
lifecyclePreStopHandlerExecs: 'LifecyclePreStopHandlerExecs',
|
|
7771
|
+
lifecyclePreStopHandlerHttpGetHost: 'LifecyclePreStopHandlerHttpGetHost',
|
|
7772
|
+
lifecyclePreStopHandlerHttpGetPath: 'LifecyclePreStopHandlerHttpGetPath',
|
|
7773
|
+
lifecyclePreStopHandlerHttpGetPort: 'LifecyclePreStopHandlerHttpGetPort',
|
|
7774
|
+
lifecyclePreStopHandlerHttpGetScheme: 'LifecyclePreStopHandlerHttpGetScheme',
|
|
7775
|
+
lifecyclePreStopHandlerTcpSocketHost: 'LifecyclePreStopHandlerTcpSocketHost',
|
|
7776
|
+
lifecyclePreStopHandlerTcpSocketPort: 'LifecyclePreStopHandlerTcpSocketPort',
|
|
7633
7777
|
livenessProbeExecCommands: 'LivenessProbeExecCommands',
|
|
7634
7778
|
livenessProbeFailureThreshold: 'LivenessProbeFailureThreshold',
|
|
7635
7779
|
livenessProbeHttpGetPath: 'LivenessProbeHttpGetPath',
|
|
@@ -7672,6 +7816,20 @@ class DescribeEciScalingConfigurationsResponseBodyScalingConfigurationsContainer
|
|
|
7672
7816
|
gpu: 'number',
|
|
7673
7817
|
image: 'string',
|
|
7674
7818
|
imagePullPolicy: 'string',
|
|
7819
|
+
lifecyclePostStartHandlerExecs: { 'type': 'array', 'itemType': 'string' },
|
|
7820
|
+
lifecyclePostStartHandlerHttpGetHost: 'string',
|
|
7821
|
+
lifecyclePostStartHandlerHttpGetPath: 'string',
|
|
7822
|
+
lifecyclePostStartHandlerHttpGetPort: 'number',
|
|
7823
|
+
lifecyclePostStartHandlerHttpGetScheme: 'string',
|
|
7824
|
+
lifecyclePostStartHandlerTcpSocketHost: 'string',
|
|
7825
|
+
lifecyclePostStartHandlerTcpSocketPort: 'number',
|
|
7826
|
+
lifecyclePreStopHandlerExecs: { 'type': 'array', 'itemType': 'string' },
|
|
7827
|
+
lifecyclePreStopHandlerHttpGetHost: 'string',
|
|
7828
|
+
lifecyclePreStopHandlerHttpGetPath: 'string',
|
|
7829
|
+
lifecyclePreStopHandlerHttpGetPort: 'number',
|
|
7830
|
+
lifecyclePreStopHandlerHttpGetScheme: 'string',
|
|
7831
|
+
lifecyclePreStopHandlerTcpSocketHost: 'string',
|
|
7832
|
+
lifecyclePreStopHandlerTcpSocketPort: 'number',
|
|
7675
7833
|
livenessProbeExecCommands: { 'type': 'array', 'itemType': 'string' },
|
|
7676
7834
|
livenessProbeFailureThreshold: 'number',
|
|
7677
7835
|
livenessProbeHttpGetPath: 'string',
|
|
@@ -8251,6 +8409,24 @@ class DescribeScalingActivitiesResponseBodyScalingActivities extends $tea.Model
|
|
|
8251
8409
|
}
|
|
8252
8410
|
}
|
|
8253
8411
|
exports.DescribeScalingActivitiesResponseBodyScalingActivities = DescribeScalingActivitiesResponseBodyScalingActivities;
|
|
8412
|
+
class DescribeScalingConfigurationsResponseBodyScalingConfigurationsCustomPriorities extends $tea.Model {
|
|
8413
|
+
constructor(map) {
|
|
8414
|
+
super(map);
|
|
8415
|
+
}
|
|
8416
|
+
static names() {
|
|
8417
|
+
return {
|
|
8418
|
+
instanceType: 'InstanceType',
|
|
8419
|
+
vswitchId: 'VswitchId',
|
|
8420
|
+
};
|
|
8421
|
+
}
|
|
8422
|
+
static types() {
|
|
8423
|
+
return {
|
|
8424
|
+
instanceType: 'string',
|
|
8425
|
+
vswitchId: 'string',
|
|
8426
|
+
};
|
|
8427
|
+
}
|
|
8428
|
+
}
|
|
8429
|
+
exports.DescribeScalingConfigurationsResponseBodyScalingConfigurationsCustomPriorities = DescribeScalingConfigurationsResponseBodyScalingConfigurationsCustomPriorities;
|
|
8254
8430
|
class DescribeScalingConfigurationsResponseBodyScalingConfigurationsDataDisks extends $tea.Model {
|
|
8255
8431
|
constructor(map) {
|
|
8256
8432
|
super(map);
|
|
@@ -8383,6 +8559,7 @@ class DescribeScalingConfigurationsResponseBodyScalingConfigurations extends $te
|
|
|
8383
8559
|
cpu: 'Cpu',
|
|
8384
8560
|
creationTime: 'CreationTime',
|
|
8385
8561
|
creditSpecification: 'CreditSpecification',
|
|
8562
|
+
customPriorities: 'CustomPriorities',
|
|
8386
8563
|
dataDisks: 'DataDisks',
|
|
8387
8564
|
dedicatedHostId: 'DedicatedHostId',
|
|
8388
8565
|
deletionProtection: 'DeletionProtection',
|
|
@@ -8452,6 +8629,7 @@ class DescribeScalingConfigurationsResponseBodyScalingConfigurations extends $te
|
|
|
8452
8629
|
cpu: 'number',
|
|
8453
8630
|
creationTime: 'string',
|
|
8454
8631
|
creditSpecification: 'string',
|
|
8632
|
+
customPriorities: { 'type': 'array', 'itemType': DescribeScalingConfigurationsResponseBodyScalingConfigurationsCustomPriorities },
|
|
8455
8633
|
dataDisks: { 'type': 'array', 'itemType': DescribeScalingConfigurationsResponseBodyScalingConfigurationsDataDisks },
|
|
8456
8634
|
dedicatedHostId: 'string',
|
|
8457
8635
|
deletionProtection: 'boolean',
|
|
@@ -9541,6 +9719,20 @@ class ModifyEciScalingConfigurationRequestContainers extends $tea.Model {
|
|
|
9541
9719
|
gpu: 'Gpu',
|
|
9542
9720
|
image: 'Image',
|
|
9543
9721
|
imagePullPolicy: 'ImagePullPolicy',
|
|
9722
|
+
lifecyclePostStartHandlerExecs: 'LifecyclePostStartHandlerExecs',
|
|
9723
|
+
lifecyclePostStartHandlerHttpGetHost: 'LifecyclePostStartHandlerHttpGetHost',
|
|
9724
|
+
lifecyclePostStartHandlerHttpGetPath: 'LifecyclePostStartHandlerHttpGetPath',
|
|
9725
|
+
lifecyclePostStartHandlerHttpGetPort: 'LifecyclePostStartHandlerHttpGetPort',
|
|
9726
|
+
lifecyclePostStartHandlerHttpGetScheme: 'LifecyclePostStartHandlerHttpGetScheme',
|
|
9727
|
+
lifecyclePostStartHandlerTcpSocketHost: 'LifecyclePostStartHandlerTcpSocketHost',
|
|
9728
|
+
lifecyclePostStartHandlerTcpSocketPort: 'LifecyclePostStartHandlerTcpSocketPort',
|
|
9729
|
+
lifecyclePreStopHandlerExecs: 'LifecyclePreStopHandlerExecs',
|
|
9730
|
+
lifecyclePreStopHandlerHttpGetHost: 'LifecyclePreStopHandlerHttpGetHost',
|
|
9731
|
+
lifecyclePreStopHandlerHttpGetPath: 'LifecyclePreStopHandlerHttpGetPath',
|
|
9732
|
+
lifecyclePreStopHandlerHttpGetPort: 'LifecyclePreStopHandlerHttpGetPort',
|
|
9733
|
+
lifecyclePreStopHandlerHttpGetScheme: 'LifecyclePreStopHandlerHttpGetScheme',
|
|
9734
|
+
lifecyclePreStopHandlerTcpSocketHost: 'LifecyclePreStopHandlerTcpSocketHost',
|
|
9735
|
+
lifecyclePreStopHandlerTcpSocketPort: 'LifecyclePreStopHandlerTcpSocketPort',
|
|
9544
9736
|
memory: 'Memory',
|
|
9545
9737
|
name: 'Name',
|
|
9546
9738
|
ports: 'Ports',
|
|
@@ -9563,6 +9755,20 @@ class ModifyEciScalingConfigurationRequestContainers extends $tea.Model {
|
|
|
9563
9755
|
gpu: 'number',
|
|
9564
9756
|
image: 'string',
|
|
9565
9757
|
imagePullPolicy: 'string',
|
|
9758
|
+
lifecyclePostStartHandlerExecs: { 'type': 'array', 'itemType': 'string' },
|
|
9759
|
+
lifecyclePostStartHandlerHttpGetHost: 'string',
|
|
9760
|
+
lifecyclePostStartHandlerHttpGetPath: 'string',
|
|
9761
|
+
lifecyclePostStartHandlerHttpGetPort: 'number',
|
|
9762
|
+
lifecyclePostStartHandlerHttpGetScheme: 'string',
|
|
9763
|
+
lifecyclePostStartHandlerTcpSocketHost: 'string',
|
|
9764
|
+
lifecyclePostStartHandlerTcpSocketPort: 'number',
|
|
9765
|
+
lifecyclePreStopHandlerExecs: { 'type': 'array', 'itemType': 'string' },
|
|
9766
|
+
lifecyclePreStopHandlerHttpGetHost: 'string',
|
|
9767
|
+
lifecyclePreStopHandlerHttpGetPath: 'string',
|
|
9768
|
+
lifecyclePreStopHandlerHttpGetPort: 'number',
|
|
9769
|
+
lifecyclePreStopHandlerHttpGetScheme: 'string',
|
|
9770
|
+
lifecyclePreStopHandlerTcpSocketHost: 'string',
|
|
9771
|
+
lifecyclePreStopHandlerTcpSocketPort: 'number',
|
|
9566
9772
|
memory: 'number',
|
|
9567
9773
|
name: 'string',
|
|
9568
9774
|
ports: { 'type': 'array', 'itemType': ModifyEciScalingConfigurationRequestContainersPorts },
|
|
@@ -10039,6 +10245,24 @@ class ModifyScalingConfigurationRequestSystemDisk extends $tea.Model {
|
|
|
10039
10245
|
}
|
|
10040
10246
|
}
|
|
10041
10247
|
exports.ModifyScalingConfigurationRequestSystemDisk = ModifyScalingConfigurationRequestSystemDisk;
|
|
10248
|
+
class ModifyScalingConfigurationRequestCustomPriorities extends $tea.Model {
|
|
10249
|
+
constructor(map) {
|
|
10250
|
+
super(map);
|
|
10251
|
+
}
|
|
10252
|
+
static names() {
|
|
10253
|
+
return {
|
|
10254
|
+
instanceType: 'InstanceType',
|
|
10255
|
+
vswitchId: 'VswitchId',
|
|
10256
|
+
};
|
|
10257
|
+
}
|
|
10258
|
+
static types() {
|
|
10259
|
+
return {
|
|
10260
|
+
instanceType: 'string',
|
|
10261
|
+
vswitchId: 'string',
|
|
10262
|
+
};
|
|
10263
|
+
}
|
|
10264
|
+
}
|
|
10265
|
+
exports.ModifyScalingConfigurationRequestCustomPriorities = ModifyScalingConfigurationRequestCustomPriorities;
|
|
10042
10266
|
class ModifyScalingConfigurationRequestDataDisks extends $tea.Model {
|
|
10043
10267
|
constructor(map) {
|
|
10044
10268
|
super(map);
|
|
@@ -10215,6 +10439,24 @@ class ModifyScalingConfigurationShrinkRequestSystemDisk extends $tea.Model {
|
|
|
10215
10439
|
}
|
|
10216
10440
|
}
|
|
10217
10441
|
exports.ModifyScalingConfigurationShrinkRequestSystemDisk = ModifyScalingConfigurationShrinkRequestSystemDisk;
|
|
10442
|
+
class ModifyScalingConfigurationShrinkRequestCustomPriorities extends $tea.Model {
|
|
10443
|
+
constructor(map) {
|
|
10444
|
+
super(map);
|
|
10445
|
+
}
|
|
10446
|
+
static names() {
|
|
10447
|
+
return {
|
|
10448
|
+
instanceType: 'InstanceType',
|
|
10449
|
+
vswitchId: 'VswitchId',
|
|
10450
|
+
};
|
|
10451
|
+
}
|
|
10452
|
+
static types() {
|
|
10453
|
+
return {
|
|
10454
|
+
instanceType: 'string',
|
|
10455
|
+
vswitchId: 'string',
|
|
10456
|
+
};
|
|
10457
|
+
}
|
|
10458
|
+
}
|
|
10459
|
+
exports.ModifyScalingConfigurationShrinkRequestCustomPriorities = ModifyScalingConfigurationShrinkRequestCustomPriorities;
|
|
10218
10460
|
class ModifyScalingConfigurationShrinkRequestDataDisks extends $tea.Model {
|
|
10219
10461
|
constructor(map) {
|
|
10220
10462
|
super(map);
|
|
@@ -10525,6 +10767,38 @@ class Client extends openapi_client_1.default {
|
|
|
10525
10767
|
}
|
|
10526
10768
|
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
10527
10769
|
}
|
|
10770
|
+
async applyScalingGroupWithOptions(request, runtime) {
|
|
10771
|
+
tea_util_1.default.validateModel(request);
|
|
10772
|
+
let query = {};
|
|
10773
|
+
if (!tea_util_1.default.isUnset(request.content)) {
|
|
10774
|
+
query["Content"] = request.content;
|
|
10775
|
+
}
|
|
10776
|
+
if (!tea_util_1.default.isUnset(request.format)) {
|
|
10777
|
+
query["Format"] = request.format;
|
|
10778
|
+
}
|
|
10779
|
+
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
10780
|
+
query["RegionId"] = request.regionId;
|
|
10781
|
+
}
|
|
10782
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
10783
|
+
query: openapi_util_1.default.query(query),
|
|
10784
|
+
});
|
|
10785
|
+
let params = new $OpenApi.Params({
|
|
10786
|
+
action: "ApplyScalingGroup",
|
|
10787
|
+
version: "2022-02-22",
|
|
10788
|
+
protocol: "HTTPS",
|
|
10789
|
+
pathname: "/",
|
|
10790
|
+
method: "POST",
|
|
10791
|
+
authType: "AK",
|
|
10792
|
+
style: "RPC",
|
|
10793
|
+
reqBodyType: "formData",
|
|
10794
|
+
bodyType: "json",
|
|
10795
|
+
});
|
|
10796
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ApplyScalingGroupResponse({}));
|
|
10797
|
+
}
|
|
10798
|
+
async applyScalingGroup(request) {
|
|
10799
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
10800
|
+
return await this.applyScalingGroupWithOptions(request, runtime);
|
|
10801
|
+
}
|
|
10528
10802
|
/**
|
|
10529
10803
|
* Before you associate an ALB server group with a scaling group, make sure that the following requirements are met:
|
|
10530
10804
|
* * The scaling group resides in a virtual private cloud (VPC). The scaling group and the ALB server group must reside in the same VPC.
|
|
@@ -11476,6 +11750,9 @@ class Client extends openapi_client_1.default {
|
|
|
11476
11750
|
if (!tea_util_1.default.isUnset(request.creditSpecification)) {
|
|
11477
11751
|
query["CreditSpecification"] = request.creditSpecification;
|
|
11478
11752
|
}
|
|
11753
|
+
if (!tea_util_1.default.isUnset(request.customPriorities)) {
|
|
11754
|
+
query["CustomPriorities"] = request.customPriorities;
|
|
11755
|
+
}
|
|
11479
11756
|
if (!tea_util_1.default.isUnset(request.dataDisks)) {
|
|
11480
11757
|
query["DataDisks"] = request.dataDisks;
|
|
11481
11758
|
}
|
|
@@ -14478,6 +14755,9 @@ class Client extends openapi_client_1.default {
|
|
|
14478
14755
|
if (!tea_util_1.default.isUnset(request.creditSpecification)) {
|
|
14479
14756
|
query["CreditSpecification"] = request.creditSpecification;
|
|
14480
14757
|
}
|
|
14758
|
+
if (!tea_util_1.default.isUnset(request.customPriorities)) {
|
|
14759
|
+
query["CustomPriorities"] = request.customPriorities;
|
|
14760
|
+
}
|
|
14481
14761
|
if (!tea_util_1.default.isUnset(request.dataDisks)) {
|
|
14482
14762
|
query["DataDisks"] = request.dataDisks;
|
|
14483
14763
|
}
|