@alicloud/ess20220222 1.2.0 → 1.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/ess20220222",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -12,11 +12,11 @@
12
12
  "author": "Alibaba Cloud SDK",
13
13
  "license": "Apache-2.0",
14
14
  "devDependencies": {
15
- "@types/node": "^12.12.26",
15
+ "@types/node": "^16.0.0",
16
16
  "nyc": "^15.0.0",
17
17
  "source-map-support": "^0.5.16",
18
- "ts-node": "^8.6.2",
19
- "typescript": "^3.7.5"
18
+ "ts-node": "^10.0.0",
19
+ "typescript": "^5"
20
20
  },
21
21
  "dependencies": {
22
22
  "@alicloud/tea-typescript": "^1.7.1",
package/src/client.ts CHANGED
@@ -1366,6 +1366,7 @@ export class CreateScalingConfigurationRequest extends $tea.Model {
1366
1366
  keyPairName?: string;
1367
1367
  loadBalancerWeight?: number;
1368
1368
  memory?: number;
1369
+ networkInterfaces?: CreateScalingConfigurationRequestNetworkInterfaces[];
1369
1370
  ownerAccount?: string;
1370
1371
  ownerId?: number;
1371
1372
  password?: string;
@@ -1423,6 +1424,7 @@ export class CreateScalingConfigurationRequest extends $tea.Model {
1423
1424
  keyPairName: 'KeyPairName',
1424
1425
  loadBalancerWeight: 'LoadBalancerWeight',
1425
1426
  memory: 'Memory',
1427
+ networkInterfaces: 'NetworkInterfaces',
1426
1428
  ownerAccount: 'OwnerAccount',
1427
1429
  ownerId: 'OwnerId',
1428
1430
  password: 'Password',
@@ -1483,6 +1485,7 @@ export class CreateScalingConfigurationRequest extends $tea.Model {
1483
1485
  keyPairName: 'string',
1484
1486
  loadBalancerWeight: 'number',
1485
1487
  memory: 'number',
1488
+ networkInterfaces: { 'type': 'array', 'itemType': CreateScalingConfigurationRequestNetworkInterfaces },
1486
1489
  ownerAccount: 'string',
1487
1490
  ownerId: 'number',
1488
1491
  password: 'string',
@@ -1547,6 +1550,7 @@ export class CreateScalingConfigurationShrinkRequest extends $tea.Model {
1547
1550
  keyPairName?: string;
1548
1551
  loadBalancerWeight?: number;
1549
1552
  memory?: number;
1553
+ networkInterfaces?: CreateScalingConfigurationShrinkRequestNetworkInterfaces[];
1550
1554
  ownerAccount?: string;
1551
1555
  ownerId?: number;
1552
1556
  password?: string;
@@ -1604,6 +1608,7 @@ export class CreateScalingConfigurationShrinkRequest extends $tea.Model {
1604
1608
  keyPairName: 'KeyPairName',
1605
1609
  loadBalancerWeight: 'LoadBalancerWeight',
1606
1610
  memory: 'Memory',
1611
+ networkInterfaces: 'NetworkInterfaces',
1607
1612
  ownerAccount: 'OwnerAccount',
1608
1613
  ownerId: 'OwnerId',
1609
1614
  password: 'Password',
@@ -1664,6 +1669,7 @@ export class CreateScalingConfigurationShrinkRequest extends $tea.Model {
1664
1669
  keyPairName: 'string',
1665
1670
  loadBalancerWeight: 'number',
1666
1671
  memory: 'number',
1672
+ networkInterfaces: { 'type': 'array', 'itemType': CreateScalingConfigurationShrinkRequestNetworkInterfaces },
1667
1673
  ownerAccount: 'string',
1668
1674
  ownerId: 'number',
1669
1675
  password: 'string',
@@ -6440,6 +6446,7 @@ export class ModifyScalingConfigurationRequest extends $tea.Model {
6440
6446
  keyPairName?: string;
6441
6447
  loadBalancerWeight?: number;
6442
6448
  memory?: number;
6449
+ networkInterfaces?: ModifyScalingConfigurationRequestNetworkInterfaces[];
6443
6450
  override?: boolean;
6444
6451
  ownerAccount?: string;
6445
6452
  ownerId?: number;
@@ -6493,6 +6500,7 @@ export class ModifyScalingConfigurationRequest extends $tea.Model {
6493
6500
  keyPairName: 'KeyPairName',
6494
6501
  loadBalancerWeight: 'LoadBalancerWeight',
6495
6502
  memory: 'Memory',
6503
+ networkInterfaces: 'NetworkInterfaces',
6496
6504
  override: 'Override',
6497
6505
  ownerAccount: 'OwnerAccount',
6498
6506
  ownerId: 'OwnerId',
@@ -6549,6 +6557,7 @@ export class ModifyScalingConfigurationRequest extends $tea.Model {
6549
6557
  keyPairName: 'string',
6550
6558
  loadBalancerWeight: 'number',
6551
6559
  memory: 'number',
6560
+ networkInterfaces: { 'type': 'array', 'itemType': ModifyScalingConfigurationRequestNetworkInterfaces },
6552
6561
  override: 'boolean',
6553
6562
  ownerAccount: 'string',
6554
6563
  ownerId: 'number',
@@ -6609,6 +6618,7 @@ export class ModifyScalingConfigurationShrinkRequest extends $tea.Model {
6609
6618
  keyPairName?: string;
6610
6619
  loadBalancerWeight?: number;
6611
6620
  memory?: number;
6621
+ networkInterfaces?: ModifyScalingConfigurationShrinkRequestNetworkInterfaces[];
6612
6622
  override?: boolean;
6613
6623
  ownerAccount?: string;
6614
6624
  ownerId?: number;
@@ -6662,6 +6672,7 @@ export class ModifyScalingConfigurationShrinkRequest extends $tea.Model {
6662
6672
  keyPairName: 'KeyPairName',
6663
6673
  loadBalancerWeight: 'LoadBalancerWeight',
6664
6674
  memory: 'Memory',
6675
+ networkInterfaces: 'NetworkInterfaces',
6665
6676
  override: 'Override',
6666
6677
  ownerAccount: 'OwnerAccount',
6667
6678
  ownerId: 'OwnerId',
@@ -6718,6 +6729,7 @@ export class ModifyScalingConfigurationShrinkRequest extends $tea.Model {
6718
6729
  keyPairName: 'string',
6719
6730
  loadBalancerWeight: 'number',
6720
6731
  memory: 'number',
6732
+ networkInterfaces: { 'type': 'array', 'itemType': ModifyScalingConfigurationShrinkRequestNetworkInterfaces },
6721
6733
  override: 'boolean',
6722
6734
  ownerAccount: 'string',
6723
6735
  ownerId: 'number',
@@ -9628,6 +9640,34 @@ export class CreateScalingConfigurationRequestInstanceTypeOverrides extends $tea
9628
9640
  }
9629
9641
  }
9630
9642
 
9643
+ export class CreateScalingConfigurationRequestNetworkInterfaces extends $tea.Model {
9644
+ instanceType?: string;
9645
+ ipv6AddressCount?: number;
9646
+ networkInterfaceTrafficMode?: string;
9647
+ securityGroupIds?: string[];
9648
+ static names(): { [key: string]: string } {
9649
+ return {
9650
+ instanceType: 'InstanceType',
9651
+ ipv6AddressCount: 'Ipv6AddressCount',
9652
+ networkInterfaceTrafficMode: 'NetworkInterfaceTrafficMode',
9653
+ securityGroupIds: 'SecurityGroupIds',
9654
+ };
9655
+ }
9656
+
9657
+ static types(): { [key: string]: any } {
9658
+ return {
9659
+ instanceType: 'string',
9660
+ ipv6AddressCount: 'number',
9661
+ networkInterfaceTrafficMode: 'string',
9662
+ securityGroupIds: { 'type': 'array', 'itemType': 'string' },
9663
+ };
9664
+ }
9665
+
9666
+ constructor(map?: { [key: string]: any }) {
9667
+ super(map);
9668
+ }
9669
+ }
9670
+
9631
9671
  export class CreateScalingConfigurationRequestSpotPriceLimits extends $tea.Model {
9632
9672
  instanceType?: string;
9633
9673
  priceLimit?: number;
@@ -9879,6 +9919,34 @@ export class CreateScalingConfigurationShrinkRequestInstanceTypeOverrides extend
9879
9919
  }
9880
9920
  }
9881
9921
 
9922
+ export class CreateScalingConfigurationShrinkRequestNetworkInterfaces extends $tea.Model {
9923
+ instanceType?: string;
9924
+ ipv6AddressCount?: number;
9925
+ networkInterfaceTrafficMode?: string;
9926
+ securityGroupIds?: string[];
9927
+ static names(): { [key: string]: string } {
9928
+ return {
9929
+ instanceType: 'InstanceType',
9930
+ ipv6AddressCount: 'Ipv6AddressCount',
9931
+ networkInterfaceTrafficMode: 'NetworkInterfaceTrafficMode',
9932
+ securityGroupIds: 'SecurityGroupIds',
9933
+ };
9934
+ }
9935
+
9936
+ static types(): { [key: string]: any } {
9937
+ return {
9938
+ instanceType: 'string',
9939
+ ipv6AddressCount: 'number',
9940
+ networkInterfaceTrafficMode: 'string',
9941
+ securityGroupIds: { 'type': 'array', 'itemType': 'string' },
9942
+ };
9943
+ }
9944
+
9945
+ constructor(map?: { [key: string]: any }) {
9946
+ super(map);
9947
+ }
9948
+ }
9949
+
9882
9950
  export class CreateScalingConfigurationShrinkRequestSpotPriceLimits extends $tea.Model {
9883
9951
  instanceType?: string;
9884
9952
  priceLimit?: number;
@@ -12240,6 +12308,34 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurationsInsta
12240
12308
  }
12241
12309
  }
12242
12310
 
12311
+ export class DescribeScalingConfigurationsResponseBodyScalingConfigurationsNetworkInterfaces extends $tea.Model {
12312
+ instanceType?: string;
12313
+ ipv6AddressCount?: number;
12314
+ networkInterfaceTrafficMode?: string;
12315
+ securityGroupIds?: string[];
12316
+ static names(): { [key: string]: string } {
12317
+ return {
12318
+ instanceType: 'InstanceType',
12319
+ ipv6AddressCount: 'Ipv6AddressCount',
12320
+ networkInterfaceTrafficMode: 'NetworkInterfaceTrafficMode',
12321
+ securityGroupIds: 'SecurityGroupIds',
12322
+ };
12323
+ }
12324
+
12325
+ static types(): { [key: string]: any } {
12326
+ return {
12327
+ instanceType: 'string',
12328
+ ipv6AddressCount: 'number',
12329
+ networkInterfaceTrafficMode: 'string',
12330
+ securityGroupIds: { 'type': 'array', 'itemType': 'string' },
12331
+ };
12332
+ }
12333
+
12334
+ constructor(map?: { [key: string]: any }) {
12335
+ super(map);
12336
+ }
12337
+ }
12338
+
12243
12339
  export class DescribeScalingConfigurationsResponseBodyScalingConfigurationsSchedulerOptions extends $tea.Model {
12244
12340
  managedPrivateSpaceId?: string;
12245
12341
  static names(): { [key: string]: string } {
@@ -12335,6 +12431,7 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
12335
12431
  lifecycleState?: string;
12336
12432
  loadBalancerWeight?: number;
12337
12433
  memory?: number;
12434
+ networkInterfaces?: DescribeScalingConfigurationsResponseBodyScalingConfigurationsNetworkInterfaces[];
12338
12435
  passwordInherit?: boolean;
12339
12436
  privatePoolOptions_id?: string;
12340
12437
  privatePoolOptions_matchCriteria?: string;
@@ -12403,6 +12500,7 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
12403
12500
  lifecycleState: 'LifecycleState',
12404
12501
  loadBalancerWeight: 'LoadBalancerWeight',
12405
12502
  memory: 'Memory',
12503
+ networkInterfaces: 'NetworkInterfaces',
12406
12504
  passwordInherit: 'PasswordInherit',
12407
12505
  privatePoolOptions_id: 'PrivatePoolOptions.Id',
12408
12506
  privatePoolOptions_matchCriteria: 'PrivatePoolOptions.MatchCriteria',
@@ -12474,6 +12572,7 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
12474
12572
  lifecycleState: 'string',
12475
12573
  loadBalancerWeight: 'number',
12476
12574
  memory: 'number',
12575
+ networkInterfaces: { 'type': 'array', 'itemType': DescribeScalingConfigurationsResponseBodyScalingConfigurationsNetworkInterfaces },
12477
12576
  passwordInherit: 'boolean',
12478
12577
  privatePoolOptions_id: 'string',
12479
12578
  privatePoolOptions_matchCriteria: 'string',
@@ -15034,6 +15133,34 @@ export class ModifyScalingConfigurationRequestInstanceTypeOverrides extends $tea
15034
15133
  }
15035
15134
  }
15036
15135
 
15136
+ export class ModifyScalingConfigurationRequestNetworkInterfaces extends $tea.Model {
15137
+ instanceType?: string;
15138
+ ipv6AddressCount?: number;
15139
+ networkInterfaceTrafficMode?: string;
15140
+ securityGroupIds?: string[];
15141
+ static names(): { [key: string]: string } {
15142
+ return {
15143
+ instanceType: 'InstanceType',
15144
+ ipv6AddressCount: 'Ipv6AddressCount',
15145
+ networkInterfaceTrafficMode: 'NetworkInterfaceTrafficMode',
15146
+ securityGroupIds: 'SecurityGroupIds',
15147
+ };
15148
+ }
15149
+
15150
+ static types(): { [key: string]: any } {
15151
+ return {
15152
+ instanceType: 'string',
15153
+ ipv6AddressCount: 'number',
15154
+ networkInterfaceTrafficMode: 'string',
15155
+ securityGroupIds: { 'type': 'array', 'itemType': 'string' },
15156
+ };
15157
+ }
15158
+
15159
+ constructor(map?: { [key: string]: any }) {
15160
+ super(map);
15161
+ }
15162
+ }
15163
+
15037
15164
  export class ModifyScalingConfigurationRequestSpotPriceLimits extends $tea.Model {
15038
15165
  instanceType?: string;
15039
15166
  priceLimit?: number;
@@ -15285,6 +15412,34 @@ export class ModifyScalingConfigurationShrinkRequestInstanceTypeOverrides extend
15285
15412
  }
15286
15413
  }
15287
15414
 
15415
+ export class ModifyScalingConfigurationShrinkRequestNetworkInterfaces extends $tea.Model {
15416
+ instanceType?: string;
15417
+ ipv6AddressCount?: number;
15418
+ networkInterfaceTrafficMode?: string;
15419
+ securityGroupIds?: string[];
15420
+ static names(): { [key: string]: string } {
15421
+ return {
15422
+ instanceType: 'InstanceType',
15423
+ ipv6AddressCount: 'Ipv6AddressCount',
15424
+ networkInterfaceTrafficMode: 'NetworkInterfaceTrafficMode',
15425
+ securityGroupIds: 'SecurityGroupIds',
15426
+ };
15427
+ }
15428
+
15429
+ static types(): { [key: string]: any } {
15430
+ return {
15431
+ instanceType: 'string',
15432
+ ipv6AddressCount: 'number',
15433
+ networkInterfaceTrafficMode: 'string',
15434
+ securityGroupIds: { 'type': 'array', 'itemType': 'string' },
15435
+ };
15436
+ }
15437
+
15438
+ constructor(map?: { [key: string]: any }) {
15439
+ super(map);
15440
+ }
15441
+ }
15442
+
15288
15443
  export class ModifyScalingConfigurationShrinkRequestSpotPriceLimits extends $tea.Model {
15289
15444
  instanceType?: string;
15290
15445
  priceLimit?: number;
@@ -16879,6 +17034,10 @@ export default class Client extends OpenApi {
16879
17034
  query["Memory"] = request.memory;
16880
17035
  }
16881
17036
 
17037
+ if (!Util.isUnset(request.networkInterfaces)) {
17038
+ query["NetworkInterfaces"] = request.networkInterfaces;
17039
+ }
17040
+
16882
17041
  if (!Util.isUnset(request.ownerAccount)) {
16883
17042
  query["OwnerAccount"] = request.ownerAccount;
16884
17043
  }
@@ -17025,7 +17184,7 @@ export default class Client extends OpenApi {
17025
17184
  * A scaling group is a group of Elastic Compute Service (ECS) instances that can be used in similar business scenarios.
17026
17185
  * You can create only a limited number of scaling groups in a region. Go to Quota Center to check the quota of the scaling groups.
17027
17186
  * A scaling group does not immediately take effect after you create the scaling group. You must call the EnableScalingGroup operation to enable the scaling group. After you enable the scaling group, Auto Scaling can execute scaling rules to trigger scaling activities in the scaling group.
17028
- * The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the "Regions and zones" topic.
17187
+ * The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the [Regions and zones](~~40654~~) topic.
17029
17188
  * If you associate a CLB instance when you create a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the backend server group of the associated CLB instance. You can specify a server group to which ECS instances can be added. You can add ECS instances to the following types of server groups:
17030
17189
  * * Default server group: a group of ECS instances that are used to receive requests. If you do not specify a vServer group or a primary/secondary server group for a listener, requests are forwarded to the ECS instances in the default server group.
17031
17190
  * * vServer group: If you want to forward requests to backend servers that are not in the default server group or configure domain name-based or URL-based forwarding rules, you can use vServer groups.
@@ -17249,7 +17408,7 @@ export default class Client extends OpenApi {
17249
17408
  * A scaling group is a group of Elastic Compute Service (ECS) instances that can be used in similar business scenarios.
17250
17409
  * You can create only a limited number of scaling groups in a region. Go to Quota Center to check the quota of the scaling groups.
17251
17410
  * A scaling group does not immediately take effect after you create the scaling group. You must call the EnableScalingGroup operation to enable the scaling group. After you enable the scaling group, Auto Scaling can execute scaling rules to trigger scaling activities in the scaling group.
17252
- * The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the "Regions and zones" topic.
17411
+ * The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the [Regions and zones](~~40654~~) topic.
17253
17412
  * If you associate a CLB instance when you create a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the backend server group of the associated CLB instance. You can specify a server group to which ECS instances can be added. You can add ECS instances to the following types of server groups:
17254
17413
  * * Default server group: a group of ECS instances that are used to receive requests. If you do not specify a vServer group or a primary/secondary server group for a listener, requests are forwarded to the ECS instances in the default server group.
17255
17414
  * * vServer group: If you want to forward requests to backend servers that are not in the default server group or configure domain name-based or URL-based forwarding rules, you can use vServer groups.
@@ -19951,11 +20110,11 @@ export default class Client extends OpenApi {
19951
20110
  }
19952
20111
 
19953
20112
  /**
19954
- * * If you set MetricType to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using the custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
19955
- * * When you create an event-triggered task, you must specify MetricName, DimensionKey, and DimensionValue to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances in a scaling group within an Alibaba Cloud account.
19956
- * * If you set MetricType to custom, the valid values are your custom metrics.
19957
- * * For information about the metrics that are supported if you set MetricType to system, see [Event-triggered task for system monitoring](~~74854~~).
19958
- * > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see `DimensionKey` and `DimensionValue` in the "Request parameters" section of this topic.
20113
+ * * If you set the MetricType parameter to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using the custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
20114
+ * * When you create an event-triggered task, you must specify the MetricName, DimensionKey, and DimensionValue parameters to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances or elastic container instances in a scaling group within an Alibaba Cloud account.
20115
+ * * If you set the MetricType parameter to custom, the valid values are your custom metrics.
20116
+ * * For information about the metrics that are supported if you set the MetricType parameter to system, see[ Event-triggered task for system monitoring](~~74854~~).
20117
+ * > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see the `DimensionKey` and `DimensionValue` parameters in the "Request parameters" section of this topic.
19959
20118
  *
19960
20119
  * @param request ModifyAlarmRequest
19961
20120
  * @param runtime runtime options for this request RuntimeOptions
@@ -20058,11 +20217,11 @@ export default class Client extends OpenApi {
20058
20217
  }
20059
20218
 
20060
20219
  /**
20061
- * * If you set MetricType to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using the custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
20062
- * * When you create an event-triggered task, you must specify MetricName, DimensionKey, and DimensionValue to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances in a scaling group within an Alibaba Cloud account.
20063
- * * If you set MetricType to custom, the valid values are your custom metrics.
20064
- * * For information about the metrics that are supported if you set MetricType to system, see [Event-triggered task for system monitoring](~~74854~~).
20065
- * > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see `DimensionKey` and `DimensionValue` in the "Request parameters" section of this topic.
20220
+ * * If you set the MetricType parameter to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using the custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
20221
+ * * When you create an event-triggered task, you must specify the MetricName, DimensionKey, and DimensionValue parameters to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances or elastic container instances in a scaling group within an Alibaba Cloud account.
20222
+ * * If you set the MetricType parameter to custom, the valid values are your custom metrics.
20223
+ * * For information about the metrics that are supported if you set the MetricType parameter to system, see[ Event-triggered task for system monitoring](~~74854~~).
20224
+ * > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see the `DimensionKey` and `DimensionValue` parameters in the "Request parameters" section of this topic.
20066
20225
  *
20067
20226
  * @param request ModifyAlarmRequest
20068
20227
  * @return ModifyAlarmResponse
@@ -20618,6 +20777,10 @@ export default class Client extends OpenApi {
20618
20777
  query["Memory"] = request.memory;
20619
20778
  }
20620
20779
 
20780
+ if (!Util.isUnset(request.networkInterfaces)) {
20781
+ query["NetworkInterfaces"] = request.networkInterfaces;
20782
+ }
20783
+
20621
20784
  if (!Util.isUnset(request.override)) {
20622
20785
  query["Override"] = request.override;
20623
20786
  }
@@ -20754,10 +20917,9 @@ export default class Client extends OpenApi {
20754
20917
  * * You cannot call this operation to modify the settings of the following parameters:
20755
20918
  * * RegionId
20756
20919
  * * LoadBalancerId
20757
- * > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
20920
+ * > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
20758
20921
  * * DBInstanceId
20759
- * **
20760
- * **Note**If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
20922
+ * > If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
20761
20923
  * * You can modify only scaling groups that are in the Active or Inactive state.
20762
20924
  * * If you enable a new scaling configuration, Elastic Compute Service (ECS) instances that are created based on the previous scaling configuration still run as expected in the scaling group.
20763
20925
  * * If the total number of instances in the scaling group is greater than the allowed maximum number after you change the value of the MaxSize parameter, Auto Scaling automatically removes instances from the scaling group to ensure that the number of instances is within the new range.
@@ -20920,10 +21082,9 @@ export default class Client extends OpenApi {
20920
21082
  * * You cannot call this operation to modify the settings of the following parameters:
20921
21083
  * * RegionId
20922
21084
  * * LoadBalancerId
20923
- * > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
21085
+ * > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
20924
21086
  * * DBInstanceId
20925
- * **
20926
- * **Note**If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
21087
+ * > If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
20927
21088
  * * You can modify only scaling groups that are in the Active or Inactive state.
20928
21089
  * * If you enable a new scaling configuration, Elastic Compute Service (ECS) instances that are created based on the previous scaling configuration still run as expected in the scaling group.
20929
21090
  * * If the total number of instances in the scaling group is greater than the allowed maximum number after you change the value of the MaxSize parameter, Auto Scaling automatically removes instances from the scaling group to ensure that the number of instances is within the new range.
@@ -21286,6 +21447,20 @@ export default class Client extends OpenApi {
21286
21447
  return await this.recordLifecycleActionHeartbeatWithOptions(request, runtime);
21287
21448
  }
21288
21449
 
21450
+ /**
21451
+ * * Before you call this operation, make sure that the following requirements are met:
21452
+ * * The scaling group is in the Active state.
21453
+ * * No scaling activity is in progress within the scaling group.
21454
+ * > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
21455
+ * * If an ECS instance is automatically created by Auto Scaling, or if an ECS instance is manually added to a scaling group and managed by the scaling group, the ECS instance is stopped in economical mode or is released after the instance is removed from the scaling group.
21456
+ * * If an ECS instance is manually added to a scaling group and is not managed by the scaling group, the ECS instance is not stopped or released after the instance is removed from the scaling group.
21457
+ * * If the difference between the number of existing ECS instances specified by the TotalCapacity parameter and the number of ECS instances that you call this operation to remove is less than the value of the MinSize parameter, the call fails.
21458
+ * A successful call only means that Auto Scaling accepts the request. The scaling activity may still fail. You can obtain the status of a scaling activity based on the value of the ScalingActivityId parameter in the response.
21459
+ *
21460
+ * @param request RemoveInstancesRequest
21461
+ * @param runtime runtime options for this request RuntimeOptions
21462
+ * @return RemoveInstancesResponse
21463
+ */
21289
21464
  async removeInstancesWithOptions(request: RemoveInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RemoveInstancesResponse> {
21290
21465
  Util.validateModel(request);
21291
21466
  let query = { };
@@ -21346,6 +21521,19 @@ export default class Client extends OpenApi {
21346
21521
  return $tea.cast<RemoveInstancesResponse>(await this.callApi(params, req, runtime), new RemoveInstancesResponse({}));
21347
21522
  }
21348
21523
 
21524
+ /**
21525
+ * * Before you call this operation, make sure that the following requirements are met:
21526
+ * * The scaling group is in the Active state.
21527
+ * * No scaling activity is in progress within the scaling group.
21528
+ * > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
21529
+ * * If an ECS instance is automatically created by Auto Scaling, or if an ECS instance is manually added to a scaling group and managed by the scaling group, the ECS instance is stopped in economical mode or is released after the instance is removed from the scaling group.
21530
+ * * If an ECS instance is manually added to a scaling group and is not managed by the scaling group, the ECS instance is not stopped or released after the instance is removed from the scaling group.
21531
+ * * If the difference between the number of existing ECS instances specified by the TotalCapacity parameter and the number of ECS instances that you call this operation to remove is less than the value of the MinSize parameter, the call fails.
21532
+ * A successful call only means that Auto Scaling accepts the request. The scaling activity may still fail. You can obtain the status of a scaling activity based on the value of the ScalingActivityId parameter in the response.
21533
+ *
21534
+ * @param request RemoveInstancesRequest
21535
+ * @return RemoveInstancesResponse
21536
+ */
21349
21537
  async removeInstances(request: RemoveInstancesRequest): Promise<RemoveInstancesResponse> {
21350
21538
  let runtime = new $Util.RuntimeOptions({ });
21351
21539
  return await this.removeInstancesWithOptions(request, runtime);