@alicloud/ess20220222 1.0.13 → 1.1.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/ess20220222",
3
- "version": "1.0.13",
3
+ "version": "1.1.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -8,6 +8,78 @@ import OpenApiUtil from '@alicloud/openapi-util';
8
8
  import EndpointUtil from '@alicloud/endpoint-util';
9
9
  import * as $tea from '@alicloud/tea-typescript';
10
10
 
11
+ export class ApplyScalingGroupRequest extends $tea.Model {
12
+ content?: string;
13
+ format?: string;
14
+ regionId?: string;
15
+ static names(): { [key: string]: string } {
16
+ return {
17
+ content: 'Content',
18
+ format: 'Format',
19
+ regionId: 'RegionId',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ content: 'string',
26
+ format: 'string',
27
+ regionId: 'string',
28
+ };
29
+ }
30
+
31
+ constructor(map?: { [key: string]: any }) {
32
+ super(map);
33
+ }
34
+ }
35
+
36
+ export class ApplyScalingGroupResponseBody extends $tea.Model {
37
+ requestId?: string;
38
+ scalingGroupId?: string;
39
+ static names(): { [key: string]: string } {
40
+ return {
41
+ requestId: 'RequestId',
42
+ scalingGroupId: 'ScalingGroupId',
43
+ };
44
+ }
45
+
46
+ static types(): { [key: string]: any } {
47
+ return {
48
+ requestId: 'string',
49
+ scalingGroupId: 'string',
50
+ };
51
+ }
52
+
53
+ constructor(map?: { [key: string]: any }) {
54
+ super(map);
55
+ }
56
+ }
57
+
58
+ export class ApplyScalingGroupResponse extends $tea.Model {
59
+ headers: { [key: string]: string };
60
+ statusCode: number;
61
+ body: ApplyScalingGroupResponseBody;
62
+ static names(): { [key: string]: string } {
63
+ return {
64
+ headers: 'headers',
65
+ statusCode: 'statusCode',
66
+ body: 'body',
67
+ };
68
+ }
69
+
70
+ static types(): { [key: string]: any } {
71
+ return {
72
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
73
+ statusCode: 'number',
74
+ body: ApplyScalingGroupResponseBody,
75
+ };
76
+ }
77
+
78
+ constructor(map?: { [key: string]: any }) {
79
+ super(map);
80
+ }
81
+ }
82
+
11
83
  export class AttachAlbServerGroupsRequest extends $tea.Model {
12
84
  albServerGroups?: AttachAlbServerGroupsRequestAlbServerGroups[];
13
85
  clientToken?: string;
@@ -8404,6 +8476,20 @@ export class CreateEciScalingConfigurationRequestContainers extends $tea.Model {
8404
8476
  gpu?: number;
8405
8477
  image?: string;
8406
8478
  imagePullPolicy?: string;
8479
+ lifecyclePostStartHandlerExecs?: string[];
8480
+ lifecyclePostStartHandlerHttpGetHost?: string;
8481
+ lifecyclePostStartHandlerHttpGetPath?: string;
8482
+ lifecyclePostStartHandlerHttpGetPort?: number;
8483
+ lifecyclePostStartHandlerHttpGetScheme?: string;
8484
+ lifecyclePostStartHandlerTcpSocketHost?: string;
8485
+ lifecyclePostStartHandlerTcpSocketPort?: number;
8486
+ lifecyclePreStopHandlerExecs?: string[];
8487
+ lifecyclePreStopHandlerHttpGetHost?: string;
8488
+ lifecyclePreStopHandlerHttpGetPath?: string;
8489
+ lifecyclePreStopHandlerHttpGetPort?: number;
8490
+ lifecyclePreStopHandlerHttpGetScheme?: string;
8491
+ lifecyclePreStopHandlerTcpSocketHost?: string;
8492
+ lifecyclePreStopHandlerTcpSocketPort?: number;
8407
8493
  memory?: number;
8408
8494
  name?: string;
8409
8495
  ports?: CreateEciScalingConfigurationRequestContainersPorts[];
@@ -8424,6 +8510,20 @@ export class CreateEciScalingConfigurationRequestContainers extends $tea.Model {
8424
8510
  gpu: 'Gpu',
8425
8511
  image: 'Image',
8426
8512
  imagePullPolicy: 'ImagePullPolicy',
8513
+ lifecyclePostStartHandlerExecs: 'LifecyclePostStartHandlerExecs',
8514
+ lifecyclePostStartHandlerHttpGetHost: 'LifecyclePostStartHandlerHttpGetHost',
8515
+ lifecyclePostStartHandlerHttpGetPath: 'LifecyclePostStartHandlerHttpGetPath',
8516
+ lifecyclePostStartHandlerHttpGetPort: 'LifecyclePostStartHandlerHttpGetPort',
8517
+ lifecyclePostStartHandlerHttpGetScheme: 'LifecyclePostStartHandlerHttpGetScheme',
8518
+ lifecyclePostStartHandlerTcpSocketHost: 'LifecyclePostStartHandlerTcpSocketHost',
8519
+ lifecyclePostStartHandlerTcpSocketPort: 'LifecyclePostStartHandlerTcpSocketPort',
8520
+ lifecyclePreStopHandlerExecs: 'LifecyclePreStopHandlerExecs',
8521
+ lifecyclePreStopHandlerHttpGetHost: 'LifecyclePreStopHandlerHttpGetHost',
8522
+ lifecyclePreStopHandlerHttpGetPath: 'LifecyclePreStopHandlerHttpGetPath',
8523
+ lifecyclePreStopHandlerHttpGetPort: 'LifecyclePreStopHandlerHttpGetPort',
8524
+ lifecyclePreStopHandlerHttpGetScheme: 'LifecyclePreStopHandlerHttpGetScheme',
8525
+ lifecyclePreStopHandlerTcpSocketHost: 'LifecyclePreStopHandlerTcpSocketHost',
8526
+ lifecyclePreStopHandlerTcpSocketPort: 'LifecyclePreStopHandlerTcpSocketPort',
8427
8527
  memory: 'Memory',
8428
8528
  name: 'Name',
8429
8529
  ports: 'Ports',
@@ -8447,6 +8547,20 @@ export class CreateEciScalingConfigurationRequestContainers extends $tea.Model {
8447
8547
  gpu: 'number',
8448
8548
  image: 'string',
8449
8549
  imagePullPolicy: 'string',
8550
+ lifecyclePostStartHandlerExecs: { 'type': 'array', 'itemType': 'string' },
8551
+ lifecyclePostStartHandlerHttpGetHost: 'string',
8552
+ lifecyclePostStartHandlerHttpGetPath: 'string',
8553
+ lifecyclePostStartHandlerHttpGetPort: 'number',
8554
+ lifecyclePostStartHandlerHttpGetScheme: 'string',
8555
+ lifecyclePostStartHandlerTcpSocketHost: 'string',
8556
+ lifecyclePostStartHandlerTcpSocketPort: 'number',
8557
+ lifecyclePreStopHandlerExecs: { 'type': 'array', 'itemType': 'string' },
8558
+ lifecyclePreStopHandlerHttpGetHost: 'string',
8559
+ lifecyclePreStopHandlerHttpGetPath: 'string',
8560
+ lifecyclePreStopHandlerHttpGetPort: 'number',
8561
+ lifecyclePreStopHandlerHttpGetScheme: 'string',
8562
+ lifecyclePreStopHandlerTcpSocketHost: 'string',
8563
+ lifecyclePreStopHandlerTcpSocketPort: 'number',
8450
8564
  memory: 'number',
8451
8565
  name: 'string',
8452
8566
  ports: { 'type': 'array', 'itemType': CreateEciScalingConfigurationRequestContainersPorts },
@@ -9888,6 +10002,20 @@ export class DescribeEciScalingConfigurationsResponseBodyScalingConfigurationsCo
9888
10002
  gpu?: number;
9889
10003
  image?: string;
9890
10004
  imagePullPolicy?: string;
10005
+ lifecyclePostStartHandlerExecs?: string[];
10006
+ lifecyclePostStartHandlerHttpGetHost?: string;
10007
+ lifecyclePostStartHandlerHttpGetPath?: string;
10008
+ lifecyclePostStartHandlerHttpGetPort?: number;
10009
+ lifecyclePostStartHandlerHttpGetScheme?: string;
10010
+ lifecyclePostStartHandlerTcpSocketHost?: string;
10011
+ lifecyclePostStartHandlerTcpSocketPort?: number;
10012
+ lifecyclePreStopHandlerExecs?: string[];
10013
+ lifecyclePreStopHandlerHttpGetHost?: string;
10014
+ lifecyclePreStopHandlerHttpGetPath?: string;
10015
+ lifecyclePreStopHandlerHttpGetPort?: number;
10016
+ lifecyclePreStopHandlerHttpGetScheme?: string;
10017
+ lifecyclePreStopHandlerTcpSocketHost?: string;
10018
+ lifecyclePreStopHandlerTcpSocketPort?: number;
9891
10019
  livenessProbeExecCommands?: string[];
9892
10020
  livenessProbeFailureThreshold?: number;
9893
10021
  livenessProbeHttpGetPath?: string;
@@ -9928,6 +10056,20 @@ export class DescribeEciScalingConfigurationsResponseBodyScalingConfigurationsCo
9928
10056
  gpu: 'Gpu',
9929
10057
  image: 'Image',
9930
10058
  imagePullPolicy: 'ImagePullPolicy',
10059
+ lifecyclePostStartHandlerExecs: 'LifecyclePostStartHandlerExecs',
10060
+ lifecyclePostStartHandlerHttpGetHost: 'LifecyclePostStartHandlerHttpGetHost',
10061
+ lifecyclePostStartHandlerHttpGetPath: 'LifecyclePostStartHandlerHttpGetPath',
10062
+ lifecyclePostStartHandlerHttpGetPort: 'LifecyclePostStartHandlerHttpGetPort',
10063
+ lifecyclePostStartHandlerHttpGetScheme: 'LifecyclePostStartHandlerHttpGetScheme',
10064
+ lifecyclePostStartHandlerTcpSocketHost: 'LifecyclePostStartHandlerTcpSocketHost',
10065
+ lifecyclePostStartHandlerTcpSocketPort: 'LifecyclePostStartHandlerTcpSocketPort',
10066
+ lifecyclePreStopHandlerExecs: 'LifecyclePreStopHandlerExecs',
10067
+ lifecyclePreStopHandlerHttpGetHost: 'LifecyclePreStopHandlerHttpGetHost',
10068
+ lifecyclePreStopHandlerHttpGetPath: 'LifecyclePreStopHandlerHttpGetPath',
10069
+ lifecyclePreStopHandlerHttpGetPort: 'LifecyclePreStopHandlerHttpGetPort',
10070
+ lifecyclePreStopHandlerHttpGetScheme: 'LifecyclePreStopHandlerHttpGetScheme',
10071
+ lifecyclePreStopHandlerTcpSocketHost: 'LifecyclePreStopHandlerTcpSocketHost',
10072
+ lifecyclePreStopHandlerTcpSocketPort: 'LifecyclePreStopHandlerTcpSocketPort',
9931
10073
  livenessProbeExecCommands: 'LivenessProbeExecCommands',
9932
10074
  livenessProbeFailureThreshold: 'LivenessProbeFailureThreshold',
9933
10075
  livenessProbeHttpGetPath: 'LivenessProbeHttpGetPath',
@@ -9971,6 +10113,20 @@ export class DescribeEciScalingConfigurationsResponseBodyScalingConfigurationsCo
9971
10113
  gpu: 'number',
9972
10114
  image: 'string',
9973
10115
  imagePullPolicy: 'string',
10116
+ lifecyclePostStartHandlerExecs: { 'type': 'array', 'itemType': 'string' },
10117
+ lifecyclePostStartHandlerHttpGetHost: 'string',
10118
+ lifecyclePostStartHandlerHttpGetPath: 'string',
10119
+ lifecyclePostStartHandlerHttpGetPort: 'number',
10120
+ lifecyclePostStartHandlerHttpGetScheme: 'string',
10121
+ lifecyclePostStartHandlerTcpSocketHost: 'string',
10122
+ lifecyclePostStartHandlerTcpSocketPort: 'number',
10123
+ lifecyclePreStopHandlerExecs: { 'type': 'array', 'itemType': 'string' },
10124
+ lifecyclePreStopHandlerHttpGetHost: 'string',
10125
+ lifecyclePreStopHandlerHttpGetPath: 'string',
10126
+ lifecyclePreStopHandlerHttpGetPort: 'number',
10127
+ lifecyclePreStopHandlerHttpGetScheme: 'string',
10128
+ lifecyclePreStopHandlerTcpSocketHost: 'string',
10129
+ lifecyclePreStopHandlerTcpSocketPort: 'number',
9974
10130
  livenessProbeExecCommands: { 'type': 'array', 'itemType': 'string' },
9975
10131
  livenessProbeFailureThreshold: 'number',
9976
10132
  livenessProbeHttpGetPath: 'string',
@@ -12433,6 +12589,20 @@ export class ModifyEciScalingConfigurationRequestContainers extends $tea.Model {
12433
12589
  gpu?: number;
12434
12590
  image?: string;
12435
12591
  imagePullPolicy?: string;
12592
+ lifecyclePostStartHandlerExecs?: string[];
12593
+ lifecyclePostStartHandlerHttpGetHost?: string;
12594
+ lifecyclePostStartHandlerHttpGetPath?: string;
12595
+ lifecyclePostStartHandlerHttpGetPort?: number;
12596
+ lifecyclePostStartHandlerHttpGetScheme?: string;
12597
+ lifecyclePostStartHandlerTcpSocketHost?: string;
12598
+ lifecyclePostStartHandlerTcpSocketPort?: number;
12599
+ lifecyclePreStopHandlerExecs?: string[];
12600
+ lifecyclePreStopHandlerHttpGetHost?: string;
12601
+ lifecyclePreStopHandlerHttpGetPath?: string;
12602
+ lifecyclePreStopHandlerHttpGetPort?: number;
12603
+ lifecyclePreStopHandlerHttpGetScheme?: string;
12604
+ lifecyclePreStopHandlerTcpSocketHost?: string;
12605
+ lifecyclePreStopHandlerTcpSocketPort?: number;
12436
12606
  memory?: number;
12437
12607
  name?: string;
12438
12608
  ports?: ModifyEciScalingConfigurationRequestContainersPorts[];
@@ -12453,6 +12623,20 @@ export class ModifyEciScalingConfigurationRequestContainers extends $tea.Model {
12453
12623
  gpu: 'Gpu',
12454
12624
  image: 'Image',
12455
12625
  imagePullPolicy: 'ImagePullPolicy',
12626
+ lifecyclePostStartHandlerExecs: 'LifecyclePostStartHandlerExecs',
12627
+ lifecyclePostStartHandlerHttpGetHost: 'LifecyclePostStartHandlerHttpGetHost',
12628
+ lifecyclePostStartHandlerHttpGetPath: 'LifecyclePostStartHandlerHttpGetPath',
12629
+ lifecyclePostStartHandlerHttpGetPort: 'LifecyclePostStartHandlerHttpGetPort',
12630
+ lifecyclePostStartHandlerHttpGetScheme: 'LifecyclePostStartHandlerHttpGetScheme',
12631
+ lifecyclePostStartHandlerTcpSocketHost: 'LifecyclePostStartHandlerTcpSocketHost',
12632
+ lifecyclePostStartHandlerTcpSocketPort: 'LifecyclePostStartHandlerTcpSocketPort',
12633
+ lifecyclePreStopHandlerExecs: 'LifecyclePreStopHandlerExecs',
12634
+ lifecyclePreStopHandlerHttpGetHost: 'LifecyclePreStopHandlerHttpGetHost',
12635
+ lifecyclePreStopHandlerHttpGetPath: 'LifecyclePreStopHandlerHttpGetPath',
12636
+ lifecyclePreStopHandlerHttpGetPort: 'LifecyclePreStopHandlerHttpGetPort',
12637
+ lifecyclePreStopHandlerHttpGetScheme: 'LifecyclePreStopHandlerHttpGetScheme',
12638
+ lifecyclePreStopHandlerTcpSocketHost: 'LifecyclePreStopHandlerTcpSocketHost',
12639
+ lifecyclePreStopHandlerTcpSocketPort: 'LifecyclePreStopHandlerTcpSocketPort',
12456
12640
  memory: 'Memory',
12457
12641
  name: 'Name',
12458
12642
  ports: 'Ports',
@@ -12476,6 +12660,20 @@ export class ModifyEciScalingConfigurationRequestContainers extends $tea.Model {
12476
12660
  gpu: 'number',
12477
12661
  image: 'string',
12478
12662
  imagePullPolicy: 'string',
12663
+ lifecyclePostStartHandlerExecs: { 'type': 'array', 'itemType': 'string' },
12664
+ lifecyclePostStartHandlerHttpGetHost: 'string',
12665
+ lifecyclePostStartHandlerHttpGetPath: 'string',
12666
+ lifecyclePostStartHandlerHttpGetPort: 'number',
12667
+ lifecyclePostStartHandlerHttpGetScheme: 'string',
12668
+ lifecyclePostStartHandlerTcpSocketHost: 'string',
12669
+ lifecyclePostStartHandlerTcpSocketPort: 'number',
12670
+ lifecyclePreStopHandlerExecs: { 'type': 'array', 'itemType': 'string' },
12671
+ lifecyclePreStopHandlerHttpGetHost: 'string',
12672
+ lifecyclePreStopHandlerHttpGetPath: 'string',
12673
+ lifecyclePreStopHandlerHttpGetPort: 'number',
12674
+ lifecyclePreStopHandlerHttpGetScheme: 'string',
12675
+ lifecyclePreStopHandlerTcpSocketHost: 'string',
12676
+ lifecyclePreStopHandlerTcpSocketPort: 'number',
12479
12677
  memory: 'number',
12480
12678
  name: 'string',
12481
12679
  ports: { 'type': 'array', 'itemType': ModifyEciScalingConfigurationRequestContainersPorts },
@@ -13693,6 +13891,43 @@ export default class Client extends OpenApi {
13693
13891
  return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
13694
13892
  }
13695
13893
 
13894
+ async applyScalingGroupWithOptions(request: ApplyScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<ApplyScalingGroupResponse> {
13895
+ Util.validateModel(request);
13896
+ let query = { };
13897
+ if (!Util.isUnset(request.content)) {
13898
+ query["Content"] = request.content;
13899
+ }
13900
+
13901
+ if (!Util.isUnset(request.format)) {
13902
+ query["Format"] = request.format;
13903
+ }
13904
+
13905
+ if (!Util.isUnset(request.regionId)) {
13906
+ query["RegionId"] = request.regionId;
13907
+ }
13908
+
13909
+ let req = new $OpenApi.OpenApiRequest({
13910
+ query: OpenApiUtil.query(query),
13911
+ });
13912
+ let params = new $OpenApi.Params({
13913
+ action: "ApplyScalingGroup",
13914
+ version: "2022-02-22",
13915
+ protocol: "HTTPS",
13916
+ pathname: "/",
13917
+ method: "POST",
13918
+ authType: "AK",
13919
+ style: "RPC",
13920
+ reqBodyType: "formData",
13921
+ bodyType: "json",
13922
+ });
13923
+ return $tea.cast<ApplyScalingGroupResponse>(await this.callApi(params, req, runtime), new ApplyScalingGroupResponse({}));
13924
+ }
13925
+
13926
+ async applyScalingGroup(request: ApplyScalingGroupRequest): Promise<ApplyScalingGroupResponse> {
13927
+ let runtime = new $Util.RuntimeOptions({ });
13928
+ return await this.applyScalingGroupWithOptions(request, runtime);
13929
+ }
13930
+
13696
13931
  /**
13697
13932
  * Before you associate an ALB server group with a scaling group, make sure that the following requirements are met:
13698
13933
  * * The scaling group resides in a virtual private cloud (VPC). The scaling group and the ALB server group must reside in the same VPC.