tencentcloud-sdk-as 1.0.222 → 1.0.226

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7cdefdd190e5e6d85524f533710f685407db506
4
- data.tar.gz: a8eb7d167e8ee6ec1e2fdf9186d5367be9ffed30
3
+ metadata.gz: 41f35d7ef8360566d81cea6441ede140aabbd3a4
4
+ data.tar.gz: 1e30ec1f60afbf4d8c6ee907aa06384921a19251
5
5
  SHA512:
6
- metadata.gz: 84da490390edcf98bb58ab04095518ffb91f1575bec3f518d946611d947d0503a0905f0a69a6503024a314232862bb3298f21c67417426a2149be8959b8719f3
7
- data.tar.gz: fbf36e65f5e3392e515efcb7f42a043de836a5e20bb59166f84edc5ce983b6ad1c1110070088e2487d9e5e494173450f1c29ddfeef537f4a303fdaaf10729e22
6
+ metadata.gz: 0e80bd49a6d1b13bfe0c3320b02c28de7acc8d25105e669bf832252c0975e8b05fc6e7da706373999eead0865958f5395b74beb8225ec15761433666b7b85043
7
+ data.tar.gz: d4d1ea34227a98925f4527c2e5438798df99ceed1d30b89bf312dd76f45290329ba4e48ae2541179742eecaf84c8483d35f515f66714339f9613cb3e47ae34f0
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.222
1
+ 1.0.226
@@ -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.
@@ -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.222
4
+ version: 1.0.226
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-13 00:00:00.000000000 Z
11
+ date: 2021-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common