tencentcloud-sdk-nodejs-intl-en 3.0.882 → 3.0.883

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": "tencentcloud-sdk-nodejs-intl-en",
3
- "version": "3.0.882",
3
+ "version": "3.0.883",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -19,6 +19,7 @@ const AbstractClient = require('../../common/abstract_client')
19
19
  const DisableAutoScalingGroupResponse = models.DisableAutoScalingGroupResponse;
20
20
  const ModifyLaunchConfigurationAttributesRequest = models.ModifyLaunchConfigurationAttributesRequest;
21
21
  const DisableAutoScalingGroupRequest = models.DisableAutoScalingGroupRequest;
22
+ const DescribeRefreshActivitiesResponse = models.DescribeRefreshActivitiesResponse;
22
23
  const ModifyAutoScalingGroupRequest = models.ModifyAutoScalingGroupRequest;
23
24
  const ScaleOutInstancesRequest = models.ScaleOutInstancesRequest;
24
25
  const AutoScalingNotification = models.AutoScalingNotification;
@@ -33,6 +34,7 @@ const CreateLifecycleHookResponse = models.CreateLifecycleHookResponse;
33
34
  const ClearLaunchConfigurationAttributesResponse = models.ClearLaunchConfigurationAttributesResponse;
34
35
  const DescribeAutoScalingGroupsResponse = models.DescribeAutoScalingGroupsResponse;
35
36
  const CreateScheduledActionRequest = models.CreateScheduledActionRequest;
37
+ const ExitStandbyRequest = models.ExitStandbyRequest;
36
38
  const SystemDisk = models.SystemDisk;
37
39
  const SpotMarketOptions = models.SpotMarketOptions;
38
40
  const StopAutoScalingInstancesResponse = models.StopAutoScalingInstancesResponse;
@@ -48,6 +50,7 @@ const StartAutoScalingInstancesResponse = models.StartAutoScalingInstancesRespon
48
50
  const CompleteLifecycleActionRequest = models.CompleteLifecycleActionRequest;
49
51
  const CreateScalingPolicyResponse = models.CreateScalingPolicyResponse;
50
52
  const CreateNotificationConfigurationResponse = models.CreateNotificationConfigurationResponse;
53
+ const DescribeRefreshActivitiesRequest = models.DescribeRefreshActivitiesRequest;
51
54
  const DescribeLaunchConfigurationsResponse = models.DescribeLaunchConfigurationsResponse;
52
55
  const RemoveInstancesRequest = models.RemoveInstancesRequest;
53
56
  const DeleteScalingPolicyResponse = models.DeleteScalingPolicyResponse;
@@ -57,16 +60,19 @@ const DescribeAutoScalingInstancesRequest = models.DescribeAutoScalingInstancesR
57
60
  const ModifyLoadBalancersRequest = models.ModifyLoadBalancersRequest;
58
61
  const RemoveInstancesResponse = models.RemoveInstancesResponse;
59
62
  const ModifyScalingPolicyResponse = models.ModifyScalingPolicyResponse;
63
+ const DeleteLaunchConfigurationRequest = models.DeleteLaunchConfigurationRequest;
60
64
  const SetInstancesProtectionRequest = models.SetInstancesProtectionRequest;
61
65
  const DeleteNotificationConfigurationResponse = models.DeleteNotificationConfigurationResponse;
62
66
  const DetachInstancesResponse = models.DetachInstancesResponse;
67
+ const RollingUpdateSettings = models.RollingUpdateSettings;
63
68
  const ModifyLaunchConfigurationAttributesResponse = models.ModifyLaunchConfigurationAttributesResponse;
64
69
  const CreateLaunchConfigurationRequest = models.CreateLaunchConfigurationRequest;
65
70
  const AutoScalingGroup = models.AutoScalingGroup;
66
71
  const AttachInstancesResponse = models.AttachInstancesResponse;
67
72
  const DescribeAutoScalingGroupLastActivitiesResponse = models.DescribeAutoScalingGroupLastActivitiesResponse;
