tencentcloud-sdk-as 3.0.669 → 3.0.670
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 +184 -0
- data/lib/v20180419/models.rb +513 -0
- 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: 04d71e17dfaae410499d68da06706b2f83501e2b
|
4
|
+
data.tar.gz: 6de40d5d447cd5ebad8ba0c77fcbd4820c1d4edc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c9b0da1a74f07ef9362dfc6960146c35daf2f1f94eaaafb94b6f351ce586849508a50f38ce21f71f3bb5aedbc48c8a936fc0680408d691001df4cfe68f0a51e
|
7
|
+
data.tar.gz: 893d0430d0f2eb64483df9a0189282b31ee5569d2b0d3e24dfc595620c98d25f47c1ef88314036d2fa308d60ad22213a81ac558f26c29e38be4f75eecb0105cc
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.670
|
data/lib/v20180419/client.rb
CHANGED
@@ -79,6 +79,33 @@ module TencentCloud
|
|
79
79
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
80
80
|
end
|
81
81
|
|
82
|
+
# 取消伸缩组的实例刷新活动。
|
83
|
+
# * 已刷新/正在刷新的批次不受影响,待刷新批次被取消
|
84
|
+
# * 刷新失败的实例保持备用中状态,需用户手动处理后尝试退出备用中状态或销毁
|
85
|
+
# * 取消后不允许回滚操作,也不支持恢复操作
|
86
|
+
|
87
|
+
# @param request: Request instance for CancelInstanceRefresh.
|
88
|
+
# @type request: :class:`Tencentcloud::as::V20180419::CancelInstanceRefreshRequest`
|
89
|
+
# @rtype: :class:`Tencentcloud::as::V20180419::CancelInstanceRefreshResponse`
|
90
|
+
def CancelInstanceRefresh(request)
|
91
|
+
body = send_request('CancelInstanceRefresh', request.serialize)
|
92
|
+
response = JSON.parse(body)
|
93
|
+
if response['Response'].key?('Error') == false
|
94
|
+
model = CancelInstanceRefreshResponse.new
|
95
|
+
model.deserialize(response['Response'])
|
96
|
+
model
|
97
|
+
else
|
98
|
+
code = response['Response']['Error']['Code']
|
99
|
+
message = response['Response']['Error']['Message']
|
100
|
+
reqid = response['Response']['RequestId']
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
102
|
+
end
|
103
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
104
|
+
raise e
|
105
|
+
rescue StandardError => e
|
106
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
107
|
+
end
|
108
|
+
|
82
109
|
# 本接口(ClearLaunchConfigurationAttributes)用于将启动配置内的特定属性完全清空。
|
83
110
|
|
84
111
|
# @param request: Request instance for ClearLaunchConfigurationAttributes.
|
@@ -727,6 +754,30 @@ module TencentCloud
|
|
727
754
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
728
755
|
end
|
729
756
|
|
757
|
+
# 本接口(DescribeRefreshActivities)用于查询伸缩组的实例刷新活动记录。
|
758
|
+
|
759
|
+
# @param request: Request instance for DescribeRefreshActivities.
|
760
|
+
# @type request: :class:`Tencentcloud::as::V20180419::DescribeRefreshActivitiesRequest`
|
761
|
+
# @rtype: :class:`Tencentcloud::as::V20180419::DescribeRefreshActivitiesResponse`
|
762
|
+
def DescribeRefreshActivities(request)
|
763
|
+
body = send_request('DescribeRefreshActivities', request.serialize)
|
764
|
+
response = JSON.parse(body)
|
765
|
+
if response['Response'].key?('Error') == false
|
766
|
+
model = DescribeRefreshActivitiesResponse.new
|
767
|
+
model.deserialize(response['Response'])
|
768
|
+
model
|
769
|
+
else
|
770
|
+
code = response['Response']['Error']['Code']
|
771
|
+
message = response['Response']['Error']['Message']
|
772
|
+
reqid = response['Response']['RequestId']
|
773
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
774
|
+
end
|
775
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
776
|
+
raise e
|
777
|
+
rescue StandardError => e
|
778
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
779
|
+
end
|
780
|
+
|
730
781
|
# 本接口(DescribeScalingPolicies)用于查询告警触发策略。
|
731
782
|
|
732
783
|
# @param request: Request instance for DescribeScalingPolicies.
|
@@ -918,6 +969,32 @@ module TencentCloud
|
|
918
969
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
919
970
|
end
|
920
971
|
|
972
|
+
# 伸缩组内实例退出备用中状态。
|
973
|
+
# * 备用中状态的实例负载均衡器权重值为 0,退出备用中状态后,权重值也会恢复
|
974
|
+
# * 对备用中状态实例进行开关机操作也会使其退出备用中状态
|
975
|
+
|
976
|
+
# @param request: Request instance for ExitStandby.
|
977
|
+
# @type request: :class:`Tencentcloud::as::V20180419::ExitStandbyRequest`
|
978
|
+
# @rtype: :class:`Tencentcloud::as::V20180419::ExitStandbyResponse`
|
979
|
+
def ExitStandby(request)
|
980
|
+
body = send_request('ExitStandby', request.serialize)
|
981
|
+
response = JSON.parse(body)
|
982
|
+
if response['Response'].key?('Error') == false
|
983
|
+
model = ExitStandbyResponse.new
|
984
|
+
model.deserialize(response['Response'])
|
985
|
+
model
|
986
|
+
else
|
987
|
+
code = response['Response']['Error']['Code']
|
988
|
+
message = response['Response']['Error']['Message']
|
989
|
+
reqid = response['Response']['RequestId']
|
990
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
991
|
+
end
|
992
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
993
|
+
raise e
|
994
|
+
rescue StandardError => e
|
995
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
996
|
+
end
|
997
|
+
|
921
998
|
# 本接口(ModifyAutoScalingGroup)用于修改伸缩组。
|
922
999
|
|
923
1000
|
# @param request: Request instance for ModifyAutoScalingGroup.
|
@@ -1169,6 +1246,58 @@ module TencentCloud
|
|
1169
1246
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1170
1247
|
end
|
1171
1248
|
|
1249
|
+
# 恢复暂停状态的实例刷新活动,使其重试当前批次刷新失败实例或继续刷新后续批次,非暂停状态下调用该接口无效。
|
1250
|
+
|
1251
|
+
# @param request: Request instance for ResumeInstanceRefresh.
|
1252
|
+
# @type request: :class:`Tencentcloud::as::V20180419::ResumeInstanceRefreshRequest`
|
1253
|
+
# @rtype: :class:`Tencentcloud::as::V20180419::ResumeInstanceRefreshResponse`
|
1254
|
+
def ResumeInstanceRefresh(request)
|
1255
|
+
body = send_request('ResumeInstanceRefresh', request.serialize)
|
1256
|
+
response = JSON.parse(body)
|
1257
|
+
if response['Response'].key?('Error') == false
|
1258
|
+
model = ResumeInstanceRefreshResponse.new
|
1259
|
+
model.deserialize(response['Response'])
|
1260
|
+
model
|
1261
|
+
else
|
1262
|
+
code = response['Response']['Error']['Code']
|
1263
|
+
message = response['Response']['Error']['Message']
|
1264
|
+
reqid = response['Response']['RequestId']
|
1265
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1266
|
+
end
|
1267
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1268
|
+
raise e
|
1269
|
+
rescue StandardError => e
|
1270
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1271
|
+
end
|
1272
|
+
|
1273
|
+
# 回滚操作会生成一个新的实例刷新活动,该活动也支持分批次刷新以及暂停、恢复、取消操作,接口返回回滚活动的 RefreshActivityId。
|
1274
|
+
# * 原活动中待刷新实例变更为已取消,忽略不存在实例,其他状态实例进入回滚流程
|
1275
|
+
# * 原活动中正在刷新的实例不会立刻终止,刷新结束后再执行回滚活动
|
1276
|
+
# * 暂停状态或最近一次成功的刷新活动支持回滚,其他状态不支持回滚
|
1277
|
+
# * 原活动刷新方式为重装实例时,对于 ImageId参数,会自动恢复到回滚前镜像 ID;对于 UserData、EnhancedService、LoginSettings、 HostName 参数,依然会从启动配置中读取,需用户在回滚前自行修改启动配置
|
1278
|
+
|
1279
|
+
# @param request: Request instance for RollbackInstanceRefresh.
|
1280
|
+
# @type request: :class:`Tencentcloud::as::V20180419::RollbackInstanceRefreshRequest`
|
1281
|
+
# @rtype: :class:`Tencentcloud::as::V20180419::RollbackInstanceRefreshResponse`
|
1282
|
+
def RollbackInstanceRefresh(request)
|
1283
|
+
body = send_request('RollbackInstanceRefresh', request.serialize)
|
1284
|
+
response = JSON.parse(body)
|
1285
|
+
if response['Response'].key?('Error') == false
|
1286
|
+
model = RollbackInstanceRefreshResponse.new
|
1287
|
+
model.deserialize(response['Response'])
|
1288
|
+
model
|
1289
|
+
else
|
1290
|
+
code = response['Response']['Error']['Code']
|
1291
|
+
message = response['Response']['Error']['Message']
|
1292
|
+
reqid = response['Response']['RequestId']
|
1293
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1294
|
+
end
|
1295
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1296
|
+
raise e
|
1297
|
+
rescue StandardError => e
|
1298
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1299
|
+
end
|
1300
|
+
|
1172
1301
|
# 为伸缩组指定数量缩容实例,返回缩容活动的 ActivityId。
|
1173
1302
|
# * 伸缩组需要未处于活动中
|
1174
1303
|
# * 伸缩组处于停用状态时,该接口也会生效,可参考[停用伸缩组](https://cloud.tencent.com/document/api/377/20435)文档查看伸缩组停用状态的影响范围
|
@@ -1279,6 +1408,35 @@ module TencentCloud
|
|
1279
1408
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1280
1409
|
end
|
1281
1410
|
|
1411
|
+
# 根据启动配置中参数,刷新伸缩组内运行中状态 CVM 实例,返回实例刷新活动的 RefreshActivityId。
|
1412
|
+
# * 对于重装实例的刷新方式(目前仅支持重装),重装时仅会从启动配置中获取 ImageId、UserData、EnhancedService、 HostName、LoginSettings 参数进行刷新,实例的其他参数不会刷新
|
1413
|
+
# * 实例刷新期间(包括暂停状态),伸缩组会被停用。不建议刷新期间修改关联启动配置,否则会影响刷新参数,造成实例配置不一致
|
1414
|
+
# * 滚动更新模式会分成多批次进行刷新实例,单批次中若存在刷新失败实例,活动会进入失败暂停状态
|
1415
|
+
# * 若待刷新实例被移出或销毁,会被标记为 NOT_FOUND 状态,不阻塞实例刷新活动
|
1416
|
+
# * 运行中状态实例与最新启动配置参数一致,实例也会再次刷新
|
1417
|
+
|
1418
|
+
# @param request: Request instance for StartInstanceRefresh.
|
1419
|
+
# @type request: :class:`Tencentcloud::as::V20180419::StartInstanceRefreshRequest`
|
1420
|
+
# @rtype: :class:`Tencentcloud::as::V20180419::StartInstanceRefreshResponse`
|
1421
|
+
def StartInstanceRefresh(request)
|
1422
|
+
body = send_request('StartInstanceRefresh', request.serialize)
|
1423
|
+
response = JSON.parse(body)
|
1424
|
+
if response['Response'].key?('Error') == false
|
1425
|
+
model = StartInstanceRefreshResponse.new
|
1426
|
+
model.deserialize(response['Response'])
|
1427
|
+
model
|
1428
|
+
else
|
1429
|
+
code = response['Response']['Error']['Code']
|
1430
|
+
message = response['Response']['Error']['Message']
|
1431
|
+
reqid = response['Response']['RequestId']
|
1432
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1433
|
+
end
|
1434
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1435
|
+
raise e
|
1436
|
+
rescue StandardError => e
|
1437
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1438
|
+
end
|
1439
|
+
|
1282
1440
|
# 本接口(StopAutoScalingInstances)用于关闭伸缩组内 CVM 实例。
|
1283
1441
|
# * 关机方式采用`SOFT_FIRST`方式,表示在正常关闭失败后进行强制关闭
|
1284
1442
|
# * 关闭`IN_SERVICE`状态的实例,会减少期望实例数,期望实例数不可低于设置的最小值
|
@@ -1307,6 +1465,32 @@ module TencentCloud
|
|
1307
1465
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1308
1466
|
end
|
1309
1467
|
|
1468
|
+
# 暂停正在执行的实例刷新活动。
|
1469
|
+
# * 暂停状态下,伸缩组也会处于停用中状态
|
1470
|
+
# * 当前正在更新的实例不会暂停,待更新的实例会暂停更新
|
1471
|
+
|
1472
|
+
# @param request: Request instance for StopInstanceRefresh.
|
1473
|
+
# @type request: :class:`Tencentcloud::as::V20180419::StopInstanceRefreshRequest`
|
1474
|
+
# @rtype: :class:`Tencentcloud::as::V20180419::StopInstanceRefreshResponse`
|
1475
|
+
def StopInstanceRefresh(request)
|
1476
|
+
body = send_request('StopInstanceRefresh', request.serialize)
|
1477
|
+
response = JSON.parse(body)
|
1478
|
+
if response['Response'].key?('Error') == false
|
1479
|
+
model = StopInstanceRefreshResponse.new
|
1480
|
+
model.deserialize(response['Response'])
|
1481
|
+
model
|
1482
|
+
else
|
1483
|
+
code = response['Response']['Error']['Code']
|
1484
|
+
message = response['Response']['Error']['Message']
|
1485
|
+
reqid = response['Response']['RequestId']
|
1486
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1487
|
+
end
|
1488
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1489
|
+
raise e
|
1490
|
+
rescue StandardError => e
|
1491
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1492
|
+
end
|
1493
|
+
|
1310
1494
|
# 已有替代接口ModifyLaunchConfiguration。该接口存在覆盖参数风险,目前官网已隐藏
|
1311
1495
|
|
1312
1496
|
# 本接口(UpgradeLaunchConfiguration)用于升级启动配置。
|
data/lib/v20180419/models.rb
CHANGED
@@ -553,6 +553,42 @@ module TencentCloud
|
|
553
553
|
end
|
554
554
|
end
|
555
555
|
|
556
|
+
# CancelInstanceRefresh请求参数结构体
|
557
|
+
class CancelInstanceRefreshRequest < TencentCloud::Common::AbstractModel
|
558
|
+
# @param AutoScalingGroupId: 伸缩组ID。
|
559
|
+
# @type AutoScalingGroupId: String
|
560
|
+
# @param RefreshActivityId: 刷新活动ID。
|
561
|
+
# @type RefreshActivityId: String
|
562
|
+
|
563
|
+
attr_accessor :AutoScalingGroupId, :RefreshActivityId
|
564
|
+
|
565
|
+
def initialize(autoscalinggroupid=nil, refreshactivityid=nil)
|
566
|
+
@AutoScalingGroupId = autoscalinggroupid
|
567
|
+
@RefreshActivityId = refreshactivityid
|
568
|
+
end
|
569
|
+
|
570
|
+
def deserialize(params)
|
571
|
+
@AutoScalingGroupId = params['AutoScalingGroupId']
|
572
|
+
@RefreshActivityId = params['RefreshActivityId']
|
573
|
+
end
|
574
|
+
end
|
575
|
+
|
576
|
+
# CancelInstanceRefresh返回参数结构体
|
577
|
+
class CancelInstanceRefreshResponse < TencentCloud::Common::AbstractModel
|
578
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
579
|
+
# @type RequestId: String
|
580
|
+
|
581
|
+
attr_accessor :RequestId
|
582
|
+
|
583
|
+
def initialize(requestid=nil)
|
584
|
+
@RequestId = requestid
|
585
|
+
end
|
586
|
+
|
587
|
+
def deserialize(params)
|
588
|
+
@RequestId = params['RequestId']
|
589
|
+
end
|
590
|
+
end
|
591
|
+
|
556
592
|
# ClearLaunchConfigurationAttributes请求参数结构体
|
557
593
|
class ClearLaunchConfigurationAttributesRequest < TencentCloud::Common::AbstractModel
|
558
594
|
# @param LaunchConfigurationId: 启动配置ID。
|
@@ -2162,6 +2198,77 @@ module TencentCloud
|
|
2162
2198
|
end
|
2163
2199
|
end
|
2164
2200
|
|
2201
|
+
# DescribeRefreshActivities请求参数结构体
|
2202
|
+
class DescribeRefreshActivitiesRequest < TencentCloud::Common::AbstractModel
|
2203
|
+
# @param RefreshActivityIds: 刷新活动ID列表。ID形如:`asr-5l2ejpfo`。每次请求的上限为100。参数不支持同时指定`RefreshActivityIds`和`Filters`。
|
2204
|
+
# @type RefreshActivityIds: Array
|
2205
|
+
# @param Filters: 过滤条件。
|
2206
|
+
# <li> auto-scaling-group-id - String - 是否必填:否 -(过滤条件)按照伸缩组ID过滤。</li>
|
2207
|
+
# <li> refresh-activity-status-code - String - 是否必填:否 -(过滤条件)按照刷新活动状态过滤。(INIT:初始化中 | RUNNING:运行中 | SUCCESSFUL:活动成功 | FAILED_PAUSE:失败暂停 | AUTO_PAUSE:自动暂停 | MANUAL_PAUSE:手动暂停 | CANCELLED:活动取消 | FAILED:活动失败)</li>
|
2208
|
+
# <li> refresh-activity-type - String - 是否必填:否 -(过滤条件)按照刷新活动类型过滤。(NORMAL:正常刷新活动 | ROLLBACK:回滚刷新活动)</li>
|
2209
|
+
# <li> refresh-activity-id - String - 是否必填:否 -(过滤条件)按照刷新活动ID过滤。</li>
|
2210
|
+
# <li> 每次请求的Filters的上限为10,Filter.Values的上限为5。参数不支持同时指定RefreshActivityIds和Filters。
|
2211
|
+
# @type Filters: Array
|
2212
|
+
# @param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
2213
|
+
# @type Limit: Integer
|
2214
|
+
# @param Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
2215
|
+
# @type Offset: Integer
|
2216
|
+
|
2217
|
+
attr_accessor :RefreshActivityIds, :Filters, :Limit, :Offset
|
2218
|
+
|
2219
|
+
def initialize(refreshactivityids=nil, filters=nil, limit=nil, offset=nil)
|
2220
|
+
@RefreshActivityIds = refreshactivityids
|
2221
|
+
@Filters = filters
|
2222
|
+
@Limit = limit
|
2223
|
+
@Offset = offset
|
2224
|
+
end
|
2225
|
+
|
2226
|
+
def deserialize(params)
|
2227
|
+
@RefreshActivityIds = params['RefreshActivityIds']
|
2228
|
+
unless params['Filters'].nil?
|
2229
|
+
@Filters = []
|
2230
|
+
params['Filters'].each do |i|
|
2231
|
+
filter_tmp = Filter.new
|
2232
|
+
filter_tmp.deserialize(i)
|
2233
|
+
@Filters << filter_tmp
|
2234
|
+
end
|
2235
|
+
end
|
2236
|
+
@Limit = params['Limit']
|
2237
|
+
@Offset = params['Offset']
|
2238
|
+
end
|
2239
|
+
end
|
2240
|
+
|
2241
|
+
# DescribeRefreshActivities返回参数结构体
|
2242
|
+
class DescribeRefreshActivitiesResponse < TencentCloud::Common::AbstractModel
|
2243
|
+
# @param TotalCount: 符合条件的刷新活动数量。
|
2244
|
+
# @type TotalCount: Integer
|
2245
|
+
# @param RefreshActivitySet: 符合条件的刷新活动信息集合。
|
2246
|
+
# @type RefreshActivitySet: Array
|
2247
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2248
|
+
# @type RequestId: String
|
2249
|
+
|
2250
|
+
attr_accessor :TotalCount, :RefreshActivitySet, :RequestId
|
2251
|
+
|
2252
|
+
def initialize(totalcount=nil, refreshactivityset=nil, requestid=nil)
|
2253
|
+
@TotalCount = totalcount
|
2254
|
+
@RefreshActivitySet = refreshactivityset
|
2255
|
+
@RequestId = requestid
|
2256
|
+
end
|
2257
|
+
|
2258
|
+
def deserialize(params)
|
2259
|
+
@TotalCount = params['TotalCount']
|
2260
|
+
unless params['RefreshActivitySet'].nil?
|
2261
|
+
@RefreshActivitySet = []
|
2262
|
+
params['RefreshActivitySet'].each do |i|
|
2263
|
+
refreshactivity_tmp = RefreshActivity.new
|
2264
|
+
refreshactivity_tmp.deserialize(i)
|
2265
|
+
@RefreshActivitySet << refreshactivity_tmp
|
2266
|
+
end
|
2267
|
+
end
|
2268
|
+
@RequestId = params['RequestId']
|
2269
|
+
end
|
2270
|
+
end
|
2271
|
+
|
2165
2272
|
# DescribeScalingPolicies请求参数结构体
|
2166
2273
|
class DescribeScalingPoliciesRequest < TencentCloud::Common::AbstractModel
|
2167
2274
|
# @param AutoScalingPolicyIds: 按照一个或者多个告警策略ID查询。告警策略ID形如:asp-i9vkg894。每次请求的实例的上限为100。参数不支持同时指定`AutoScalingPolicyIds`和`Filters`。
|
@@ -2588,6 +2695,47 @@ module TencentCloud
|
|
2588
2695
|
end
|
2589
2696
|
end
|
2590
2697
|
|
2698
|
+
# ExitStandby请求参数结构体
|
2699
|
+
class ExitStandbyRequest < TencentCloud::Common::AbstractModel
|
2700
|
+
# @param AutoScalingGroupId: 伸缩组 ID。
|
2701
|
+
# @type AutoScalingGroupId: String
|
2702
|
+
# @param InstanceIds: 备用中状态 CVM 实例列表。
|
2703
|
+
# @type InstanceIds: Array
|
2704
|
+
|
2705
|
+
attr_accessor :AutoScalingGroupId, :InstanceIds
|
2706
|
+
|
2707
|
+
def initialize(autoscalinggroupid=nil, instanceids=nil)
|
2708
|
+
@AutoScalingGroupId = autoscalinggroupid
|
2709
|
+
@InstanceIds = instanceids
|
2710
|
+
end
|
2711
|
+
|
2712
|
+
def deserialize(params)
|
2713
|
+
@AutoScalingGroupId = params['AutoScalingGroupId']
|
2714
|
+
@InstanceIds = params['InstanceIds']
|
2715
|
+
end
|
2716
|
+
end
|
2717
|
+
|
2718
|
+
# ExitStandby返回参数结构体
|
2719
|
+
class ExitStandbyResponse < TencentCloud::Common::AbstractModel
|
2720
|
+
# @param ActivityId: 伸缩活动ID。
|
2721
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2722
|
+
# @type ActivityId: String
|
2723
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2724
|
+
# @type RequestId: String
|
2725
|
+
|
2726
|
+
attr_accessor :ActivityId, :RequestId
|
2727
|
+
|
2728
|
+
def initialize(activityid=nil, requestid=nil)
|
2729
|
+
@ActivityId = activityid
|
2730
|
+
@RequestId = requestid
|
2731
|
+
end
|
2732
|
+
|
2733
|
+
def deserialize(params)
|
2734
|
+
@ActivityId = params['ActivityId']
|
2735
|
+
@RequestId = params['RequestId']
|
2736
|
+
end
|
2737
|
+
end
|
2738
|
+
|
2591
2739
|
# >描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等
|
2592
2740
|
# > * 若存在多个`Filter`时,`Filter`间的关系为逻辑与(`AND`)关系。
|
2593
2741
|
# > * 若同一个`Filter`存在多个`Values`,同一`Filter`下`Values`间的关系为逻辑或(`OR`)关系。
|
@@ -4178,6 +4326,177 @@ module TencentCloud
|
|
4178
4326
|
end
|
4179
4327
|
end
|
4180
4328
|
|
4329
|
+
# 实例刷新活动。
|
4330
|
+
class RefreshActivity < TencentCloud::Common::AbstractModel
|
4331
|
+
# @param AutoScalingGroupId: 伸缩组 ID。
|
4332
|
+
# @type AutoScalingGroupId: String
|
4333
|
+
# @param RefreshActivityId: 刷新活动 ID。
|
4334
|
+
# @type RefreshActivityId: String
|
4335
|
+
# @param OriginRefreshActivityId: 原始刷新活动ID,仅在回滚刷新活动中存在。
|
4336
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4337
|
+
# @type OriginRefreshActivityId: String
|
4338
|
+
# @param RefreshBatchSet: 刷新批次信息列表。
|
4339
|
+
# @type RefreshBatchSet: Array
|
4340
|
+
# @param RefreshMode: 刷新模式。
|
4341
|
+
# @type RefreshMode: String
|
4342
|
+
# @param RefreshSettings: 实例更新设置参数。
|
4343
|
+
# @type RefreshSettings: :class:`Tencentcloud::As.v20180419.models.RefreshSettings`
|
4344
|
+
# @param ActivityType: 刷新活动类型。取值如下:<br><li>NORMAL:正常刷新活动</li><li>ROLLBACK:回滚刷新活动
|
4345
|
+
# @type ActivityType: String
|
4346
|
+
# @param Status: 刷新活动状态。取值如下:<br><li>INIT:初始化中</li><li>RUNNING:运行中</li><li>SUCCESSFUL:活动成功</li><li>FAILED_PAUSE:因刷新批次失败暂停</li><li>AUTO_PAUSE:因暂停策略自动暂停</li><li>MANUAL_PAUSE:手动暂停</li><li>CANCELLED:活动取消</li><li>FAILED:活动失败
|
4347
|
+
# @type Status: String
|
4348
|
+
# @param CurrentRefreshBatchNum: 当前刷新批次序号。例如,2 表示当前活动正在刷新第二批次的实例。
|
4349
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4350
|
+
# @type CurrentRefreshBatchNum: Integer
|
4351
|
+
# @param StartTime: 刷新活动开始时间。
|
4352
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4353
|
+
# @type StartTime: String
|
4354
|
+
# @param EndTime: 刷新活动结束时间。
|
4355
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4356
|
+
# @type EndTime: String
|
4357
|
+
# @param CreatedTime: 刷新活动创建时间。
|
4358
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4359
|
+
# @type CreatedTime: String
|
4360
|
+
|
4361
|
+
attr_accessor :AutoScalingGroupId, :RefreshActivityId, :OriginRefreshActivityId, :RefreshBatchSet, :RefreshMode, :RefreshSettings, :ActivityType, :Status, :CurrentRefreshBatchNum, :StartTime, :EndTime, :CreatedTime
|
4362
|
+
|
4363
|
+
def initialize(autoscalinggroupid=nil, refreshactivityid=nil, originrefreshactivityid=nil, refreshbatchset=nil, refreshmode=nil, refreshsettings=nil, activitytype=nil, status=nil, currentrefreshbatchnum=nil, starttime=nil, endtime=nil, createdtime=nil)
|
4364
|
+
@AutoScalingGroupId = autoscalinggroupid
|
4365
|
+
@RefreshActivityId = refreshactivityid
|
4366
|
+
@OriginRefreshActivityId = originrefreshactivityid
|
4367
|
+
@RefreshBatchSet = refreshbatchset
|
4368
|
+
@RefreshMode = refreshmode
|
4369
|
+
@RefreshSettings = refreshsettings
|
4370
|
+
@ActivityType = activitytype
|
4371
|
+
@Status = status
|
4372
|
+
@CurrentRefreshBatchNum = currentrefreshbatchnum
|
4373
|
+
@StartTime = starttime
|
4374
|
+
@EndTime = endtime
|
4375
|
+
@CreatedTime = createdtime
|
4376
|
+
end
|
4377
|
+
|
4378
|
+
def deserialize(params)
|
4379
|
+
@AutoScalingGroupId = params['AutoScalingGroupId']
|
4380
|
+
@RefreshActivityId = params['RefreshActivityId']
|
4381
|
+
@OriginRefreshActivityId = params['OriginRefreshActivityId']
|
4382
|
+
unless params['RefreshBatchSet'].nil?
|
4383
|
+
@RefreshBatchSet = []
|
4384
|
+
params['RefreshBatchSet'].each do |i|
|
4385
|
+
refreshbatch_tmp = RefreshBatch.new
|
4386
|
+
refreshbatch_tmp.deserialize(i)
|
4387
|
+
@RefreshBatchSet << refreshbatch_tmp
|
4388
|
+
end
|
4389
|
+
end
|
4390
|
+
@RefreshMode = params['RefreshMode']
|
4391
|
+
unless params['RefreshSettings'].nil?
|
4392
|
+
@RefreshSettings = RefreshSettings.new
|
4393
|
+
@RefreshSettings.deserialize(params['RefreshSettings'])
|
4394
|
+
end
|
4395
|
+
@ActivityType = params['ActivityType']
|
4396
|
+
@Status = params['Status']
|
4397
|
+
@CurrentRefreshBatchNum = params['CurrentRefreshBatchNum']
|
4398
|
+
@StartTime = params['StartTime']
|
4399
|
+
@EndTime = params['EndTime']
|
4400
|
+
@CreatedTime = params['CreatedTime']
|
4401
|
+
end
|
4402
|
+
end
|
4403
|
+
|
4404
|
+
# 实例刷新批次信息,包含该批次的刷新状态、实例、起止时间等信息。
|
4405
|
+
class RefreshBatch < TencentCloud::Common::AbstractModel
|
4406
|
+
# @param RefreshBatchNum: 刷新批次序号。例如,2 表示当前批次实例会在第二批次进行实例刷新。
|
4407
|
+
# @type RefreshBatchNum: Integer
|
4408
|
+
# @param RefreshBatchStatus: 刷新批次状态。取值如下:<br><li>WAITING:待刷新</li><li>INIT:初始化中</li><li>RUNNING:刷新中</li><li>FAILED: 刷新失败</li><li>PARTIALLY_SUCCESSFUL:批次部分成功</li><li>CANCELLED:已取消</li><li>SUCCESSFUL:刷新成功
|
4409
|
+
# @type RefreshBatchStatus: String
|
4410
|
+
# @param RefreshBatchRelatedInstanceSet: 刷新批次关联实例列表。
|
4411
|
+
# @type RefreshBatchRelatedInstanceSet: Array
|
4412
|
+
# @param StartTime: 刷新批次开始时间。
|
4413
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4414
|
+
# @type StartTime: String
|
4415
|
+
# @param EndTime: 刷新批次结束时间。
|
4416
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4417
|
+
# @type EndTime: String
|
4418
|
+
|
4419
|
+
attr_accessor :RefreshBatchNum, :RefreshBatchStatus, :RefreshBatchRelatedInstanceSet, :StartTime, :EndTime
|
4420
|
+
|
4421
|
+
def initialize(refreshbatchnum=nil, refreshbatchstatus=nil, refreshbatchrelatedinstanceset=nil, starttime=nil, endtime=nil)
|
4422
|
+
@RefreshBatchNum = refreshbatchnum
|
4423
|
+
@RefreshBatchStatus = refreshbatchstatus
|
4424
|
+
@RefreshBatchRelatedInstanceSet = refreshbatchrelatedinstanceset
|
4425
|
+
@StartTime = starttime
|
4426
|
+
@EndTime = endtime
|
4427
|
+
end
|
4428
|
+
|
4429
|
+
def deserialize(params)
|
4430
|
+
@RefreshBatchNum = params['RefreshBatchNum']
|
4431
|
+
@RefreshBatchStatus = params['RefreshBatchStatus']
|
4432
|
+
unless params['RefreshBatchRelatedInstanceSet'].nil?
|
4433
|
+
@RefreshBatchRelatedInstanceSet = []
|
4434
|
+
params['RefreshBatchRelatedInstanceSet'].each do |i|
|
4435
|
+
refreshbatchrelatedinstance_tmp = RefreshBatchRelatedInstance.new
|
4436
|
+
refreshbatchrelatedinstance_tmp.deserialize(i)
|
4437
|
+
@RefreshBatchRelatedInstanceSet << refreshbatchrelatedinstance_tmp
|
4438
|
+
end
|
4439
|
+
end
|
4440
|
+
@StartTime = params['StartTime']
|
4441
|
+
@EndTime = params['EndTime']
|
4442
|
+
end
|
4443
|
+
end
|
4444
|
+
|
4445
|
+
# 刷新批次关联实例,包含单个实例的刷新活动状态、对应伸缩活动等信息。
|
4446
|
+
class RefreshBatchRelatedInstance < TencentCloud::Common::AbstractModel
|
4447
|
+
# @param InstanceId: 实例 ID。
|
4448
|
+
# @type InstanceId: String
|
4449
|
+
# @param InstanceStatus: 刷新实例状态。如果在刷新时实例被移出或销毁,状态会更新为 NOT_FOUND。取值如下:<br><li>WAITING:待刷新</li><li>INIT:初始化中</li><li>RUNNING:刷新中</li><li>FAILED:刷新失败</li><li>CANCELLED:已取消</li><li>SUCCESSFUL:刷新成功</li><li>NOT_FOUND:实例不存在
|
4450
|
+
# @type InstanceStatus: String
|
4451
|
+
# @param LastActivityId: 实例刷新中最近一次伸缩活动 ID,可通过 DescribeAutoScalingActivities 接口查询。
|
4452
|
+
# 需注意伸缩活动与实例刷新活动不同,一次实例刷新活动可能包括多次伸缩活动。
|
4453
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4454
|
+
# @type LastActivityId: String
|
4455
|
+
# @param InstanceStatusMessage: 实例刷新状态信息。
|
4456
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4457
|
+
# @type InstanceStatusMessage: String
|
4458
|
+
|
4459
|
+
attr_accessor :InstanceId, :InstanceStatus, :LastActivityId, :InstanceStatusMessage
|
4460
|
+
|
4461
|
+
def initialize(instanceid=nil, instancestatus=nil, lastactivityid=nil, instancestatusmessage=nil)
|
4462
|
+
@InstanceId = instanceid
|
4463
|
+
@InstanceStatus = instancestatus
|
4464
|
+
@LastActivityId = lastactivityid
|
4465
|
+
@InstanceStatusMessage = instancestatusmessage
|
4466
|
+
end
|
4467
|
+
|
4468
|
+
def deserialize(params)
|
4469
|
+
@InstanceId = params['InstanceId']
|
4470
|
+
@InstanceStatus = params['InstanceStatus']
|
4471
|
+
@LastActivityId = params['LastActivityId']
|
4472
|
+
@InstanceStatusMessage = params['InstanceStatusMessage']
|
4473
|
+
end
|
4474
|
+
end
|
4475
|
+
|
4476
|
+
# 实例刷新设置。
|
4477
|
+
class RefreshSettings < TencentCloud::Common::AbstractModel
|
4478
|
+
# @param RollingUpdateSettings: 滚动更新设置参数。RefreshMode 为滚动更新该参数必须填写。
|
4479
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4480
|
+
# @type RollingUpdateSettings: :class:`Tencentcloud::As.v20180419.models.RollingUpdateSettings`
|
4481
|
+
# @param CheckInstanceTargetHealth: 实例后端服务健康状态检查,默认为 FALSE。仅针对绑定应用型负载均衡器的伸缩组生效,开启该检查后,如刷新后实例未通过检查,负载均衡器端口权重始终为 0,且标记为刷新失败。取值范围如下:<br><li>TRUE:开启检查</li><li>FALSE:不开启检查
|
4482
|
+
# @type CheckInstanceTargetHealth: Boolean
|
4483
|
+
|
4484
|
+
attr_accessor :RollingUpdateSettings, :CheckInstanceTargetHealth
|
4485
|
+
|
4486
|
+
def initialize(rollingupdatesettings=nil, checkinstancetargethealth=nil)
|
4487
|
+
@RollingUpdateSettings = rollingupdatesettings
|
4488
|
+
@CheckInstanceTargetHealth = checkinstancetargethealth
|
4489
|
+
end
|
4490
|
+
|
4491
|
+
def deserialize(params)
|
4492
|
+
unless params['RollingUpdateSettings'].nil?
|
4493
|
+
@RollingUpdateSettings = RollingUpdateSettings.new
|
4494
|
+
@RollingUpdateSettings.deserialize(params['RollingUpdateSettings'])
|
4495
|
+
end
|
4496
|
+
@CheckInstanceTargetHealth = params['CheckInstanceTargetHealth']
|
4497
|
+
end
|
4498
|
+
end
|
4499
|
+
|
4181
4500
|
# 与本次伸缩活动相关的实例信息。
|
4182
4501
|
class RelatedInstance < TencentCloud::Common::AbstractModel
|
4183
4502
|
# @param InstanceId: 实例ID。
|
@@ -4242,6 +4561,117 @@ module TencentCloud
|
|
4242
4561
|
end
|
4243
4562
|
end
|
4244
4563
|
|
4564
|
+
# ResumeInstanceRefresh请求参数结构体
|
4565
|
+
class ResumeInstanceRefreshRequest < TencentCloud::Common::AbstractModel
|
4566
|
+
# @param AutoScalingGroupId: 伸缩组ID。
|
4567
|
+
# @type AutoScalingGroupId: String
|
4568
|
+
# @param RefreshActivityId: 刷新活动ID。
|
4569
|
+
# @type RefreshActivityId: String
|
4570
|
+
# @param ResumeMode: 当前批次刷新失败实例的恢复方式,如不存在失败实例,该参数无效。默认值为RETRY,取值范围如下:<br><li>RETRY: 重试当前批次刷新失败实例</li><li>CONTINUE: 跳过当前批次刷新失败实例
|
4571
|
+
# @type ResumeMode: String
|
4572
|
+
|
4573
|
+
attr_accessor :AutoScalingGroupId, :RefreshActivityId, :ResumeMode
|
4574
|
+
|
4575
|
+
def initialize(autoscalinggroupid=nil, refreshactivityid=nil, resumemode=nil)
|
4576
|
+
@AutoScalingGroupId = autoscalinggroupid
|
4577
|
+
@RefreshActivityId = refreshactivityid
|
4578
|
+
@ResumeMode = resumemode
|
4579
|
+
end
|
4580
|
+
|
4581
|
+
def deserialize(params)
|
4582
|
+
@AutoScalingGroupId = params['AutoScalingGroupId']
|
4583
|
+
@RefreshActivityId = params['RefreshActivityId']
|
4584
|
+
@ResumeMode = params['ResumeMode']
|
4585
|
+
end
|
4586
|
+
end
|
4587
|
+
|
4588
|
+
# ResumeInstanceRefresh返回参数结构体
|
4589
|
+
class ResumeInstanceRefreshResponse < TencentCloud::Common::AbstractModel
|
4590
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4591
|
+
# @type RequestId: String
|
4592
|
+
|
4593
|
+
attr_accessor :RequestId
|
4594
|
+
|
4595
|
+
def initialize(requestid=nil)
|
4596
|
+
@RequestId = requestid
|
4597
|
+
end
|
4598
|
+
|
4599
|
+
def deserialize(params)
|
4600
|
+
@RequestId = params['RequestId']
|
4601
|
+
end
|
4602
|
+
end
|
4603
|
+
|
4604
|
+
# RollbackInstanceRefresh请求参数结构体
|
4605
|
+
class RollbackInstanceRefreshRequest < TencentCloud::Common::AbstractModel
|
4606
|
+
# @param AutoScalingGroupId: 伸缩组ID。
|
4607
|
+
# @type AutoScalingGroupId: String
|
4608
|
+
# @param RefreshSettings: 刷新设置。
|
4609
|
+
# @type RefreshSettings: :class:`Tencentcloud::As.v20180419.models.RefreshSettings`
|
4610
|
+
# @param OriginRefreshActivityId: 原始刷新活动 ID。
|
4611
|
+
# @type OriginRefreshActivityId: String
|
4612
|
+
# @param RefreshMode: 刷新模式,目前仅支持滚动更新,默认值为 ROLLING_UPDATE_RESET。
|
4613
|
+
# @type RefreshMode: String
|
4614
|
+
|
4615
|
+
attr_accessor :AutoScalingGroupId, :RefreshSettings, :OriginRefreshActivityId, :RefreshMode
|
4616
|
+
|
4617
|
+
def initialize(autoscalinggroupid=nil, refreshsettings=nil, originrefreshactivityid=nil, refreshmode=nil)
|
4618
|
+
@AutoScalingGroupId = autoscalinggroupid
|
4619
|
+
@RefreshSettings = refreshsettings
|
4620
|
+
@OriginRefreshActivityId = originrefreshactivityid
|
4621
|
+
@RefreshMode = refreshmode
|
4622
|
+
end
|
4623
|
+
|
4624
|
+
def deserialize(params)
|
4625
|
+
@AutoScalingGroupId = params['AutoScalingGroupId']
|
4626
|
+
unless params['RefreshSettings'].nil?
|
4627
|
+
@RefreshSettings = RefreshSettings.new
|
4628
|
+
@RefreshSettings.deserialize(params['RefreshSettings'])
|
4629
|
+
end
|
4630
|
+
@OriginRefreshActivityId = params['OriginRefreshActivityId']
|
4631
|
+
@RefreshMode = params['RefreshMode']
|
4632
|
+
end
|
4633
|
+
end
|
4634
|
+
|
4635
|
+
# RollbackInstanceRefresh返回参数结构体
|
4636
|
+
class RollbackInstanceRefreshResponse < TencentCloud::Common::AbstractModel
|
4637
|
+
# @param RefreshActivityId: 刷新活动 ID。
|
4638
|
+
# @type RefreshActivityId: String
|
4639
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4640
|
+
# @type RequestId: String
|
4641
|
+
|
4642
|
+
attr_accessor :RefreshActivityId, :RequestId
|
4643
|
+
|
4644
|
+
def initialize(refreshactivityid=nil, requestid=nil)
|
4645
|
+
@RefreshActivityId = refreshactivityid
|
4646
|
+
@RequestId = requestid
|
4647
|
+
end
|
4648
|
+
|
4649
|
+
def deserialize(params)
|
4650
|
+
@RefreshActivityId = params['RefreshActivityId']
|
4651
|
+
@RequestId = params['RequestId']
|
4652
|
+
end
|
4653
|
+
end
|
4654
|
+
|
4655
|
+
# 滚动更新设置。
|
4656
|
+
class RollingUpdateSettings < TencentCloud::Common::AbstractModel
|
4657
|
+
# @param BatchNumber: 批次数量。批次数量为大于 0 的正整数,但不能大于待刷新实例数量。
|
4658
|
+
# @type BatchNumber: Integer
|
4659
|
+
# @param BatchPause: 批次间暂停策略。默认值为 Automatic,取值范围如下:<br><li>FIRST_BATCH_PAUSE:第一批次更新完成后暂停</li><li>BATCH_INTERVAL_PAUSE:批次间暂停</li><li>AUTOMATIC:不暂停
|
4660
|
+
# @type BatchPause: String
|
4661
|
+
|
4662
|
+
attr_accessor :BatchNumber, :BatchPause
|
4663
|
+
|
4664
|
+
def initialize(batchnumber=nil, batchpause=nil)
|
4665
|
+
@BatchNumber = batchnumber
|
4666
|
+
@BatchPause = batchpause
|
4667
|
+
end
|
4668
|
+
|
4669
|
+
def deserialize(params)
|
4670
|
+
@BatchNumber = params['BatchNumber']
|
4671
|
+
@BatchPause = params['BatchPause']
|
4672
|
+
end
|
4673
|
+
end
|
4674
|
+
|
4245
4675
|
# 描述了 “自动化助手” 服务相关的信息
|
4246
4676
|
class RunAutomationServiceEnabled < TencentCloud::Common::AbstractModel
|
4247
4677
|
# @param Enabled: 是否开启[自动化助手](https://cloud.tencent.com/document/product/1340)服务。取值范围:<br><li>TRUE:表示开启自动化助手服务<br><li>FALSE:表示不开启自动化助手服务
|
@@ -4681,6 +5111,53 @@ module TencentCloud
|
|
4681
5111
|
end
|
4682
5112
|
end
|
4683
5113
|
|
5114
|
+
# StartInstanceRefresh请求参数结构体
|
5115
|
+
class StartInstanceRefreshRequest < TencentCloud::Common::AbstractModel
|
5116
|
+
# @param AutoScalingGroupId: 伸缩组ID。
|
5117
|
+
# @type AutoScalingGroupId: String
|
5118
|
+
# @param RefreshSettings: 刷新设置。
|
5119
|
+
# @type RefreshSettings: :class:`Tencentcloud::As.v20180419.models.RefreshSettings`
|
5120
|
+
# @param RefreshMode: 刷新模式,目前仅支持滚动更新,默认值为 ROLLING_UPDATE_RESET。
|
5121
|
+
# @type RefreshMode: String
|
5122
|
+
|
5123
|
+
attr_accessor :AutoScalingGroupId, :RefreshSettings, :RefreshMode
|
5124
|
+
|
5125
|
+
def initialize(autoscalinggroupid=nil, refreshsettings=nil, refreshmode=nil)
|
5126
|
+
@AutoScalingGroupId = autoscalinggroupid
|
5127
|
+
@RefreshSettings = refreshsettings
|
5128
|
+
@RefreshMode = refreshmode
|
5129
|
+
end
|
5130
|
+
|
5131
|
+
def deserialize(params)
|
5132
|
+
@AutoScalingGroupId = params['AutoScalingGroupId']
|
5133
|
+
unless params['RefreshSettings'].nil?
|
5134
|
+
@RefreshSettings = RefreshSettings.new
|
5135
|
+
@RefreshSettings.deserialize(params['RefreshSettings'])
|
5136
|
+
end
|
5137
|
+
@RefreshMode = params['RefreshMode']
|
5138
|
+
end
|
5139
|
+
end
|
5140
|
+
|
5141
|
+
# StartInstanceRefresh返回参数结构体
|
5142
|
+
class StartInstanceRefreshResponse < TencentCloud::Common::AbstractModel
|
5143
|
+
# @param RefreshActivityId: 刷新活动 ID。
|
5144
|
+
# @type RefreshActivityId: String
|
5145
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5146
|
+
# @type RequestId: String
|
5147
|
+
|
5148
|
+
attr_accessor :RefreshActivityId, :RequestId
|
5149
|
+
|
5150
|
+
def initialize(refreshactivityid=nil, requestid=nil)
|
5151
|
+
@RefreshActivityId = refreshactivityid
|
5152
|
+
@RequestId = requestid
|
5153
|
+
end
|
5154
|
+
|
5155
|
+
def deserialize(params)
|
5156
|
+
@RefreshActivityId = params['RefreshActivityId']
|
5157
|
+
@RequestId = params['RequestId']
|
5158
|
+
end
|
5159
|
+
end
|
5160
|
+
|
4684
5161
|
# StopAutoScalingInstances请求参数结构体
|
4685
5162
|
class StopAutoScalingInstancesRequest < TencentCloud::Common::AbstractModel
|
4686
5163
|
# @param AutoScalingGroupId: 伸缩组ID
|
@@ -4728,6 +5205,42 @@ module TencentCloud
|
|
4728
5205
|
end
|
4729
5206
|
end
|
4730
5207
|
|
5208
|
+
# StopInstanceRefresh请求参数结构体
|
5209
|
+
class StopInstanceRefreshRequest < TencentCloud::Common::AbstractModel
|
5210
|
+
# @param AutoScalingGroupId: 伸缩组ID。
|
5211
|
+
# @type AutoScalingGroupId: String
|
5212
|
+
# @param RefreshActivityId: 刷新活动ID。
|
5213
|
+
# @type RefreshActivityId: String
|
5214
|
+
|
5215
|
+
attr_accessor :AutoScalingGroupId, :RefreshActivityId
|
5216
|
+
|
5217
|
+
def initialize(autoscalinggroupid=nil, refreshactivityid=nil)
|
5218
|
+
@AutoScalingGroupId = autoscalinggroupid
|
5219
|
+
@RefreshActivityId = refreshactivityid
|
5220
|
+
end
|
5221
|
+
|
5222
|
+
def deserialize(params)
|
5223
|
+
@AutoScalingGroupId = params['AutoScalingGroupId']
|
5224
|
+
@RefreshActivityId = params['RefreshActivityId']
|
5225
|
+
end
|
5226
|
+
end
|
5227
|
+
|
5228
|
+
# StopInstanceRefresh返回参数结构体
|
5229
|
+
class StopInstanceRefreshResponse < TencentCloud::Common::AbstractModel
|
5230
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5231
|
+
# @type RequestId: String
|
5232
|
+
|
5233
|
+
attr_accessor :RequestId
|
5234
|
+
|
5235
|
+
def initialize(requestid=nil)
|
5236
|
+
@RequestId = requestid
|
5237
|
+
end
|
5238
|
+
|
5239
|
+
def deserialize(params)
|
5240
|
+
@RequestId = params['RequestId']
|
5241
|
+
end
|
5242
|
+
end
|
5243
|
+
|
4731
5244
|
# 启动配置的系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。
|
4732
5245
|
class SystemDisk < TencentCloud::Common::AbstractModel
|
4733
5246
|
# @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>默认取值:CLOUD_PREMIUM。
|
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: 3.0.
|
4
|
+
version: 3.0.670
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|