tencentcloud-sdk-thpc 3.0.540 → 3.0.541
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/tencentcloud-sdk-thpc.rb +3 -0
- data/lib/v20230321/client.rb +403 -0
- data/lib/v20230321/models.rb +2056 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58a82e25eb0c688f1d28595742dc38fb2abc50ee
|
4
|
+
data.tar.gz: 18a9d1b335d81af5715a6b193336a130a19e2c27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63c0457191a1ddabef3d495a735b593e31a2a13092934a91a7d6da950651d6b173fbbd13999ef6b9523b8009ebf8e22d5d282a5ce07142b2c0fa1b00d82249cc
|
7
|
+
data.tar.gz: ab5de220ed00810195a03ec0911a4d53fe2c9e4509fb88899be0187592019b8a5abfbd1348a707a0d55242a910e0828283a6ed868e89ecf617cfc712cf3ef1bb
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.541
|
@@ -0,0 +1,403 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
require 'json'
|
18
|
+
|
19
|
+
module TencentCloud
|
20
|
+
module Thpc
|
21
|
+
module V20230321
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2023-03-21'
|
26
|
+
api_endpoint = 'thpc.tencentcloudapi.com'
|
27
|
+
sdk_version = 'THPC_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# 本接口(AddClusterStorageOption)用于添加集群存储选项信息。
|
33
|
+
|
34
|
+
# @param request: Request instance for AddClusterStorageOption.
|
35
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::AddClusterStorageOptionRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::AddClusterStorageOptionResponse`
|
37
|
+
def AddClusterStorageOption(request)
|
38
|
+
body = send_request('AddClusterStorageOption', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = AddClusterStorageOptionResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
56
|
+
# 本接口(AddNodes)用于添加一个或者多个计算节点或者登录节点到指定集群。
|
57
|
+
|
58
|
+
# @param request: Request instance for AddNodes.
|
59
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::AddNodesRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::AddNodesResponse`
|
61
|
+
def AddNodes(request)
|
62
|
+
body = send_request('AddNodes', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = AddNodesResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
80
|
+
# 本接口(AddQueue)用于添加队列到指定集群。
|
81
|
+
# * 本接口为目前只支持SchedulerType为SLURM的集群。
|
82
|
+
# * 单个集群中队列数量上限为10个。
|
83
|
+
|
84
|
+
# @param request: Request instance for AddQueue.
|
85
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::AddQueueRequest`
|
86
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::AddQueueResponse`
|
87
|
+
def AddQueue(request)
|
88
|
+
body = send_request('AddQueue', request.serialize)
|
89
|
+
response = JSON.parse(body)
|
90
|
+
if response['Response'].key?('Error') == false
|
91
|
+
model = AddQueueResponse.new
|
92
|
+
model.deserialize(response['Response'])
|
93
|
+
model
|
94
|
+
else
|
95
|
+
code = response['Response']['Error']['Code']
|
96
|
+
message = response['Response']['Error']['Message']
|
97
|
+
reqid = response['Response']['RequestId']
|
98
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
99
|
+
end
|
100
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
101
|
+
raise e
|
102
|
+
rescue StandardError => e
|
103
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
104
|
+
end
|
105
|
+
|
106
|
+
# 本接口 (CreateCluster) 用于创建并启动集群。
|
107
|
+
|
108
|
+
# * 本接口为异步接口, 当创建集群请求下发成功后会返回一个集群`ID`和一个`RequestId`,此时创建集群操作并未立即完成。在此期间集群的状态将会处于“PENDING”或者“INITING”,集群创建结果可以通过调用 [DescribeClusters](https://cloud.tencent.com/document/product/1527/72100) 接口查询,如果集群状态(ClusterStatus)变为“RUNNING(运行中)”,则代表集群创建成功,“ INIT_FAILED”代表集群创建失败。
|
109
|
+
|
110
|
+
# @param request: Request instance for CreateCluster.
|
111
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::CreateClusterRequest`
|
112
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::CreateClusterResponse`
|
113
|
+
def CreateCluster(request)
|
114
|
+
body = send_request('CreateCluster', request.serialize)
|
115
|
+
response = JSON.parse(body)
|
116
|
+
if response['Response'].key?('Error') == false
|
117
|
+
model = CreateClusterResponse.new
|
118
|
+
model.deserialize(response['Response'])
|
119
|
+
model
|
120
|
+
else
|
121
|
+
code = response['Response']['Error']['Code']
|
122
|
+
message = response['Response']['Error']['Message']
|
123
|
+
reqid = response['Response']['RequestId']
|
124
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
125
|
+
end
|
126
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
127
|
+
raise e
|
128
|
+
rescue StandardError => e
|
129
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
130
|
+
end
|
131
|
+
|
132
|
+
# 本接口(DeleteCluster)用于删除一个指定的集群。
|
133
|
+
|
134
|
+
# @param request: Request instance for DeleteCluster.
|
135
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::DeleteClusterRequest`
|
136
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::DeleteClusterResponse`
|
137
|
+
def DeleteCluster(request)
|
138
|
+
body = send_request('DeleteCluster', request.serialize)
|
139
|
+
response = JSON.parse(body)
|
140
|
+
if response['Response'].key?('Error') == false
|
141
|
+
model = DeleteClusterResponse.new
|
142
|
+
model.deserialize(response['Response'])
|
143
|
+
model
|
144
|
+
else
|
145
|
+
code = response['Response']['Error']['Code']
|
146
|
+
message = response['Response']['Error']['Message']
|
147
|
+
reqid = response['Response']['RequestId']
|
148
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
149
|
+
end
|
150
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
151
|
+
raise e
|
152
|
+
rescue StandardError => e
|
153
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
154
|
+
end
|
155
|
+
|
156
|
+
# 本接口 (DeleteClusterStorageOption) 用于删除集群存储选项信息。
|
157
|
+
|
158
|
+
# @param request: Request instance for DeleteClusterStorageOption.
|
159
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::DeleteClusterStorageOptionRequest`
|
160
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::DeleteClusterStorageOptionResponse`
|
161
|
+
def DeleteClusterStorageOption(request)
|
162
|
+
body = send_request('DeleteClusterStorageOption', request.serialize)
|
163
|
+
response = JSON.parse(body)
|
164
|
+
if response['Response'].key?('Error') == false
|
165
|
+
model = DeleteClusterStorageOptionResponse.new
|
166
|
+
model.deserialize(response['Response'])
|
167
|
+
model
|
168
|
+
else
|
169
|
+
code = response['Response']['Error']['Code']
|
170
|
+
message = response['Response']['Error']['Message']
|
171
|
+
reqid = response['Response']['RequestId']
|
172
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
173
|
+
end
|
174
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
175
|
+
raise e
|
176
|
+
rescue StandardError => e
|
177
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
178
|
+
end
|
179
|
+
|
180
|
+
# 本接口(DeleteNodes)用于删除指定集群中一个或者多个计算节点或者登录节点。
|
181
|
+
|
182
|
+
# @param request: Request instance for DeleteNodes.
|
183
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::DeleteNodesRequest`
|
184
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::DeleteNodesResponse`
|
185
|
+
def DeleteNodes(request)
|
186
|
+
body = send_request('DeleteNodes', request.serialize)
|
187
|
+
response = JSON.parse(body)
|
188
|
+
if response['Response'].key?('Error') == false
|
189
|
+
model = DeleteNodesResponse.new
|
190
|
+
model.deserialize(response['Response'])
|
191
|
+
model
|
192
|
+
else
|
193
|
+
code = response['Response']['Error']['Code']
|
194
|
+
message = response['Response']['Error']['Message']
|
195
|
+
reqid = response['Response']['RequestId']
|
196
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
197
|
+
end
|
198
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
199
|
+
raise e
|
200
|
+
rescue StandardError => e
|
201
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
202
|
+
end
|
203
|
+
|
204
|
+
# 本接口(DeleteQueue)用于从指定集群删除队列。
|
205
|
+
# * 本接口为目前只支持SchedulerType为SLURM的集群。
|
206
|
+
|
207
|
+
# * 删除队列时,需要保证队列内不存在节点。
|
208
|
+
|
209
|
+
# @param request: Request instance for DeleteQueue.
|
210
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::DeleteQueueRequest`
|
211
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::DeleteQueueResponse`
|
212
|
+
def DeleteQueue(request)
|
213
|
+
body = send_request('DeleteQueue', request.serialize)
|
214
|
+
response = JSON.parse(body)
|
215
|
+
if response['Response'].key?('Error') == false
|
216
|
+
model = DeleteQueueResponse.new
|
217
|
+
model.deserialize(response['Response'])
|
218
|
+
model
|
219
|
+
else
|
220
|
+
code = response['Response']['Error']['Code']
|
221
|
+
message = response['Response']['Error']['Message']
|
222
|
+
reqid = response['Response']['RequestId']
|
223
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
224
|
+
end
|
225
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
226
|
+
raise e
|
227
|
+
rescue StandardError => e
|
228
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
229
|
+
end
|
230
|
+
|
231
|
+
# 本接口(DescribeAutoScalingConfiguration)用于查询集群弹性伸缩配置信息。本接口仅适用于弹性伸缩类型为THPC_AS的集群。
|
232
|
+
|
233
|
+
# @param request: Request instance for DescribeAutoScalingConfiguration.
|
234
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::DescribeAutoScalingConfigurationRequest`
|
235
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::DescribeAutoScalingConfigurationResponse`
|
236
|
+
def DescribeAutoScalingConfiguration(request)
|
237
|
+
body = send_request('DescribeAutoScalingConfiguration', request.serialize)
|
238
|
+
response = JSON.parse(body)
|
239
|
+
if response['Response'].key?('Error') == false
|
240
|
+
model = DescribeAutoScalingConfigurationResponse.new
|
241
|
+
model.deserialize(response['Response'])
|
242
|
+
model
|
243
|
+
else
|
244
|
+
code = response['Response']['Error']['Code']
|
245
|
+
message = response['Response']['Error']['Message']
|
246
|
+
reqid = response['Response']['RequestId']
|
247
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
248
|
+
end
|
249
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
250
|
+
raise e
|
251
|
+
rescue StandardError => e
|
252
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
253
|
+
end
|
254
|
+
|
255
|
+
# 本接口(DescribeClusterActivities)用于查询集群活动历史记录列表。
|
256
|
+
|
257
|
+
# @param request: Request instance for DescribeClusterActivities.
|
258
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::DescribeClusterActivitiesRequest`
|
259
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::DescribeClusterActivitiesResponse`
|
260
|
+
def DescribeClusterActivities(request)
|
261
|
+
body = send_request('DescribeClusterActivities', request.serialize)
|
262
|
+
response = JSON.parse(body)
|
263
|
+
if response['Response'].key?('Error') == false
|
264
|
+
model = DescribeClusterActivitiesResponse.new
|
265
|
+
model.deserialize(response['Response'])
|
266
|
+
model
|
267
|
+
else
|
268
|
+
code = response['Response']['Error']['Code']
|
269
|
+
message = response['Response']['Error']['Message']
|
270
|
+
reqid = response['Response']['RequestId']
|
271
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
272
|
+
end
|
273
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
274
|
+
raise e
|
275
|
+
rescue StandardError => e
|
276
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
277
|
+
end
|
278
|
+
|
279
|
+
# 本接口 (DescribeClusterStorageOption) 用于查询集群存储选项信息。
|
280
|
+
|
281
|
+
# @param request: Request instance for DescribeClusterStorageOption.
|
282
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::DescribeClusterStorageOptionRequest`
|
283
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::DescribeClusterStorageOptionResponse`
|
284
|
+
def DescribeClusterStorageOption(request)
|
285
|
+
body = send_request('DescribeClusterStorageOption', request.serialize)
|
286
|
+
response = JSON.parse(body)
|
287
|
+
if response['Response'].key?('Error') == false
|
288
|
+
model = DescribeClusterStorageOptionResponse.new
|
289
|
+
model.deserialize(response['Response'])
|
290
|
+
model
|
291
|
+
else
|
292
|
+
code = response['Response']['Error']['Code']
|
293
|
+
message = response['Response']['Error']['Message']
|
294
|
+
reqid = response['Response']['RequestId']
|
295
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
296
|
+
end
|
297
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
298
|
+
raise e
|
299
|
+
rescue StandardError => e
|
300
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
301
|
+
end
|
302
|
+
|
303
|
+
# 本接口(DescribeClusters)用于查询集群列表。
|
304
|
+
|
305
|
+
# @param request: Request instance for DescribeClusters.
|
306
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::DescribeClustersRequest`
|
307
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::DescribeClustersResponse`
|
308
|
+
def DescribeClusters(request)
|
309
|
+
body = send_request('DescribeClusters', request.serialize)
|
310
|
+
response = JSON.parse(body)
|
311
|
+
if response['Response'].key?('Error') == false
|
312
|
+
model = DescribeClustersResponse.new
|
313
|
+
model.deserialize(response['Response'])
|
314
|
+
model
|
315
|
+
else
|
316
|
+
code = response['Response']['Error']['Code']
|
317
|
+
message = response['Response']['Error']['Message']
|
318
|
+
reqid = response['Response']['RequestId']
|
319
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
320
|
+
end
|
321
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
322
|
+
raise e
|
323
|
+
rescue StandardError => e
|
324
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
325
|
+
end
|
326
|
+
|
327
|
+
# 本接口 (DescribeNodes) 用于查询指定集群节点概览信息列表。
|
328
|
+
|
329
|
+
# @param request: Request instance for DescribeNodes.
|
330
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::DescribeNodesRequest`
|
331
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::DescribeNodesResponse`
|
332
|
+
def DescribeNodes(request)
|
333
|
+
body = send_request('DescribeNodes', request.serialize)
|
334
|
+
response = JSON.parse(body)
|
335
|
+
if response['Response'].key?('Error') == false
|
336
|
+
model = DescribeNodesResponse.new
|
337
|
+
model.deserialize(response['Response'])
|
338
|
+
model
|
339
|
+
else
|
340
|
+
code = response['Response']['Error']['Code']
|
341
|
+
message = response['Response']['Error']['Message']
|
342
|
+
reqid = response['Response']['RequestId']
|
343
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
344
|
+
end
|
345
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
346
|
+
raise e
|
347
|
+
rescue StandardError => e
|
348
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
349
|
+
end
|
350
|
+
|
351
|
+
# 本接口(DescribeQueues)用于查询指定集群队列概览信息列表。
|
352
|
+
|
353
|
+
# @param request: Request instance for DescribeQueues.
|
354
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::DescribeQueuesRequest`
|
355
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::DescribeQueuesResponse`
|
356
|
+
def DescribeQueues(request)
|
357
|
+
body = send_request('DescribeQueues', request.serialize)
|
358
|
+
response = JSON.parse(body)
|
359
|
+
if response['Response'].key?('Error') == false
|
360
|
+
model = DescribeQueuesResponse.new
|
361
|
+
model.deserialize(response['Response'])
|
362
|
+
model
|
363
|
+
else
|
364
|
+
code = response['Response']['Error']['Code']
|
365
|
+
message = response['Response']['Error']['Message']
|
366
|
+
reqid = response['Response']['RequestId']
|
367
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
368
|
+
end
|
369
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
370
|
+
raise e
|
371
|
+
rescue StandardError => e
|
372
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
373
|
+
end
|
374
|
+
|
375
|
+
# 本接口(SetAutoScalingConfiguration)用于为集群设置集群弹性伸缩配置信息。
|
376
|
+
|
377
|
+
# @param request: Request instance for SetAutoScalingConfiguration.
|
378
|
+
# @type request: :class:`Tencentcloud::thpc::V20230321::SetAutoScalingConfigurationRequest`
|
379
|
+
# @rtype: :class:`Tencentcloud::thpc::V20230321::SetAutoScalingConfigurationResponse`
|
380
|
+
def SetAutoScalingConfiguration(request)
|
381
|
+
body = send_request('SetAutoScalingConfiguration', request.serialize)
|
382
|
+
response = JSON.parse(body)
|
383
|
+
if response['Response'].key?('Error') == false
|
384
|
+
model = SetAutoScalingConfigurationResponse.new
|
385
|
+
model.deserialize(response['Response'])
|
386
|
+
model
|
387
|
+
else
|
388
|
+
code = response['Response']['Error']['Code']
|
389
|
+
message = response['Response']['Error']['Message']
|
390
|
+
reqid = response['Response']['RequestId']
|
391
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
392
|
+
end
|
393
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
394
|
+
raise e
|
395
|
+
rescue StandardError => e
|
396
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
397
|
+
end
|
398
|
+
|
399
|
+
|
400
|
+
end
|
401
|
+
end
|
402
|
+
end
|
403
|
+
end
|