68
73
  const DescribeAccountLimitsRequest = models.DescribeAccountLimitsRequest;
69
- const UpgradeLifecycleHookRequest = models.UpgradeLifecycleHookRequest;
74
+ const ScaleInInstancesResponse = models.ScaleInInstancesResponse;
75
+ const CancelInstanceRefreshRequest = models.CancelInstanceRefreshRequest;
70
76
  const DetachLoadBalancersResponse = models.DetachLoadBalancersResponse;
71
77
  const ScalingPolicy = models.ScalingPolicy;
72
78
  const DescribeAutoScalingGroupLastActivitiesRequest = models.DescribeAutoScalingGroupLastActivitiesRequest;
@@ -74,13 +80,15 @@ const HostNameSettings = models.HostNameSettings;
74
80
  const ModifyLoadBalancersResponse = models.ModifyLoadBalancersResponse;
75
81
  const CreateNotificationConfigurationRequest = models.CreateNotificationConfigurationRequest;
76
82
  const DescribeScheduledActionsResponse = models.DescribeScheduledActionsResponse;
83
+ const ModifyNotificationConfigurationRequest = models.ModifyNotificationConfigurationRequest;
77
84
  const DeleteLifecycleHookRequest = models.DeleteLifecycleHookRequest;
78
85
  const ModifyLoadBalancerTargetAttributesResponse = models.ModifyLoadBalancerTargetAttributesResponse;
79
86
  const ModifyAutoScalingGroupResponse = models.ModifyAutoScalingGroupResponse;
80
- const DeleteLaunchConfigurationRequest = models.DeleteLaunchConfigurationRequest;
87
+ const ExitStandbyResponse = models.ExitStandbyResponse;
81
88
  const InvocationResult = models.InvocationResult;
82
89
  const ModifyScalingPolicyRequest = models.ModifyScalingPolicyRequest;
83
90
  const InstanceMarketOptionsRequest = models.InstanceMarketOptionsRequest;
91
+ const RefreshBatch = models.RefreshBatch;
84
92
  const UpgradeLifecycleHookResponse = models.UpgradeLifecycleHookResponse;
85
93
  const InstanceTag = models.InstanceTag;
86
94
  const ModifyLifecycleHookResponse = models.ModifyLifecycleHookResponse;
@@ -92,6 +100,7 @@ const UpgradeLaunchConfigurationRequest = models.UpgradeLaunchConfigurationReque
92
100
  const DescribeAutoScalingActivitiesResponse = models.DescribeAutoScalingActivitiesResponse;
93
101
  const DescribeNotificationConfigurationsResponse = models.DescribeNotificationConfigurationsResponse;
94
102
  const DataDisk = models.DataDisk;
103
+ const RollbackInstanceRefreshResponse = models.RollbackInstanceRefreshResponse;
95
104
  const DeleteScalingPolicyRequest = models.DeleteScalingPolicyRequest;
96
105
  const LoginSettings = models.LoginSettings;
97
106
  const CreateAutoScalingGroupFromInstanceResponse = models.CreateAutoScalingGroupFromInstanceResponse;
@@ -104,15 +113,18 @@ const DeleteLaunchConfigurationResponse = models.DeleteLaunchConfigurationRespon
104
113
  const IPv6InternetAccessible = models.IPv6InternetAccessible;
105
114
  const DescribeScheduledActionsRequest = models.DescribeScheduledActionsRequest;
106
115
  const RunSecurityServiceEnabled = models.RunSecurityServiceEnabled;
116
+ const RefreshBatchRelatedInstance = models.RefreshBatchRelatedInstance;
107
117
  const DeleteScheduledActionRequest = models.DeleteScheduledActionRequest;
108
118
  const DescribeAutoScalingActivitiesRequest = models.DescribeAutoScalingActivitiesRequest;
109
119
  const ModifyDesiredCapacityRequest = models.ModifyDesiredCapacityRequest;
110
120
  const CreateScheduledActionResponse = models.CreateScheduledActionResponse;
121
+ const StartInstanceRefreshResponse = models.StartInstanceRefreshResponse;
111
122
  const CreateLifecycleHookRequest = models.CreateLifecycleHookRequest;
