@alicloud/ess20220222 1.0.12 → 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/dist/client.d.ts CHANGED
@@ -4,6 +4,49 @@
4
4
  import * as $Util from '@alicloud/tea-util';
5
5
  import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
6
6
  import * as $tea from '@alicloud/tea-typescript';
7
+ export declare class ApplyScalingGroupRequest extends $tea.Model {
8
+ content?: string;
9
+ format?: string;
10
+ regionId?: string;
11
+ static names(): {
12
+ [key: string]: string;
13
+ };
14
+ static types(): {
15
+ [key: string]: any;
16
+ };
17
+ constructor(map?: {
18
+ [key: string]: any;
19
+ });
20
+ }
21
+ export declare class ApplyScalingGroupResponseBody extends $tea.Model {
22
+ requestId?: string;
23
+ scalingGroupId?: string;
24
+ static names(): {
25
+ [key: string]: string;
26
+ };
27
+ static types(): {
28
+ [key: string]: any;
29
+ };
30
+ constructor(map?: {
31
+ [key: string]: any;
32
+ });
33
+ }
34
+ export declare class ApplyScalingGroupResponse extends $tea.Model {
35
+ headers: {
36
+ [key: string]: string;
37
+ };
38
+ statusCode: number;
39
+ body: ApplyScalingGroupResponseBody;
40
+ static names(): {
41
+ [key: string]: string;
42
+ };
43
+ static types(): {
44
+ [key: string]: any;
45
+ };
46
+ constructor(map?: {
47
+ [key: string]: any;
48
+ });
49
+ }
7
50
  export declare class AttachAlbServerGroupsRequest extends $tea.Model {
8
51
  albServerGroups?: AttachAlbServerGroupsRequestAlbServerGroups[];
9
52
  clientToken?: string;
@@ -4413,6 +4456,20 @@ export declare class CreateEciScalingConfigurationRequestContainers extends $tea
4413
4456
  gpu?: number;
4414
4457
  image?: string;
4415
4458
  imagePullPolicy?: string;
4459
+ lifecyclePostStartHandlerExecs?: string[];
4460
+ lifecyclePostStartHandlerHttpGetHost?: string;
4461
+ lifecyclePostStartHandlerHttpGetPath?: string;
4462
+ lifecyclePostStartHandlerHttpGetPort?: number;
4463
+ lifecyclePostStartHandlerHttpGetScheme?: string;
4464
+ lifecyclePostStartHandlerTcpSocketHost?: string;
4465
+ lifecyclePostStartHandlerTcpSocketPort?: number;
4466
+ lifecyclePreStopHandlerExecs?: string[];
4467
+ lifecyclePreStopHandlerHttpGetHost?: string;
4468
+ lifecyclePreStopHandlerHttpGetPath?: string;
4469
+ lifecyclePreStopHandlerHttpGetPort?: number;
4470
+ lifecyclePreStopHandlerHttpGetScheme?: string;
4471
+ lifecyclePreStopHandlerTcpSocketHost?: string;
4472
+ lifecyclePreStopHandlerTcpSocketPort?: number;
4416
4473
  memory?: number;
4417
4474
  name?: string;
4418
4475
  ports?: CreateEciScalingConfigurationRequestContainersPorts[];
@@ -5189,6 +5246,20 @@ export declare class DescribeEciScalingConfigurationsResponseBodyScalingConfigur
5189
5246
  gpu?: number;
5190
5247
  image?: string;
5191
5248
  imagePullPolicy?: string;
5249
+ lifecyclePostStartHandlerExecs?: string[];
5250
+ lifecyclePostStartHandlerHttpGetHost?: string;
5251
+ lifecyclePostStartHandlerHttpGetPath?: string;
5252
+ lifecyclePostStartHandlerHttpGetPort?: number;
5253
+ lifecyclePostStartHandlerHttpGetScheme?: string;
5254
+ lifecyclePostStartHandlerTcpSocketHost?: string;
5255
+ lifecyclePostStartHandlerTcpSocketPort?: number;
5256
+ lifecyclePreStopHandlerExecs?: string[];
5257
+ lifecyclePreStopHandlerHttpGetHost?: string;
5258
+ lifecyclePreStopHandlerHttpGetPath?: string;
5259
+ lifecyclePreStopHandlerHttpGetPort?: number;
5260
+ lifecyclePreStopHandlerHttpGetScheme?: string;
5261
+ lifecyclePreStopHandlerTcpSocketHost?: string;
5262
+ lifecyclePreStopHandlerTcpSocketPort?: number;
5192
5263
  livenessProbeExecCommands?: string[];
5193
5264
  livenessProbeFailureThreshold?: number;
5194
5265
  livenessProbeHttpGetPath?: string;
@@ -6402,6 +6473,20 @@ export declare class ModifyEciScalingConfigurationRequestContainers extends $tea
6402
6473
  gpu?: number;
6403
6474
  image?: string;
6404
6475
  imagePullPolicy?: string;
6476
+ lifecyclePostStartHandlerExecs?: string[];
6477
+ lifecyclePostStartHandlerHttpGetHost?: string;
6478
+ lifecyclePostStartHandlerHttpGetPath?: string;
6479
+ lifecyclePostStartHandlerHttpGetPort?: number;
6480
+ lifecyclePostStartHandlerHttpGetScheme?: string;
6481
+ lifecyclePostStartHandlerTcpSocketHost?: string;
6482
+ lifecyclePostStartHandlerTcpSocketPort?: number;
6483
+ lifecyclePreStopHandlerExecs?: string[];
6484
+ lifecyclePreStopHandlerHttpGetHost?: string;
6485
+ lifecyclePreStopHandlerHttpGetPath?: string;
6486
+ lifecyclePreStopHandlerHttpGetPort?: number;
6487
+ lifecyclePreStopHandlerHttpGetScheme?: string;
6488
+ lifecyclePreStopHandlerTcpSocketHost?: string;
6489
+ lifecyclePreStopHandlerTcpSocketPort?: number;
6405
6490
  memory?: number;
6406
6491
  name?: string;
6407
6492
  ports?: ModifyEciScalingConfigurationRequestContainersPorts[];
@@ -7029,6 +7114,8 @@ export default class Client extends OpenApi {
7029
7114
  getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
7030
7115
  [key: string]: string;
7031
7116
  }, endpoint: string): string;
