tencentcloud-sdk-nodejs-intl-en 3.0.508 → 3.0.511
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 +1 -1
- package/tencentcloud/as/v20180419/as_client.js +129 -9
- package/tencentcloud/as/v20180419/models.js +1684 -269
- package/tencentcloud/billing/v20180709/models.js +67 -0
- package/tencentcloud/cdb/v20170320/cdb_client.js +83 -17
- package/tencentcloud/cdb/v20170320/models.js +619 -86
- package/tencentcloud/cdn/v20180606/models.js +6 -5
- package/tencentcloud/ckafka/v20190819/ckafka_client.js +14 -1
- package/tencentcloud/ckafka/v20190819/models.js +121 -20
- package/tencentcloud/cls/v20201016/models.js +9 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/live/v20180801/live_client.js +37 -72
- package/tencentcloud/live/v20180801/models.js +777 -652
- package/tencentcloud/monitor/v20180724/models.js +58 -0
- package/tencentcloud/monitor/v20180724/monitor_client.js +1 -0
- package/tencentcloud/ocr/v20181119/models.js +201 -43
- package/tencentcloud/ocr/v20181119/ocr_client.js +16 -1
- package/tencentcloud/redis/v20180412/models.js +65 -0
- package/tencentcloud/redis/v20180412/redis_client.js +13 -0
- package/tencentcloud/tke/v20180525/models.js +451 -58
- package/tencentcloud/tke/v20180525/tke_client.js +548 -483
- package/tencentcloud/trtc/v20190722/models.js +170 -13
- package/tencentcloud/trtc/v20190722/trtc_client.js +30 -26
- package/tencentcloud/tts/v20190823/models.js +79 -0
- package/tencentcloud/tts/v20190823/tts_client.js +1 -0
- package/tencentcloud/vod/v20180717/models.js +200 -55
- package/tencentcloud/vod/v20180717/vod_client.js +46 -22
- package/tencentcloud/vpc/v20170312/models.js +812 -279
- package/tencentcloud/vpc/v20170312/vpc_client.js +71 -17
package/package.json
CHANGED
|
@@ -16,16 +16,22 @@
|
|
|
16
16
|
*/
|
|
17
17
|
const models = require("./models");
|
|
18
18
|
const AbstractClient = require('../../common/abstract_client')
|
|
19
|
+
const DisableAutoScalingGroupResponse = models.DisableAutoScalingGroupResponse;
|
|
19
20
|
const ModifyLaunchConfigurationAttributesRequest = models.ModifyLaunchConfigurationAttributesRequest;
|
|
21
|
+
const DisableAutoScalingGroupRequest = models.DisableAutoScalingGroupRequest;
|
|
20
22
|
const ModifyAutoScalingGroupRequest = models.ModifyAutoScalingGroupRequest;
|
|
23
|
+
const ScaleOutInstancesRequest = models.ScaleOutInstancesRequest;
|
|
21
24
|
const AutoScalingNotification = models.AutoScalingNotification;
|
|
22
25
|
const ModifyScheduledActionRequest = models.ModifyScheduledActionRequest;
|
|
23
26
|
const DescribeAutoScalingGroupsRequest = models.DescribeAutoScalingGroupsRequest;
|
|
27
|
+
const LaunchConfiguration = models.LaunchConfiguration;
|
|
24
28
|
const DescribeAccountLimitsResponse = models.DescribeAccountLimitsResponse;
|
|
29
|
+
const CreateLaunchConfigurationResponse = models.CreateLaunchConfigurationResponse;
|
|
25
30
|
const Advice = models.Advice;
|
|
26
31
|
const CreateLifecycleHookResponse = models.CreateLifecycleHookResponse;
|
|
27
32
|
const ClearLaunchConfigurationAttributesResponse = models.ClearLaunchConfigurationAttributesResponse;
|
|
28
33
|
const DescribeAutoScalingGroupsResponse = models.DescribeAutoScalingGroupsResponse;
|
|
34
|
+
const CreateScheduledActionRequest = models.CreateScheduledActionRequest;
|
|
29
35
|
const SystemDisk = models.SystemDisk;
|
|
30
36
|
const SpotMarketOptions = models.SpotMarketOptions;
|
|
31
37
|
const StopAutoScalingInstancesResponse = models.StopAutoScalingInstancesResponse;
|
|
@@ -41,7 +47,7 @@ const StartAutoScalingInstancesResponse = models.StartAutoScalingInstancesRespon
|
|
|
41
47
|
const CompleteLifecycleActionRequest = models.CompleteLifecycleActionRequest;
|
|
42
48
|
const CreateScalingPolicyResponse = models.CreateScalingPolicyResponse;
|
|
43
49
|
const CreateNotificationConfigurationResponse = models.CreateNotificationConfigurationResponse;
|
|
44
|
-
const
|
|
50
|
+
const DescribeLaunchConfigurationsResponse = models.DescribeLaunchConfigurationsResponse;
|
|
45
51
|
const RemoveInstancesRequest = models.RemoveInstancesRequest;
|
|
46
52
|
const DeleteScalingPolicyResponse = models.DeleteScalingPolicyResponse;
|
|
47
53
|
const Tag = models.Tag;
|
|
@@ -54,6 +60,7 @@ const SetInstancesProtectionRequest = models.SetInstancesProtectionRequest;
|
|
|
54
60
|
const DeleteNotificationConfigurationResponse = models.DeleteNotificationConfigurationResponse;
|
|
55
61
|
const DetachInstancesResponse = models.DetachInstancesResponse;
|
|
56
62
|
const ModifyLaunchConfigurationAttributesResponse = models.ModifyLaunchConfigurationAttributesResponse;
|
|
63
|
+
const CreateLaunchConfigurationRequest = models.CreateLaunchConfigurationRequest;
|
|
57
64
|
const AutoScalingGroup = models.AutoScalingGroup;
|
|
58
65
|
const AttachInstancesResponse = models.AttachInstancesResponse;
|
|
59
66
|
const DescribeAutoScalingGroupLastActivitiesResponse = models.DescribeAutoScalingGroupLastActivitiesResponse;
|
|
@@ -70,17 +77,21 @@ const DeleteLifecycleHookRequest = models.DeleteLifecycleHookRequest;
|
|
|
70
77
|
const ModifyLoadBalancerTargetAttributesResponse = models.ModifyLoadBalancerTargetAttributesResponse;
|
|
71
78
|
const ModifyAutoScalingGroupResponse = models.ModifyAutoScalingGroupResponse;
|
|
72
79
|
const DeleteLaunchConfigurationRequest = models.DeleteLaunchConfigurationRequest;
|
|
80
|
+
const InvocationResult = models.InvocationResult;
|
|
73
81
|
const ModifyScalingPolicyRequest = models.ModifyScalingPolicyRequest;
|
|
74
82
|
const InstanceMarketOptionsRequest = models.InstanceMarketOptionsRequest;
|
|
75
83
|
const UpgradeLifecycleHookResponse = models.UpgradeLifecycleHookResponse;
|
|
84
|
+
const InstanceTag = models.InstanceTag;
|
|
76
85
|
const ModifyLifecycleHookResponse = models.ModifyLifecycleHookResponse;
|
|
77
86
|
const DescribeAutoScalingAdvicesResponse = models.DescribeAutoScalingAdvicesResponse;
|
|
78
87
|
const CreateAutoScalingGroupRequest = models.CreateAutoScalingGroupRequest;
|
|
79
88
|
const DeleteScheduledActionResponse = models.DeleteScheduledActionResponse;
|
|
89
|
+
const UpgradeLaunchConfigurationRequest = models.UpgradeLaunchConfigurationRequest;
|
|
80
90
|
const DescribeAutoScalingActivitiesResponse = models.DescribeAutoScalingActivitiesResponse;
|
|
81
91
|
const DescribeNotificationConfigurationsResponse = models.DescribeNotificationConfigurationsResponse;
|
|
82
92
|
const DataDisk = models.DataDisk;
|
|
83
93
|
const DeleteScalingPolicyRequest = models.DeleteScalingPolicyRequest;
|
|
94
|
+
const LoginSettings = models.LoginSettings;
|
|
84
95
|
const CreateAutoScalingGroupFromInstanceResponse = models.CreateAutoScalingGroupFromInstanceResponse;
|
|
85
96
|
const DetachInstancesRequest = models.DetachInstancesRequest;
|
|
86
97
|
const Instance = models.Instance;
|
|
@@ -97,23 +108,29 @@ const CreateLifecycleHookRequest = models.CreateLifecycleHookRequest;
|
|
|
97
108
|
const ScheduledAction = models.ScheduledAction;
|
|
98
109
|
const ModifyLifecycleHookRequest = models.ModifyLifecycleHookRequest;
|
|
99
110
|
const CompleteLifecycleActionResponse = models.CompleteLifecycleActionResponse;
|
|
111
|
+
const ScaleOutInstancesResponse = models.ScaleOutInstancesResponse;
|
|
100
112
|
const Filter = models.Filter;
|
|
101
113
|
const DescribeLifecycleHooksRequest = models.DescribeLifecycleHooksRequest;
|
|
102
114
|
const ServiceSettings = models.ServiceSettings;
|
|
103
115
|
const CreateAutoScalingGroupResponse = models.CreateAutoScalingGroupResponse;
|
|
104
116
|
const TargetAttribute = models.TargetAttribute;
|
|
105
117
|
const ModifyNotificationConfigurationResponse = models.ModifyNotificationConfigurationResponse;
|
|
118
|
+
const LimitedLoginSettings = models.LimitedLoginSettings;
|
|
106
119
|
const DescribeLifecycleHooksResponse = models.DescribeLifecycleHooksResponse;
|
|
107
120
|
const CreateScalingPolicyRequest = models.CreateScalingPolicyRequest;
|
|
121
|
+
const ScaleInInstancesResponse = models.ScaleInInstancesResponse;
|
|
108
122
|
const DescribeAutoScalingAdvicesRequest = models.DescribeAutoScalingAdvicesRequest;
|
|
109
123
|
const DeleteNotificationConfigurationRequest = models.DeleteNotificationConfigurationRequest;
|
|
124
|
+
const DescribeLaunchConfigurationsRequest = models.DescribeLaunchConfigurationsRequest;
|
|
110
125
|
const NotificationTarget = models.NotificationTarget;
|
|
111
126
|
const ModifyLoadBalancerTargetAttributesRequest = models.ModifyLoadBalancerTargetAttributesRequest;
|
|
112
127
|
const DeleteAutoScalingGroupResponse = models.DeleteAutoScalingGroupResponse;
|
|
113
128
|
const LifecycleActionResultInfo = models.LifecycleActionResultInfo;
|
|
129
|
+
const AutoScalingGroupAbstract = models.AutoScalingGroupAbstract;
|
|
114
130
|
const EnableAutoScalingGroupRequest = models.EnableAutoScalingGroupRequest;
|
|
115
131
|
const MetricAlarm = models.MetricAlarm;
|
|
116
132
|
const DescribeNotificationConfigurationsRequest = models.DescribeNotificationConfigurationsRequest;
|
|
133
|
+
const ScaleInInstancesRequest = models.ScaleInInstancesRequest;
|
|
117
134
|
const LifecycleHook = models.LifecycleHook;
|
|
118
135
|
const ForwardLoadBalancer = models.ForwardLoadBalancer;
|
|
119
136
|
const ClearLaunchConfigurationAttributesRequest = models.ClearLaunchConfigurationAttributesRequest;
|
|
@@ -133,6 +150,7 @@ const ActivtyRelatedInstance = models.ActivtyRelatedInstance;
|
|
|
133
150
|
const CreateAutoScalingGroupFromInstanceRequest = models.CreateAutoScalingGroupFromInstanceRequest;
|
|
134
151
|
const InternetAccessible = models.InternetAccessible;
|
|
135
152
|
const EnableAutoScalingGroupResponse = models.EnableAutoScalingGroupResponse;
|
|
153
|
+
const UpgradeLaunchConfigurationResponse = models.UpgradeLaunchConfigurationResponse;
|
|
136
154
|
const InstanceChargePrepaid = models.InstanceChargePrepaid;
|
|
137
155
|
const DeleteLifecycleHookResponse = models.DeleteLifecycleHookResponse;
|
|
138
156
|
const ExecuteScalingPolicyRequest = models.ExecuteScalingPolicyRequest;
|
|
@@ -231,6 +249,21 @@ If the parameter is empty, a certain number (specified by `Limit` and 20 by defa
|
|
|
231
249
|
this.request("DeleteAutoScalingGroup", req, resp, cb);
|
|
232
250
|
}
|
|
233
251
|
|
|
252
|
+
/**
|
|
253
|
+
* This API is used to add the specified number of instances to the scaling group, which returns the scaling activity ID `ActivityId`.
|
|
254
|
+
* There is no on going scaling task.
|
|
255
|
+
* This API is valid even when the scaling group is disabled. For more details, see [DisableAutoScalingGroup](https://intl.cloud.tencent.com/document/api/377/20435?from_cn_redirect=1).
|
|
256
|
+
* The desired capacity will be increased accordingly. The new desired capacity should be no more than the maximum capacity.
|
|
257
|
+
* If the scale-out activity failed or partially succeeded, the final desired capacity only includes the instances that have been added successfully.
|
|
258
|
+
* @param {ScaleOutInstancesRequest} req
|
|
259
|
+
* @param {function(string, ScaleOutInstancesResponse):void} cb
|
|
260
|
+
* @public
|
|
261
|
+
*/
|
|
262
|
+
ScaleOutInstances(req, cb) {
|
|
263
|
+
let resp = new ScaleOutInstancesResponse();
|
|
264
|
+
this.request("ScaleOutInstances", req, resp, cb);
|
|
265
|
+
}
|
|
266
|
+
|
|
234
267
|
/**
|
|
235
268
|
* This API is used to start up CVM instances in a scaling group.
|
|
236
269
|
* 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.
|
|
@@ -244,6 +277,20 @@ If the parameter is empty, a certain number (specified by `Limit` and 20 by defa
|
|
|
244
277
|
this.request("StartAutoScalingInstances", req, resp, cb);
|
|
245
278
|
}
|
|
246
279
|
|
|
280
|
+
/**
|
|
281
|
+
* This API is used to upgrade a launch configuration.
|
|
282
|
+
|
|
283
|
+
* 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.
|
|
284
|
+
* 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.
|
|
285
|
+
* @param {UpgradeLaunchConfigurationRequest} req
|
|
286
|
+
* @param {function(string, UpgradeLaunchConfigurationResponse):void} cb
|
|
287
|
+
* @public
|
|
288
|
+
*/
|
|
289
|
+
UpgradeLaunchConfiguration(req, cb) {
|
|
290
|
+
let resp = new UpgradeLaunchConfigurationResponse();
|
|
291
|
+
this.request("UpgradeLaunchConfiguration", req, resp, cb);
|
|
292
|
+
}
|
|
293
|
+
|
|
247
294
|
/**
|
|
248
295
|
* This API is used to modify the lifecycle hook.
|
|
249
296
|
* @param {ModifyLifecycleHookRequest} req
|
|
@@ -267,7 +314,9 @@ If the parameter is empty, a certain number (specified by `Limit` and 20 by defa
|
|
|
267
314
|
}
|
|
268
315
|
|
|
269
316
|
/**
|
|
270
|
-
* This API
|
|
317
|
+
* This API is used to add CVM instances to an auto scaling group.
|
|
318
|
+
* Only CVM instances in `RUNNING` or `STOPPED` status can be added.
|
|
319
|
+
* The added CVM instances must in the same VPC as the scaling group.
|
|
271
320
|
|
|
272
321
|
* @param {AttachInstancesRequest} req
|
|
273
322
|
* @param {function(string, AttachInstancesResponse):void} cb
|
|
@@ -325,6 +374,23 @@ If the parameter is empty, a certain number (specified by `Limit` and 20 by defa
|
|
|
325
374
|
this.request("DetachInstances", req, resp, cb);
|
|
326
375
|
}
|
|
327
376
|
|
|
377
|
+
/**
|
|
378
|
+
* This API is used to reduce the specified number of instances from the scaling group.
|
|
379
|
+
* There is no on going scaling task.
|
|
380
|
+
* This API is valid even when the scaling group is disabled. For more details, see [DisableAutoScalingGroup](https://intl.cloud.tencent.com/document/api/377/20435?from_cn_redirect=1).
|
|
381
|
+
* You can specify the instances to remove in the scale-in activity by using `TerminationPolicies`. For more information, see [Scaling In Policies](https://intl.cloud.tencent.com/document/product/377/8563?from_cn_redirect=1).
|
|
382
|
+
* Only the `IN_SERVICE` instances will be reduced. To reduce instances in other statues, use the [`DetachInstances`](https://intl.cloud.tencent.com/document/api/377/20436?from_cn_redirect=1) or [`RemoveInstances`](https://intl.cloud.tencent.com/document/api/377/20431?from_cn_redirect=1) API.
|
|
383
|
+
* The desired capacity will be reduced accordingly. The new desired capacity should be no less than the minimum capacity.
|
|
384
|
+
* If the scale-in activity failed or partially succeeded, the final desired capacity only deducts the instances that have been reduced successfully.
|
|
385
|
+
* @param {ScaleInInstancesRequest} req
|
|
386
|
+
* @param {function(string, ScaleInInstancesResponse):void} cb
|
|
387
|
+
* @public
|
|
388
|
+
*/
|
|
389
|
+
ScaleInInstances(req, cb) {
|
|
390
|
+
let resp = new ScaleInInstancesResponse();
|
|
391
|
+
this.request("ScaleInInstances", req, resp, cb);
|
|
392
|
+
}
|
|
393
|
+
|
|
328
394
|
/**
|
|
329
395
|
* This API (CreateScheduledAction) is used to create a scheduled task.
|
|
330
396
|
* @param {CreateScheduledActionRequest} req
|
|
@@ -424,6 +490,18 @@ When scale-in protection is enabled, the instance will not be removed in scale-i
|
|
|
424
490
|
this.request("SetInstancesProtection", req, resp, cb);
|
|
425
491
|
}
|
|
426
492
|
|
|
493
|
+
/**
|
|
494
|
+
* This API is used to modify a notification policy.
|
|
495
|
+
* The receiver type of the notification policy cannot be modified.
|
|
496
|
+
* @param {ModifyNotificationConfigurationRequest} req
|
|
497
|
+
* @param {function(string, ModifyNotificationConfigurationResponse):void} cb
|
|
498
|
+
* @public
|
|
499
|
+
*/
|
|
500
|
+
ModifyNotificationConfiguration(req, cb) {
|
|
501
|
+
let resp = new ModifyNotificationConfigurationResponse();
|
|
502
|
+
this.request("ModifyNotificationConfiguration", req, resp, cb);
|
|
503
|
+
}
|
|
504
|
+
|
|
427
505
|
/**
|
|
428
506
|
* This API is used to shut down CVM instances in a scaling group.
|
|
429
507
|
* Use the `SOFT_FIRST` shutdown, which means the CVM will be forcibly shut down if the soft shutdown fails.
|
|
@@ -440,15 +518,19 @@ When scale-in protection is enabled, the instance will not be removed in scale-i
|
|
|
440
518
|
}
|
|
441
519
|
|
|
442
520
|
/**
|
|
443
|
-
* This API is used to
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
521
|
+
* This API is used to create a launch configuration.
|
|
522
|
+
|
|
523
|
+
* To modify a launch configuration, you can use `ModifyLaunchConfigurationAttributes`.
|
|
524
|
+
|
|
525
|
+
* You can create up to 20 launch configurations for each project. For more information, see [Usage Limits](https://intl.cloud.tencent.com/document/product/377/3120?from_cn_redirect=1).
|
|
526
|
+
|
|
527
|
+
* @param {CreateLaunchConfigurationRequest} req
|
|
528
|
+
* @param {function(string, CreateLaunchConfigurationResponse):void} cb
|
|
447
529
|
* @public
|
|
448
530
|
*/
|
|
449
|
-
|
|
450
|
-
let resp = new
|
|
451
|
-
this.request("
|
|
531
|
+
CreateLaunchConfiguration(req, cb) {
|
|
532
|
+
let resp = new CreateLaunchConfigurationResponse();
|
|
533
|
+
this.request("CreateLaunchConfiguration", req, resp, cb);
|
|
452
534
|
}
|
|
453
535
|
|
|
454
536
|
/**
|
|
@@ -570,6 +652,44 @@ Note: for a scaling group that is created based on a monthly-subscribed instance
|
|
|
570
652
|
this.request("UpgradeLifecycleHook", req, resp, cb);
|
|
571
653
|
}
|
|
572
654
|
|
|
655
|
+
/**
|
|
656
|
+
* This API is used to disable the specified auto-scaling group.
|
|
657
|
+
* When a scaling group is disabled, the following activities are not triggered automatically:
|
|
658
|
+
- Scaling activities triggered alert policies
|
|
659
|
+
- Scaling activities triggered by desired group capacity
|
|
660
|
+
- Replacement of unhealthy instances
|
|
661
|
+
- Scheduled actions
|
|
662
|
+
* When the scaling group is disabled, you can trigger scaling activities manually, including:
|
|
663
|
+
- Scale out to the specify number of instances (ScaleOutInstances)
|
|
664
|
+
- Scale in to the specify number of instances (ScaleInInstances)
|
|
665
|
+
- Remove instances from the scaling group (DetachInstances)
|
|
666
|
+
- Delete instances from the scaling group (RemoveInstances)
|
|
667
|
+
- Add instances to a scaling group (AttachInstances)
|
|
668
|
+
- Shut down CVM instances in a scaling group (StopAutoScalingInstances)
|
|
669
|
+
- Start up CVM instances in a scaling group (StartAutoScalingInstances)
|
|
670
|
+
* @param {DisableAutoScalingGroupRequest} req
|
|
671
|
+
* @param {function(string, DisableAutoScalingGroupResponse):void} cb
|
|
672
|
+
* @public
|
|
673
|
+
*/
|
|
674
|
+
DisableAutoScalingGroup(req, cb) {
|
|
675
|
+
let resp = new DisableAutoScalingGroupResponse();
|
|
676
|
+
this.request("DisableAutoScalingGroup", req, resp, cb);
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* This API is used to query the information of launch configurations.
|
|
681
|
+
|
|
682
|
+
* You can query the launch configuration details based on information such as launch configuration ID and name. For more information on filters, see `Filter`.
|
|
683
|
+
* If the parameter is empty, a certain number (specified by `Limit` and 20 by default) of launch configurations of the current user will be returned.
|
|
684
|
+
* @param {DescribeLaunchConfigurationsRequest} req
|
|
685
|
+
* @param {function(string, DescribeLaunchConfigurationsResponse):void} cb
|
|
686
|
+
* @public
|
|
687
|
+
*/
|
|
688
|
+
DescribeLaunchConfigurations(req, cb) {
|
|
689
|
+
let resp = new DescribeLaunchConfigurationsResponse();
|
|
690
|
+
this.request("DescribeLaunchConfigurations", req, resp, cb);
|
|
691
|
+
}
|
|
692
|
+
|
|
573
693
|
/**
|
|
574
694
|
* This API (CreateScalingPolicy) is used to create an alarm trigger policy.
|
|
575
695
|
* @param {CreateScalingPolicyRequest} req
|