112
123
  const ScheduledAction = models.ScheduledAction;
113
124
  const ModifyLifecycleHookRequest = models.ModifyLifecycleHookRequest;
114
125
  const CompleteLifecycleActionResponse = models.CompleteLifecycleActionResponse;
115
126
  const ScaleOutInstancesResponse = models.ScaleOutInstancesResponse;
127
+ const RefreshSettings = models.RefreshSettings;
116
128
  const Filter = models.Filter;
117
129
  const DescribeLifecycleHooksRequest = models.DescribeLifecycleHooksRequest;
118
130
  const ServiceSettings = models.ServiceSettings;
@@ -122,34 +134,42 @@ const ModifyNotificationConfigurationResponse = models.ModifyNotificationConfigu
122
134
  const LimitedLoginSettings = models.LimitedLoginSettings;
123
135
  const DescribeLifecycleHooksResponse = models.DescribeLifecycleHooksResponse;
124
136
  const CreateScalingPolicyRequest = models.CreateScalingPolicyRequest;
125
- const ScaleInInstancesResponse = models.ScaleInInstancesResponse;
137
+ const ResumeInstanceRefreshRequest = models.ResumeInstanceRefreshRequest;
126
138
  const DescribeAutoScalingAdvicesRequest = models.DescribeAutoScalingAdvicesRequest;
127
139
  const DeleteNotificationConfigurationRequest = models.DeleteNotificationConfigurationRequest;
128
140
  const DescribeLaunchConfigurationsRequest = models.DescribeLaunchConfigurationsRequest;
129
141
  const NotificationTarget = models.NotificationTarget;
130
142
  const ModifyLoadBalancerTargetAttributesRequest = models.ModifyLoadBalancerTargetAttributesRequest;
143
+ const RollbackInstanceRefreshRequest = models.RollbackInstanceRefreshRequest;
144
+ const StartInstanceRefreshRequest = models.StartInstanceRefreshRequest;
131
145
  const DeleteAutoScalingGroupResponse = models.DeleteAutoScalingGroupResponse;
132
146
  const LifecycleActionResultInfo = models.LifecycleActionResultInfo;
133
147
  const AutoScalingGroupAbstract = models.AutoScalingGroupAbstract;
134
148
  const EnableAutoScalingGroupRequest = models.EnableAutoScalingGroupRequest;
149
+ const StopInstanceRefreshRequest = models.StopInstanceRefreshRequest;
135
150
  const MetricAlarm = models.MetricAlarm;
151
+ const RefreshActivity = models.RefreshActivity;
136
152
  const DescribeNotificationConfigurationsRequest = models.DescribeNotificationConfigurationsRequest;
137
153
  const ScaleInInstancesRequest = models.ScaleInInstancesRequest;
138
154
  const LifecycleHook = models.LifecycleHook;
139
155
  const ForwardLoadBalancer = models.ForwardLoadBalancer;
140
156
  const ClearLaunchConfigurationAttributesRequest = models.ClearLaunchConfigurationAttributesRequest;
157
+ const InstanceNameIndexSettings = models.InstanceNameIndexSettings;
141
158
  const ForwardLoadBalancerIdentification = models.ForwardLoadBalancerIdentification;
142
159
  const AutoScalingAdvice = models.AutoScalingAdvice;
143
160
  const StartAutoScalingInstancesRequest = models.StartAutoScalingInstancesRequest;
144
161
  const AttachInstancesRequest = models.AttachInstancesRequest;
162
+ const StopInstanceRefreshResponse = models.StopInstanceRefreshResponse;
145
163
  const AttachLoadBalancersRequest = models.AttachLoadBalancersRequest;
146
164
  const SpotMixedAllocationPolicy = models.SpotMixedAllocationPolicy;
165
+ const UpgradeLifecycleHookRequest = models.UpgradeLifecycleHookRequest;
166
+ const ResumeInstanceRefreshResponse = models.ResumeInstanceRefreshResponse;
147
167
  const DescribeScalingPoliciesResponse = models.DescribeScalingPoliciesResponse;
