tencentcloud-sdk-nodejs-intl-en 3.0.430 → 3.0.433
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 +16 -105
- package/tencentcloud/as/v20180419/models.js +286 -1412
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/dcdb/v20180411/dcdb_client.js +15 -2
- package/tencentcloud/dcdb/v20180411/models.js +109 -37
- package/tencentcloud/dts/v20180330/dts_client.js +4 -1
- package/tencentcloud/dts/v20180330/models.js +120 -0
- package/tencentcloud/mdc/v20200828/mdc_client.js +152 -20
- package/tencentcloud/mdc/v20200828/models.js +3180 -716
- package/tencentcloud/mps/v20190612/models.js +9 -2
- package/tencentcloud/postgres/v20170312/models.js +291 -147
- package/tencentcloud/postgres/v20170312/postgres_client.js +18 -4
- package/tencentcloud/redis/v20180412/models.js +602 -129
- package/tencentcloud/redis/v20180412/redis_client.js +65 -10
- package/tencentcloud/trtc/v20190722/models.js +644 -2567
- package/tencentcloud/trtc/v20190722/trtc_client.js +64 -300
package/package.json
CHANGED
|
@@ -16,22 +16,16 @@
|
|
|
16
16
|
*/
|
|
17
17
|
const models = require("./models");
|
|
18
18
|
const AbstractClient = require('../../common/abstract_client')
|
|
19
|
-
const DisableAutoScalingGroupResponse = models.DisableAutoScalingGroupResponse;
|
|
20
19
|
const ModifyLaunchConfigurationAttributesRequest = models.ModifyLaunchConfigurationAttributesRequest;
|
|
21
|
-
const DisableAutoScalingGroupRequest = models.DisableAutoScalingGroupRequest;
|
|
22
20
|
const ModifyAutoScalingGroupRequest = models.ModifyAutoScalingGroupRequest;
|
|
23
|
-
const ScaleOutInstancesRequest = models.ScaleOutInstancesRequest;
|
|
24
21
|
const AutoScalingNotification = models.AutoScalingNotification;
|
|
25
22
|
const ModifyScheduledActionRequest = models.ModifyScheduledActionRequest;
|
|
26
23
|
const DescribeAutoScalingGroupsRequest = models.DescribeAutoScalingGroupsRequest;
|
|
27
|
-
const LaunchConfiguration = models.LaunchConfiguration;
|
|
28
24
|
const DescribeAccountLimitsResponse = models.DescribeAccountLimitsResponse;
|
|
29
|
-
const CreateLaunchConfigurationResponse = models.CreateLaunchConfigurationResponse;
|
|
30
25
|
const Advice = models.Advice;
|
|
31
26
|
const CreateLifecycleHookResponse = models.CreateLifecycleHookResponse;
|
|
32
27
|
const ClearLaunchConfigurationAttributesResponse = models.ClearLaunchConfigurationAttributesResponse;
|
|
33
28
|
const DescribeAutoScalingGroupsResponse = models.DescribeAutoScalingGroupsResponse;
|
|
34
|
-
const CreateScheduledActionRequest = models.CreateScheduledActionRequest;
|
|
35
29
|
const SystemDisk = models.SystemDisk;
|
|
36
30
|
const SpotMarketOptions = models.SpotMarketOptions;
|
|
37
31
|
const StopAutoScalingInstancesResponse = models.StopAutoScalingInstancesResponse;
|
|
@@ -47,7 +41,7 @@ const StartAutoScalingInstancesResponse = models.StartAutoScalingInstancesRespon
|
|
|
47
41
|
const CompleteLifecycleActionRequest = models.CompleteLifecycleActionRequest;
|
|
48
42
|
const CreateScalingPolicyResponse = models.CreateScalingPolicyResponse;
|
|
49
43
|
const CreateNotificationConfigurationResponse = models.CreateNotificationConfigurationResponse;
|
|
50
|
-
const
|
|
44
|
+
const CreateScheduledActionRequest = models.CreateScheduledActionRequest;
|
|
51
45
|
const RemoveInstancesRequest = models.RemoveInstancesRequest;
|
|
52
46
|
const DeleteScalingPolicyResponse = models.DeleteScalingPolicyResponse;
|
|
53
47
|
const Tag = models.Tag;
|
|
@@ -60,7 +54,6 @@ const SetInstancesProtectionRequest = models.SetInstancesProtectionRequest;
|
|
|
60
54
|
const DeleteNotificationConfigurationResponse = models.DeleteNotificationConfigurationResponse;
|
|
61
55
|
const DetachInstancesResponse = models.DetachInstancesResponse;
|
|
62
56
|
const ModifyLaunchConfigurationAttributesResponse = models.ModifyLaunchConfigurationAttributesResponse;
|
|
63
|
-
const CreateLaunchConfigurationRequest = models.CreateLaunchConfigurationRequest;
|
|
64
57
|
const AutoScalingGroup = models.AutoScalingGroup;
|
|
65
58
|
const AttachInstancesResponse = models.AttachInstancesResponse;
|
|
66
59
|
const DescribeAutoScalingGroupLastActivitiesResponse = models.DescribeAutoScalingGroupLastActivitiesResponse;
|
|
@@ -80,16 +73,14 @@ const DeleteLaunchConfigurationRequest = models.DeleteLaunchConfigurationRequest
|
|
|
80
73
|
const ModifyScalingPolicyRequest = models.ModifyScalingPolicyRequest;
|
|
81
74
|
const InstanceMarketOptionsRequest = models.InstanceMarketOptionsRequest;
|
|
82
75
|
const UpgradeLifecycleHookResponse = models.UpgradeLifecycleHookResponse;
|
|
83
|
-
const
|
|
76
|
+
const ModifyLifecycleHookResponse = models.ModifyLifecycleHookResponse;
|
|
84
77
|
const DescribeAutoScalingAdvicesResponse = models.DescribeAutoScalingAdvicesResponse;
|
|
85
78
|
const CreateAutoScalingGroupRequest = models.CreateAutoScalingGroupRequest;
|
|
86
79
|
const DeleteScheduledActionResponse = models.DeleteScheduledActionResponse;
|
|
87
|
-
const UpgradeLaunchConfigurationRequest = models.UpgradeLaunchConfigurationRequest;
|
|
88
80
|
const DescribeAutoScalingActivitiesResponse = models.DescribeAutoScalingActivitiesResponse;
|
|
89
81
|
const DescribeNotificationConfigurationsResponse = models.DescribeNotificationConfigurationsResponse;
|
|
90
82
|
const DataDisk = models.DataDisk;
|
|
91
83
|
const DeleteScalingPolicyRequest = models.DeleteScalingPolicyRequest;
|
|
92
|
-
const LoginSettings = models.LoginSettings;
|
|
93
84
|
const CreateAutoScalingGroupFromInstanceResponse = models.CreateAutoScalingGroupFromInstanceResponse;
|
|
94
85
|
const DetachInstancesRequest = models.DetachInstancesRequest;
|
|
95
86
|
const Instance = models.Instance;
|
|
@@ -104,30 +95,25 @@ const ModifyDesiredCapacityRequest = models.ModifyDesiredCapacityRequest;
|
|
|
104
95
|
const CreateScheduledActionResponse = models.CreateScheduledActionResponse;
|
|
105
96
|
const CreateLifecycleHookRequest = models.CreateLifecycleHookRequest;
|
|
106
97
|
const ScheduledAction = models.ScheduledAction;
|
|
98
|
+
const ModifyLifecycleHookRequest = models.ModifyLifecycleHookRequest;
|
|
107
99
|
const CompleteLifecycleActionResponse = models.CompleteLifecycleActionResponse;
|
|
108
|
-
const ScaleOutInstancesResponse = models.ScaleOutInstancesResponse;
|
|
109
100
|
const Filter = models.Filter;
|
|
110
101
|
const DescribeLifecycleHooksRequest = models.DescribeLifecycleHooksRequest;
|
|
111
102
|
const ServiceSettings = models.ServiceSettings;
|
|
112
103
|
const CreateAutoScalingGroupResponse = models.CreateAutoScalingGroupResponse;
|
|
113
104
|
const TargetAttribute = models.TargetAttribute;
|
|
114
105
|
const ModifyNotificationConfigurationResponse = models.ModifyNotificationConfigurationResponse;
|
|
115
|
-
const LimitedLoginSettings = models.LimitedLoginSettings;
|
|
116
106
|
const DescribeLifecycleHooksResponse = models.DescribeLifecycleHooksResponse;
|
|
117
107
|
const CreateScalingPolicyRequest = models.CreateScalingPolicyRequest;
|
|
118
|
-
const ScaleInInstancesResponse = models.ScaleInInstancesResponse;
|
|
119
108
|
const DescribeAutoScalingAdvicesRequest = models.DescribeAutoScalingAdvicesRequest;
|
|
120
109
|
const DeleteNotificationConfigurationRequest = models.DeleteNotificationConfigurationRequest;
|
|
121
|
-
const DescribeLaunchConfigurationsRequest = models.DescribeLaunchConfigurationsRequest;
|
|
122
110
|
const NotificationTarget = models.NotificationTarget;
|
|
123
111
|
const ModifyLoadBalancerTargetAttributesRequest = models.ModifyLoadBalancerTargetAttributesRequest;
|
|
124
112
|
const DeleteAutoScalingGroupResponse = models.DeleteAutoScalingGroupResponse;
|
|
125
113
|
const LifecycleActionResultInfo = models.LifecycleActionResultInfo;
|
|
126
|
-
const AutoScalingGroupAbstract = models.AutoScalingGroupAbstract;
|
|
127
114
|
const EnableAutoScalingGroupRequest = models.EnableAutoScalingGroupRequest;
|
|
128
115
|
const MetricAlarm = models.MetricAlarm;
|
|
129
116
|
const DescribeNotificationConfigurationsRequest = models.DescribeNotificationConfigurationsRequest;
|
|
130
|
-
const ScaleInInstancesRequest = models.ScaleInInstancesRequest;
|
|
131
117
|
const LifecycleHook = models.LifecycleHook;
|
|
132
118
|
const ForwardLoadBalancer = models.ForwardLoadBalancer;
|
|
133
119
|
const ClearLaunchConfigurationAttributesRequest = models.ClearLaunchConfigurationAttributesRequest;
|
|
@@ -147,7 +133,6 @@ const ActivtyRelatedInstance = models.ActivtyRelatedInstance;
|
|
|
147
133
|
const CreateAutoScalingGroupFromInstanceRequest = models.CreateAutoScalingGroupFromInstanceRequest;
|
|
148
134
|
const InternetAccessible = models.InternetAccessible;
|
|
149
135
|
const EnableAutoScalingGroupResponse = models.EnableAutoScalingGroupResponse;
|
|
150
|
-
const UpgradeLaunchConfigurationResponse = models.UpgradeLaunchConfigurationResponse;
|
|
151
136
|
const InstanceChargePrepaid = models.InstanceChargePrepaid;
|
|
152
137
|
const DeleteLifecycleHookResponse = models.DeleteLifecycleHookResponse;
|
|
153
138
|
const ExecuteScalingPolicyRequest = models.ExecuteScalingPolicyRequest;
|
|
@@ -246,20 +231,6 @@ If the parameter is empty, a certain number (specified by `Limit` and 20 by defa
|
|
|
246
231
|
this.request("DeleteAutoScalingGroup", req, resp, cb);
|
|
247
232
|
}
|
|
248
233
|
|
|
249
|
-
/**
|
|
250
|
-
* This API is used to add the specified number of instances to the scaling group, which returns the scaling activity ID `ActivityId`.
|
|
251
|
-
* The scaling group is not active.
|
|
252
|
-
* The desired capacity will be increased accordingly. The new desired capacity should be no more than the maximum capacity.
|
|
253
|
-
* If the scale-out activity failed or partially succeeded, the final desired capacity only includes the instances that have been added successfully.
|
|
254
|
-
* @param {ScaleOutInstancesRequest} req
|
|
255
|
-
* @param {function(string, ScaleOutInstancesResponse):void} cb
|
|
256
|
-
* @public
|
|
257
|
-
*/
|
|
258
|
-
ScaleOutInstances(req, cb) {
|
|
259
|
-
let resp = new ScaleOutInstancesResponse();
|
|
260
|
-
this.request("ScaleOutInstances", req, resp, cb);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
234
|
/**
|
|
264
235
|
* This API is used to start up CVM instances in a scaling group.
|
|
265
236
|
* 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.
|
|
@@ -274,17 +245,14 @@ If the parameter is empty, a certain number (specified by `Limit` and 20 by defa
|
|
|
274
245
|
}
|
|
275
246
|
|
|
276
247
|
/**
|
|
277
|
-
* This API
|
|
278
|
-
|
|
279
|
-
*
|
|
280
|
-
* 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.
|
|
281
|
-
* @param {UpgradeLaunchConfigurationRequest} req
|
|
282
|
-
* @param {function(string, UpgradeLaunchConfigurationResponse):void} cb
|
|
248
|
+
* This API is used to modify the lifecycle hook.
|
|
249
|
+
* @param {ModifyLifecycleHookRequest} req
|
|
250
|
+
* @param {function(string, ModifyLifecycleHookResponse):void} cb
|
|
283
251
|
* @public
|
|
284
252
|
*/
|
|
285
|
-
|
|
286
|
-
let resp = new
|
|
287
|
-
this.request("
|
|
253
|
+
ModifyLifecycleHook(req, cb) {
|
|
254
|
+
let resp = new ModifyLifecycleHookResponse();
|
|
255
|
+
this.request("ModifyLifecycleHook", req, resp, cb);
|
|
288
256
|
}
|
|
289
257
|
|
|
290
258
|
/**
|
|
@@ -357,22 +325,6 @@ If the parameter is empty, a certain number (specified by `Limit` and 20 by defa
|
|
|
357
325
|
this.request("DetachInstances", req, resp, cb);
|
|
358
326
|
}
|
|
359
327
|
|
|
360
|
-
/**
|
|
361
|
-
* This API is used to reduce the specified number of instances from the scaling group, which returns the scaling activity ID `ActivityId`.
|
|
362
|
-
* The scaling group is not active.
|
|
363
|
-
* The scale-in instances will be selected according to the `TerminationPolicies` policy as described in [Reducing Capacity](https://intl.cloud.tencent.com/document/product/377/8563?from_cn_redirect=1).
|
|
364
|
-
* 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.
|
|
365
|
-
* The desired capacity will be reduced accordingly. The new desired capacity should be no less than the minimum capacity.
|
|
366
|
-
* If the scale-in activity failed or partially succeeded, the final desired capacity only deducts the instances that have been reduced successfully.
|
|
367
|
-
* @param {ScaleInInstancesRequest} req
|
|
368
|
-
* @param {function(string, ScaleInInstancesResponse):void} cb
|
|
369
|
-
* @public
|
|
370
|
-
*/
|
|
371
|
-
ScaleInInstances(req, cb) {
|
|
372
|
-
let resp = new ScaleInInstancesResponse();
|
|
373
|
-
this.request("ScaleInInstances", req, resp, cb);
|
|
374
|
-
}
|
|
375
|
-
|
|
376
328
|
/**
|
|
377
329
|
* This API (CreateScheduledAction) is used to create a scheduled task.
|
|
378
330
|
* @param {CreateScheduledActionRequest} req
|
|
@@ -472,18 +424,6 @@ When scale-in protection is enabled, the instance will not be removed in scale-i
|
|
|
472
424
|
this.request("SetInstancesProtection", req, resp, cb);
|
|
473
425
|
}
|
|
474
426
|
|
|
475
|
-
/**
|
|
476
|
-
* This API is used to modify a notification policy.
|
|
477
|
-
* The receiver type of the notification policy cannot be modified.
|
|
478
|
-
* @param {ModifyNotificationConfigurationRequest} req
|
|
479
|
-
* @param {function(string, ModifyNotificationConfigurationResponse):void} cb
|
|
480
|
-
* @public
|
|
481
|
-
*/
|
|
482
|
-
ModifyNotificationConfiguration(req, cb) {
|
|
483
|
-
let resp = new ModifyNotificationConfigurationResponse();
|
|
484
|
-
this.request("ModifyNotificationConfiguration", req, resp, cb);
|
|
485
|
-
}
|
|
486
|
-
|
|
487
427
|
/**
|
|
488
428
|
* This API is used to shut down CVM instances in a scaling group.
|
|
489
429
|
* Use the `SOFT_FIRST` shutdown, which means the CVM will be forcibly shut down if the soft shutdown fails.
|
|
@@ -500,19 +440,15 @@ When scale-in protection is enabled, the instance will not be removed in scale-i
|
|
|
500
440
|
}
|
|
501
441
|
|
|
502
442
|
/**
|
|
503
|
-
* This API
|
|
504
|
-
|
|
505
|
-
*
|
|
506
|
-
|
|
507
|
-
* 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).
|
|
508
|
-
|
|
509
|
-
* @param {CreateLaunchConfigurationRequest} req
|
|
510
|
-
* @param {function(string, CreateLaunchConfigurationResponse):void} cb
|
|
443
|
+
* This API is used to modify a notification policy.
|
|
444
|
+
* The receiver type of the notification policy cannot be modified.
|
|
445
|
+
* @param {ModifyNotificationConfigurationRequest} req
|
|
446
|
+
* @param {function(string, ModifyNotificationConfigurationResponse):void} cb
|
|
511
447
|
* @public
|
|
512
448
|
*/
|
|
513
|
-
|
|
514
|
-
let resp = new
|
|
515
|
-
this.request("
|
|
449
|
+
ModifyNotificationConfiguration(req, cb) {
|
|
450
|
+
let resp = new ModifyNotificationConfigurationResponse();
|
|
451
|
+
this.request("ModifyNotificationConfiguration", req, resp, cb);
|
|
516
452
|
}
|
|
517
453
|
|
|
518
454
|
/**
|
|
@@ -634,31 +570,6 @@ Note: for a scaling group that is created based on a monthly-subscribed instance
|
|
|
634
570
|
this.request("UpgradeLifecycleHook", req, resp, cb);
|
|
635
571
|
}
|
|
636
572
|
|
|
637
|
-
/**
|
|
638
|
-
* This API (DisableAutoScalingGroup) is used to disable the specified auto scaling group.
|
|
639
|
-
* @param {DisableAutoScalingGroupRequest} req
|
|
640
|
-
* @param {function(string, DisableAutoScalingGroupResponse):void} cb
|
|
641
|
-
* @public
|
|
642
|
-
*/
|
|
643
|
-
DisableAutoScalingGroup(req, cb) {
|
|
644
|
-
let resp = new DisableAutoScalingGroupResponse();
|
|
645
|
-
this.request("DisableAutoScalingGroup", req, resp, cb);
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
/**
|
|
649
|
-
* This API (DescribeLaunchConfigurations) is used to query the information of launch configurations.
|
|
650
|
-
|
|
651
|
-
* You can query the launch configuration details based on information such as launch configuration ID and name. For more information on filters, see `Filter`.
|
|
652
|
-
* 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.
|
|
653
|
-
* @param {DescribeLaunchConfigurationsRequest} req
|
|
654
|
-
* @param {function(string, DescribeLaunchConfigurationsResponse):void} cb
|
|
655
|
-
* @public
|
|
656
|
-
*/
|
|
657
|
-
DescribeLaunchConfigurations(req, cb) {
|
|
658
|
-
let resp = new DescribeLaunchConfigurationsResponse();
|
|
659
|
-
this.request("DescribeLaunchConfigurations", req, resp, cb);
|
|
660
|
-
}
|
|
661
|
-
|
|
662
573
|
/**
|
|
663
574
|
* This API (CreateScalingPolicy) is used to create an alarm trigger policy.
|
|
664
575
|
* @param {CreateScalingPolicyRequest} req
|