tencentcloud-sdk-as 1.0.302 → 1.0.303
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180419/client.rb +24 -0
- data/lib/v20180419/models.rb +87 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 614a01f777343d62827bd75a0c0267f58cf30183
|
4
|
+
data.tar.gz: 6761949e3408b2c55597a9c498cc267f7cf59db5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9c8e0e298293d4d2d26f7d61abdce974ec443bff8dc02bd80e6779b67a48d39868b89b23e3c967ecfd719ff8447a5b17f0371c7340c4ba1297b2e2c105e1cb4
|
7
|
+
data.tar.gz: fba3972a3294ac21e510697bf7e1c2ae41eee9293c6d846313256584e3bb5f29c3bdc7740ab3315cf9c53dbbf61f787174583a01fa5ca3d2cef81c249bf95f93
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.303
|
data/lib/v20180419/client.rb
CHANGED
@@ -988,6 +988,30 @@ module TencentCloud
|
|
988
988
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
989
989
|
end
|
990
990
|
|
991
|
+
# 此接口用于修改生命周期挂钩。
|
992
|
+
|
993
|
+
# @param request: Request instance for ModifyLifecycleHook.
|
994
|
+
# @type request: :class:`Tencentcloud::as::V20180419::ModifyLifecycleHookRequest`
|
995
|
+
# @rtype: :class:`Tencentcloud::as::V20180419::ModifyLifecycleHookResponse`
|
996
|
+
def ModifyLifecycleHook(request)
|
997
|
+
body = send_request('ModifyLifecycleHook', request.serialize)
|
998
|
+
response = JSON.parse(body)
|
999
|
+
if response['Response'].key?('Error') == false
|
1000
|
+
model = ModifyLifecycleHookResponse.new
|
1001
|
+
model.deserialize(response['Response'])
|
1002
|
+
model
|
1003
|
+
else
|
1004
|
+
code = response['Response']['Error']['Code']
|
1005
|
+
message = response['Response']['Error']['Message']
|
1006
|
+
reqid = response['Response']['RequestId']
|
1007
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1008
|
+
end
|
1009
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1010
|
+
raise e
|
1011
|
+
rescue StandardError => e
|
1012
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1013
|
+
end
|
1014
|
+
|
991
1015
|
# 本接口(ModifyLoadBalancerTargetAttributes)用于修改伸缩组内负载均衡器的目标规则属性。
|
992
1016
|
|
993
1017
|
# @param request: Request instance for ModifyLoadBalancerTargetAttributes.
|
data/lib/v20180419/models.rb
CHANGED
@@ -258,18 +258,25 @@ module TencentCloud
|
|
258
258
|
class AutoScalingAdvice < TencentCloud::Common::AbstractModel
|
259
259
|
# @param AutoScalingGroupId: 伸缩组ID。
|
260
260
|
# @type AutoScalingGroupId: String
|
261
|
+
# @param Level: 伸缩组警告级别。取值范围:<br>
|
262
|
+
# <li>NORMAL:正常<br>
|
263
|
+
# <li>WARNING:警告级别<br>
|
264
|
+
# <li>CRITICAL:严重级别<br>
|
265
|
+
# @type Level: String
|
261
266
|
# @param Advices: 伸缩组配置建议集合。
|
262
267
|
# @type Advices: Array
|
263
268
|
|
264
|
-
attr_accessor :AutoScalingGroupId, :Advices
|
269
|
+
attr_accessor :AutoScalingGroupId, :Level, :Advices
|
265
270
|
|
266
|
-
def initialize(autoscalinggroupid=nil, advices=nil)
|
271
|
+
def initialize(autoscalinggroupid=nil, level=nil, advices=nil)
|
267
272
|
@AutoScalingGroupId = autoscalinggroupid
|
273
|
+
@Level = level
|
268
274
|
@Advices = advices
|
269
275
|
end
|
270
276
|
|
271
277
|
def deserialize(params)
|
272
278
|
@AutoScalingGroupId = params['AutoScalingGroupId']
|
279
|
+
@Level = params['Level']
|
273
280
|
unless params['Advices'].nil?
|
274
281
|
@Advices = []
|
275
282
|
params['Advices'].each do |i|
|
@@ -287,7 +294,17 @@ module TencentCloud
|
|
287
294
|
# @type AutoScalingGroupId: String
|
288
295
|
# @param AutoScalingGroupName: 伸缩组名称
|
289
296
|
# @type AutoScalingGroupName: String
|
290
|
-
# @param AutoScalingGroupStatus: 伸缩组当前状态。取值范围:<br
|
297
|
+
# @param AutoScalingGroupStatus: 伸缩组当前状态。取值范围:<br>
|
298
|
+
# <li>NORMAL:正常<br>
|
299
|
+
# <li>CVM_ABNORMAL:启动配置异常<br>
|
300
|
+
# <li>LB_ABNORMAL:负载均衡器异常<br>
|
301
|
+
# <li>LB_LISTENER_ABNORMAL:负载均衡器监听器异常<br>
|
302
|
+
# <li>LB_LOCATION_ABNORMAL:负载均衡器监听器转发配置异常<br>
|
303
|
+
# <li>VPC_ABNORMAL:VPC网络异常<br>
|
304
|
+
# <li>SUBNET_ABNORMAL:VPC子网异常<br>
|
305
|
+
# <li>INSUFFICIENT_BALANCE:余额不足<br>
|
306
|
+
# <li>LB_BACKEND_REGION_NOT_MATCH:CLB实例后端地域与AS服务所在地域不匹配<br>
|
307
|
+
# <li>LB_BACKEND_VPC_NOT_MATCH:CLB实例VPC与伸缩组VPC不匹配
|
291
308
|
# @type AutoScalingGroupStatus: String
|
292
309
|
# @param CreatedTime: 创建时间,采用UTC标准计时
|
293
310
|
# @type CreatedTime: String
|
@@ -3445,6 +3462,73 @@ module TencentCloud
|
|
3445
3462
|
end
|
3446
3463
|
end
|
3447
3464
|
|
3465
|
+
# ModifyLifecycleHook请求参数结构体
|
3466
|
+
class ModifyLifecycleHookRequest < TencentCloud::Common::AbstractModel
|
3467
|
+
# @param LifecycleHookId: 生命周期挂钩ID。
|
3468
|
+
# @type LifecycleHookId: String
|
3469
|
+
# @param LifecycleHookName: 生命周期挂钩名称。
|
3470
|
+
# @type LifecycleHookName: String
|
3471
|
+
# @param LifecycleTransition: 进入生命周期挂钩场景,取值包括:
|
3472
|
+
# <li> INSTANCE_LAUNCHING:实例启动后
|
3473
|
+
# <li> INSTANCE_TERMINATING:实例销毁前
|
3474
|
+
# @type LifecycleTransition: String
|
3475
|
+
# @param DefaultResult: 定义伸缩组在生命周期挂钩超时的情况下应采取的操作,取值包括:
|
3476
|
+
# <li> CONTINUE: 超时后继续伸缩活动
|
3477
|
+
# <li> ABANDON:超时后终止伸缩活动
|
3478
|
+
# @type DefaultResult: String
|
3479
|
+
# @param HeartbeatTimeout: 生命周期挂钩超时之前可以经过的最长时间(以秒为单位),范围从 30 到 7200 秒。
|
3480
|
+
# @type HeartbeatTimeout: Integer
|
3481
|
+
# @param NotificationMetadata: 弹性伸缩向通知目标发送的附加信息。
|
3482
|
+
# @type NotificationMetadata: String
|
3483
|
+
# @param LifecycleTransitionType: 进行生命周期挂钩的场景类型,取值范围包括`NORMAL`和 `EXTENSION`。说明:设置为`EXTENSION`值,在AttachInstances、DetachInstances、RemoveInstances 接口时会触发生命周期挂钩操作,值为`NORMAL`则不会在这些接口中触发生命周期挂钩。
|
3484
|
+
# @type LifecycleTransitionType: String
|
3485
|
+
# @param NotificationTarget: 通知目标信息。
|
3486
|
+
# @type NotificationTarget: :class:`Tencentcloud::As.v20180419.models.NotificationTarget`
|
3487
|
+
|
3488
|
+
attr_accessor :LifecycleHookId, :LifecycleHookName, :LifecycleTransition, :DefaultResult, :HeartbeatTimeout, :NotificationMetadata, :LifecycleTransitionType, :NotificationTarget
|
3489
|
+
|
3490
|
+
def initialize(lifecyclehookid=nil, lifecyclehookname=nil, lifecycletransition=nil, defaultresult=nil, heartbeattimeout=nil, notificationmetadata=nil, lifecycletransitiontype=nil, notificationtarget=nil)
|
3491
|
+
@LifecycleHookId = lifecyclehookid
|
3492
|
+
@LifecycleHookName = lifecyclehookname
|
3493
|
+
@LifecycleTransition = lifecycletransition
|
3494
|
+
@DefaultResult = defaultresult
|
3495
|
+
@HeartbeatTimeout = heartbeattimeout
|
3496
|
+
@NotificationMetadata = notificationmetadata
|
3497
|
+
@LifecycleTransitionType = lifecycletransitiontype
|
3498
|
+
@NotificationTarget = notificationtarget
|
3499
|
+
end
|
3500
|
+
|
3501
|
+
def deserialize(params)
|
3502
|
+
@LifecycleHookId = params['LifecycleHookId']
|
3503
|
+
@LifecycleHookName = params['LifecycleHookName']
|
3504
|
+
@LifecycleTransition = params['LifecycleTransition']
|
3505
|
+
@DefaultResult = params['DefaultResult']
|
3506
|
+
@HeartbeatTimeout = params['HeartbeatTimeout']
|
3507
|
+
@NotificationMetadata = params['NotificationMetadata']
|
3508
|
+
@LifecycleTransitionType = params['LifecycleTransitionType']
|
3509
|
+
unless params['NotificationTarget'].nil?
|
3510
|
+
@NotificationTarget = NotificationTarget.new
|
3511
|
+
@NotificationTarget.deserialize(params['NotificationTarget'])
|
3512
|
+
end
|
3513
|
+
end
|
3514
|
+
end
|
3515
|
+
|
3516
|
+
# ModifyLifecycleHook返回参数结构体
|
3517
|
+
class ModifyLifecycleHookResponse < TencentCloud::Common::AbstractModel
|
3518
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3519
|
+
# @type RequestId: String
|
3520
|
+
|
3521
|
+
attr_accessor :RequestId
|
3522
|
+
|
3523
|
+
def initialize(requestid=nil)
|
3524
|
+
@RequestId = requestid
|
3525
|
+
end
|
3526
|
+
|
3527
|
+
def deserialize(params)
|
3528
|
+
@RequestId = params['RequestId']
|
3529
|
+
end
|
3530
|
+
end
|
3531
|
+
|
3448
3532
|
# ModifyLoadBalancerTargetAttributes请求参数结构体
|
3449
3533
|
class ModifyLoadBalancerTargetAttributesRequest < TencentCloud::Common::AbstractModel
|
3450
3534
|
# @param AutoScalingGroupId: 伸缩组ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-as
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.303
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|