148
168
  const Activity = models.Activity;
149
169
  const ModifyDesiredCapacityResponse = models.ModifyDesiredCapacityResponse;
150
170
  const StopAutoScalingInstancesRequest = models.StopAutoScalingInstancesRequest;
151
171
  const RunMonitorServiceEnabled = models.RunMonitorServiceEnabled;
152
- const ModifyNotificationConfigurationRequest = models.ModifyNotificationConfigurationRequest;
172
+ const CancelInstanceRefreshResponse = models.CancelInstanceRefreshResponse;
153
173
  const ActivtyRelatedInstance = models.ActivtyRelatedInstance;
154
174
  const CreateAutoScalingGroupFromInstanceRequest = models.CreateAutoScalingGroupFromInstanceRequest;
155
175
  const InternetAccessible = models.InternetAccessible;
@@ -170,6 +190,19 @@ class AsClient extends AbstractClient {
170
190
  super("as.tencentcloudapi.com", "2018-04-19", credential, region, profile);
171
191
  }
172
192
 
193
+ /**
194
+ * This API is used to pause the ongoing instance refresh activity.
195
+ * In the paused status, the scaling group will also be disabled.
196
+ * Instances that are currently being updated will not be paused, instances pending updates will have their updates paused.
197
+ * @param {StopInstanceRefreshRequest} req
198
+ * @param {function(string, StopInstanceRefreshResponse):void} cb
199
+ * @public
200
+ */
201
+ StopInstanceRefresh(req, cb) {
202
+ let resp = new StopInstanceRefreshResponse();
203
+ this.request("StopInstanceRefresh", req, resp, cb);
204
+ }
205
+
173
206
  /**
174
207
  * This API is used to execute a scaling policy.
175
208
 
@@ -207,6 +240,22 @@ class AsClient extends AbstractClient {
207
240
  this.request("ClearLaunchConfigurationAttributes", req, resp, cb);
208
241
  }
209
242
 
243
+ /**
244
+ * This API is used to refresh running CVM instances in the scaling group and return the RefreshActivityId for the instance refresh activity based on parameters in the launch configuration.
245
+ * For refresh methods involving reinstallation (currently only reinstallation is supported), during reinstallation, only the ImageId, UserData, EnhancedService, HostName, and LoginSettings parameters will be fetched from the launch configuration for refreshing; other parameters of the instance will not be refreshed.
246
+ * During the instance refresh process (including paused status), the scaling group will be disabled. It is not recommended to modify the associated launch configuration during a refresh, as this may impact the refresh parameters, leading to inconsistent instance configurations.
247
+ * In rolling update mode, instance refreshes are performed in multiple batches. If there are failed refreshes within a batch, the activity will enter a failed paused status.
248
+ * Instances pending refresh that are removed or destroyed will be marked as NOT_FOUND status, but they will not block the instance refresh activity.
249
+ * Even if a running instance has parameters consistent with the latest launch configuration, it can still undergo another refresh.
250
+ * @param {StartInstanceRefreshRequest} req
251
+ * @param {function(string, StartInstanceRefreshResponse):void} cb
252
+ * @public
253
+ */
254
+ StartInstanceRefresh(req, cb) {
255
+ let resp = new StartInstanceRefreshResponse();
256
+ this.request("StartInstanceRefresh", req, resp, cb);
257
+ }
258
+
210
259
  /**
211
260
  * This API (ModifyScalingPolicy) is used to modify an alarm trigger policy.
212
261
  * @param {ModifyScalingPolicyRequest} req
@@ -270,6 +319,19 @@ If the parameter is empty, a certain number (specified by `Limit` and 20 by defa
270
319
  this.request("ScaleOutInstances", req, resp, cb);
271
320
  }
272
321
 
322
+ /**
323
+ * This API is used to exit instances from the standby status in the scaling group.
324
+ * When an instance is in standby status, its load balancer weight is set to 0. Upon exiting the standby status, the weight value automatically gets restored.
325
+ * Initiating power-on/power-off actions on instances that are in standby status also results in them exiting from the standby status.
326
+ * @param {ExitStandbyRequest} req
327
+ * @param {function(string, ExitStandbyResponse):void} cb
328
+ * @public
329
+ */
330
+ ExitStandby(req, cb) {
331
+ let resp = new ExitStandbyResponse();
332
+ this.request("ExitStandby", req, resp, cb);
333
+ }
334
+
273
335
  /**
274
336
  * This API is used to start up CVM instances in a scaling group.
275
337
  * After startup, the instance will be in the `IN_SERVICE` status, which will increase the desired capacity. Please note that the desired capacity cannot exceed the maximum value.
@@ -284,10 +346,12 @@ If the parameter is empty, a certain number (specified by `Limit` and 20 by defa
284
346
  }
285
347
 
286
348
  /**
287
- * This API is used to upgrade a launch configuration.
349
+ * 已有替代接口ModifyLaunchConfiguration。该接口存在覆盖参数风险,目前官网已隐藏
288
350
 
289
- * This API is used to upgrade a launch configuration in a "completely overriding" manner, i.e., it uniformly sets a new configuration according to the API parameters regardless of the original parameters. If optional fields are left empty, their default values will be used.
290
- * After the launch configuration is upgraded, the existing instances that have been created by it will not be changed, but new instances will be created according to the new configuration.
351
+ There is a replacement API: ModifyLaunchConfiguration. This API carries the risk of parameter overwriting, and it has currently been hidden on the official website.
352
+ This API (UpgradeLaunchConfiguration) is used to upgrade the launch configuration.
353
+ * This API is used to upgrade the launch configuration, adopting an "entirely overwrite" approach. Regardless of previous parameter settings, they will be uniformly replaced with new configurations as specified in the interface parameters. For non-mandatory fields, if not filled in, default values will be assigned.
354
+ * After upgrading and modifying the launch configuration, existing instances that have been scaled out using this configuration will not undergo any changes. Subsequently, newly added instances using this upgraded launch configuration will be scaled out according to the new configuration.
291
355
  * @param {UpgradeLaunchConfigurationRequest} req
292
356
  * @param {function(string, UpgradeLaunchConfigurationResponse):void} cb
293
357
  * @public
@@ -297,6 +361,17 @@ If the parameter is empty, a certain number (specified by `Limit` and 20 by defa
297
361
  this.request("UpgradeLaunchConfiguration", req, resp, cb);
298
362
  }
299
363
 
364
+ /**
365
+ * This API (DescribeRefreshActivities) is used to query the instance refresh activity records of a scaling group.
366
+ * @param {DescribeRefreshActivitiesRequest} req
367
+ * @param {function(string, DescribeRefreshActivitiesResponse):void} cb
368
+ * @public
369
+ */
370
+ DescribeRefreshActivities(req, cb) {
371
+ let resp = new DescribeRefreshActivitiesResponse();
372
+ this.request("DescribeRefreshActivities", req, resp, cb);
373
+ }
374
+
300
375
  /**
301
376
  * This API is used to modify the lifecycle hook.
302
377
  * @param {ModifyLifecycleHookRequest} req
@@ -408,6 +483,18 @@ If the parameter is empty, a certain number (specified by `Limit` and 20 by defa
408
483
  this.request("CreateScheduledAction", req, resp, cb);
409
484
  }
410
485
 
486
+ /**
487
+ * This API is used to enable scale-in protection for an instance.
488
+ When scale-in protection is enabled, the instance will not be removed in scale-in activities triggered by replacement of unhealthy instances, alarm threshold reached, change of desired quantity, etc.
489
+ * @param {SetInstancesProtectionRequest} req
490
+ * @param {function(string, SetInstancesProtectionResponse):void} cb
491
+ * @public
492
+ */
493
+ SetInstancesProtection(req, cb) {
494
+ let resp = new SetInstancesProtectionResponse();
495
+ this.request("SetInstancesProtection", req, resp, cb);
496
+ }
497
+
411
498
  /**
412
499
  * This API is used to query suggestions for scaling group configurations.
413
500
  * @param {DescribeAutoScalingAdvicesRequest} req
@@ -484,15 +571,18 @@ If the parameter is empty, a certain number (specified by `Limit` and 20 by defa
484
571
  }
485
572
 
486
573
  /**
487
- * This API is used to enable scale-in protection for an instance.
488
- When scale-in protection is enabled, the instance will not be removed in scale-in activities triggered by replacement of unhealthy instances, alarm threshold reached, change of desired quantity, etc.
489
- * @param {SetInstancesProtectionRequest} req
490
- * @param {function(string, SetInstancesProtectionResponse):void} cb
574
+ * This API is used to generate a new instance refresh activity, which also supports batched refreshing and operations such as pausing, resuming, and canceling. The interface returns the RefreshActivityId for the rollback activity.
575
+ * Instances pending refresh in the original activity are updated to a canceled status. Nonexistent instances are disregarded, while instances in all other statuses proceed to enter the rollback process.
576
+ * Instances that were being refreshed in the original activity will not be immediately terminated; instead, the rollback activity will be executed after their refresh has been completed.
577
+ * Rollback is supported for activities that are in a paused status or those with the most recent successful refresh; it is not supported for activities in other statuses.
578
+ * When the original refresh activity involves reinstalling instances, for the ImageId parameter, it will automatically restore to the image ID before the rollback; for parameters such as UserData, EnhancedService, LoginSettings, and HostName, they will still be retrieved from the launch configuration, requiring users to manually modify the launch configuration before initiating the rollback.
579
+ * @param {RollbackInstanceRefreshRequest} req
580
+ * @param {function(string, RollbackInstanceRefreshResponse):void} cb
491
581
  * @public
492
582
  */
