tencentcloud-sdk-nodejs-as 4.0.1050 → 4.0.1052
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 +4 -9
- package/src/services/as/v20180419/as_client.ts +17 -2
- package/src/services/as/v20180419/as_models.ts +44 -16
- package/tencentcloud/services/as/v20180419/as_client.d.ts +8 -1
- package/tencentcloud/services/as/v20180419/as_client.js +9 -0
- package/tencentcloud/services/as/v20180419/as_models.d.ts +42 -16
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-as",
|
|
3
|
-
"version": "4.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "4.0.1052",
|
|
4
|
+
"description": "Tencent Cloud API NODEJS SDK",
|
|
5
5
|
"main": "tencentcloud/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "mocha -t 10000",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"author": "tencentcloudapi",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"tencentcloud-sdk-nodejs-common": "
|
|
25
|
+
"tencentcloud-sdk-nodejs-common": "^4.0.488",
|
|
26
26
|
"tslib": "1.13.0"
|
|
27
27
|
},
|
|
28
28
|
"directories": {
|
|
@@ -35,19 +35,14 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/form-data": "^2.5.0",
|
|
38
|
-
"@types/json-bigint": "^1.0.1",
|
|
39
38
|
"@types/node": "^14.0.26",
|
|
40
39
|
"@types/node-fetch": "^2.5.7",
|
|
41
|
-
"@types/uuid": "^9.0.8",
|
|
42
40
|
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
|
43
41
|
"@typescript-eslint/parser": "^2.34.0",
|
|
44
|
-
"babel-eslint": "^10.0.2",
|
|
45
42
|
"chai": "^4.2.0",
|
|
46
43
|
"eslint": "^6.8.0",
|
|
47
|
-
"eslint-plugin-react": "^7.17.0",
|
|
48
44
|
"mocha": "^8.1.1",
|
|
49
|
-
"prettier": "^2.3.0",
|
|
50
45
|
"ts-node": "^8.10.2",
|
|
51
46
|
"typescript": "^3.9.7"
|
|
52
47
|
}
|
|
53
|
-
}
|
|
48
|
+
}
|
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
CreateLaunchConfigurationResponse,
|
|
33
33
|
RelatedInstance,
|
|
34
34
|
Advice,
|
|
35
|
+
EnterStandbyRequest,
|
|
35
36
|
CreateLifecycleHookResponse,
|
|
36
37
|
ClearLaunchConfigurationAttributesResponse,
|
|
37
38
|
DescribeAutoScalingGroupsResponse,
|
|
@@ -46,7 +47,7 @@ import {
|
|
|
46
47
|
ModifyScheduledActionResponse,
|
|
47
48
|
AttachLoadBalancersResponse,
|
|
48
49
|
ExecuteScalingPolicyResponse,
|
|
49
|
-
|
|
50
|
+
ForwardLoadBalancerIdentification,
|
|
50
51
|
SetInstancesProtectionResponse,
|
|
51
52
|
StartAutoScalingInstancesResponse,
|
|
52
53
|
CompleteLifecycleActionRequest,
|
|
@@ -91,6 +92,7 @@ import {
|
|
|
91
92
|
ModifyScalingPolicyRequest,
|
|
92
93
|
InstanceMarketOptionsRequest,
|
|
93
94
|
RefreshBatch,
|
|
95
|
+
EnterStandbyResponse,
|
|
94
96
|
UpgradeLifecycleHookResponse,
|
|
95
97
|
InstanceTag,
|
|
96
98
|
ModifyLifecycleHookResponse,
|
|
@@ -157,7 +159,7 @@ import {
|
|
|
157
159
|
ForwardLoadBalancer,
|
|
158
160
|
ClearLaunchConfigurationAttributesRequest,
|
|
159
161
|
InstanceNameIndexSettings,
|
|
160
|
-
|
|
162
|
+
DeleteAutoScalingGroupRequest,
|
|
161
163
|
AutoScalingAdvice,
|
|
162
164
|
StartAutoScalingInstancesRequest,
|
|
163
165
|
AttachInstancesRequest,
|
|
@@ -748,6 +750,19 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
748
750
|
return this.request("DescribeLaunchConfigurations", req, cb)
|
|
749
751
|
}
|
|
750
752
|
|
|
753
|
+
/**
|
|
754
|
+
* 伸缩组内实例进入备用中状态。
|
|
755
|
+
* 备用中状态实例的 CLB 权重值为 0,不会被自动缩容、不健康替换、实例刷新操作选中
|
|
756
|
+
* 调用弹性伸缩开关机接口会使得备用中状态发生变化,而云服务器开关机接口不会影响
|
|
757
|
+
* 实例进入备用中状态后,伸缩组会尝试下调期望实例数,新期望数不会小于最小值
|
|
758
|
+
*/
|
|
759
|
+
async EnterStandby(
|
|
760
|
+
req: EnterStandbyRequest,
|
|
761
|
+
cb?: (error: string, rep: EnterStandbyResponse) => void
|
|
762
|
+
): Promise<EnterStandbyResponse> {
|
|
763
|
+
return this.request("EnterStandby", req, cb)
|
|
764
|
+
}
|
|
765
|
+
|
|
751
766
|
/**
|
|
752
767
|
* 本接口(CreateScalingPolicy)用于创建告警触发策略。
|
|
753
768
|
*/
|
|
@@ -661,6 +661,20 @@ export interface Advice {
|
|
|
661
661
|
Level?: string
|
|
662
662
|
}
|
|
663
663
|
|
|
664
|
+
/**
|
|
665
|
+
* EnterStandby请求参数结构体
|
|
666
|
+
*/
|
|
667
|
+
export interface EnterStandbyRequest {
|
|
668
|
+
/**
|
|
669
|
+
* 伸缩组 ID。
|
|
670
|
+
*/
|
|
671
|
+
AutoScalingGroupId: string
|
|
672
|
+
/**
|
|
673
|
+
* 运行中状态实例列表,不支持传入非运行中状态实例。
|
|
674
|
+
*/
|
|
675
|
+
InstanceIds: Array<string>
|
|
676
|
+
}
|
|
677
|
+
|
|
664
678
|
/**
|
|
665
679
|
* CreateLifecycleHook返回参数结构体
|
|
666
680
|
*/
|
|
@@ -928,13 +942,21 @@ export interface ExecuteScalingPolicyResponse {
|
|
|
928
942
|
}
|
|
929
943
|
|
|
930
944
|
/**
|
|
931
|
-
*
|
|
945
|
+
* 应用型负载均衡器标识信息
|
|
932
946
|
*/
|
|
933
|
-
export interface
|
|
947
|
+
export interface ForwardLoadBalancerIdentification {
|
|
934
948
|
/**
|
|
935
|
-
*
|
|
949
|
+
* 负载均衡器ID
|
|
936
950
|
*/
|
|
937
|
-
|
|
951
|
+
LoadBalancerId: string
|
|
952
|
+
/**
|
|
953
|
+
* 应用型负载均衡监听器 ID
|
|
954
|
+
*/
|
|
955
|
+
ListenerId: string
|
|
956
|
+
/**
|
|
957
|
+
* 转发规则ID,注意:针对七层监听器此参数必填
|
|
958
|
+
*/
|
|
959
|
+
LocationId?: string
|
|
938
960
|
}
|
|
939
961
|
|
|
940
962
|
/**
|
|
@@ -2029,6 +2051,20 @@ export interface RefreshBatch {
|
|
|
2029
2051
|
EndTime?: string
|
|
2030
2052
|
}
|
|
2031
2053
|
|
|
2054
|
+
/**
|
|
2055
|
+
* EnterStandby返回参数结构体
|
|
2056
|
+
*/
|
|
2057
|
+
export interface EnterStandbyResponse {
|
|
2058
|
+
/**
|
|
2059
|
+
* 伸缩活动ID。
|
|
2060
|
+
*/
|
|
2061
|
+
ActivityId?: string
|
|
2062
|
+
/**
|
|
2063
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2064
|
+
*/
|
|
2065
|
+
RequestId?: string
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2032
2068
|
/**
|
|
2033
2069
|
* UpgradeLifecycleHook返回参数结构体
|
|
2034
2070
|
*/
|
|
@@ -3751,21 +3787,13 @@ export interface InstanceNameIndexSettings {
|
|
|
3751
3787
|
}
|
|
3752
3788
|
|
|
3753
3789
|
/**
|
|
3754
|
-
*
|
|
3790
|
+
* DeleteAutoScalingGroup请求参数结构体
|
|
3755
3791
|
*/
|
|
3756
|
-
export interface
|
|
3757
|
-
/**
|
|
3758
|
-
* 负载均衡器ID
|
|
3759
|
-
*/
|
|
3760
|
-
LoadBalancerId: string
|
|
3761
|
-
/**
|
|
3762
|
-
* 应用型负载均衡监听器 ID
|
|
3763
|
-
*/
|
|
3764
|
-
ListenerId: string
|
|
3792
|
+
export interface DeleteAutoScalingGroupRequest {
|
|
3765
3793
|
/**
|
|
3766
|
-
*
|
|
3794
|
+
* 伸缩组ID
|
|
3767
3795
|
*/
|
|
3768
|
-
|
|
3796
|
+
AutoScalingGroupId: string
|
|
3769
3797
|
}
|
|
3770
3798
|
|
|
3771
3799
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { DisableAutoScalingGroupResponse, ModifyLaunchConfigurationAttributesRequest, DisableAutoScalingGroupRequest, DescribeRefreshActivitiesResponse, ModifyAutoScalingGroupRequest, ScaleOutInstancesRequest, ModifyScheduledActionRequest, DescribeAutoScalingGroupsRequest, DescribeAccountLimitsResponse, CreateLaunchConfigurationResponse, CreateLifecycleHookResponse, ClearLaunchConfigurationAttributesResponse, DescribeAutoScalingGroupsResponse, CreateScheduledActionRequest, ExitStandbyRequest, StopAutoScalingInstancesResponse, DescribeScalingPoliciesRequest, ModifyScheduledActionResponse, AttachLoadBalancersResponse, ExecuteScalingPolicyResponse,
|
|
2
|
+
import { DisableAutoScalingGroupResponse, ModifyLaunchConfigurationAttributesRequest, DisableAutoScalingGroupRequest, DescribeRefreshActivitiesResponse, ModifyAutoScalingGroupRequest, ScaleOutInstancesRequest, ModifyScheduledActionRequest, DescribeAutoScalingGroupsRequest, DescribeAccountLimitsResponse, CreateLaunchConfigurationResponse, EnterStandbyRequest, CreateLifecycleHookResponse, ClearLaunchConfigurationAttributesResponse, DescribeAutoScalingGroupsResponse, CreateScheduledActionRequest, ExitStandbyRequest, StopAutoScalingInstancesResponse, DescribeScalingPoliciesRequest, ModifyScheduledActionResponse, AttachLoadBalancersResponse, ExecuteScalingPolicyResponse, SetInstancesProtectionResponse, StartAutoScalingInstancesResponse, CompleteLifecycleActionRequest, CreateScalingPolicyResponse, CreateNotificationConfigurationResponse, DescribeRefreshActivitiesRequest, DescribeLaunchConfigurationsResponse, RemoveInstancesRequest, DeleteScalingPolicyResponse, DetachLoadBalancersRequest, DescribeAutoScalingInstancesRequest, ModifyLoadBalancersRequest, RemoveInstancesResponse, ModifyScalingPolicyResponse, DeleteLaunchConfigurationRequest, SetInstancesProtectionRequest, DeleteNotificationConfigurationResponse, DetachInstancesResponse, ModifyLaunchConfigurationAttributesResponse, CreateLaunchConfigurationRequest, AttachInstancesResponse, DescribeAutoScalingGroupLastActivitiesResponse, DescribeAccountLimitsRequest, ScaleInInstancesResponse, CancelInstanceRefreshRequest, DetachLoadBalancersResponse, DescribeAutoScalingGroupLastActivitiesRequest, ModifyLoadBalancersResponse, CreateNotificationConfigurationRequest, DescribeScheduledActionsResponse, ModifyNotificationConfigurationRequest, DeleteLifecycleHookRequest, ModifyLoadBalancerTargetAttributesResponse, ModifyAutoScalingGroupResponse, ExitStandbyResponse, ModifyScalingPolicyRequest, EnterStandbyResponse, UpgradeLifecycleHookResponse, ModifyLifecycleHookResponse, DescribeAutoScalingAdvicesResponse, CreateAutoScalingGroupRequest, DeleteScheduledActionResponse, UpgradeLaunchConfigurationRequest, DescribeAutoScalingActivitiesResponse, DescribeNotificationConfigurationsResponse, RollbackInstanceRefreshResponse, DeleteScalingPolicyRequest, CreateAutoScalingGroupFromInstanceResponse, DetachInstancesRequest, DescribeAutoScalingInstancesResponse, DeleteLaunchConfigurationResponse, DescribeScheduledActionsRequest, DeleteScheduledActionRequest, DescribeAutoScalingActivitiesRequest, ModifyDesiredCapacityRequest, CreateScheduledActionResponse, StartInstanceRefreshResponse, CreateLifecycleHookRequest, ModifyLifecycleHookRequest, CompleteLifecycleActionResponse, ScaleOutInstancesResponse, DescribeLifecycleHooksRequest, CreateAutoScalingGroupResponse, ModifyNotificationConfigurationResponse, DescribeLifecycleHooksResponse, CreateScalingPolicyRequest, ResumeInstanceRefreshRequest, DescribeAutoScalingAdvicesRequest, DeleteNotificationConfigurationRequest, DescribeLaunchConfigurationsRequest, ModifyLoadBalancerTargetAttributesRequest, RollbackInstanceRefreshRequest, StartInstanceRefreshRequest, DeleteAutoScalingGroupResponse, EnableAutoScalingGroupRequest, StopInstanceRefreshRequest, DescribeNotificationConfigurationsRequest, ScaleInInstancesRequest, ClearLaunchConfigurationAttributesRequest, DeleteAutoScalingGroupRequest, StartAutoScalingInstancesRequest, AttachInstancesRequest, StopInstanceRefreshResponse, AttachLoadBalancersRequest, UpgradeLifecycleHookRequest, ResumeInstanceRefreshResponse, DescribeScalingPoliciesResponse, ModifyDesiredCapacityResponse, StopAutoScalingInstancesRequest, CancelInstanceRefreshResponse, CreateAutoScalingGroupFromInstanceRequest, EnableAutoScalingGroupResponse, UpgradeLaunchConfigurationResponse, DeleteLifecycleHookResponse, ExecuteScalingPolicyRequest } from "./as_models";
|
|
3
3
|
/**
|
|
4
4
|
* as client
|
|
5
5
|
* @class
|
|
@@ -310,6 +310,13 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
310
310
|
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的启动配置。
|
|
311
311
|
*/
|
|
312
312
|
DescribeLaunchConfigurations(req: DescribeLaunchConfigurationsRequest, cb?: (error: string, rep: DescribeLaunchConfigurationsResponse) => void): Promise<DescribeLaunchConfigurationsResponse>;
|
|
313
|
+
/**
|
|
314
|
+
* 伸缩组内实例进入备用中状态。
|
|
315
|
+
* 备用中状态实例的 CLB 权重值为 0,不会被自动缩容、不健康替换、实例刷新操作选中
|
|
316
|
+
* 调用弹性伸缩开关机接口会使得备用中状态发生变化,而云服务器开关机接口不会影响
|
|
317
|
+
* 实例进入备用中状态后,伸缩组会尝试下调期望实例数,新期望数不会小于最小值
|
|
318
|
+
*/
|
|
319
|
+
EnterStandby(req: EnterStandbyRequest, cb?: (error: string, rep: EnterStandbyResponse) => void): Promise<EnterStandbyResponse>;
|
|
313
320
|
/**
|
|
314
321
|
* 本接口(CreateScalingPolicy)用于创建告警触发策略。
|
|
315
322
|
*/
|
|
@@ -415,6 +415,15 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
415
415
|
async DescribeLaunchConfigurations(req, cb) {
|
|
416
416
|
return this.request("DescribeLaunchConfigurations", req, cb);
|
|
417
417
|
}
|
|
418
|
+
/**
|
|
419
|
+
* 伸缩组内实例进入备用中状态。
|
|
420
|
+
* 备用中状态实例的 CLB 权重值为 0,不会被自动缩容、不健康替换、实例刷新操作选中
|
|
421
|
+
* 调用弹性伸缩开关机接口会使得备用中状态发生变化,而云服务器开关机接口不会影响
|
|
422
|
+
* 实例进入备用中状态后,伸缩组会尝试下调期望实例数,新期望数不会小于最小值
|
|
423
|
+
*/
|
|
424
|
+
async EnterStandby(req, cb) {
|
|
425
|
+
return this.request("EnterStandby", req, cb);
|
|
426
|
+
}
|
|
418
427
|
/**
|
|
419
428
|
* 本接口(CreateScalingPolicy)用于创建告警触发策略。
|
|
420
429
|
*/
|
|
@@ -629,6 +629,19 @@ export interface Advice {
|
|
|
629
629
|
*/
|
|
630
630
|
Level?: string;
|
|
631
631
|
}
|
|
632
|
+
/**
|
|
633
|
+
* EnterStandby请求参数结构体
|
|
634
|
+
*/
|
|
635
|
+
export interface EnterStandbyRequest {
|
|
636
|
+
/**
|
|
637
|
+
* 伸缩组 ID。
|
|
638
|
+
*/
|
|
639
|
+
AutoScalingGroupId: string;
|
|
640
|
+
/**
|
|
641
|
+
* 运行中状态实例列表,不支持传入非运行中状态实例。
|
|
642
|
+
*/
|
|
643
|
+
InstanceIds: Array<string>;
|
|
644
|
+
}
|
|
632
645
|
/**
|
|
633
646
|
* CreateLifecycleHook返回参数结构体
|
|
634
647
|
*/
|
|
@@ -882,13 +895,21 @@ export interface ExecuteScalingPolicyResponse {
|
|
|
882
895
|
RequestId?: string;
|
|
883
896
|
}
|
|
884
897
|
/**
|
|
885
|
-
*
|
|
898
|
+
* 应用型负载均衡器标识信息
|
|
886
899
|
*/
|
|
887
|
-
export interface
|
|
900
|
+
export interface ForwardLoadBalancerIdentification {
|
|
888
901
|
/**
|
|
889
|
-
*
|
|
902
|
+
* 负载均衡器ID
|
|
890
903
|
*/
|
|
891
|
-
|
|
904
|
+
LoadBalancerId: string;
|
|
905
|
+
/**
|
|
906
|
+
* 应用型负载均衡监听器 ID
|
|
907
|
+
*/
|
|
908
|
+
ListenerId: string;
|
|
909
|
+
/**
|
|
910
|
+
* 转发规则ID,注意:针对七层监听器此参数必填
|
|
911
|
+
*/
|
|
912
|
+
LocationId?: string;
|
|
892
913
|
}
|
|
893
914
|
/**
|
|
894
915
|
* SetInstancesProtection返回参数结构体
|
|
@@ -1938,6 +1959,19 @@ export interface RefreshBatch {
|
|
|
1938
1959
|
*/
|
|
1939
1960
|
EndTime?: string;
|
|
1940
1961
|
}
|
|
1962
|
+
/**
|
|
1963
|
+
* EnterStandby返回参数结构体
|
|
1964
|
+
*/
|
|
1965
|
+
export interface EnterStandbyResponse {
|
|
1966
|
+
/**
|
|
1967
|
+
* 伸缩活动ID。
|
|
1968
|
+
*/
|
|
1969
|
+
ActivityId?: string;
|
|
1970
|
+
/**
|
|
1971
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1972
|
+
*/
|
|
1973
|
+
RequestId?: string;
|
|
1974
|
+
}
|
|
1941
1975
|
/**
|
|
1942
1976
|
* UpgradeLifecycleHook返回参数结构体
|
|
1943
1977
|
*/
|
|
@@ -3594,21 +3628,13 @@ export interface InstanceNameIndexSettings {
|
|
|
3594
3628
|
BeginIndex?: number;
|
|
3595
3629
|
}
|
|
3596
3630
|
/**
|
|
3597
|
-
*
|
|
3631
|
+
* DeleteAutoScalingGroup请求参数结构体
|
|
3598
3632
|
*/
|
|
3599
|
-
export interface
|
|
3600
|
-
/**
|
|
3601
|
-
* 负载均衡器ID
|
|
3602
|
-
*/
|
|
3603
|
-
LoadBalancerId: string;
|
|
3604
|
-
/**
|
|
3605
|
-
* 应用型负载均衡监听器 ID
|
|
3606
|
-
*/
|
|
3607
|
-
ListenerId: string;
|
|
3633
|
+
export interface DeleteAutoScalingGroupRequest {
|
|
3608
3634
|
/**
|
|
3609
|
-
*
|
|
3635
|
+
* 伸缩组ID
|
|
3610
3636
|
*/
|
|
3611
|
-
|
|
3637
|
+
AutoScalingGroupId: string;
|
|
3612
3638
|
}
|
|
3613
3639
|
/**
|
|
3614
3640
|
* 伸缩组配置建议。
|