tencentcloud-sdk-as 1.0.219 → 1.0.223
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 +94 -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: 69a7103e629b90a30f774cdf684267fc058672ab
|
4
|
+
data.tar.gz: 76fcc23b4d495315767bd1a3cae1bba372a434fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16cc44937637eaa8b5733827ce5c6075d0e2483acd070c4e03259bf1c80d6845baace77db0c17cbfe1309ba77089cddcf94f1987220cbad1799edf58e6a55f26
|
7
|
+
data.tar.gz: f23877483e0904e0417835da20a9f39a2c76215493dcdef7d2b8d88637af039ee3310ad1d906401968edc4f19fc7b3c70edee39cd866b2a80dc69ec732382ecf
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.223
|
data/lib/v20180419/client.rb
CHANGED
@@ -516,6 +516,30 @@ module TencentCloud
|
|
516
516
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
517
517
|
end
|
518
518
|
|
519
|
+
# 此接口用于查询伸缩组配置建议。
|
520
|
+
|
521
|
+
# @param request: Request instance for DescribeAutoScalingAdvices.
|
522
|
+
# @type request: :class:`Tencentcloud::as::V20180419::DescribeAutoScalingAdvicesRequest`
|
523
|
+
# @rtype: :class:`Tencentcloud::as::V20180419::DescribeAutoScalingAdvicesResponse`
|
524
|
+
def DescribeAutoScalingAdvices(request)
|
525
|
+
body = send_request('DescribeAutoScalingAdvices', request.serialize)
|
526
|
+
response = JSON.parse(body)
|
527
|
+
if response['Response'].key?('Error') == false
|
528
|
+
model = DescribeAutoScalingAdvicesResponse.new
|
529
|
+
model.deserialize(response['Response'])
|
530
|
+
model
|
531
|
+
else
|
532
|
+
code = response['Response']['Error']['Code']
|
533
|
+
message = response['Response']['Error']['Message']
|
534
|
+
reqid = response['Response']['RequestId']
|
535
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
536
|
+
end
|
537
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
538
|
+
raise e
|
539
|
+
rescue StandardError => e
|
540
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
541
|
+
end
|
542
|
+
|
519
543
|
# 本接口(DescribeAutoScalingGroupLastActivities)用于查询伸缩组的最新一次伸缩活动记录。
|
520
544
|
|
521
545
|
# @param request: Request instance for DescribeAutoScalingGroupLastActivities.
|
data/lib/v20180419/models.rb
CHANGED
@@ -139,6 +139,30 @@ module TencentCloud
|
|
139
139
|
end
|
140
140
|
end
|
141
141
|
|
142
|
+
# 伸缩配置建议。
|
143
|
+
class Advice < TencentCloud::Common::AbstractModel
|
144
|
+
# @param Problem: 问题描述。
|
145
|
+
# @type Problem: String
|
146
|
+
# @param Detail: 问题详情。
|
147
|
+
# @type Detail: String
|
148
|
+
# @param Solution: 建议解决方案。
|
149
|
+
# @type Solution: String
|
150
|
+
|
151
|
+
attr_accessor :Problem, :Detail, :Solution
|
152
|
+
|
153
|
+
def initialize(problem=nil, detail=nil, solution=nil)
|
154
|
+
@Problem = problem
|
155
|
+
@Detail = detail
|
156
|
+
@Solution = solution
|
157
|
+
end
|
158
|
+
|
159
|
+
def deserialize(params)
|
160
|
+
@Problem = params['Problem']
|
161
|
+
@Detail = params['Detail']
|
162
|
+
@Solution = params['Solution']
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
142
166
|
# AttachInstances请求参数结构体
|
143
167
|
class AttachInstancesRequest < TencentCloud::Common::AbstractModel
|
144
168
|
# @param AutoScalingGroupId: 伸缩组ID
|
@@ -179,6 +203,33 @@ module TencentCloud
|
|
179
203
|
end
|
180
204
|
end
|
181
205
|
|
206
|
+
# 伸缩组配置建议。
|
207
|
+
class AutoScalingAdvice < TencentCloud::Common::AbstractModel
|
208
|
+
# @param AutoScalingGroupId: 伸缩组ID。
|
209
|
+
# @type AutoScalingGroupId: String
|
210
|
+
# @param Advices: 伸缩组配置建议集合。
|
211
|
+
# @type Advices: Array
|
212
|
+
|
213
|
+
attr_accessor :AutoScalingGroupId, :Advices
|
214
|
+
|
215
|
+
def initialize(autoscalinggroupid=nil, advices=nil)
|
216
|
+
@AutoScalingGroupId = autoscalinggroupid
|
217
|
+
@Advices = advices
|
218
|
+
end
|
219
|
+
|
220
|
+
def deserialize(params)
|
221
|
+
@AutoScalingGroupId = params['AutoScalingGroupId']
|
222
|
+
unless params['Advices'].nil?
|
223
|
+
@Advices = []
|
224
|
+
params['Advices'].each do |i|
|
225
|
+
advice_tmp = Advice.new
|
226
|
+
advice_tmp.deserialize(i)
|
227
|
+
@Advices << advice_tmp
|
228
|
+
end
|
229
|
+
end
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
182
233
|
# 伸缩组
|
183
234
|
class AutoScalingGroup < TencentCloud::Common::AbstractModel
|
184
235
|
# @param AutoScalingGroupId: 伸缩组ID
|
@@ -1494,6 +1545,49 @@ module TencentCloud
|
|
1494
1545
|
end
|
1495
1546
|
end
|
1496
1547
|
|
1548
|
+
# DescribeAutoScalingAdvices请求参数结构体
|
1549
|
+
class DescribeAutoScalingAdvicesRequest < TencentCloud::Common::AbstractModel
|
1550
|
+
# @param AutoScalingGroupIds: 待查询的伸缩组列表,上限100。
|
1551
|
+
# @type AutoScalingGroupIds: Array
|
1552
|
+
|
1553
|
+
attr_accessor :AutoScalingGroupIds
|
1554
|
+
|
1555
|
+
def initialize(autoscalinggroupids=nil)
|
1556
|
+
@AutoScalingGroupIds = autoscalinggroupids
|
1557
|
+
end
|
1558
|
+
|
1559
|
+
def deserialize(params)
|
1560
|
+
@AutoScalingGroupIds = params['AutoScalingGroupIds']
|
1561
|
+
end
|
1562
|
+
end
|
1563
|
+
|
1564
|
+
# DescribeAutoScalingAdvices返回参数结构体
|
1565
|
+
class DescribeAutoScalingAdvicesResponse < TencentCloud::Common::AbstractModel
|
1566
|
+
# @param AutoScalingAdviceSet: 伸缩组配置建议集合。
|
1567
|
+
# @type AutoScalingAdviceSet: Array
|
1568
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1569
|
+
# @type RequestId: String
|
1570
|
+
|
1571
|
+
attr_accessor :AutoScalingAdviceSet, :RequestId
|
1572
|
+
|
1573
|
+
def initialize(autoscalingadviceset=nil, requestid=nil)
|
1574
|
+
@AutoScalingAdviceSet = autoscalingadviceset
|
1575
|
+
@RequestId = requestid
|
1576
|
+
end
|
1577
|
+
|
1578
|
+
def deserialize(params)
|
1579
|
+
unless params['AutoScalingAdviceSet'].nil?
|
1580
|
+
@AutoScalingAdviceSet = []
|
1581
|
+
params['AutoScalingAdviceSet'].each do |i|
|
1582
|
+
autoscalingadvice_tmp = AutoScalingAdvice.new
|
1583
|
+
autoscalingadvice_tmp.deserialize(i)
|
1584
|
+
@AutoScalingAdviceSet << autoscalingadvice_tmp
|
1585
|
+
end
|
1586
|
+
end
|
1587
|
+
@RequestId = params['RequestId']
|
1588
|
+
end
|
1589
|
+
end
|
1590
|
+
|
1497
1591
|
# DescribeAutoScalingGroupLastActivities请求参数结构体
|
1498
1592
|
class DescribeAutoScalingGroupLastActivitiesRequest < TencentCloud::Common::AbstractModel
|
1499
1593
|
# @param AutoScalingGroupIds: 伸缩组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.223
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|