tencentcloud-sdk-as 1.0.302 → 1.0.305
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180419/client.rb +24 -0
- data/lib/v20180419/models.rb +96 -6
- 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: 6f1cd4690116ab3d1543f9f07ab262b1f0180354
|
4
|
+
data.tar.gz: d20de0f1beb968d699e42f433c7ab368f361e7a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77495d6e549faddaa7cb24723d352e59e3bd9ff2f94e00887913e86c3bb2fbe3dce194058f09e9f0a0d1f6db26b227151348c9889ef4751a158c31b3ec8f2f29
|
7
|
+
data.tar.gz: d22c21d2163ac31a08c27b1dfb9b1bb198a606490cd16bc36434a3b1472f22e4ca0db235b0345be85afbe6d2c6fa34178a0fb8d19580e52e194107a8f4845c21
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.305
|
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
|
@@ -1256,7 +1273,7 @@ module TencentCloud
|
|
1256
1273
|
|
1257
1274
|
# 启动配置的数据盘配置信息。若不指定该参数,则默认不购买数据盘,当前仅支持购买的时候指定一个数据盘。
|
1258
1275
|
class DataDisk < TencentCloud::Common::AbstractModel
|
1259
|
-
# @param DiskType: 数据盘类型。数据盘类型限制详见[云硬盘类型](https://cloud.tencent.com/document/product/362/2353)。取值范围:<br><li>LOCAL_BASIC:本地硬盘<br><li>LOCAL_SSD:本地SSD硬盘<br><li>CLOUD_BASIC:普通云硬盘<br><li>CLOUD_PREMIUM:高性能云硬盘<br><li>CLOUD_SSD:SSD云硬盘<br><br>默认取值与系统盘类型(SystemDisk.DiskType)保持一致。
|
1276
|
+
# @param DiskType: 数据盘类型。数据盘类型限制详见[云硬盘类型](https://cloud.tencent.com/document/product/362/2353)。取值范围:<br><li>LOCAL_BASIC:本地硬盘<br><li>LOCAL_SSD:本地SSD硬盘<br><li>CLOUD_BASIC:普通云硬盘<br><li>CLOUD_PREMIUM:高性能云硬盘<br><li>CLOUD_SSD:SSD云硬盘<br><li>CLOUD_HSSD:增强型SSD云硬盘<br><li>CLOUD_TSSD:极速型SSD云硬盘<br><br>默认取值与系统盘类型(SystemDisk.DiskType)保持一致。
|
1260
1277
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1261
1278
|
# @type DiskType: String
|
1262
1279
|
# @param DiskSize: 数据盘大小,单位:GB。最小调整步长为10G,不同数据盘类型取值范围不同,具体限制详见:[CVM实例配置](https://cloud.tencent.com/document/product/213/2177)。默认值为0,表示不购买数据盘。更多限制详见产品文档。
|
@@ -1271,15 +1288,20 @@ module TencentCloud
|
|
1271
1288
|
# @param Encrypt: 数据盘是否加密。取值范围:<br><li>TRUE:加密<br><li>FALSE:不加密
|
1272
1289
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1273
1290
|
# @type Encrypt: Boolean
|
1291
|
+
# @param ThroughputPerformance: 云硬盘性能,单位:MB/s。使用此参数可给云硬盘购买额外的性能,功能介绍和类型限制详见:[增强型 SSD 云硬盘额外性能说明](https://cloud.tencent.com/document/product/362/51896#.E5.A2.9E.E5.BC.BA.E5.9E.8B-ssd-.E4.BA.91.E7.A1.AC.E7.9B.98.E9.A2.9D.E5.A4.96.E6.80.A7.E8.83.BD)。
|
1292
|
+
# 当前仅支持极速型云盘(CLOUD_TSSD)和增强型SSD云硬盘(CLOUD_HSSD)且 需容量 > 460GB。
|
1293
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1294
|
+
# @type ThroughputPerformance: Integer
|
1274
1295
|
|
1275
|
-
attr_accessor :DiskType, :DiskSize, :SnapshotId, :DeleteWithInstance, :Encrypt
|
1296
|
+
attr_accessor :DiskType, :DiskSize, :SnapshotId, :DeleteWithInstance, :Encrypt, :ThroughputPerformance
|
1276
1297
|
|
1277
|
-
def initialize(disktype=nil, disksize=nil, snapshotid=nil, deletewithinstance=nil, encrypt=nil)
|
1298
|
+
def initialize(disktype=nil, disksize=nil, snapshotid=nil, deletewithinstance=nil, encrypt=nil, throughputperformance=nil)
|
1278
1299
|
@DiskType = disktype
|
1279
1300
|
@DiskSize = disksize
|
1280
1301
|
@SnapshotId = snapshotid
|
1281
1302
|
@DeleteWithInstance = deletewithinstance
|
1282
1303
|
@Encrypt = encrypt
|
1304
|
+
@ThroughputPerformance = throughputperformance
|
1283
1305
|
end
|
1284
1306
|
|
1285
1307
|
def deserialize(params)
|
@@ -1288,6 +1310,7 @@ module TencentCloud
|
|
1288
1310
|
@SnapshotId = params['SnapshotId']
|
1289
1311
|
@DeleteWithInstance = params['DeleteWithInstance']
|
1290
1312
|
@Encrypt = params['Encrypt']
|
1313
|
+
@ThroughputPerformance = params['ThroughputPerformance']
|
1291
1314
|
end
|
1292
1315
|
end
|
1293
1316
|
|
@@ -3445,6 +3468,73 @@ module TencentCloud
|
|
3445
3468
|
end
|
3446
3469
|
end
|
3447
3470
|
|
3471
|
+
# ModifyLifecycleHook请求参数结构体
|
3472
|
+
class ModifyLifecycleHookRequest < TencentCloud::Common::AbstractModel
|
3473
|
+
# @param LifecycleHookId: 生命周期挂钩ID。
|
3474
|
+
# @type LifecycleHookId: String
|
3475
|
+
# @param LifecycleHookName: 生命周期挂钩名称。
|
3476
|
+
# @type LifecycleHookName: String
|
3477
|
+
# @param LifecycleTransition: 进入生命周期挂钩场景,取值包括:
|
3478
|
+
# <li> INSTANCE_LAUNCHING:实例启动后
|
3479
|
+
# <li> INSTANCE_TERMINATING:实例销毁前
|
3480
|
+
# @type LifecycleTransition: String
|
3481
|
+
# @param DefaultResult: 定义伸缩组在生命周期挂钩超时的情况下应采取的操作,取值包括:
|
3482
|
+
# <li> CONTINUE: 超时后继续伸缩活动
|
3483
|
+
# <li> ABANDON:超时后终止伸缩活动
|
3484
|
+
# @type DefaultResult: String
|
3485
|
+
# @param HeartbeatTimeout: 生命周期挂钩超时之前可以经过的最长时间(以秒为单位),范围从 30 到 7200 秒。
|
3486
|
+
# @type HeartbeatTimeout: Integer
|
3487
|
+
# @param NotificationMetadata: 弹性伸缩向通知目标发送的附加信息。
|
3488
|
+
# @type NotificationMetadata: String
|
3489
|
+
# @param LifecycleTransitionType: 进行生命周期挂钩的场景类型,取值范围包括`NORMAL`和 `EXTENSION`。说明:设置为`EXTENSION`值,在AttachInstances、DetachInstances、RemoveInstances 接口时会触发生命周期挂钩操作,值为`NORMAL`则不会在这些接口中触发生命周期挂钩。
|
3490
|
+
# @type LifecycleTransitionType: String
|
3491
|
+
# @param NotificationTarget: 通知目标信息。
|
3492
|
+
# @type NotificationTarget: :class:`Tencentcloud::As.v20180419.models.NotificationTarget`
|
3493
|
+
|
3494
|
+
attr_accessor :LifecycleHookId, :LifecycleHookName, :LifecycleTransition, :DefaultResult, :HeartbeatTimeout, :NotificationMetadata, :LifecycleTransitionType, :NotificationTarget
|
3495
|
+
|
3496
|
+
def initialize(lifecyclehookid=nil, lifecyclehookname=nil, lifecycletransition=nil, defaultresult=nil, heartbeattimeout=nil, notificationmetadata=nil, lifecycletransitiontype=nil, notificationtarget=nil)
|
3497
|
+
@LifecycleHookId = lifecyclehookid
|
3498
|
+
@LifecycleHookName = lifecyclehookname
|
3499
|
+
@LifecycleTransition = lifecycletransition
|
3500
|
+
@DefaultResult = defaultresult
|
3501
|
+
@HeartbeatTimeout = heartbeattimeout
|
3502
|
+
@NotificationMetadata = notificationmetadata
|
3503
|
+
@LifecycleTransitionType = lifecycletransitiontype
|
3504
|
+
@NotificationTarget = notificationtarget
|
3505
|
+
end
|
3506
|
+
|
3507
|
+
def deserialize(params)
|
3508
|
+
@LifecycleHookId = params['LifecycleHookId']
|
3509
|
+
@LifecycleHookName = params['LifecycleHookName']
|
3510
|
+
@LifecycleTransition = params['LifecycleTransition']
|
3511
|
+
@DefaultResult = params['DefaultResult']
|
3512
|
+
@HeartbeatTimeout = params['HeartbeatTimeout']
|
3513
|
+
@NotificationMetadata = params['NotificationMetadata']
|
3514
|
+
@LifecycleTransitionType = params['LifecycleTransitionType']
|
3515
|
+
unless params['NotificationTarget'].nil?
|
3516
|
+
@NotificationTarget = NotificationTarget.new
|
3517
|
+
@NotificationTarget.deserialize(params['NotificationTarget'])
|
3518
|
+
end
|
3519
|
+
end
|
3520
|
+
end
|
3521
|
+
|
3522
|
+
# ModifyLifecycleHook返回参数结构体
|
3523
|
+
class ModifyLifecycleHookResponse < TencentCloud::Common::AbstractModel
|
3524
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3525
|
+
# @type RequestId: String
|
3526
|
+
|
3527
|
+
attr_accessor :RequestId
|
3528
|
+
|
3529
|
+
def initialize(requestid=nil)
|
3530
|
+
@RequestId = requestid
|
3531
|
+
end
|
3532
|
+
|
3533
|
+
def deserialize(params)
|
3534
|
+
@RequestId = params['RequestId']
|
3535
|
+
end
|
3536
|
+
end
|
3537
|
+
|
3448
3538
|
# ModifyLoadBalancerTargetAttributes请求参数结构体
|
3449
3539
|
class ModifyLoadBalancerTargetAttributesRequest < TencentCloud::Common::AbstractModel
|
3450
3540
|
# @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.305
|
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-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|