7117
+ applyScalingGroupWithOptions(request: ApplyScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<ApplyScalingGroupResponse>;
7118
+ applyScalingGroup(request: ApplyScalingGroupRequest): Promise<ApplyScalingGroupResponse>;
7032
7119
  /**
7033
7120
  * Before you associate an ALB server group with a scaling group, make sure that the following requirements are met:
7034
7121
  * * The scaling group resides in a virtual private cloud (VPC). The scaling group and the ALB server group must reside in the same VPC.
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);
@@ -6475,6 +6533,20 @@ class CreateEciScalingConfigurationRequestContainers extends $tea.Model {
6475
6533
  gpu: 'Gpu',
6476
6534
  image: 'Image',
6477
6535
  imagePullPolicy: 'ImagePullPolicy',
6536
+ lifecyclePostStartHandlerExecs: 'LifecyclePostStartHandlerExecs',
6537
+ lifecyclePostStartHandlerHttpGetHost: 'LifecyclePostStartHandlerHttpGetHost',
6538
+ lifecyclePostStartHandlerHttpGetPath: 'LifecyclePostStartHandlerHttpGetPath',
6539
+ lifecyclePostStartHandlerHttpGetPort: 'LifecyclePostStartHandlerHttpGetPort',
6540
+ lifecyclePostStartHandlerHttpGetScheme: 'LifecyclePostStartHandlerHttpGetScheme',
6541
+ lifecyclePostStartHandlerTcpSocketHost: 'LifecyclePostStartHandlerTcpSocketHost',
6542
+ lifecyclePostStartHandlerTcpSocketPort: 'LifecyclePostStartHandlerTcpSocketPort',
6543
+ lifecyclePreStopHandlerExecs: 'LifecyclePreStopHandlerExecs',
6544
+ lifecyclePreStopHandlerHttpGetHost: 'LifecyclePreStopHandlerHttpGetHost',
6545
+ lifecyclePreStopHandlerHttpGetPath: 'LifecyclePreStopHandlerHttpGetPath',
6546
+ lifecyclePreStopHandlerHttpGetPort: 'LifecyclePreStopHandlerHttpGetPort',
6547
+ lifecyclePreStopHandlerHttpGetScheme: 'LifecyclePreStopHandlerHttpGetScheme',
6548
+ lifecyclePreStopHandlerTcpSocketHost: 'LifecyclePreStopHandlerTcpSocketHost',
6549
+ lifecyclePreStopHandlerTcpSocketPort: 'LifecyclePreStopHandlerTcpSocketPort',
6478
6550
  memory: 'Memory',
6479
6551
  name: 'Name',
6480
6552
  ports: 'Ports',
@@ -6497,6 +6569,20 @@ class CreateEciScalingConfigurationRequestContainers extends $tea.Model {
6497
6569
  gpu: 'number',
6498
6570
  image: 'string',
6499
6571
  imagePullPolicy: 'string',
6572
+ lifecyclePostStartHandlerExecs: { 'type': 'array', 'itemType': 'string' },
6573
+ lifecyclePostStartHandlerHttpGetHost: 'string',
6574
+ lifecyclePostStartHandlerHttpGetPath: 'string',
6575
+ lifecyclePostStartHandlerHttpGetPort: 'number',
6576
+ lifecyclePostStartHandlerHttpGetScheme: 'string',
6577
+ lifecyclePostStartHandlerTcpSocketHost: 'string',
6578
+ lifecyclePostStartHandlerTcpSocketPort: 'number',
6579
+ lifecyclePreStopHandlerExecs: { 'type': 'array', 'itemType': 'string' },
6580
+ lifecyclePreStopHandlerHttpGetHost: 'string',
6581
+ lifecyclePreStopHandlerHttpGetPath: 'string',
6582
+ lifecyclePreStopHandlerHttpGetPort: 'number',
6583
+ lifecyclePreStopHandlerHttpGetScheme: 'string',
6584
+ lifecyclePreStopHandlerTcpSocketHost: 'string',
6585
+ lifecyclePreStopHandlerTcpSocketPort: 'number',
6500
6586
  memory: 'number',
6501
6587
  name: 'string',
6502
6588
  ports: { 'type': 'array', 'itemType': CreateEciScalingConfigurationRequestContainersPorts },
@@ -7630,6 +7716,20 @@ class DescribeEciScalingConfigurationsResponseBodyScalingConfigurationsContainer
7630
7716
  gpu: 'Gpu',
7631
7717
  image: 'Image',
7632
7718
  imagePullPolicy: 'ImagePullPolicy',
7719
+ lifecyclePostStartHandlerExecs: 'LifecyclePostStartHandlerExecs',
7720
+ lifecyclePostStartHandlerHttpGetHost: 'LifecyclePostStartHandlerHttpGetHost',
7721
+ lifecyclePostStartHandlerHttpGetPath: 'LifecyclePostStartHandlerHttpGetPath',
7722
+ lifecyclePostStartHandlerHttpGetPort: 'LifecyclePostStartHandlerHttpGetPort',
7723
+ lifecyclePostStartHandlerHttpGetScheme: 'LifecyclePostStartHandlerHttpGetScheme',
7724
+ lifecyclePostStartHandlerTcpSocketHost: 'LifecyclePostStartHandlerTcpSocketHost',
7725
+ lifecyclePostStartHandlerTcpSocketPort: 'LifecyclePostStartHandlerTcpSocketPort',
7726
+ lifecyclePreStopHandlerExecs: 'LifecyclePreStopHandlerExecs',
7727
+ lifecyclePreStopHandlerHttpGetHost: 'LifecyclePreStopHandlerHttpGetHost',
7728
+ lifecyclePreStopHandlerHttpGetPath: 'LifecyclePreStopHandlerHttpGetPath',
7729
+ lifecyclePreStopHandlerHttpGetPort: 'LifecyclePreStopHandlerHttpGetPort',
7730
+ lifecyclePreStopHandlerHttpGetScheme: 'LifecyclePreStopHandlerHttpGetScheme',
7731
+ lifecyclePreStopHandlerTcpSocketHost: 'LifecyclePreStopHandlerTcpSocketHost',
7732
+ lifecyclePreStopHandlerTcpSocketPort: 'LifecyclePreStopHandlerTcpSocketPort',
7633
7733
  livenessProbeExecCommands: 'LivenessProbeExecCommands',
7634
7734
  livenessProbeFailureThreshold: 'LivenessProbeFailureThreshold',
7635
7735
  livenessProbeHttpGetPath: 'LivenessProbeHttpGetPath',
@@ -7672,6 +7772,20 @@ class DescribeEciScalingConfigurationsResponseBodyScalingConfigurationsContainer
7672
7772
  gpu: 'number',
7673
7773
  image: 'string',
7674
7774
  imagePullPolicy: 'string',
7775
+ lifecyclePostStartHandlerExecs: { 'type': 'array', 'itemType': 'string' },
7776
+ lifecyclePostStartHandlerHttpGetHost: 'string',
7777
+ lifecyclePostStartHandlerHttpGetPath: 'string',
7778
+ lifecyclePostStartHandlerHttpGetPort: 'number',
7779
+ lifecyclePostStartHandlerHttpGetScheme: 'string',
7780
+ lifecyclePostStartHandlerTcpSocketHost: 'string',
7781
+ lifecyclePostStartHandlerTcpSocketPort: 'number',
7782
+ lifecyclePreStopHandlerExecs: { 'type': 'array', 'itemType': 'string' },
7783
+ lifecyclePreStopHandlerHttpGetHost: 'string',
7784
+ lifecyclePreStopHandlerHttpGetPath: 'string',
7785
+ lifecyclePreStopHandlerHttpGetPort: 'number',
7786
+ lifecyclePreStopHandlerHttpGetScheme: 'string',
7787
+ lifecyclePreStopHandlerTcpSocketHost: 'string',
7788
+ lifecyclePreStopHandlerTcpSocketPort: 'number',
7675
7789
  livenessProbeExecCommands: { 'type': 'array', 'itemType': 'string' },
7676
7790
  livenessProbeFailureThreshold: 'number',
7677
7791
  livenessProbeHttpGetPath: 'string',
@@ -9541,6 +9655,20 @@ class ModifyEciScalingConfigurationRequestContainers extends $tea.Model {
9541
9655
  gpu: 'Gpu',
9542
9656
  image: 'Image',
9543
9657
  imagePullPolicy: 'ImagePullPolicy',
9658
+ lifecyclePostStartHandlerExecs: 'LifecyclePostStartHandlerExecs',
9659
+ lifecyclePostStartHandlerHttpGetHost: 'LifecyclePostStartHandlerHttpGetHost',
9660
+ lifecyclePostStartHandlerHttpGetPath: 'LifecyclePostStartHandlerHttpGetPath',
9661
+ lifecyclePostStartHandlerHttpGetPort: 'LifecyclePostStartHandlerHttpGetPort',
9662
+ lifecyclePostStartHandlerHttpGetScheme: 'LifecyclePostStartHandlerHttpGetScheme',
9663
+ lifecyclePostStartHandlerTcpSocketHost: 'LifecyclePostStartHandlerTcpSocketHost',
9664
+ lifecyclePostStartHandlerTcpSocketPort: 'LifecyclePostStartHandlerTcpSocketPort',
9665
+ lifecyclePreStopHandlerExecs: 'LifecyclePreStopHandlerExecs',
9666
+ lifecyclePreStopHandlerHttpGetHost: 'LifecyclePreStopHandlerHttpGetHost',
9667
+ lifecyclePreStopHandlerHttpGetPath: 'LifecyclePreStopHandlerHttpGetPath',
9668
+ lifecyclePreStopHandlerHttpGetPort: 'LifecyclePreStopHandlerHttpGetPort',
9669
+ lifecyclePreStopHandlerHttpGetScheme: 'LifecyclePreStopHandlerHttpGetScheme',
9670
+ lifecyclePreStopHandlerTcpSocketHost: 'LifecyclePreStopHandlerTcpSocketHost',
9671
+ lifecyclePreStopHandlerTcpSocketPort: 'LifecyclePreStopHandlerTcpSocketPort',
9544
9672
  memory: 'Memory',
9545
9673
  name: 'Name',
9546
9674
  ports: 'Ports',
@@ -9563,6 +9691,20 @@ class ModifyEciScalingConfigurationRequestContainers extends $tea.Model {
9563
9691
  gpu: 'number',
9564
9692
  image: 'string',
9565
9693
  imagePullPolicy: 'string',
9694
+ lifecyclePostStartHandlerExecs: { 'type': 'array', 'itemType': 'string' },
9695
+ lifecyclePostStartHandlerHttpGetHost: 'string',
9696
+ lifecyclePostStartHandlerHttpGetPath: 'string',
9697
+ lifecyclePostStartHandlerHttpGetPort: 'number',
9698
+ lifecyclePostStartHandlerHttpGetScheme: 'string',
9699
+ lifecyclePostStartHandlerTcpSocketHost: 'string',
9700
+ lifecyclePostStartHandlerTcpSocketPort: 'number',
9701
+ lifecyclePreStopHandlerExecs: { 'type': 'array', 'itemType': 'string' },
9702
+ lifecyclePreStopHandlerHttpGetHost: 'string',
9703
+ lifecyclePreStopHandlerHttpGetPath: 'string',
9704
+ lifecyclePreStopHandlerHttpGetPort: 'number',
9705
+ lifecyclePreStopHandlerHttpGetScheme: 'string',
9706
+ lifecyclePreStopHandlerTcpSocketHost: 'string',
9707
+ lifecyclePreStopHandlerTcpSocketPort: 'number',
9566
9708
  memory: 'number',
9567
9709
  name: 'string',
9568
9710
  ports: { 'type': 'array', 'itemType': ModifyEciScalingConfigurationRequestContainersPorts },
@@ -10525,6 +10667,38 @@ class Client extends openapi_client_1.default {
10525
10667
  }
10526
10668
  return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
10527
10669
  }
10670
+ async applyScalingGroupWithOptions(request, runtime) {
10671
+ tea_util_1.default.validateModel(request);
10672
+ let query = {};
10673
+ if (!tea_util_1.default.isUnset(request.content)) {
10674
+ query["Content"] = request.content;
10675
+ }
10676
+ if (!tea_util_1.default.isUnset(request.format)) {
10677
+ query["Format"] = request.format;
10678
+ }
10679
+ if (!tea_util_1.default.isUnset(request.regionId)) {
10680
+ query["RegionId"] = request.regionId;
10681
+ }
10682
+ let req = new $OpenApi.OpenApiRequest({
10683
+ query: openapi_util_1.default.query(query),
10684
+ });
10685
+ let params = new $OpenApi.Params({
10686
+ action: "ApplyScalingGroup",
10687
+ version: "2022-02-22",
10688
+ protocol: "HTTPS",
10689
+ pathname: "/",
10690
+ method: "POST",
10691
+ authType: "AK",
10692
+ style: "RPC",
10693
+ reqBodyType: "formData",
10694
+ bodyType: "json",
10695
+ });
10696
+ return $tea.cast(await this.callApi(params, req, runtime), new ApplyScalingGroupResponse({}));
10697
+ }
10698
+ async applyScalingGroup(request) {
10699
+ let runtime = new $Util.RuntimeOptions({});
10700
+ return await this.applyScalingGroupWithOptions(request, runtime);
10701
+ }
10528
10702
  /**
10529
10703
  * Before you associate an ALB server group with a scaling group, make sure that the following requirements are met:
10530
10704
  * * The scaling group resides in a virtual private cloud (VPC). The scaling group and the ALB server group must reside in the same VPC.