493
- SetInstancesProtection(req, cb) {
494
- let resp = new SetInstancesProtectionResponse();
495
- this.request("SetInstancesProtection", req, resp, cb);
583
+ RollbackInstanceRefresh(req, cb) {
584
+ let resp = new RollbackInstanceRefreshResponse();
585
+ this.request("RollbackInstanceRefresh", req, resp, cb);
496
586
  }
497
587
 
498
588
  /**
@@ -829,6 +919,31 @@ If you configured a notification, Auto Scaling will notify the TDMQ queue of the
829
919
  this.request("DeleteNotificationConfiguration", req, resp, cb);
830
920
  }
831
921
 
922
+ /**
923
+ * This API is used to resume the paused instance refresh activity, allowing it to retry failed instances in the current batch or proceed with refreshing subsequent batches. Note that calling this interface is ineffective when the activity is not in a paused status.
924
+ * @param {ResumeInstanceRefreshRequest} req
925
+ * @param {function(string, ResumeInstanceRefreshResponse):void} cb
926
+ * @public
927
+ */
928
+ ResumeInstanceRefresh(req, cb) {
929
+ let resp = new ResumeInstanceRefreshResponse();
930
+ this.request("ResumeInstanceRefresh", req, resp, cb);
931
+ }
932
+
933
+ /**
934
+ * This API is used to cancel the instance refresh activity of the scaling group.
935
+ * Batches that have already been refreshed or are currently being refreshed remain unaffected; batches pending refresh will be canceled.
936
+ * If a refresh fails, the affected instances will remain in the standby status and require manual intervention by the user to either attempt to exit the standby status or destroy the instances.
937
+ * Rollback operations are not allowed after cancellation, and resuming is also unsupported.
938
+ * @param {CancelInstanceRefreshRequest} req
939
+ * @param {function(string, CancelInstanceRefreshResponse):void} cb
940
+ * @public
941
+ */
942
+ CancelInstanceRefresh(req, cb) {
943
+ let resp = new CancelInstanceRefreshResponse();
944
+ this.request("CancelInstanceRefresh", req, resp, cb);
945
+ }
946
+
832
947
  /**
833
948
  * This API (DescribeAccountLimits) is used to query the limits of user's AS resources.
834
949
  * @param {DescribeAccountLimitsRequest} req