tencentcloud-sdk-tsf 1.0.200
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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-tsf.rb +11 -0
- data/lib/v20180326/client.rb +4144 -0
- data/lib/v20180326/models.rb +15152 -0
- metadata +66 -0
@@ -0,0 +1,4144 @@
|
|
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 Tsf
|
21
|
+
module V20180326
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2018-03-26'
|
26
|
+
api_endpoint = 'tsf.tencentcloudapi.com'
|
27
|
+
sdk_version = 'TSF_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# 添加云主机节点至TSF集群
|
33
|
+
|
34
|
+
# @param request: Request instance for AddClusterInstances.
|
35
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::AddClusterInstancesRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::AddClusterInstancesResponse`
|
37
|
+
def AddClusterInstances(request)
|
38
|
+
body = send_request('AddClusterInstances', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = AddClusterInstancesResponse.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
|
+
# 添加云主机节点至TSF集群
|
57
|
+
|
58
|
+
# @param request: Request instance for AddInstances.
|
59
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::AddInstancesRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::AddInstancesResponse`
|
61
|
+
def AddInstances(request)
|
62
|
+
body = send_request('AddInstances', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = AddInstancesResponse.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
|
+
# 网关与API分组批量绑定
|
81
|
+
|
82
|
+
# @param request: Request instance for BindApiGroup.
|
83
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::BindApiGroupRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::BindApiGroupResponse`
|
85
|
+
def BindApiGroup(request)
|
86
|
+
body = send_request('BindApiGroup', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = BindApiGroupResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
104
|
+
# 插件与网关分组/API批量绑定
|
105
|
+
|
106
|
+
# @param request: Request instance for BindPlugin.
|
107
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::BindPluginRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::BindPluginResponse`
|
109
|
+
def BindPlugin(request)
|
110
|
+
body = send_request('BindPlugin', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = BindPluginResponse.new
|
114
|
+
model.deserialize(response['Response'])
|
115
|
+
model
|
116
|
+
else
|
117
|
+
code = response['Response']['Error']['Code']
|
118
|
+
message = response['Response']['Error']['Message']
|
119
|
+
reqid = response['Response']['RequestId']
|
120
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
121
|
+
end
|
122
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
123
|
+
raise e
|
124
|
+
rescue StandardError => e
|
125
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
|
+
end
|
127
|
+
|
128
|
+
# 启用或禁用API
|
129
|
+
|
130
|
+
# @param request: Request instance for ChangeApiUsableStatus.
|
131
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::ChangeApiUsableStatusRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::ChangeApiUsableStatusResponse`
|
133
|
+
def ChangeApiUsableStatus(request)
|
134
|
+
body = send_request('ChangeApiUsableStatus', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = ChangeApiUsableStatusResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
152
|
+
# 对执行失败的任务批次执行续跑
|
153
|
+
|
154
|
+
# @param request: Request instance for ContinueRunFailedTaskBatch.
|
155
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::ContinueRunFailedTaskBatchRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::ContinueRunFailedTaskBatchResponse`
|
157
|
+
def ContinueRunFailedTaskBatch(request)
|
158
|
+
body = send_request('ContinueRunFailedTaskBatch', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = ContinueRunFailedTaskBatchResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
176
|
+
# 一键导入API分组
|
177
|
+
|
178
|
+
# @param request: Request instance for CreateAllGatewayApiAsync.
|
179
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreateAllGatewayApiAsyncRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreateAllGatewayApiAsyncResponse`
|
181
|
+
def CreateAllGatewayApiAsync(request)
|
182
|
+
body = send_request('CreateAllGatewayApiAsync', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = CreateAllGatewayApiAsyncResponse.new
|
186
|
+
model.deserialize(response['Response'])
|
187
|
+
model
|
188
|
+
else
|
189
|
+
code = response['Response']['Error']['Code']
|
190
|
+
message = response['Response']['Error']['Message']
|
191
|
+
reqid = response['Response']['RequestId']
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
193
|
+
end
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
195
|
+
raise e
|
196
|
+
rescue StandardError => e
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
|
+
end
|
199
|
+
|
200
|
+
# 创建API分组
|
201
|
+
|
202
|
+
# @param request: Request instance for CreateApiGroup.
|
203
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreateApiGroupRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreateApiGroupResponse`
|
205
|
+
def CreateApiGroup(request)
|
206
|
+
body = send_request('CreateApiGroup', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = CreateApiGroupResponse.new
|
210
|
+
model.deserialize(response['Response'])
|
211
|
+
model
|
212
|
+
else
|
213
|
+
code = response['Response']['Error']['Code']
|
214
|
+
message = response['Response']['Error']['Message']
|
215
|
+
reqid = response['Response']['RequestId']
|
216
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
217
|
+
end
|
218
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
219
|
+
raise e
|
220
|
+
rescue StandardError => e
|
221
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
|
+
end
|
223
|
+
|
224
|
+
# 创建API限流规则
|
225
|
+
|
226
|
+
# @param request: Request instance for CreateApiRateLimitRule.
|
227
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreateApiRateLimitRuleRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreateApiRateLimitRuleResponse`
|
229
|
+
def CreateApiRateLimitRule(request)
|
230
|
+
body = send_request('CreateApiRateLimitRule', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = CreateApiRateLimitRuleResponse.new
|
234
|
+
model.deserialize(response['Response'])
|
235
|
+
model
|
236
|
+
else
|
237
|
+
code = response['Response']['Error']['Code']
|
238
|
+
message = response['Response']['Error']['Message']
|
239
|
+
reqid = response['Response']['RequestId']
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
+
end
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
+
raise e
|
244
|
+
rescue StandardError => e
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
+
end
|
247
|
+
|
248
|
+
# 创建应用
|
249
|
+
|
250
|
+
# @param request: Request instance for CreateApplication.
|
251
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreateApplicationRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreateApplicationResponse`
|
253
|
+
def CreateApplication(request)
|
254
|
+
body = send_request('CreateApplication', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = CreateApplicationResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
272
|
+
# 创建集群
|
273
|
+
|
274
|
+
# @param request: Request instance for CreateCluster.
|
275
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreateClusterRequest`
|
276
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreateClusterResponse`
|
277
|
+
def CreateCluster(request)
|
278
|
+
body = send_request('CreateCluster', request.serialize)
|
279
|
+
response = JSON.parse(body)
|
280
|
+
if response['Response'].key?('Error') == false
|
281
|
+
model = CreateClusterResponse.new
|
282
|
+
model.deserialize(response['Response'])
|
283
|
+
model
|
284
|
+
else
|
285
|
+
code = response['Response']['Error']['Code']
|
286
|
+
message = response['Response']['Error']['Message']
|
287
|
+
reqid = response['Response']['RequestId']
|
288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
289
|
+
end
|
290
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
291
|
+
raise e
|
292
|
+
rescue StandardError => e
|
293
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
|
+
end
|
295
|
+
|
296
|
+
# 创建配置项
|
297
|
+
|
298
|
+
# @param request: Request instance for CreateConfig.
|
299
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreateConfigRequest`
|
300
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreateConfigResponse`
|
301
|
+
def CreateConfig(request)
|
302
|
+
body = send_request('CreateConfig', request.serialize)
|
303
|
+
response = JSON.parse(body)
|
304
|
+
if response['Response'].key?('Error') == false
|
305
|
+
model = CreateConfigResponse.new
|
306
|
+
model.deserialize(response['Response'])
|
307
|
+
model
|
308
|
+
else
|
309
|
+
code = response['Response']['Error']['Code']
|
310
|
+
message = response['Response']['Error']['Message']
|
311
|
+
reqid = response['Response']['RequestId']
|
312
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
313
|
+
end
|
314
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
315
|
+
raise e
|
316
|
+
rescue StandardError => e
|
317
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
|
+
end
|
319
|
+
|
320
|
+
# 创建容器部署组
|
321
|
+
|
322
|
+
# @param request: Request instance for CreateContainGroup.
|
323
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreateContainGroupRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreateContainGroupResponse`
|
325
|
+
def CreateContainGroup(request)
|
326
|
+
body = send_request('CreateContainGroup', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = CreateContainGroupResponse.new
|
330
|
+
model.deserialize(response['Response'])
|
331
|
+
model
|
332
|
+
else
|
333
|
+
code = response['Response']['Error']['Code']
|
334
|
+
message = response['Response']['Error']['Message']
|
335
|
+
reqid = response['Response']['RequestId']
|
336
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
337
|
+
end
|
338
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
339
|
+
raise e
|
340
|
+
rescue StandardError => e
|
341
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
|
+
end
|
343
|
+
|
344
|
+
# 创建文件配置项
|
345
|
+
|
346
|
+
# @param request: Request instance for CreateFileConfig.
|
347
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreateFileConfigRequest`
|
348
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreateFileConfigResponse`
|
349
|
+
def CreateFileConfig(request)
|
350
|
+
body = send_request('CreateFileConfig', request.serialize)
|
351
|
+
response = JSON.parse(body)
|
352
|
+
if response['Response'].key?('Error') == false
|
353
|
+
model = CreateFileConfigResponse.new
|
354
|
+
model.deserialize(response['Response'])
|
355
|
+
model
|
356
|
+
else
|
357
|
+
code = response['Response']['Error']['Code']
|
358
|
+
message = response['Response']['Error']['Message']
|
359
|
+
reqid = response['Response']['RequestId']
|
360
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
361
|
+
end
|
362
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
363
|
+
raise e
|
364
|
+
rescue StandardError => e
|
365
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
|
+
end
|
367
|
+
|
368
|
+
# 批量导入API至api分组(也支持新建API到分组)
|
369
|
+
|
370
|
+
# @param request: Request instance for CreateGatewayApi.
|
371
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreateGatewayApiRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreateGatewayApiResponse`
|
373
|
+
def CreateGatewayApi(request)
|
374
|
+
body = send_request('CreateGatewayApi', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = CreateGatewayApiResponse.new
|
378
|
+
model.deserialize(response['Response'])
|
379
|
+
model
|
380
|
+
else
|
381
|
+
code = response['Response']['Error']['Code']
|
382
|
+
message = response['Response']['Error']['Message']
|
383
|
+
reqid = response['Response']['RequestId']
|
384
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
385
|
+
end
|
386
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
387
|
+
raise e
|
388
|
+
rescue StandardError => e
|
389
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
|
+
end
|
391
|
+
|
392
|
+
# 创建虚拟机部署组
|
393
|
+
|
394
|
+
# @param request: Request instance for CreateGroup.
|
395
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreateGroupRequest`
|
396
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreateGroupResponse`
|
397
|
+
def CreateGroup(request)
|
398
|
+
body = send_request('CreateGroup', request.serialize)
|
399
|
+
response = JSON.parse(body)
|
400
|
+
if response['Response'].key?('Error') == false
|
401
|
+
model = CreateGroupResponse.new
|
402
|
+
model.deserialize(response['Response'])
|
403
|
+
model
|
404
|
+
else
|
405
|
+
code = response['Response']['Error']['Code']
|
406
|
+
message = response['Response']['Error']['Message']
|
407
|
+
reqid = response['Response']['RequestId']
|
408
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
409
|
+
end
|
410
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
411
|
+
raise e
|
412
|
+
rescue StandardError => e
|
413
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
|
+
end
|
415
|
+
|
416
|
+
# 创建泳道
|
417
|
+
|
418
|
+
# @param request: Request instance for CreateLane.
|
419
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreateLaneRequest`
|
420
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreateLaneResponse`
|
421
|
+
def CreateLane(request)
|
422
|
+
body = send_request('CreateLane', request.serialize)
|
423
|
+
response = JSON.parse(body)
|
424
|
+
if response['Response'].key?('Error') == false
|
425
|
+
model = CreateLaneResponse.new
|
426
|
+
model.deserialize(response['Response'])
|
427
|
+
model
|
428
|
+
else
|
429
|
+
code = response['Response']['Error']['Code']
|
430
|
+
message = response['Response']['Error']['Message']
|
431
|
+
reqid = response['Response']['RequestId']
|
432
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
433
|
+
end
|
434
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
435
|
+
raise e
|
436
|
+
rescue StandardError => e
|
437
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
|
+
end
|
439
|
+
|
440
|
+
# 创建泳道规则
|
441
|
+
|
442
|
+
# @param request: Request instance for CreateLaneRule.
|
443
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreateLaneRuleRequest`
|
444
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreateLaneRuleResponse`
|
445
|
+
def CreateLaneRule(request)
|
446
|
+
body = send_request('CreateLaneRule', request.serialize)
|
447
|
+
response = JSON.parse(body)
|
448
|
+
if response['Response'].key?('Error') == false
|
449
|
+
model = CreateLaneRuleResponse.new
|
450
|
+
model.deserialize(response['Response'])
|
451
|
+
model
|
452
|
+
else
|
453
|
+
code = response['Response']['Error']['Code']
|
454
|
+
message = response['Response']['Error']['Message']
|
455
|
+
reqid = response['Response']['RequestId']
|
456
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
457
|
+
end
|
458
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
459
|
+
raise e
|
460
|
+
rescue StandardError => e
|
461
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
|
+
end
|
463
|
+
|
464
|
+
# 新增微服务
|
465
|
+
|
466
|
+
# @param request: Request instance for CreateMicroservice.
|
467
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreateMicroserviceRequest`
|
468
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreateMicroserviceResponse`
|
469
|
+
def CreateMicroservice(request)
|
470
|
+
body = send_request('CreateMicroservice', request.serialize)
|
471
|
+
response = JSON.parse(body)
|
472
|
+
if response['Response'].key?('Error') == false
|
473
|
+
model = CreateMicroserviceResponse.new
|
474
|
+
model.deserialize(response['Response'])
|
475
|
+
model
|
476
|
+
else
|
477
|
+
code = response['Response']['Error']['Code']
|
478
|
+
message = response['Response']['Error']['Message']
|
479
|
+
reqid = response['Response']['RequestId']
|
480
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
481
|
+
end
|
482
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
483
|
+
raise e
|
484
|
+
rescue StandardError => e
|
485
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
486
|
+
end
|
487
|
+
|
488
|
+
# 创建命名空间
|
489
|
+
|
490
|
+
# @param request: Request instance for CreateNamespace.
|
491
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreateNamespaceRequest`
|
492
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreateNamespaceResponse`
|
493
|
+
def CreateNamespace(request)
|
494
|
+
body = send_request('CreateNamespace', request.serialize)
|
495
|
+
response = JSON.parse(body)
|
496
|
+
if response['Response'].key?('Error') == false
|
497
|
+
model = CreateNamespaceResponse.new
|
498
|
+
model.deserialize(response['Response'])
|
499
|
+
model
|
500
|
+
else
|
501
|
+
code = response['Response']['Error']['Code']
|
502
|
+
message = response['Response']['Error']['Message']
|
503
|
+
reqid = response['Response']['RequestId']
|
504
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
505
|
+
end
|
506
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
507
|
+
raise e
|
508
|
+
rescue StandardError => e
|
509
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
510
|
+
end
|
511
|
+
|
512
|
+
# 创建路径重写
|
513
|
+
|
514
|
+
# @param request: Request instance for CreatePathRewrites.
|
515
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreatePathRewritesRequest`
|
516
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreatePathRewritesResponse`
|
517
|
+
def CreatePathRewrites(request)
|
518
|
+
body = send_request('CreatePathRewrites', request.serialize)
|
519
|
+
response = JSON.parse(body)
|
520
|
+
if response['Response'].key?('Error') == false
|
521
|
+
model = CreatePathRewritesResponse.new
|
522
|
+
model.deserialize(response['Response'])
|
523
|
+
model
|
524
|
+
else
|
525
|
+
code = response['Response']['Error']['Code']
|
526
|
+
message = response['Response']['Error']['Message']
|
527
|
+
reqid = response['Response']['RequestId']
|
528
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
529
|
+
end
|
530
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
531
|
+
raise e
|
532
|
+
rescue StandardError => e
|
533
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
534
|
+
end
|
535
|
+
|
536
|
+
# 创建公共配置项
|
537
|
+
|
538
|
+
# @param request: Request instance for CreatePublicConfig.
|
539
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreatePublicConfigRequest`
|
540
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreatePublicConfigResponse`
|
541
|
+
def CreatePublicConfig(request)
|
542
|
+
body = send_request('CreatePublicConfig', request.serialize)
|
543
|
+
response = JSON.parse(body)
|
544
|
+
if response['Response'].key?('Error') == false
|
545
|
+
model = CreatePublicConfigResponse.new
|
546
|
+
model.deserialize(response['Response'])
|
547
|
+
model
|
548
|
+
else
|
549
|
+
code = response['Response']['Error']['Code']
|
550
|
+
message = response['Response']['Error']['Message']
|
551
|
+
reqid = response['Response']['RequestId']
|
552
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
553
|
+
end
|
554
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
555
|
+
raise e
|
556
|
+
rescue StandardError => e
|
557
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
558
|
+
end
|
559
|
+
|
560
|
+
# 创建仓库
|
561
|
+
|
562
|
+
# @param request: Request instance for CreateRepository.
|
563
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreateRepositoryRequest`
|
564
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreateRepositoryResponse`
|
565
|
+
def CreateRepository(request)
|
566
|
+
body = send_request('CreateRepository', request.serialize)
|
567
|
+
response = JSON.parse(body)
|
568
|
+
if response['Response'].key?('Error') == false
|
569
|
+
model = CreateRepositoryResponse.new
|
570
|
+
model.deserialize(response['Response'])
|
571
|
+
model
|
572
|
+
else
|
573
|
+
code = response['Response']['Error']['Code']
|
574
|
+
message = response['Response']['Error']['Message']
|
575
|
+
reqid = response['Response']['RequestId']
|
576
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
577
|
+
end
|
578
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
579
|
+
raise e
|
580
|
+
rescue StandardError => e
|
581
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
582
|
+
end
|
583
|
+
|
584
|
+
# 创建Serverless部署组
|
585
|
+
|
586
|
+
# @param request: Request instance for CreateServerlessGroup.
|
587
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreateServerlessGroupRequest`
|
588
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreateServerlessGroupResponse`
|
589
|
+
def CreateServerlessGroup(request)
|
590
|
+
body = send_request('CreateServerlessGroup', request.serialize)
|
591
|
+
response = JSON.parse(body)
|
592
|
+
if response['Response'].key?('Error') == false
|
593
|
+
model = CreateServerlessGroupResponse.new
|
594
|
+
model.deserialize(response['Response'])
|
595
|
+
model
|
596
|
+
else
|
597
|
+
code = response['Response']['Error']['Code']
|
598
|
+
message = response['Response']['Error']['Message']
|
599
|
+
reqid = response['Response']['RequestId']
|
600
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
601
|
+
end
|
602
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
603
|
+
raise e
|
604
|
+
rescue StandardError => e
|
605
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
606
|
+
end
|
607
|
+
|
608
|
+
# 创建任务
|
609
|
+
|
610
|
+
# @param request: Request instance for CreateTask.
|
611
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreateTaskRequest`
|
612
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreateTaskResponse`
|
613
|
+
def CreateTask(request)
|
614
|
+
body = send_request('CreateTask', request.serialize)
|
615
|
+
response = JSON.parse(body)
|
616
|
+
if response['Response'].key?('Error') == false
|
617
|
+
model = CreateTaskResponse.new
|
618
|
+
model.deserialize(response['Response'])
|
619
|
+
model
|
620
|
+
else
|
621
|
+
code = response['Response']['Error']['Code']
|
622
|
+
message = response['Response']['Error']['Message']
|
623
|
+
reqid = response['Response']['RequestId']
|
624
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
625
|
+
end
|
626
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
627
|
+
raise e
|
628
|
+
rescue StandardError => e
|
629
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
630
|
+
end
|
631
|
+
|
632
|
+
# 创建工作流
|
633
|
+
|
634
|
+
# @param request: Request instance for CreateTaskFlow.
|
635
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreateTaskFlowRequest`
|
636
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreateTaskFlowResponse`
|
637
|
+
def CreateTaskFlow(request)
|
638
|
+
body = send_request('CreateTaskFlow', request.serialize)
|
639
|
+
response = JSON.parse(body)
|
640
|
+
if response['Response'].key?('Error') == false
|
641
|
+
model = CreateTaskFlowResponse.new
|
642
|
+
model.deserialize(response['Response'])
|
643
|
+
model
|
644
|
+
else
|
645
|
+
code = response['Response']['Error']['Code']
|
646
|
+
message = response['Response']['Error']['Message']
|
647
|
+
reqid = response['Response']['RequestId']
|
648
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
649
|
+
end
|
650
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
651
|
+
raise e
|
652
|
+
rescue StandardError => e
|
653
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
654
|
+
end
|
655
|
+
|
656
|
+
# 创建单元化规则
|
657
|
+
|
658
|
+
# @param request: Request instance for CreateUnitRule.
|
659
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::CreateUnitRuleRequest`
|
660
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::CreateUnitRuleResponse`
|
661
|
+
def CreateUnitRule(request)
|
662
|
+
body = send_request('CreateUnitRule', request.serialize)
|
663
|
+
response = JSON.parse(body)
|
664
|
+
if response['Response'].key?('Error') == false
|
665
|
+
model = CreateUnitRuleResponse.new
|
666
|
+
model.deserialize(response['Response'])
|
667
|
+
model
|
668
|
+
else
|
669
|
+
code = response['Response']['Error']['Code']
|
670
|
+
message = response['Response']['Error']['Message']
|
671
|
+
reqid = response['Response']['RequestId']
|
672
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
673
|
+
end
|
674
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
675
|
+
raise e
|
676
|
+
rescue StandardError => e
|
677
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
|
+
end
|
679
|
+
|
680
|
+
# 删除Api分组
|
681
|
+
|
682
|
+
# @param request: Request instance for DeleteApiGroup.
|
683
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeleteApiGroupRequest`
|
684
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeleteApiGroupResponse`
|
685
|
+
def DeleteApiGroup(request)
|
686
|
+
body = send_request('DeleteApiGroup', request.serialize)
|
687
|
+
response = JSON.parse(body)
|
688
|
+
if response['Response'].key?('Error') == false
|
689
|
+
model = DeleteApiGroupResponse.new
|
690
|
+
model.deserialize(response['Response'])
|
691
|
+
model
|
692
|
+
else
|
693
|
+
code = response['Response']['Error']['Code']
|
694
|
+
message = response['Response']['Error']['Message']
|
695
|
+
reqid = response['Response']['RequestId']
|
696
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
697
|
+
end
|
698
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
699
|
+
raise e
|
700
|
+
rescue StandardError => e
|
701
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
702
|
+
end
|
703
|
+
|
704
|
+
# 删除应用
|
705
|
+
|
706
|
+
# @param request: Request instance for DeleteApplication.
|
707
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeleteApplicationRequest`
|
708
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeleteApplicationResponse`
|
709
|
+
def DeleteApplication(request)
|
710
|
+
body = send_request('DeleteApplication', request.serialize)
|
711
|
+
response = JSON.parse(body)
|
712
|
+
if response['Response'].key?('Error') == false
|
713
|
+
model = DeleteApplicationResponse.new
|
714
|
+
model.deserialize(response['Response'])
|
715
|
+
model
|
716
|
+
else
|
717
|
+
code = response['Response']['Error']['Code']
|
718
|
+
message = response['Response']['Error']['Message']
|
719
|
+
reqid = response['Response']['RequestId']
|
720
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
721
|
+
end
|
722
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
723
|
+
raise e
|
724
|
+
rescue StandardError => e
|
725
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
726
|
+
end
|
727
|
+
|
728
|
+
# 删除配置项
|
729
|
+
|
730
|
+
# @param request: Request instance for DeleteConfig.
|
731
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeleteConfigRequest`
|
732
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeleteConfigResponse`
|
733
|
+
def DeleteConfig(request)
|
734
|
+
body = send_request('DeleteConfig', request.serialize)
|
735
|
+
response = JSON.parse(body)
|
736
|
+
if response['Response'].key?('Error') == false
|
737
|
+
model = DeleteConfigResponse.new
|
738
|
+
model.deserialize(response['Response'])
|
739
|
+
model
|
740
|
+
else
|
741
|
+
code = response['Response']['Error']['Code']
|
742
|
+
message = response['Response']['Error']['Message']
|
743
|
+
reqid = response['Response']['RequestId']
|
744
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
745
|
+
end
|
746
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
747
|
+
raise e
|
748
|
+
rescue StandardError => e
|
749
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
750
|
+
end
|
751
|
+
|
752
|
+
# 删除容器部署组
|
753
|
+
|
754
|
+
# @param request: Request instance for DeleteContainerGroup.
|
755
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeleteContainerGroupRequest`
|
756
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeleteContainerGroupResponse`
|
757
|
+
def DeleteContainerGroup(request)
|
758
|
+
body = send_request('DeleteContainerGroup', request.serialize)
|
759
|
+
response = JSON.parse(body)
|
760
|
+
if response['Response'].key?('Error') == false
|
761
|
+
model = DeleteContainerGroupResponse.new
|
762
|
+
model.deserialize(response['Response'])
|
763
|
+
model
|
764
|
+
else
|
765
|
+
code = response['Response']['Error']['Code']
|
766
|
+
message = response['Response']['Error']['Message']
|
767
|
+
reqid = response['Response']['RequestId']
|
768
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
769
|
+
end
|
770
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
771
|
+
raise e
|
772
|
+
rescue StandardError => e
|
773
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
774
|
+
end
|
775
|
+
|
776
|
+
# 删除容器部署组
|
777
|
+
|
778
|
+
# @param request: Request instance for DeleteGroup.
|
779
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeleteGroupRequest`
|
780
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeleteGroupResponse`
|
781
|
+
def DeleteGroup(request)
|
782
|
+
body = send_request('DeleteGroup', request.serialize)
|
783
|
+
response = JSON.parse(body)
|
784
|
+
if response['Response'].key?('Error') == false
|
785
|
+
model = DeleteGroupResponse.new
|
786
|
+
model.deserialize(response['Response'])
|
787
|
+
model
|
788
|
+
else
|
789
|
+
code = response['Response']['Error']['Code']
|
790
|
+
message = response['Response']['Error']['Message']
|
791
|
+
reqid = response['Response']['RequestId']
|
792
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
793
|
+
end
|
794
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
795
|
+
raise e
|
796
|
+
rescue StandardError => e
|
797
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
798
|
+
end
|
799
|
+
|
800
|
+
# 批量删除镜像版本
|
801
|
+
|
802
|
+
# @param request: Request instance for DeleteImageTags.
|
803
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeleteImageTagsRequest`
|
804
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeleteImageTagsResponse`
|
805
|
+
def DeleteImageTags(request)
|
806
|
+
body = send_request('DeleteImageTags', request.serialize)
|
807
|
+
response = JSON.parse(body)
|
808
|
+
if response['Response'].key?('Error') == false
|
809
|
+
model = DeleteImageTagsResponse.new
|
810
|
+
model.deserialize(response['Response'])
|
811
|
+
model
|
812
|
+
else
|
813
|
+
code = response['Response']['Error']['Code']
|
814
|
+
message = response['Response']['Error']['Message']
|
815
|
+
reqid = response['Response']['RequestId']
|
816
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
817
|
+
end
|
818
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
819
|
+
raise e
|
820
|
+
rescue StandardError => e
|
821
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
822
|
+
end
|
823
|
+
|
824
|
+
# 删除泳道
|
825
|
+
|
826
|
+
# @param request: Request instance for DeleteLane.
|
827
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeleteLaneRequest`
|
828
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeleteLaneResponse`
|
829
|
+
def DeleteLane(request)
|
830
|
+
body = send_request('DeleteLane', request.serialize)
|
831
|
+
response = JSON.parse(body)
|
832
|
+
if response['Response'].key?('Error') == false
|
833
|
+
model = DeleteLaneResponse.new
|
834
|
+
model.deserialize(response['Response'])
|
835
|
+
model
|
836
|
+
else
|
837
|
+
code = response['Response']['Error']['Code']
|
838
|
+
message = response['Response']['Error']['Message']
|
839
|
+
reqid = response['Response']['RequestId']
|
840
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
841
|
+
end
|
842
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
843
|
+
raise e
|
844
|
+
rescue StandardError => e
|
845
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
846
|
+
end
|
847
|
+
|
848
|
+
# 删除泳道规则
|
849
|
+
|
850
|
+
# @param request: Request instance for DeleteLaneRule.
|
851
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeleteLaneRuleRequest`
|
852
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeleteLaneRuleResponse`
|
853
|
+
def DeleteLaneRule(request)
|
854
|
+
body = send_request('DeleteLaneRule', request.serialize)
|
855
|
+
response = JSON.parse(body)
|
856
|
+
if response['Response'].key?('Error') == false
|
857
|
+
model = DeleteLaneRuleResponse.new
|
858
|
+
model.deserialize(response['Response'])
|
859
|
+
model
|
860
|
+
else
|
861
|
+
code = response['Response']['Error']['Code']
|
862
|
+
message = response['Response']['Error']['Message']
|
863
|
+
reqid = response['Response']['RequestId']
|
864
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
865
|
+
end
|
866
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
867
|
+
raise e
|
868
|
+
rescue StandardError => e
|
869
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
870
|
+
end
|
871
|
+
|
872
|
+
# 删除微服务
|
873
|
+
|
874
|
+
# @param request: Request instance for DeleteMicroservice.
|
875
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeleteMicroserviceRequest`
|
876
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeleteMicroserviceResponse`
|
877
|
+
def DeleteMicroservice(request)
|
878
|
+
body = send_request('DeleteMicroservice', request.serialize)
|
879
|
+
response = JSON.parse(body)
|
880
|
+
if response['Response'].key?('Error') == false
|
881
|
+
model = DeleteMicroserviceResponse.new
|
882
|
+
model.deserialize(response['Response'])
|
883
|
+
model
|
884
|
+
else
|
885
|
+
code = response['Response']['Error']['Code']
|
886
|
+
message = response['Response']['Error']['Message']
|
887
|
+
reqid = response['Response']['RequestId']
|
888
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
889
|
+
end
|
890
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
891
|
+
raise e
|
892
|
+
rescue StandardError => e
|
893
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
894
|
+
end
|
895
|
+
|
896
|
+
# 删除命名空间
|
897
|
+
|
898
|
+
# @param request: Request instance for DeleteNamespace.
|
899
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeleteNamespaceRequest`
|
900
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeleteNamespaceResponse`
|
901
|
+
def DeleteNamespace(request)
|
902
|
+
body = send_request('DeleteNamespace', request.serialize)
|
903
|
+
response = JSON.parse(body)
|
904
|
+
if response['Response'].key?('Error') == false
|
905
|
+
model = DeleteNamespaceResponse.new
|
906
|
+
model.deserialize(response['Response'])
|
907
|
+
model
|
908
|
+
else
|
909
|
+
code = response['Response']['Error']['Code']
|
910
|
+
message = response['Response']['Error']['Message']
|
911
|
+
reqid = response['Response']['RequestId']
|
912
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
913
|
+
end
|
914
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
915
|
+
raise e
|
916
|
+
rescue StandardError => e
|
917
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
918
|
+
end
|
919
|
+
|
920
|
+
# 删除路径重写
|
921
|
+
|
922
|
+
# @param request: Request instance for DeletePathRewrites.
|
923
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeletePathRewritesRequest`
|
924
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeletePathRewritesResponse`
|
925
|
+
def DeletePathRewrites(request)
|
926
|
+
body = send_request('DeletePathRewrites', request.serialize)
|
927
|
+
response = JSON.parse(body)
|
928
|
+
if response['Response'].key?('Error') == false
|
929
|
+
model = DeletePathRewritesResponse.new
|
930
|
+
model.deserialize(response['Response'])
|
931
|
+
model
|
932
|
+
else
|
933
|
+
code = response['Response']['Error']['Code']
|
934
|
+
message = response['Response']['Error']['Message']
|
935
|
+
reqid = response['Response']['RequestId']
|
936
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
937
|
+
end
|
938
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
939
|
+
raise e
|
940
|
+
rescue StandardError => e
|
941
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
942
|
+
end
|
943
|
+
|
944
|
+
# 从软件仓库批量删除程序包。
|
945
|
+
# 一次最多支持删除1000个包,数量超过1000,返回UpperDeleteLimit错误。
|
946
|
+
|
947
|
+
# @param request: Request instance for DeletePkgs.
|
948
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeletePkgsRequest`
|
949
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeletePkgsResponse`
|
950
|
+
def DeletePkgs(request)
|
951
|
+
body = send_request('DeletePkgs', request.serialize)
|
952
|
+
response = JSON.parse(body)
|
953
|
+
if response['Response'].key?('Error') == false
|
954
|
+
model = DeletePkgsResponse.new
|
955
|
+
model.deserialize(response['Response'])
|
956
|
+
model
|
957
|
+
else
|
958
|
+
code = response['Response']['Error']['Code']
|
959
|
+
message = response['Response']['Error']['Message']
|
960
|
+
reqid = response['Response']['RequestId']
|
961
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
962
|
+
end
|
963
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
964
|
+
raise e
|
965
|
+
rescue StandardError => e
|
966
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
967
|
+
end
|
968
|
+
|
969
|
+
# 删除公共配置项
|
970
|
+
|
971
|
+
# @param request: Request instance for DeletePublicConfig.
|
972
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeletePublicConfigRequest`
|
973
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeletePublicConfigResponse`
|
974
|
+
def DeletePublicConfig(request)
|
975
|
+
body = send_request('DeletePublicConfig', request.serialize)
|
976
|
+
response = JSON.parse(body)
|
977
|
+
if response['Response'].key?('Error') == false
|
978
|
+
model = DeletePublicConfigResponse.new
|
979
|
+
model.deserialize(response['Response'])
|
980
|
+
model
|
981
|
+
else
|
982
|
+
code = response['Response']['Error']['Code']
|
983
|
+
message = response['Response']['Error']['Message']
|
984
|
+
reqid = response['Response']['RequestId']
|
985
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
986
|
+
end
|
987
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
988
|
+
raise e
|
989
|
+
rescue StandardError => e
|
990
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
991
|
+
end
|
992
|
+
|
993
|
+
# 删除仓库
|
994
|
+
|
995
|
+
# @param request: Request instance for DeleteRepository.
|
996
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeleteRepositoryRequest`
|
997
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeleteRepositoryResponse`
|
998
|
+
def DeleteRepository(request)
|
999
|
+
body = send_request('DeleteRepository', request.serialize)
|
1000
|
+
response = JSON.parse(body)
|
1001
|
+
if response['Response'].key?('Error') == false
|
1002
|
+
model = DeleteRepositoryResponse.new
|
1003
|
+
model.deserialize(response['Response'])
|
1004
|
+
model
|
1005
|
+
else
|
1006
|
+
code = response['Response']['Error']['Code']
|
1007
|
+
message = response['Response']['Error']['Message']
|
1008
|
+
reqid = response['Response']['RequestId']
|
1009
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1010
|
+
end
|
1011
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1012
|
+
raise e
|
1013
|
+
rescue StandardError => e
|
1014
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
# 删除Serverless部署组
|
1018
|
+
|
1019
|
+
# @param request: Request instance for DeleteServerlessGroup.
|
1020
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeleteServerlessGroupRequest`
|
1021
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeleteServerlessGroupResponse`
|
1022
|
+
def DeleteServerlessGroup(request)
|
1023
|
+
body = send_request('DeleteServerlessGroup', request.serialize)
|
1024
|
+
response = JSON.parse(body)
|
1025
|
+
if response['Response'].key?('Error') == false
|
1026
|
+
model = DeleteServerlessGroupResponse.new
|
1027
|
+
model.deserialize(response['Response'])
|
1028
|
+
model
|
1029
|
+
else
|
1030
|
+
code = response['Response']['Error']['Code']
|
1031
|
+
message = response['Response']['Error']['Message']
|
1032
|
+
reqid = response['Response']['RequestId']
|
1033
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1034
|
+
end
|
1035
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1036
|
+
raise e
|
1037
|
+
rescue StandardError => e
|
1038
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1039
|
+
end
|
1040
|
+
|
1041
|
+
# 删除任务
|
1042
|
+
|
1043
|
+
# @param request: Request instance for DeleteTask.
|
1044
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeleteTaskRequest`
|
1045
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeleteTaskResponse`
|
1046
|
+
def DeleteTask(request)
|
1047
|
+
body = send_request('DeleteTask', request.serialize)
|
1048
|
+
response = JSON.parse(body)
|
1049
|
+
if response['Response'].key?('Error') == false
|
1050
|
+
model = DeleteTaskResponse.new
|
1051
|
+
model.deserialize(response['Response'])
|
1052
|
+
model
|
1053
|
+
else
|
1054
|
+
code = response['Response']['Error']['Code']
|
1055
|
+
message = response['Response']['Error']['Message']
|
1056
|
+
reqid = response['Response']['RequestId']
|
1057
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1058
|
+
end
|
1059
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1060
|
+
raise e
|
1061
|
+
rescue StandardError => e
|
1062
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1063
|
+
end
|
1064
|
+
|
1065
|
+
# 删除单元化命名空间
|
1066
|
+
|
1067
|
+
# @param request: Request instance for DeleteUnitNamespaces.
|
1068
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeleteUnitNamespacesRequest`
|
1069
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeleteUnitNamespacesResponse`
|
1070
|
+
def DeleteUnitNamespaces(request)
|
1071
|
+
body = send_request('DeleteUnitNamespaces', request.serialize)
|
1072
|
+
response = JSON.parse(body)
|
1073
|
+
if response['Response'].key?('Error') == false
|
1074
|
+
model = DeleteUnitNamespacesResponse.new
|
1075
|
+
model.deserialize(response['Response'])
|
1076
|
+
model
|
1077
|
+
else
|
1078
|
+
code = response['Response']['Error']['Code']
|
1079
|
+
message = response['Response']['Error']['Message']
|
1080
|
+
reqid = response['Response']['RequestId']
|
1081
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1082
|
+
end
|
1083
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1084
|
+
raise e
|
1085
|
+
rescue StandardError => e
|
1086
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1087
|
+
end
|
1088
|
+
|
1089
|
+
# 删除单元化规则
|
1090
|
+
|
1091
|
+
# @param request: Request instance for DeleteUnitRule.
|
1092
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeleteUnitRuleRequest`
|
1093
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeleteUnitRuleResponse`
|
1094
|
+
def DeleteUnitRule(request)
|
1095
|
+
body = send_request('DeleteUnitRule', request.serialize)
|
1096
|
+
response = JSON.parse(body)
|
1097
|
+
if response['Response'].key?('Error') == false
|
1098
|
+
model = DeleteUnitRuleResponse.new
|
1099
|
+
model.deserialize(response['Response'])
|
1100
|
+
model
|
1101
|
+
else
|
1102
|
+
code = response['Response']['Error']['Code']
|
1103
|
+
message = response['Response']['Error']['Message']
|
1104
|
+
reqid = response['Response']['RequestId']
|
1105
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1106
|
+
end
|
1107
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1108
|
+
raise e
|
1109
|
+
rescue StandardError => e
|
1110
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1111
|
+
end
|
1112
|
+
|
1113
|
+
# 部署容器应用
|
1114
|
+
|
1115
|
+
# @param request: Request instance for DeployContainerGroup.
|
1116
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeployContainerGroupRequest`
|
1117
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeployContainerGroupResponse`
|
1118
|
+
def DeployContainerGroup(request)
|
1119
|
+
body = send_request('DeployContainerGroup', request.serialize)
|
1120
|
+
response = JSON.parse(body)
|
1121
|
+
if response['Response'].key?('Error') == false
|
1122
|
+
model = DeployContainerGroupResponse.new
|
1123
|
+
model.deserialize(response['Response'])
|
1124
|
+
model
|
1125
|
+
else
|
1126
|
+
code = response['Response']['Error']['Code']
|
1127
|
+
message = response['Response']['Error']['Message']
|
1128
|
+
reqid = response['Response']['RequestId']
|
1129
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1130
|
+
end
|
1131
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1132
|
+
raise e
|
1133
|
+
rescue StandardError => e
|
1134
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1135
|
+
end
|
1136
|
+
|
1137
|
+
# 部署虚拟机部署组应用
|
1138
|
+
|
1139
|
+
# @param request: Request instance for DeployGroup.
|
1140
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeployGroupRequest`
|
1141
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeployGroupResponse`
|
1142
|
+
def DeployGroup(request)
|
1143
|
+
body = send_request('DeployGroup', request.serialize)
|
1144
|
+
response = JSON.parse(body)
|
1145
|
+
if response['Response'].key?('Error') == false
|
1146
|
+
model = DeployGroupResponse.new
|
1147
|
+
model.deserialize(response['Response'])
|
1148
|
+
model
|
1149
|
+
else
|
1150
|
+
code = response['Response']['Error']['Code']
|
1151
|
+
message = response['Response']['Error']['Message']
|
1152
|
+
reqid = response['Response']['RequestId']
|
1153
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1154
|
+
end
|
1155
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1156
|
+
raise e
|
1157
|
+
rescue StandardError => e
|
1158
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1159
|
+
end
|
1160
|
+
|
1161
|
+
# 部署Serverless应用
|
1162
|
+
|
1163
|
+
# @param request: Request instance for DeployServerlessGroup.
|
1164
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DeployServerlessGroupRequest`
|
1165
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DeployServerlessGroupResponse`
|
1166
|
+
def DeployServerlessGroup(request)
|
1167
|
+
body = send_request('DeployServerlessGroup', request.serialize)
|
1168
|
+
response = JSON.parse(body)
|
1169
|
+
if response['Response'].key?('Error') == false
|
1170
|
+
model = DeployServerlessGroupResponse.new
|
1171
|
+
model.deserialize(response['Response'])
|
1172
|
+
model
|
1173
|
+
else
|
1174
|
+
code = response['Response']['Error']['Code']
|
1175
|
+
message = response['Response']['Error']['Message']
|
1176
|
+
reqid = response['Response']['RequestId']
|
1177
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1178
|
+
end
|
1179
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1180
|
+
raise e
|
1181
|
+
rescue StandardError => e
|
1182
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1183
|
+
end
|
1184
|
+
|
1185
|
+
# 查询API详情
|
1186
|
+
|
1187
|
+
# @param request: Request instance for DescribeApiDetail.
|
1188
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeApiDetailRequest`
|
1189
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeApiDetailResponse`
|
1190
|
+
def DescribeApiDetail(request)
|
1191
|
+
body = send_request('DescribeApiDetail', request.serialize)
|
1192
|
+
response = JSON.parse(body)
|
1193
|
+
if response['Response'].key?('Error') == false
|
1194
|
+
model = DescribeApiDetailResponse.new
|
1195
|
+
model.deserialize(response['Response'])
|
1196
|
+
model
|
1197
|
+
else
|
1198
|
+
code = response['Response']['Error']['Code']
|
1199
|
+
message = response['Response']['Error']['Message']
|
1200
|
+
reqid = response['Response']['RequestId']
|
1201
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1202
|
+
end
|
1203
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1204
|
+
raise e
|
1205
|
+
rescue StandardError => e
|
1206
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1207
|
+
end
|
1208
|
+
|
1209
|
+
# 查询API分组
|
1210
|
+
|
1211
|
+
# @param request: Request instance for DescribeApiGroup.
|
1212
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeApiGroupRequest`
|
1213
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeApiGroupResponse`
|
1214
|
+
def DescribeApiGroup(request)
|
1215
|
+
body = send_request('DescribeApiGroup', request.serialize)
|
1216
|
+
response = JSON.parse(body)
|
1217
|
+
if response['Response'].key?('Error') == false
|
1218
|
+
model = DescribeApiGroupResponse.new
|
1219
|
+
model.deserialize(response['Response'])
|
1220
|
+
model
|
1221
|
+
else
|
1222
|
+
code = response['Response']['Error']['Code']
|
1223
|
+
message = response['Response']['Error']['Message']
|
1224
|
+
reqid = response['Response']['RequestId']
|
1225
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1226
|
+
end
|
1227
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1228
|
+
raise e
|
1229
|
+
rescue StandardError => e
|
1230
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1231
|
+
end
|
1232
|
+
|
1233
|
+
# 查询API 分组信息列表
|
1234
|
+
|
1235
|
+
# @param request: Request instance for DescribeApiGroups.
|
1236
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeApiGroupsRequest`
|
1237
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeApiGroupsResponse`
|
1238
|
+
def DescribeApiGroups(request)
|
1239
|
+
body = send_request('DescribeApiGroups', request.serialize)
|
1240
|
+
response = JSON.parse(body)
|
1241
|
+
if response['Response'].key?('Error') == false
|
1242
|
+
model = DescribeApiGroupsResponse.new
|
1243
|
+
model.deserialize(response['Response'])
|
1244
|
+
model
|
1245
|
+
else
|
1246
|
+
code = response['Response']['Error']['Code']
|
1247
|
+
message = response['Response']['Error']['Message']
|
1248
|
+
reqid = response['Response']['RequestId']
|
1249
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1250
|
+
end
|
1251
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1252
|
+
raise e
|
1253
|
+
rescue StandardError => e
|
1254
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1255
|
+
end
|
1256
|
+
|
1257
|
+
# 查询API限流规则
|
1258
|
+
|
1259
|
+
# @param request: Request instance for DescribeApiRateLimitRules.
|
1260
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeApiRateLimitRulesRequest`
|
1261
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeApiRateLimitRulesResponse`
|
1262
|
+
def DescribeApiRateLimitRules(request)
|
1263
|
+
body = send_request('DescribeApiRateLimitRules', request.serialize)
|
1264
|
+
response = JSON.parse(body)
|
1265
|
+
if response['Response'].key?('Error') == false
|
1266
|
+
model = DescribeApiRateLimitRulesResponse.new
|
1267
|
+
model.deserialize(response['Response'])
|
1268
|
+
model
|
1269
|
+
else
|
1270
|
+
code = response['Response']['Error']['Code']
|
1271
|
+
message = response['Response']['Error']['Message']
|
1272
|
+
reqid = response['Response']['RequestId']
|
1273
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1274
|
+
end
|
1275
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1276
|
+
raise e
|
1277
|
+
rescue StandardError => e
|
1278
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1279
|
+
end
|
1280
|
+
|
1281
|
+
# 查询网关API监控明细数据
|
1282
|
+
|
1283
|
+
# @param request: Request instance for DescribeApiUseDetail.
|
1284
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeApiUseDetailRequest`
|
1285
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeApiUseDetailResponse`
|
1286
|
+
def DescribeApiUseDetail(request)
|
1287
|
+
body = send_request('DescribeApiUseDetail', request.serialize)
|
1288
|
+
response = JSON.parse(body)
|
1289
|
+
if response['Response'].key?('Error') == false
|
1290
|
+
model = DescribeApiUseDetailResponse.new
|
1291
|
+
model.deserialize(response['Response'])
|
1292
|
+
model
|
1293
|
+
else
|
1294
|
+
code = response['Response']['Error']['Code']
|
1295
|
+
message = response['Response']['Error']['Message']
|
1296
|
+
reqid = response['Response']['RequestId']
|
1297
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1298
|
+
end
|
1299
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1300
|
+
raise e
|
1301
|
+
rescue StandardError => e
|
1302
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1303
|
+
end
|
1304
|
+
|
1305
|
+
# 查询API 版本
|
1306
|
+
|
1307
|
+
# @param request: Request instance for DescribeApiVersions.
|
1308
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeApiVersionsRequest`
|
1309
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeApiVersionsResponse`
|
1310
|
+
def DescribeApiVersions(request)
|
1311
|
+
body = send_request('DescribeApiVersions', request.serialize)
|
1312
|
+
response = JSON.parse(body)
|
1313
|
+
if response['Response'].key?('Error') == false
|
1314
|
+
model = DescribeApiVersionsResponse.new
|
1315
|
+
model.deserialize(response['Response'])
|
1316
|
+
model
|
1317
|
+
else
|
1318
|
+
code = response['Response']['Error']['Code']
|
1319
|
+
message = response['Response']['Error']['Message']
|
1320
|
+
reqid = response['Response']['RequestId']
|
1321
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1322
|
+
end
|
1323
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1324
|
+
raise e
|
1325
|
+
rescue StandardError => e
|
1326
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1327
|
+
end
|
1328
|
+
|
1329
|
+
# 获取应用详情
|
1330
|
+
|
1331
|
+
# @param request: Request instance for DescribeApplication.
|
1332
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeApplicationRequest`
|
1333
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeApplicationResponse`
|
1334
|
+
def DescribeApplication(request)
|
1335
|
+
body = send_request('DescribeApplication', request.serialize)
|
1336
|
+
response = JSON.parse(body)
|
1337
|
+
if response['Response'].key?('Error') == false
|
1338
|
+
model = DescribeApplicationResponse.new
|
1339
|
+
model.deserialize(response['Response'])
|
1340
|
+
model
|
1341
|
+
else
|
1342
|
+
code = response['Response']['Error']['Code']
|
1343
|
+
message = response['Response']['Error']['Message']
|
1344
|
+
reqid = response['Response']['RequestId']
|
1345
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1346
|
+
end
|
1347
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1348
|
+
raise e
|
1349
|
+
rescue StandardError => e
|
1350
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1351
|
+
end
|
1352
|
+
|
1353
|
+
# 获取应用列表其它字段,如实例数量信息等
|
1354
|
+
|
1355
|
+
# @param request: Request instance for DescribeApplicationAttribute.
|
1356
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeApplicationAttributeRequest`
|
1357
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeApplicationAttributeResponse`
|
1358
|
+
def DescribeApplicationAttribute(request)
|
1359
|
+
body = send_request('DescribeApplicationAttribute', request.serialize)
|
1360
|
+
response = JSON.parse(body)
|
1361
|
+
if response['Response'].key?('Error') == false
|
1362
|
+
model = DescribeApplicationAttributeResponse.new
|
1363
|
+
model.deserialize(response['Response'])
|
1364
|
+
model
|
1365
|
+
else
|
1366
|
+
code = response['Response']['Error']['Code']
|
1367
|
+
message = response['Response']['Error']['Message']
|
1368
|
+
reqid = response['Response']['RequestId']
|
1369
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1370
|
+
end
|
1371
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1372
|
+
raise e
|
1373
|
+
rescue StandardError => e
|
1374
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1375
|
+
end
|
1376
|
+
|
1377
|
+
# 获取应用列表
|
1378
|
+
|
1379
|
+
# @param request: Request instance for DescribeApplications.
|
1380
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeApplicationsRequest`
|
1381
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeApplicationsResponse`
|
1382
|
+
def DescribeApplications(request)
|
1383
|
+
body = send_request('DescribeApplications', request.serialize)
|
1384
|
+
response = JSON.parse(body)
|
1385
|
+
if response['Response'].key?('Error') == false
|
1386
|
+
model = DescribeApplicationsResponse.new
|
1387
|
+
model.deserialize(response['Response'])
|
1388
|
+
model
|
1389
|
+
else
|
1390
|
+
code = response['Response']['Error']['Code']
|
1391
|
+
message = response['Response']['Error']['Message']
|
1392
|
+
reqid = response['Response']['RequestId']
|
1393
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1394
|
+
end
|
1395
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1396
|
+
raise e
|
1397
|
+
rescue StandardError => e
|
1398
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1399
|
+
end
|
1400
|
+
|
1401
|
+
# TSF基本资源信息概览接口
|
1402
|
+
|
1403
|
+
# @param request: Request instance for DescribeBasicResourceUsage.
|
1404
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeBasicResourceUsageRequest`
|
1405
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeBasicResourceUsageResponse`
|
1406
|
+
def DescribeBasicResourceUsage(request)
|
1407
|
+
body = send_request('DescribeBasicResourceUsage', request.serialize)
|
1408
|
+
response = JSON.parse(body)
|
1409
|
+
if response['Response'].key?('Error') == false
|
1410
|
+
model = DescribeBasicResourceUsageResponse.new
|
1411
|
+
model.deserialize(response['Response'])
|
1412
|
+
model
|
1413
|
+
else
|
1414
|
+
code = response['Response']['Error']['Code']
|
1415
|
+
message = response['Response']['Error']['Message']
|
1416
|
+
reqid = response['Response']['RequestId']
|
1417
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1418
|
+
end
|
1419
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1420
|
+
raise e
|
1421
|
+
rescue StandardError => e
|
1422
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1423
|
+
end
|
1424
|
+
|
1425
|
+
# 查询集群实例
|
1426
|
+
|
1427
|
+
# @param request: Request instance for DescribeClusterInstances.
|
1428
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeClusterInstancesRequest`
|
1429
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeClusterInstancesResponse`
|
1430
|
+
def DescribeClusterInstances(request)
|
1431
|
+
body = send_request('DescribeClusterInstances', request.serialize)
|
1432
|
+
response = JSON.parse(body)
|
1433
|
+
if response['Response'].key?('Error') == false
|
1434
|
+
model = DescribeClusterInstancesResponse.new
|
1435
|
+
model.deserialize(response['Response'])
|
1436
|
+
model
|
1437
|
+
else
|
1438
|
+
code = response['Response']['Error']['Code']
|
1439
|
+
message = response['Response']['Error']['Message']
|
1440
|
+
reqid = response['Response']['RequestId']
|
1441
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1442
|
+
end
|
1443
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1444
|
+
raise e
|
1445
|
+
rescue StandardError => e
|
1446
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1447
|
+
end
|
1448
|
+
|
1449
|
+
# 查询配置
|
1450
|
+
|
1451
|
+
# @param request: Request instance for DescribeConfig.
|
1452
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeConfigRequest`
|
1453
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeConfigResponse`
|
1454
|
+
def DescribeConfig(request)
|
1455
|
+
body = send_request('DescribeConfig', request.serialize)
|
1456
|
+
response = JSON.parse(body)
|
1457
|
+
if response['Response'].key?('Error') == false
|
1458
|
+
model = DescribeConfigResponse.new
|
1459
|
+
model.deserialize(response['Response'])
|
1460
|
+
model
|
1461
|
+
else
|
1462
|
+
code = response['Response']['Error']['Code']
|
1463
|
+
message = response['Response']['Error']['Message']
|
1464
|
+
reqid = response['Response']['RequestId']
|
1465
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1466
|
+
end
|
1467
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1468
|
+
raise e
|
1469
|
+
rescue StandardError => e
|
1470
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1471
|
+
end
|
1472
|
+
|
1473
|
+
# 查询配置发布历史
|
1474
|
+
|
1475
|
+
# @param request: Request instance for DescribeConfigReleaseLogs.
|
1476
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeConfigReleaseLogsRequest`
|
1477
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeConfigReleaseLogsResponse`
|
1478
|
+
def DescribeConfigReleaseLogs(request)
|
1479
|
+
body = send_request('DescribeConfigReleaseLogs', request.serialize)
|
1480
|
+
response = JSON.parse(body)
|
1481
|
+
if response['Response'].key?('Error') == false
|
1482
|
+
model = DescribeConfigReleaseLogsResponse.new
|
1483
|
+
model.deserialize(response['Response'])
|
1484
|
+
model
|
1485
|
+
else
|
1486
|
+
code = response['Response']['Error']['Code']
|
1487
|
+
message = response['Response']['Error']['Message']
|
1488
|
+
reqid = response['Response']['RequestId']
|
1489
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1490
|
+
end
|
1491
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1492
|
+
raise e
|
1493
|
+
rescue StandardError => e
|
1494
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1495
|
+
end
|
1496
|
+
|
1497
|
+
# 查询配置发布信息
|
1498
|
+
|
1499
|
+
# @param request: Request instance for DescribeConfigReleases.
|
1500
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeConfigReleasesRequest`
|
1501
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeConfigReleasesResponse`
|
1502
|
+
def DescribeConfigReleases(request)
|
1503
|
+
body = send_request('DescribeConfigReleases', request.serialize)
|
1504
|
+
response = JSON.parse(body)
|
1505
|
+
if response['Response'].key?('Error') == false
|
1506
|
+
model = DescribeConfigReleasesResponse.new
|
1507
|
+
model.deserialize(response['Response'])
|
1508
|
+
model
|
1509
|
+
else
|
1510
|
+
code = response['Response']['Error']['Code']
|
1511
|
+
message = response['Response']['Error']['Message']
|
1512
|
+
reqid = response['Response']['RequestId']
|
1513
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1514
|
+
end
|
1515
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1516
|
+
raise e
|
1517
|
+
rescue StandardError => e
|
1518
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1519
|
+
end
|
1520
|
+
|
1521
|
+
# 查询配置汇总列表
|
1522
|
+
|
1523
|
+
# @param request: Request instance for DescribeConfigSummary.
|
1524
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeConfigSummaryRequest`
|
1525
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeConfigSummaryResponse`
|
1526
|
+
def DescribeConfigSummary(request)
|
1527
|
+
body = send_request('DescribeConfigSummary', request.serialize)
|
1528
|
+
response = JSON.parse(body)
|
1529
|
+
if response['Response'].key?('Error') == false
|
1530
|
+
model = DescribeConfigSummaryResponse.new
|
1531
|
+
model.deserialize(response['Response'])
|
1532
|
+
model
|
1533
|
+
else
|
1534
|
+
code = response['Response']['Error']['Code']
|
1535
|
+
message = response['Response']['Error']['Message']
|
1536
|
+
reqid = response['Response']['RequestId']
|
1537
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1538
|
+
end
|
1539
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1540
|
+
raise e
|
1541
|
+
rescue StandardError => e
|
1542
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1543
|
+
end
|
1544
|
+
|
1545
|
+
# 查询配置项列表
|
1546
|
+
|
1547
|
+
# @param request: Request instance for DescribeConfigs.
|
1548
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeConfigsRequest`
|
1549
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeConfigsResponse`
|
1550
|
+
def DescribeConfigs(request)
|
1551
|
+
body = send_request('DescribeConfigs', request.serialize)
|
1552
|
+
response = JSON.parse(body)
|
1553
|
+
if response['Response'].key?('Error') == false
|
1554
|
+
model = DescribeConfigsResponse.new
|
1555
|
+
model.deserialize(response['Response'])
|
1556
|
+
model
|
1557
|
+
else
|
1558
|
+
code = response['Response']['Error']['Code']
|
1559
|
+
message = response['Response']['Error']['Message']
|
1560
|
+
reqid = response['Response']['RequestId']
|
1561
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1562
|
+
end
|
1563
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1564
|
+
raise e
|
1565
|
+
rescue StandardError => e
|
1566
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1567
|
+
end
|
1568
|
+
|
1569
|
+
# 获取容器事件列表
|
1570
|
+
|
1571
|
+
# @param request: Request instance for DescribeContainerEvents.
|
1572
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeContainerEventsRequest`
|
1573
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeContainerEventsResponse`
|
1574
|
+
def DescribeContainerEvents(request)
|
1575
|
+
body = send_request('DescribeContainerEvents', request.serialize)
|
1576
|
+
response = JSON.parse(body)
|
1577
|
+
if response['Response'].key?('Error') == false
|
1578
|
+
model = DescribeContainerEventsResponse.new
|
1579
|
+
model.deserialize(response['Response'])
|
1580
|
+
model
|
1581
|
+
else
|
1582
|
+
code = response['Response']['Error']['Code']
|
1583
|
+
message = response['Response']['Error']['Message']
|
1584
|
+
reqid = response['Response']['RequestId']
|
1585
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1586
|
+
end
|
1587
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1588
|
+
raise e
|
1589
|
+
rescue StandardError => e
|
1590
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1591
|
+
end
|
1592
|
+
|
1593
|
+
# 容器部署组详情(已废弃,请使用 DescribeContainerGroupDeployInfo)
|
1594
|
+
|
1595
|
+
# @param request: Request instance for DescribeContainerGroupDetail.
|
1596
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeContainerGroupDetailRequest`
|
1597
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeContainerGroupDetailResponse`
|
1598
|
+
def DescribeContainerGroupDetail(request)
|
1599
|
+
body = send_request('DescribeContainerGroupDetail', request.serialize)
|
1600
|
+
response = JSON.parse(body)
|
1601
|
+
if response['Response'].key?('Error') == false
|
1602
|
+
model = DescribeContainerGroupDetailResponse.new
|
1603
|
+
model.deserialize(response['Response'])
|
1604
|
+
model
|
1605
|
+
else
|
1606
|
+
code = response['Response']['Error']['Code']
|
1607
|
+
message = response['Response']['Error']['Message']
|
1608
|
+
reqid = response['Response']['RequestId']
|
1609
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1610
|
+
end
|
1611
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1612
|
+
raise e
|
1613
|
+
rescue StandardError => e
|
1614
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1615
|
+
end
|
1616
|
+
|
1617
|
+
# 容器部署组列表
|
1618
|
+
|
1619
|
+
# @param request: Request instance for DescribeContainerGroups.
|
1620
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeContainerGroupsRequest`
|
1621
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeContainerGroupsResponse`
|
1622
|
+
def DescribeContainerGroups(request)
|
1623
|
+
body = send_request('DescribeContainerGroups', request.serialize)
|
1624
|
+
response = JSON.parse(body)
|
1625
|
+
if response['Response'].key?('Error') == false
|
1626
|
+
model = DescribeContainerGroupsResponse.new
|
1627
|
+
model.deserialize(response['Response'])
|
1628
|
+
model
|
1629
|
+
else
|
1630
|
+
code = response['Response']['Error']['Code']
|
1631
|
+
message = response['Response']['Error']['Message']
|
1632
|
+
reqid = response['Response']['RequestId']
|
1633
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1634
|
+
end
|
1635
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1636
|
+
raise e
|
1637
|
+
rescue StandardError => e
|
1638
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1639
|
+
end
|
1640
|
+
|
1641
|
+
# 查询一键导入API分组任务的状态
|
1642
|
+
|
1643
|
+
# @param request: Request instance for DescribeCreateGatewayApiStatus.
|
1644
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeCreateGatewayApiStatusRequest`
|
1645
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeCreateGatewayApiStatusResponse`
|
1646
|
+
def DescribeCreateGatewayApiStatus(request)
|
1647
|
+
body = send_request('DescribeCreateGatewayApiStatus', request.serialize)
|
1648
|
+
response = JSON.parse(body)
|
1649
|
+
if response['Response'].key?('Error') == false
|
1650
|
+
model = DescribeCreateGatewayApiStatusResponse.new
|
1651
|
+
model.deserialize(response['Response'])
|
1652
|
+
model
|
1653
|
+
else
|
1654
|
+
code = response['Response']['Error']['Code']
|
1655
|
+
message = response['Response']['Error']['Message']
|
1656
|
+
reqid = response['Response']['RequestId']
|
1657
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1658
|
+
end
|
1659
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1660
|
+
raise e
|
1661
|
+
rescue StandardError => e
|
1662
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1663
|
+
end
|
1664
|
+
|
1665
|
+
# TSF上传的程序包存放在腾讯云对象存储(COS)中,通过该API可以获取从COS下载程序包需要的信息,包括包所在的桶、存储路径、鉴权信息等,之后使用COS API(或SDK)进行下载。
|
1666
|
+
# COS相关文档请查阅:https://cloud.tencent.com/document/product/436
|
1667
|
+
|
1668
|
+
# @param request: Request instance for DescribeDownloadInfo.
|
1669
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeDownloadInfoRequest`
|
1670
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeDownloadInfoResponse`
|
1671
|
+
def DescribeDownloadInfo(request)
|
1672
|
+
body = send_request('DescribeDownloadInfo', request.serialize)
|
1673
|
+
response = JSON.parse(body)
|
1674
|
+
if response['Response'].key?('Error') == false
|
1675
|
+
model = DescribeDownloadInfoResponse.new
|
1676
|
+
model.deserialize(response['Response'])
|
1677
|
+
model
|
1678
|
+
else
|
1679
|
+
code = response['Response']['Error']['Code']
|
1680
|
+
message = response['Response']['Error']['Message']
|
1681
|
+
reqid = response['Response']['RequestId']
|
1682
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1683
|
+
end
|
1684
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1685
|
+
raise e
|
1686
|
+
rescue StandardError => e
|
1687
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1688
|
+
end
|
1689
|
+
|
1690
|
+
# 查询生效的单元化规则
|
1691
|
+
|
1692
|
+
# @param request: Request instance for DescribeEnabledUnitRule.
|
1693
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeEnabledUnitRuleRequest`
|
1694
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeEnabledUnitRuleResponse`
|
1695
|
+
def DescribeEnabledUnitRule(request)
|
1696
|
+
body = send_request('DescribeEnabledUnitRule', request.serialize)
|
1697
|
+
response = JSON.parse(body)
|
1698
|
+
if response['Response'].key?('Error') == false
|
1699
|
+
model = DescribeEnabledUnitRuleResponse.new
|
1700
|
+
model.deserialize(response['Response'])
|
1701
|
+
model
|
1702
|
+
else
|
1703
|
+
code = response['Response']['Error']['Code']
|
1704
|
+
message = response['Response']['Error']['Message']
|
1705
|
+
reqid = response['Response']['RequestId']
|
1706
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1707
|
+
end
|
1708
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1709
|
+
raise e
|
1710
|
+
rescue StandardError => e
|
1711
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1712
|
+
end
|
1713
|
+
|
1714
|
+
# 查询文件配置项列表
|
1715
|
+
|
1716
|
+
# @param request: Request instance for DescribeFileConfigs.
|
1717
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeFileConfigsRequest`
|
1718
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeFileConfigsResponse`
|
1719
|
+
def DescribeFileConfigs(request)
|
1720
|
+
body = send_request('DescribeFileConfigs', request.serialize)
|
1721
|
+
response = JSON.parse(body)
|
1722
|
+
if response['Response'].key?('Error') == false
|
1723
|
+
model = DescribeFileConfigsResponse.new
|
1724
|
+
model.deserialize(response['Response'])
|
1725
|
+
model
|
1726
|
+
else
|
1727
|
+
code = response['Response']['Error']['Code']
|
1728
|
+
message = response['Response']['Error']['Message']
|
1729
|
+
reqid = response['Response']['RequestId']
|
1730
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1731
|
+
end
|
1732
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1733
|
+
raise e
|
1734
|
+
rescue StandardError => e
|
1735
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1736
|
+
end
|
1737
|
+
|
1738
|
+
# 查询工作流最新一个批次的状态信息
|
1739
|
+
|
1740
|
+
# @param request: Request instance for DescribeFlowLastBatchState.
|
1741
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeFlowLastBatchStateRequest`
|
1742
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeFlowLastBatchStateResponse`
|
1743
|
+
def DescribeFlowLastBatchState(request)
|
1744
|
+
body = send_request('DescribeFlowLastBatchState', request.serialize)
|
1745
|
+
response = JSON.parse(body)
|
1746
|
+
if response['Response'].key?('Error') == false
|
1747
|
+
model = DescribeFlowLastBatchStateResponse.new
|
1748
|
+
model.deserialize(response['Response'])
|
1749
|
+
model
|
1750
|
+
else
|
1751
|
+
code = response['Response']['Error']['Code']
|
1752
|
+
message = response['Response']['Error']['Message']
|
1753
|
+
reqid = response['Response']['RequestId']
|
1754
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1755
|
+
end
|
1756
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1757
|
+
raise e
|
1758
|
+
rescue StandardError => e
|
1759
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1760
|
+
end
|
1761
|
+
|
1762
|
+
# 查询网关所有分组下Api列表
|
1763
|
+
|
1764
|
+
# @param request: Request instance for DescribeGatewayAllGroupApis.
|
1765
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeGatewayAllGroupApisRequest`
|
1766
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeGatewayAllGroupApisResponse`
|
1767
|
+
def DescribeGatewayAllGroupApis(request)
|
1768
|
+
body = send_request('DescribeGatewayAllGroupApis', request.serialize)
|
1769
|
+
response = JSON.parse(body)
|
1770
|
+
if response['Response'].key?('Error') == false
|
1771
|
+
model = DescribeGatewayAllGroupApisResponse.new
|
1772
|
+
model.deserialize(response['Response'])
|
1773
|
+
model
|
1774
|
+
else
|
1775
|
+
code = response['Response']['Error']['Code']
|
1776
|
+
message = response['Response']['Error']['Message']
|
1777
|
+
reqid = response['Response']['RequestId']
|
1778
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1779
|
+
end
|
1780
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1781
|
+
raise e
|
1782
|
+
rescue StandardError => e
|
1783
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1784
|
+
end
|
1785
|
+
|
1786
|
+
# 查询API分组下的Api列表信息
|
1787
|
+
|
1788
|
+
# @param request: Request instance for DescribeGatewayApis.
|
1789
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeGatewayApisRequest`
|
1790
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeGatewayApisResponse`
|
1791
|
+
def DescribeGatewayApis(request)
|
1792
|
+
body = send_request('DescribeGatewayApis', request.serialize)
|
1793
|
+
response = JSON.parse(body)
|
1794
|
+
if response['Response'].key?('Error') == false
|
1795
|
+
model = DescribeGatewayApisResponse.new
|
1796
|
+
model.deserialize(response['Response'])
|
1797
|
+
model
|
1798
|
+
else
|
1799
|
+
code = response['Response']['Error']['Code']
|
1800
|
+
message = response['Response']['Error']['Message']
|
1801
|
+
reqid = response['Response']['RequestId']
|
1802
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1803
|
+
end
|
1804
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1805
|
+
raise e
|
1806
|
+
rescue StandardError => e
|
1807
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1808
|
+
end
|
1809
|
+
|
1810
|
+
# 查询网关监控概览
|
1811
|
+
|
1812
|
+
# @param request: Request instance for DescribeGatewayMonitorOverview.
|
1813
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeGatewayMonitorOverviewRequest`
|
1814
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeGatewayMonitorOverviewResponse`
|
1815
|
+
def DescribeGatewayMonitorOverview(request)
|
1816
|
+
body = send_request('DescribeGatewayMonitorOverview', request.serialize)
|
1817
|
+
response = JSON.parse(body)
|
1818
|
+
if response['Response'].key?('Error') == false
|
1819
|
+
model = DescribeGatewayMonitorOverviewResponse.new
|
1820
|
+
model.deserialize(response['Response'])
|
1821
|
+
model
|
1822
|
+
else
|
1823
|
+
code = response['Response']['Error']['Code']
|
1824
|
+
message = response['Response']['Error']['Message']
|
1825
|
+
reqid = response['Response']['RequestId']
|
1826
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1827
|
+
end
|
1828
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1829
|
+
raise e
|
1830
|
+
rescue StandardError => e
|
1831
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1832
|
+
end
|
1833
|
+
|
1834
|
+
# 查询虚拟机部署组详情
|
1835
|
+
|
1836
|
+
# @param request: Request instance for DescribeGroup.
|
1837
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeGroupRequest`
|
1838
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeGroupResponse`
|
1839
|
+
def DescribeGroup(request)
|
1840
|
+
body = send_request('DescribeGroup', request.serialize)
|
1841
|
+
response = JSON.parse(body)
|
1842
|
+
if response['Response'].key?('Error') == false
|
1843
|
+
model = DescribeGroupResponse.new
|
1844
|
+
model.deserialize(response['Response'])
|
1845
|
+
model
|
1846
|
+
else
|
1847
|
+
code = response['Response']['Error']['Code']
|
1848
|
+
message = response['Response']['Error']['Message']
|
1849
|
+
reqid = response['Response']['RequestId']
|
1850
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1851
|
+
end
|
1852
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1853
|
+
raise e
|
1854
|
+
rescue StandardError => e
|
1855
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1856
|
+
end
|
1857
|
+
|
1858
|
+
# 查询某个API分组已绑定的网关部署组信息列表
|
1859
|
+
|
1860
|
+
# @param request: Request instance for DescribeGroupBindedGateways.
|
1861
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeGroupBindedGatewaysRequest`
|
1862
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeGroupBindedGatewaysResponse`
|
1863
|
+
def DescribeGroupBindedGateways(request)
|
1864
|
+
body = send_request('DescribeGroupBindedGateways', request.serialize)
|
1865
|
+
response = JSON.parse(body)
|
1866
|
+
if response['Response'].key?('Error') == false
|
1867
|
+
model = DescribeGroupBindedGatewaysResponse.new
|
1868
|
+
model.deserialize(response['Response'])
|
1869
|
+
model
|
1870
|
+
else
|
1871
|
+
code = response['Response']['Error']['Code']
|
1872
|
+
message = response['Response']['Error']['Message']
|
1873
|
+
reqid = response['Response']['RequestId']
|
1874
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1875
|
+
end
|
1876
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1877
|
+
raise e
|
1878
|
+
rescue StandardError => e
|
1879
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1880
|
+
end
|
1881
|
+
|
1882
|
+
# 查询某个网关绑定的API 分组信息列表
|
1883
|
+
|
1884
|
+
# @param request: Request instance for DescribeGroupGateways.
|
1885
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeGroupGatewaysRequest`
|
1886
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeGroupGatewaysResponse`
|
1887
|
+
def DescribeGroupGateways(request)
|
1888
|
+
body = send_request('DescribeGroupGateways', request.serialize)
|
1889
|
+
response = JSON.parse(body)
|
1890
|
+
if response['Response'].key?('Error') == false
|
1891
|
+
model = DescribeGroupGatewaysResponse.new
|
1892
|
+
model.deserialize(response['Response'])
|
1893
|
+
model
|
1894
|
+
else
|
1895
|
+
code = response['Response']['Error']['Code']
|
1896
|
+
message = response['Response']['Error']['Message']
|
1897
|
+
reqid = response['Response']['RequestId']
|
1898
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1899
|
+
end
|
1900
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1901
|
+
raise e
|
1902
|
+
rescue StandardError => e
|
1903
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1904
|
+
end
|
1905
|
+
|
1906
|
+
# 查询虚拟机部署组云主机列表
|
1907
|
+
|
1908
|
+
# @param request: Request instance for DescribeGroupInstances.
|
1909
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeGroupInstancesRequest`
|
1910
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeGroupInstancesResponse`
|
1911
|
+
def DescribeGroupInstances(request)
|
1912
|
+
body = send_request('DescribeGroupInstances', request.serialize)
|
1913
|
+
response = JSON.parse(body)
|
1914
|
+
if response['Response'].key?('Error') == false
|
1915
|
+
model = DescribeGroupInstancesResponse.new
|
1916
|
+
model.deserialize(response['Response'])
|
1917
|
+
model
|
1918
|
+
else
|
1919
|
+
code = response['Response']['Error']['Code']
|
1920
|
+
message = response['Response']['Error']['Message']
|
1921
|
+
reqid = response['Response']['RequestId']
|
1922
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1923
|
+
end
|
1924
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1925
|
+
raise e
|
1926
|
+
rescue StandardError => e
|
1927
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1928
|
+
end
|
1929
|
+
|
1930
|
+
# 查询部署组相关的发布信息
|
1931
|
+
|
1932
|
+
# @param request: Request instance for DescribeGroupRelease.
|
1933
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeGroupReleaseRequest`
|
1934
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeGroupReleaseResponse`
|
1935
|
+
def DescribeGroupRelease(request)
|
1936
|
+
body = send_request('DescribeGroupRelease', request.serialize)
|
1937
|
+
response = JSON.parse(body)
|
1938
|
+
if response['Response'].key?('Error') == false
|
1939
|
+
model = DescribeGroupReleaseResponse.new
|
1940
|
+
model.deserialize(response['Response'])
|
1941
|
+
model
|
1942
|
+
else
|
1943
|
+
code = response['Response']['Error']['Code']
|
1944
|
+
message = response['Response']['Error']['Message']
|
1945
|
+
reqid = response['Response']['RequestId']
|
1946
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1947
|
+
end
|
1948
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1949
|
+
raise e
|
1950
|
+
rescue StandardError => e
|
1951
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1952
|
+
end
|
1953
|
+
|
1954
|
+
# 查询网关分组监控明细数据
|
1955
|
+
|
1956
|
+
# @param request: Request instance for DescribeGroupUseDetail.
|
1957
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeGroupUseDetailRequest`
|
1958
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeGroupUseDetailResponse`
|
1959
|
+
def DescribeGroupUseDetail(request)
|
1960
|
+
body = send_request('DescribeGroupUseDetail', request.serialize)
|
1961
|
+
response = JSON.parse(body)
|
1962
|
+
if response['Response'].key?('Error') == false
|
1963
|
+
model = DescribeGroupUseDetailResponse.new
|
1964
|
+
model.deserialize(response['Response'])
|
1965
|
+
model
|
1966
|
+
else
|
1967
|
+
code = response['Response']['Error']['Code']
|
1968
|
+
message = response['Response']['Error']['Message']
|
1969
|
+
reqid = response['Response']['RequestId']
|
1970
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1971
|
+
end
|
1972
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1973
|
+
raise e
|
1974
|
+
rescue StandardError => e
|
1975
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1976
|
+
end
|
1977
|
+
|
1978
|
+
# 获取虚拟机部署组列表
|
1979
|
+
|
1980
|
+
# @param request: Request instance for DescribeGroups.
|
1981
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeGroupsRequest`
|
1982
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeGroupsResponse`
|
1983
|
+
def DescribeGroups(request)
|
1984
|
+
body = send_request('DescribeGroups', request.serialize)
|
1985
|
+
response = JSON.parse(body)
|
1986
|
+
if response['Response'].key?('Error') == false
|
1987
|
+
model = DescribeGroupsResponse.new
|
1988
|
+
model.deserialize(response['Response'])
|
1989
|
+
model
|
1990
|
+
else
|
1991
|
+
code = response['Response']['Error']['Code']
|
1992
|
+
message = response['Response']['Error']['Message']
|
1993
|
+
reqid = response['Response']['RequestId']
|
1994
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1995
|
+
end
|
1996
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1997
|
+
raise e
|
1998
|
+
rescue StandardError => e
|
1999
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2000
|
+
end
|
2001
|
+
|
2002
|
+
# 查询某个插件下绑定或未绑定的API分组
|
2003
|
+
|
2004
|
+
# @param request: Request instance for DescribeGroupsWithPlugin.
|
2005
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeGroupsWithPluginRequest`
|
2006
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeGroupsWithPluginResponse`
|
2007
|
+
def DescribeGroupsWithPlugin(request)
|
2008
|
+
body = send_request('DescribeGroupsWithPlugin', request.serialize)
|
2009
|
+
response = JSON.parse(body)
|
2010
|
+
if response['Response'].key?('Error') == false
|
2011
|
+
model = DescribeGroupsWithPluginResponse.new
|
2012
|
+
model.deserialize(response['Response'])
|
2013
|
+
model
|
2014
|
+
else
|
2015
|
+
code = response['Response']['Error']['Code']
|
2016
|
+
message = response['Response']['Error']['Message']
|
2017
|
+
reqid = response['Response']['RequestId']
|
2018
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2019
|
+
end
|
2020
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2021
|
+
raise e
|
2022
|
+
rescue StandardError => e
|
2023
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2024
|
+
end
|
2025
|
+
|
2026
|
+
# 镜像仓库列表
|
2027
|
+
|
2028
|
+
# @param request: Request instance for DescribeImageRepository.
|
2029
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeImageRepositoryRequest`
|
2030
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeImageRepositoryResponse`
|
2031
|
+
def DescribeImageRepository(request)
|
2032
|
+
body = send_request('DescribeImageRepository', request.serialize)
|
2033
|
+
response = JSON.parse(body)
|
2034
|
+
if response['Response'].key?('Error') == false
|
2035
|
+
model = DescribeImageRepositoryResponse.new
|
2036
|
+
model.deserialize(response['Response'])
|
2037
|
+
model
|
2038
|
+
else
|
2039
|
+
code = response['Response']['Error']['Code']
|
2040
|
+
message = response['Response']['Error']['Message']
|
2041
|
+
reqid = response['Response']['RequestId']
|
2042
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2043
|
+
end
|
2044
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2045
|
+
raise e
|
2046
|
+
rescue StandardError => e
|
2047
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2048
|
+
end
|
2049
|
+
|
2050
|
+
# 镜像版本列表
|
2051
|
+
|
2052
|
+
# @param request: Request instance for DescribeImageTags.
|
2053
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeImageTagsRequest`
|
2054
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeImageTagsResponse`
|
2055
|
+
def DescribeImageTags(request)
|
2056
|
+
body = send_request('DescribeImageTags', request.serialize)
|
2057
|
+
response = JSON.parse(body)
|
2058
|
+
if response['Response'].key?('Error') == false
|
2059
|
+
model = DescribeImageTagsResponse.new
|
2060
|
+
model.deserialize(response['Response'])
|
2061
|
+
model
|
2062
|
+
else
|
2063
|
+
code = response['Response']['Error']['Code']
|
2064
|
+
message = response['Response']['Error']['Message']
|
2065
|
+
reqid = response['Response']['RequestId']
|
2066
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2067
|
+
end
|
2068
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2069
|
+
raise e
|
2070
|
+
rescue StandardError => e
|
2071
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2072
|
+
end
|
2073
|
+
|
2074
|
+
# 查询泳道规则列表
|
2075
|
+
|
2076
|
+
# @param request: Request instance for DescribeLaneRules.
|
2077
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeLaneRulesRequest`
|
2078
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeLaneRulesResponse`
|
2079
|
+
def DescribeLaneRules(request)
|
2080
|
+
body = send_request('DescribeLaneRules', request.serialize)
|
2081
|
+
response = JSON.parse(body)
|
2082
|
+
if response['Response'].key?('Error') == false
|
2083
|
+
model = DescribeLaneRulesResponse.new
|
2084
|
+
model.deserialize(response['Response'])
|
2085
|
+
model
|
2086
|
+
else
|
2087
|
+
code = response['Response']['Error']['Code']
|
2088
|
+
message = response['Response']['Error']['Message']
|
2089
|
+
reqid = response['Response']['RequestId']
|
2090
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2091
|
+
end
|
2092
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2093
|
+
raise e
|
2094
|
+
rescue StandardError => e
|
2095
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2096
|
+
end
|
2097
|
+
|
2098
|
+
# 查询泳道列表
|
2099
|
+
|
2100
|
+
# @param request: Request instance for DescribeLanes.
|
2101
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeLanesRequest`
|
2102
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeLanesResponse`
|
2103
|
+
def DescribeLanes(request)
|
2104
|
+
body = send_request('DescribeLanes', request.serialize)
|
2105
|
+
response = JSON.parse(body)
|
2106
|
+
if response['Response'].key?('Error') == false
|
2107
|
+
model = DescribeLanesResponse.new
|
2108
|
+
model.deserialize(response['Response'])
|
2109
|
+
model
|
2110
|
+
else
|
2111
|
+
code = response['Response']['Error']['Code']
|
2112
|
+
message = response['Response']['Error']['Message']
|
2113
|
+
reqid = response['Response']['RequestId']
|
2114
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2115
|
+
end
|
2116
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2117
|
+
raise e
|
2118
|
+
rescue StandardError => e
|
2119
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2120
|
+
end
|
2121
|
+
|
2122
|
+
# 查询微服务详情
|
2123
|
+
|
2124
|
+
# @param request: Request instance for DescribeMicroservice.
|
2125
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeMicroserviceRequest`
|
2126
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeMicroserviceResponse`
|
2127
|
+
def DescribeMicroservice(request)
|
2128
|
+
body = send_request('DescribeMicroservice', request.serialize)
|
2129
|
+
response = JSON.parse(body)
|
2130
|
+
if response['Response'].key?('Error') == false
|
2131
|
+
model = DescribeMicroserviceResponse.new
|
2132
|
+
model.deserialize(response['Response'])
|
2133
|
+
model
|
2134
|
+
else
|
2135
|
+
code = response['Response']['Error']['Code']
|
2136
|
+
message = response['Response']['Error']['Message']
|
2137
|
+
reqid = response['Response']['RequestId']
|
2138
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2139
|
+
end
|
2140
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2141
|
+
raise e
|
2142
|
+
rescue StandardError => e
|
2143
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2144
|
+
end
|
2145
|
+
|
2146
|
+
# 获取微服务列表
|
2147
|
+
|
2148
|
+
# @param request: Request instance for DescribeMicroservices.
|
2149
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeMicroservicesRequest`
|
2150
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeMicroservicesResponse`
|
2151
|
+
def DescribeMicroservices(request)
|
2152
|
+
body = send_request('DescribeMicroservices', request.serialize)
|
2153
|
+
response = JSON.parse(body)
|
2154
|
+
if response['Response'].key?('Error') == false
|
2155
|
+
model = DescribeMicroservicesResponse.new
|
2156
|
+
model.deserialize(response['Response'])
|
2157
|
+
model
|
2158
|
+
else
|
2159
|
+
code = response['Response']['Error']['Code']
|
2160
|
+
message = response['Response']['Error']['Message']
|
2161
|
+
reqid = response['Response']['RequestId']
|
2162
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2163
|
+
end
|
2164
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2165
|
+
raise e
|
2166
|
+
rescue StandardError => e
|
2167
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2168
|
+
end
|
2169
|
+
|
2170
|
+
# 查询服务API列表
|
2171
|
+
|
2172
|
+
# @param request: Request instance for DescribeMsApiList.
|
2173
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeMsApiListRequest`
|
2174
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeMsApiListResponse`
|
2175
|
+
def DescribeMsApiList(request)
|
2176
|
+
body = send_request('DescribeMsApiList', request.serialize)
|
2177
|
+
response = JSON.parse(body)
|
2178
|
+
if response['Response'].key?('Error') == false
|
2179
|
+
model = DescribeMsApiListResponse.new
|
2180
|
+
model.deserialize(response['Response'])
|
2181
|
+
model
|
2182
|
+
else
|
2183
|
+
code = response['Response']['Error']['Code']
|
2184
|
+
message = response['Response']['Error']['Message']
|
2185
|
+
reqid = response['Response']['RequestId']
|
2186
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2187
|
+
end
|
2188
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2189
|
+
raise e
|
2190
|
+
rescue StandardError => e
|
2191
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2192
|
+
end
|
2193
|
+
|
2194
|
+
# 查询路径重写
|
2195
|
+
|
2196
|
+
# @param request: Request instance for DescribePathRewrite.
|
2197
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribePathRewriteRequest`
|
2198
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribePathRewriteResponse`
|
2199
|
+
def DescribePathRewrite(request)
|
2200
|
+
body = send_request('DescribePathRewrite', request.serialize)
|
2201
|
+
response = JSON.parse(body)
|
2202
|
+
if response['Response'].key?('Error') == false
|
2203
|
+
model = DescribePathRewriteResponse.new
|
2204
|
+
model.deserialize(response['Response'])
|
2205
|
+
model
|
2206
|
+
else
|
2207
|
+
code = response['Response']['Error']['Code']
|
2208
|
+
message = response['Response']['Error']['Message']
|
2209
|
+
reqid = response['Response']['RequestId']
|
2210
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2211
|
+
end
|
2212
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2213
|
+
raise e
|
2214
|
+
rescue StandardError => e
|
2215
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2216
|
+
end
|
2217
|
+
|
2218
|
+
# 查询路径重写列表
|
2219
|
+
|
2220
|
+
# @param request: Request instance for DescribePathRewrites.
|
2221
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribePathRewritesRequest`
|
2222
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribePathRewritesResponse`
|
2223
|
+
def DescribePathRewrites(request)
|
2224
|
+
body = send_request('DescribePathRewrites', request.serialize)
|
2225
|
+
response = JSON.parse(body)
|
2226
|
+
if response['Response'].key?('Error') == false
|
2227
|
+
model = DescribePathRewritesResponse.new
|
2228
|
+
model.deserialize(response['Response'])
|
2229
|
+
model
|
2230
|
+
else
|
2231
|
+
code = response['Response']['Error']['Code']
|
2232
|
+
message = response['Response']['Error']['Message']
|
2233
|
+
reqid = response['Response']['RequestId']
|
2234
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2235
|
+
end
|
2236
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2237
|
+
raise e
|
2238
|
+
rescue StandardError => e
|
2239
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2240
|
+
end
|
2241
|
+
|
2242
|
+
# 无
|
2243
|
+
|
2244
|
+
# @param request: Request instance for DescribePkgs.
|
2245
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribePkgsRequest`
|
2246
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribePkgsResponse`
|
2247
|
+
def DescribePkgs(request)
|
2248
|
+
body = send_request('DescribePkgs', request.serialize)
|
2249
|
+
response = JSON.parse(body)
|
2250
|
+
if response['Response'].key?('Error') == false
|
2251
|
+
model = DescribePkgsResponse.new
|
2252
|
+
model.deserialize(response['Response'])
|
2253
|
+
model
|
2254
|
+
else
|
2255
|
+
code = response['Response']['Error']['Code']
|
2256
|
+
message = response['Response']['Error']['Message']
|
2257
|
+
reqid = response['Response']['RequestId']
|
2258
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2259
|
+
end
|
2260
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2261
|
+
raise e
|
2262
|
+
rescue StandardError => e
|
2263
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2264
|
+
end
|
2265
|
+
|
2266
|
+
# 分页查询网关分组/API绑定(或未绑定)的插件列表
|
2267
|
+
|
2268
|
+
# @param request: Request instance for DescribePluginInstances.
|
2269
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribePluginInstancesRequest`
|
2270
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribePluginInstancesResponse`
|
2271
|
+
def DescribePluginInstances(request)
|
2272
|
+
body = send_request('DescribePluginInstances', request.serialize)
|
2273
|
+
response = JSON.parse(body)
|
2274
|
+
if response['Response'].key?('Error') == false
|
2275
|
+
model = DescribePluginInstancesResponse.new
|
2276
|
+
model.deserialize(response['Response'])
|
2277
|
+
model
|
2278
|
+
else
|
2279
|
+
code = response['Response']['Error']['Code']
|
2280
|
+
message = response['Response']['Error']['Message']
|
2281
|
+
reqid = response['Response']['RequestId']
|
2282
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2283
|
+
end
|
2284
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2285
|
+
raise e
|
2286
|
+
rescue StandardError => e
|
2287
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2288
|
+
end
|
2289
|
+
|
2290
|
+
# 获取部署组实例列表
|
2291
|
+
|
2292
|
+
# @param request: Request instance for DescribePodInstances.
|
2293
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribePodInstancesRequest`
|
2294
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribePodInstancesResponse`
|
2295
|
+
def DescribePodInstances(request)
|
2296
|
+
body = send_request('DescribePodInstances', request.serialize)
|
2297
|
+
response = JSON.parse(body)
|
2298
|
+
if response['Response'].key?('Error') == false
|
2299
|
+
model = DescribePodInstancesResponse.new
|
2300
|
+
model.deserialize(response['Response'])
|
2301
|
+
model
|
2302
|
+
else
|
2303
|
+
code = response['Response']['Error']['Code']
|
2304
|
+
message = response['Response']['Error']['Message']
|
2305
|
+
reqid = response['Response']['RequestId']
|
2306
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2307
|
+
end
|
2308
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2309
|
+
raise e
|
2310
|
+
rescue StandardError => e
|
2311
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2312
|
+
end
|
2313
|
+
|
2314
|
+
# 查询公共配置(单条)
|
2315
|
+
|
2316
|
+
# @param request: Request instance for DescribePublicConfig.
|
2317
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribePublicConfigRequest`
|
2318
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribePublicConfigResponse`
|
2319
|
+
def DescribePublicConfig(request)
|
2320
|
+
body = send_request('DescribePublicConfig', request.serialize)
|
2321
|
+
response = JSON.parse(body)
|
2322
|
+
if response['Response'].key?('Error') == false
|
2323
|
+
model = DescribePublicConfigResponse.new
|
2324
|
+
model.deserialize(response['Response'])
|
2325
|
+
model
|
2326
|
+
else
|
2327
|
+
code = response['Response']['Error']['Code']
|
2328
|
+
message = response['Response']['Error']['Message']
|
2329
|
+
reqid = response['Response']['RequestId']
|
2330
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2331
|
+
end
|
2332
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2333
|
+
raise e
|
2334
|
+
rescue StandardError => e
|
2335
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2336
|
+
end
|
2337
|
+
|
2338
|
+
# 查询公共配置发布历史
|
2339
|
+
|
2340
|
+
# @param request: Request instance for DescribePublicConfigReleaseLogs.
|
2341
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribePublicConfigReleaseLogsRequest`
|
2342
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribePublicConfigReleaseLogsResponse`
|
2343
|
+
def DescribePublicConfigReleaseLogs(request)
|
2344
|
+
body = send_request('DescribePublicConfigReleaseLogs', request.serialize)
|
2345
|
+
response = JSON.parse(body)
|
2346
|
+
if response['Response'].key?('Error') == false
|
2347
|
+
model = DescribePublicConfigReleaseLogsResponse.new
|
2348
|
+
model.deserialize(response['Response'])
|
2349
|
+
model
|
2350
|
+
else
|
2351
|
+
code = response['Response']['Error']['Code']
|
2352
|
+
message = response['Response']['Error']['Message']
|
2353
|
+
reqid = response['Response']['RequestId']
|
2354
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2355
|
+
end
|
2356
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2357
|
+
raise e
|
2358
|
+
rescue StandardError => e
|
2359
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2360
|
+
end
|
2361
|
+
|
2362
|
+
# 查询公共配置发布信息
|
2363
|
+
|
2364
|
+
# @param request: Request instance for DescribePublicConfigReleases.
|
2365
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribePublicConfigReleasesRequest`
|
2366
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribePublicConfigReleasesResponse`
|
2367
|
+
def DescribePublicConfigReleases(request)
|
2368
|
+
body = send_request('DescribePublicConfigReleases', request.serialize)
|
2369
|
+
response = JSON.parse(body)
|
2370
|
+
if response['Response'].key?('Error') == false
|
2371
|
+
model = DescribePublicConfigReleasesResponse.new
|
2372
|
+
model.deserialize(response['Response'])
|
2373
|
+
model
|
2374
|
+
else
|
2375
|
+
code = response['Response']['Error']['Code']
|
2376
|
+
message = response['Response']['Error']['Message']
|
2377
|
+
reqid = response['Response']['RequestId']
|
2378
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2379
|
+
end
|
2380
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2381
|
+
raise e
|
2382
|
+
rescue StandardError => e
|
2383
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2384
|
+
end
|
2385
|
+
|
2386
|
+
# 查询公共配置汇总列表
|
2387
|
+
|
2388
|
+
# @param request: Request instance for DescribePublicConfigSummary.
|
2389
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribePublicConfigSummaryRequest`
|
2390
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribePublicConfigSummaryResponse`
|
2391
|
+
def DescribePublicConfigSummary(request)
|
2392
|
+
body = send_request('DescribePublicConfigSummary', request.serialize)
|
2393
|
+
response = JSON.parse(body)
|
2394
|
+
if response['Response'].key?('Error') == false
|
2395
|
+
model = DescribePublicConfigSummaryResponse.new
|
2396
|
+
model.deserialize(response['Response'])
|
2397
|
+
model
|
2398
|
+
else
|
2399
|
+
code = response['Response']['Error']['Code']
|
2400
|
+
message = response['Response']['Error']['Message']
|
2401
|
+
reqid = response['Response']['RequestId']
|
2402
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2403
|
+
end
|
2404
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2405
|
+
raise e
|
2406
|
+
rescue StandardError => e
|
2407
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2408
|
+
end
|
2409
|
+
|
2410
|
+
# 查询公共配置项列表
|
2411
|
+
|
2412
|
+
# @param request: Request instance for DescribePublicConfigs.
|
2413
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribePublicConfigsRequest`
|
2414
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribePublicConfigsResponse`
|
2415
|
+
def DescribePublicConfigs(request)
|
2416
|
+
body = send_request('DescribePublicConfigs', request.serialize)
|
2417
|
+
response = JSON.parse(body)
|
2418
|
+
if response['Response'].key?('Error') == false
|
2419
|
+
model = DescribePublicConfigsResponse.new
|
2420
|
+
model.deserialize(response['Response'])
|
2421
|
+
model
|
2422
|
+
else
|
2423
|
+
code = response['Response']['Error']['Code']
|
2424
|
+
message = response['Response']['Error']['Message']
|
2425
|
+
reqid = response['Response']['RequestId']
|
2426
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2427
|
+
end
|
2428
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2429
|
+
raise e
|
2430
|
+
rescue StandardError => e
|
2431
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2432
|
+
end
|
2433
|
+
|
2434
|
+
# 查询group发布的配置
|
2435
|
+
|
2436
|
+
# @param request: Request instance for DescribeReleasedConfig.
|
2437
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeReleasedConfigRequest`
|
2438
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeReleasedConfigResponse`
|
2439
|
+
def DescribeReleasedConfig(request)
|
2440
|
+
body = send_request('DescribeReleasedConfig', request.serialize)
|
2441
|
+
response = JSON.parse(body)
|
2442
|
+
if response['Response'].key?('Error') == false
|
2443
|
+
model = DescribeReleasedConfigResponse.new
|
2444
|
+
model.deserialize(response['Response'])
|
2445
|
+
model
|
2446
|
+
else
|
2447
|
+
code = response['Response']['Error']['Code']
|
2448
|
+
message = response['Response']['Error']['Message']
|
2449
|
+
reqid = response['Response']['RequestId']
|
2450
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2451
|
+
end
|
2452
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2453
|
+
raise e
|
2454
|
+
rescue StandardError => e
|
2455
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2456
|
+
end
|
2457
|
+
|
2458
|
+
# 查询仓库列表
|
2459
|
+
|
2460
|
+
# @param request: Request instance for DescribeRepositories.
|
2461
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeRepositoriesRequest`
|
2462
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeRepositoriesResponse`
|
2463
|
+
def DescribeRepositories(request)
|
2464
|
+
body = send_request('DescribeRepositories', request.serialize)
|
2465
|
+
response = JSON.parse(body)
|
2466
|
+
if response['Response'].key?('Error') == false
|
2467
|
+
model = DescribeRepositoriesResponse.new
|
2468
|
+
model.deserialize(response['Response'])
|
2469
|
+
model
|
2470
|
+
else
|
2471
|
+
code = response['Response']['Error']['Code']
|
2472
|
+
message = response['Response']['Error']['Message']
|
2473
|
+
reqid = response['Response']['RequestId']
|
2474
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2475
|
+
end
|
2476
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2477
|
+
raise e
|
2478
|
+
rescue StandardError => e
|
2479
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2480
|
+
end
|
2481
|
+
|
2482
|
+
# 查询仓库信息
|
2483
|
+
|
2484
|
+
# @param request: Request instance for DescribeRepository.
|
2485
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeRepositoryRequest`
|
2486
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeRepositoryResponse`
|
2487
|
+
def DescribeRepository(request)
|
2488
|
+
body = send_request('DescribeRepository', request.serialize)
|
2489
|
+
response = JSON.parse(body)
|
2490
|
+
if response['Response'].key?('Error') == false
|
2491
|
+
model = DescribeRepositoryResponse.new
|
2492
|
+
model.deserialize(response['Response'])
|
2493
|
+
model
|
2494
|
+
else
|
2495
|
+
code = response['Response']['Error']['Code']
|
2496
|
+
message = response['Response']['Error']['Message']
|
2497
|
+
reqid = response['Response']['RequestId']
|
2498
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2499
|
+
end
|
2500
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2501
|
+
raise e
|
2502
|
+
rescue StandardError => e
|
2503
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2504
|
+
end
|
2505
|
+
|
2506
|
+
# 查询Serverless部署组明细
|
2507
|
+
|
2508
|
+
# @param request: Request instance for DescribeServerlessGroup.
|
2509
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeServerlessGroupRequest`
|
2510
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeServerlessGroupResponse`
|
2511
|
+
def DescribeServerlessGroup(request)
|
2512
|
+
body = send_request('DescribeServerlessGroup', request.serialize)
|
2513
|
+
response = JSON.parse(body)
|
2514
|
+
if response['Response'].key?('Error') == false
|
2515
|
+
model = DescribeServerlessGroupResponse.new
|
2516
|
+
model.deserialize(response['Response'])
|
2517
|
+
model
|
2518
|
+
else
|
2519
|
+
code = response['Response']['Error']['Code']
|
2520
|
+
message = response['Response']['Error']['Message']
|
2521
|
+
reqid = response['Response']['RequestId']
|
2522
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2523
|
+
end
|
2524
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2525
|
+
raise e
|
2526
|
+
rescue StandardError => e
|
2527
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2528
|
+
end
|
2529
|
+
|
2530
|
+
# 查询Serverless部署组列表
|
2531
|
+
|
2532
|
+
# @param request: Request instance for DescribeServerlessGroups.
|
2533
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeServerlessGroupsRequest`
|
2534
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeServerlessGroupsResponse`
|
2535
|
+
def DescribeServerlessGroups(request)
|
2536
|
+
body = send_request('DescribeServerlessGroups', request.serialize)
|
2537
|
+
response = JSON.parse(body)
|
2538
|
+
if response['Response'].key?('Error') == false
|
2539
|
+
model = DescribeServerlessGroupsResponse.new
|
2540
|
+
model.deserialize(response['Response'])
|
2541
|
+
model
|
2542
|
+
else
|
2543
|
+
code = response['Response']['Error']['Code']
|
2544
|
+
message = response['Response']['Error']['Message']
|
2545
|
+
reqid = response['Response']['RequestId']
|
2546
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2547
|
+
end
|
2548
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2549
|
+
raise e
|
2550
|
+
rescue StandardError => e
|
2551
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2552
|
+
end
|
2553
|
+
|
2554
|
+
# 查询简单应用列表
|
2555
|
+
|
2556
|
+
# @param request: Request instance for DescribeSimpleApplications.
|
2557
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeSimpleApplicationsRequest`
|
2558
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeSimpleApplicationsResponse`
|
2559
|
+
def DescribeSimpleApplications(request)
|
2560
|
+
body = send_request('DescribeSimpleApplications', request.serialize)
|
2561
|
+
response = JSON.parse(body)
|
2562
|
+
if response['Response'].key?('Error') == false
|
2563
|
+
model = DescribeSimpleApplicationsResponse.new
|
2564
|
+
model.deserialize(response['Response'])
|
2565
|
+
model
|
2566
|
+
else
|
2567
|
+
code = response['Response']['Error']['Code']
|
2568
|
+
message = response['Response']['Error']['Message']
|
2569
|
+
reqid = response['Response']['RequestId']
|
2570
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2571
|
+
end
|
2572
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2573
|
+
raise e
|
2574
|
+
rescue StandardError => e
|
2575
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2576
|
+
end
|
2577
|
+
|
2578
|
+
# 查询简单集群列表
|
2579
|
+
|
2580
|
+
# @param request: Request instance for DescribeSimpleClusters.
|
2581
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeSimpleClustersRequest`
|
2582
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeSimpleClustersResponse`
|
2583
|
+
def DescribeSimpleClusters(request)
|
2584
|
+
body = send_request('DescribeSimpleClusters', request.serialize)
|
2585
|
+
response = JSON.parse(body)
|
2586
|
+
if response['Response'].key?('Error') == false
|
2587
|
+
model = DescribeSimpleClustersResponse.new
|
2588
|
+
model.deserialize(response['Response'])
|
2589
|
+
model
|
2590
|
+
else
|
2591
|
+
code = response['Response']['Error']['Code']
|
2592
|
+
message = response['Response']['Error']['Message']
|
2593
|
+
reqid = response['Response']['RequestId']
|
2594
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2595
|
+
end
|
2596
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2597
|
+
raise e
|
2598
|
+
rescue StandardError => e
|
2599
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2600
|
+
end
|
2601
|
+
|
2602
|
+
# 查询简单部署组列表
|
2603
|
+
|
2604
|
+
# @param request: Request instance for DescribeSimpleGroups.
|
2605
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeSimpleGroupsRequest`
|
2606
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeSimpleGroupsResponse`
|
2607
|
+
def DescribeSimpleGroups(request)
|
2608
|
+
body = send_request('DescribeSimpleGroups', request.serialize)
|
2609
|
+
response = JSON.parse(body)
|
2610
|
+
if response['Response'].key?('Error') == false
|
2611
|
+
model = DescribeSimpleGroupsResponse.new
|
2612
|
+
model.deserialize(response['Response'])
|
2613
|
+
model
|
2614
|
+
else
|
2615
|
+
code = response['Response']['Error']['Code']
|
2616
|
+
message = response['Response']['Error']['Message']
|
2617
|
+
reqid = response['Response']['RequestId']
|
2618
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2619
|
+
end
|
2620
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2621
|
+
raise e
|
2622
|
+
rescue StandardError => e
|
2623
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2624
|
+
end
|
2625
|
+
|
2626
|
+
# 查询简单命名空间列表
|
2627
|
+
|
2628
|
+
# @param request: Request instance for DescribeSimpleNamespaces.
|
2629
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeSimpleNamespacesRequest`
|
2630
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeSimpleNamespacesResponse`
|
2631
|
+
def DescribeSimpleNamespaces(request)
|
2632
|
+
body = send_request('DescribeSimpleNamespaces', request.serialize)
|
2633
|
+
response = JSON.parse(body)
|
2634
|
+
if response['Response'].key?('Error') == false
|
2635
|
+
model = DescribeSimpleNamespacesResponse.new
|
2636
|
+
model.deserialize(response['Response'])
|
2637
|
+
model
|
2638
|
+
else
|
2639
|
+
code = response['Response']['Error']['Code']
|
2640
|
+
message = response['Response']['Error']['Message']
|
2641
|
+
reqid = response['Response']['RequestId']
|
2642
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2643
|
+
end
|
2644
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2645
|
+
raise e
|
2646
|
+
rescue StandardError => e
|
2647
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2648
|
+
end
|
2649
|
+
|
2650
|
+
# 查询任务详情
|
2651
|
+
|
2652
|
+
# @param request: Request instance for DescribeTaskDetail.
|
2653
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeTaskDetailRequest`
|
2654
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeTaskDetailResponse`
|
2655
|
+
def DescribeTaskDetail(request)
|
2656
|
+
body = send_request('DescribeTaskDetail', request.serialize)
|
2657
|
+
response = JSON.parse(body)
|
2658
|
+
if response['Response'].key?('Error') == false
|
2659
|
+
model = DescribeTaskDetailResponse.new
|
2660
|
+
model.deserialize(response['Response'])
|
2661
|
+
model
|
2662
|
+
else
|
2663
|
+
code = response['Response']['Error']['Code']
|
2664
|
+
message = response['Response']['Error']['Message']
|
2665
|
+
reqid = response['Response']['RequestId']
|
2666
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2667
|
+
end
|
2668
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2669
|
+
raise e
|
2670
|
+
rescue StandardError => e
|
2671
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2672
|
+
end
|
2673
|
+
|
2674
|
+
# 查询任务最近一次执行状态
|
2675
|
+
|
2676
|
+
# @param request: Request instance for DescribeTaskLastStatus.
|
2677
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeTaskLastStatusRequest`
|
2678
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeTaskLastStatusResponse`
|
2679
|
+
def DescribeTaskLastStatus(request)
|
2680
|
+
body = send_request('DescribeTaskLastStatus', request.serialize)
|
2681
|
+
response = JSON.parse(body)
|
2682
|
+
if response['Response'].key?('Error') == false
|
2683
|
+
model = DescribeTaskLastStatusResponse.new
|
2684
|
+
model.deserialize(response['Response'])
|
2685
|
+
model
|
2686
|
+
else
|
2687
|
+
code = response['Response']['Error']['Code']
|
2688
|
+
message = response['Response']['Error']['Message']
|
2689
|
+
reqid = response['Response']['RequestId']
|
2690
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2691
|
+
end
|
2692
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2693
|
+
raise e
|
2694
|
+
rescue StandardError => e
|
2695
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2696
|
+
end
|
2697
|
+
|
2698
|
+
# 翻页查询任务列表
|
2699
|
+
|
2700
|
+
# @param request: Request instance for DescribeTaskRecords.
|
2701
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeTaskRecordsRequest`
|
2702
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeTaskRecordsResponse`
|
2703
|
+
def DescribeTaskRecords(request)
|
2704
|
+
body = send_request('DescribeTaskRecords', request.serialize)
|
2705
|
+
response = JSON.parse(body)
|
2706
|
+
if response['Response'].key?('Error') == false
|
2707
|
+
model = DescribeTaskRecordsResponse.new
|
2708
|
+
model.deserialize(response['Response'])
|
2709
|
+
model
|
2710
|
+
else
|
2711
|
+
code = response['Response']['Error']['Code']
|
2712
|
+
message = response['Response']['Error']['Message']
|
2713
|
+
reqid = response['Response']['RequestId']
|
2714
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2715
|
+
end
|
2716
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2717
|
+
raise e
|
2718
|
+
rescue StandardError => e
|
2719
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2720
|
+
end
|
2721
|
+
|
2722
|
+
# 查询网关API监控明细数据(仅单元化网关),非单元化网关使用DescribeApiUseDetail
|
2723
|
+
|
2724
|
+
# @param request: Request instance for DescribeUnitApiUseDetail.
|
2725
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeUnitApiUseDetailRequest`
|
2726
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeUnitApiUseDetailResponse`
|
2727
|
+
def DescribeUnitApiUseDetail(request)
|
2728
|
+
body = send_request('DescribeUnitApiUseDetail', request.serialize)
|
2729
|
+
response = JSON.parse(body)
|
2730
|
+
if response['Response'].key?('Error') == false
|
2731
|
+
model = DescribeUnitApiUseDetailResponse.new
|
2732
|
+
model.deserialize(response['Response'])
|
2733
|
+
model
|
2734
|
+
else
|
2735
|
+
code = response['Response']['Error']['Code']
|
2736
|
+
message = response['Response']['Error']['Message']
|
2737
|
+
reqid = response['Response']['RequestId']
|
2738
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2739
|
+
end
|
2740
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2741
|
+
raise e
|
2742
|
+
rescue StandardError => e
|
2743
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2744
|
+
end
|
2745
|
+
|
2746
|
+
# 查询单元化命名空间列表
|
2747
|
+
|
2748
|
+
# @param request: Request instance for DescribeUnitNamespaces.
|
2749
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeUnitNamespacesRequest`
|
2750
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeUnitNamespacesResponse`
|
2751
|
+
def DescribeUnitNamespaces(request)
|
2752
|
+
body = send_request('DescribeUnitNamespaces', request.serialize)
|
2753
|
+
response = JSON.parse(body)
|
2754
|
+
if response['Response'].key?('Error') == false
|
2755
|
+
model = DescribeUnitNamespacesResponse.new
|
2756
|
+
model.deserialize(response['Response'])
|
2757
|
+
model
|
2758
|
+
else
|
2759
|
+
code = response['Response']['Error']['Code']
|
2760
|
+
message = response['Response']['Error']['Message']
|
2761
|
+
reqid = response['Response']['RequestId']
|
2762
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2763
|
+
end
|
2764
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2765
|
+
raise e
|
2766
|
+
rescue StandardError => e
|
2767
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2768
|
+
end
|
2769
|
+
|
2770
|
+
# 查询单元化规则详情
|
2771
|
+
|
2772
|
+
# @param request: Request instance for DescribeUnitRule.
|
2773
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeUnitRuleRequest`
|
2774
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeUnitRuleResponse`
|
2775
|
+
def DescribeUnitRule(request)
|
2776
|
+
body = send_request('DescribeUnitRule', request.serialize)
|
2777
|
+
response = JSON.parse(body)
|
2778
|
+
if response['Response'].key?('Error') == false
|
2779
|
+
model = DescribeUnitRuleResponse.new
|
2780
|
+
model.deserialize(response['Response'])
|
2781
|
+
model
|
2782
|
+
else
|
2783
|
+
code = response['Response']['Error']['Code']
|
2784
|
+
message = response['Response']['Error']['Message']
|
2785
|
+
reqid = response['Response']['RequestId']
|
2786
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2787
|
+
end
|
2788
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2789
|
+
raise e
|
2790
|
+
rescue StandardError => e
|
2791
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2792
|
+
end
|
2793
|
+
|
2794
|
+
# 查询单元化规则列表
|
2795
|
+
|
2796
|
+
# @param request: Request instance for DescribeUnitRules.
|
2797
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeUnitRulesRequest`
|
2798
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeUnitRulesResponse`
|
2799
|
+
def DescribeUnitRules(request)
|
2800
|
+
body = send_request('DescribeUnitRules', request.serialize)
|
2801
|
+
response = JSON.parse(body)
|
2802
|
+
if response['Response'].key?('Error') == false
|
2803
|
+
model = DescribeUnitRulesResponse.new
|
2804
|
+
model.deserialize(response['Response'])
|
2805
|
+
model
|
2806
|
+
else
|
2807
|
+
code = response['Response']['Error']['Code']
|
2808
|
+
message = response['Response']['Error']['Message']
|
2809
|
+
reqid = response['Response']['RequestId']
|
2810
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2811
|
+
end
|
2812
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2813
|
+
raise e
|
2814
|
+
rescue StandardError => e
|
2815
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2816
|
+
end
|
2817
|
+
|
2818
|
+
# TSF会将软件包上传到腾讯云对象存储(COS)。调用此接口获取上传信息,如目标地域,桶,包Id,存储路径,鉴权信息等,之后请使用COS API(或SDK)进行上传。
|
2819
|
+
# COS相关文档请查阅:https://cloud.tencent.com/document/product/436
|
2820
|
+
|
2821
|
+
# @param request: Request instance for DescribeUploadInfo.
|
2822
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeUploadInfoRequest`
|
2823
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeUploadInfoResponse`
|
2824
|
+
def DescribeUploadInfo(request)
|
2825
|
+
body = send_request('DescribeUploadInfo', request.serialize)
|
2826
|
+
response = JSON.parse(body)
|
2827
|
+
if response['Response'].key?('Error') == false
|
2828
|
+
model = DescribeUploadInfoResponse.new
|
2829
|
+
model.deserialize(response['Response'])
|
2830
|
+
model
|
2831
|
+
else
|
2832
|
+
code = response['Response']['Error']['Code']
|
2833
|
+
message = response['Response']['Error']['Message']
|
2834
|
+
reqid = response['Response']['RequestId']
|
2835
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2836
|
+
end
|
2837
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2838
|
+
raise e
|
2839
|
+
rescue StandardError => e
|
2840
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2841
|
+
end
|
2842
|
+
|
2843
|
+
# 查询可用于被导入的命名空间列表
|
2844
|
+
|
2845
|
+
# @param request: Request instance for DescribeUsableUnitNamespaces.
|
2846
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DescribeUsableUnitNamespacesRequest`
|
2847
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DescribeUsableUnitNamespacesResponse`
|
2848
|
+
def DescribeUsableUnitNamespaces(request)
|
2849
|
+
body = send_request('DescribeUsableUnitNamespaces', request.serialize)
|
2850
|
+
response = JSON.parse(body)
|
2851
|
+
if response['Response'].key?('Error') == false
|
2852
|
+
model = DescribeUsableUnitNamespacesResponse.new
|
2853
|
+
model.deserialize(response['Response'])
|
2854
|
+
model
|
2855
|
+
else
|
2856
|
+
code = response['Response']['Error']['Code']
|
2857
|
+
message = response['Response']['Error']['Message']
|
2858
|
+
reqid = response['Response']['RequestId']
|
2859
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2860
|
+
end
|
2861
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2862
|
+
raise e
|
2863
|
+
rescue StandardError => e
|
2864
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2865
|
+
end
|
2866
|
+
|
2867
|
+
# 停用任务
|
2868
|
+
|
2869
|
+
# @param request: Request instance for DisableTask.
|
2870
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DisableTaskRequest`
|
2871
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DisableTaskResponse`
|
2872
|
+
def DisableTask(request)
|
2873
|
+
body = send_request('DisableTask', request.serialize)
|
2874
|
+
response = JSON.parse(body)
|
2875
|
+
if response['Response'].key?('Error') == false
|
2876
|
+
model = DisableTaskResponse.new
|
2877
|
+
model.deserialize(response['Response'])
|
2878
|
+
model
|
2879
|
+
else
|
2880
|
+
code = response['Response']['Error']['Code']
|
2881
|
+
message = response['Response']['Error']['Message']
|
2882
|
+
reqid = response['Response']['RequestId']
|
2883
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2884
|
+
end
|
2885
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2886
|
+
raise e
|
2887
|
+
rescue StandardError => e
|
2888
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2889
|
+
end
|
2890
|
+
|
2891
|
+
# 停用工作流
|
2892
|
+
|
2893
|
+
# @param request: Request instance for DisableTaskFlow.
|
2894
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DisableTaskFlowRequest`
|
2895
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DisableTaskFlowResponse`
|
2896
|
+
def DisableTaskFlow(request)
|
2897
|
+
body = send_request('DisableTaskFlow', request.serialize)
|
2898
|
+
response = JSON.parse(body)
|
2899
|
+
if response['Response'].key?('Error') == false
|
2900
|
+
model = DisableTaskFlowResponse.new
|
2901
|
+
model.deserialize(response['Response'])
|
2902
|
+
model
|
2903
|
+
else
|
2904
|
+
code = response['Response']['Error']['Code']
|
2905
|
+
message = response['Response']['Error']['Message']
|
2906
|
+
reqid = response['Response']['RequestId']
|
2907
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2908
|
+
end
|
2909
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2910
|
+
raise e
|
2911
|
+
rescue StandardError => e
|
2912
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2913
|
+
end
|
2914
|
+
|
2915
|
+
# 禁用单元化路由
|
2916
|
+
|
2917
|
+
# @param request: Request instance for DisableUnitRoute.
|
2918
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DisableUnitRouteRequest`
|
2919
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DisableUnitRouteResponse`
|
2920
|
+
def DisableUnitRoute(request)
|
2921
|
+
body = send_request('DisableUnitRoute', request.serialize)
|
2922
|
+
response = JSON.parse(body)
|
2923
|
+
if response['Response'].key?('Error') == false
|
2924
|
+
model = DisableUnitRouteResponse.new
|
2925
|
+
model.deserialize(response['Response'])
|
2926
|
+
model
|
2927
|
+
else
|
2928
|
+
code = response['Response']['Error']['Code']
|
2929
|
+
message = response['Response']['Error']['Message']
|
2930
|
+
reqid = response['Response']['RequestId']
|
2931
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2932
|
+
end
|
2933
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2934
|
+
raise e
|
2935
|
+
rescue StandardError => e
|
2936
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2937
|
+
end
|
2938
|
+
|
2939
|
+
# 禁用单元化规则
|
2940
|
+
|
2941
|
+
# @param request: Request instance for DisableUnitRule.
|
2942
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DisableUnitRuleRequest`
|
2943
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DisableUnitRuleResponse`
|
2944
|
+
def DisableUnitRule(request)
|
2945
|
+
body = send_request('DisableUnitRule', request.serialize)
|
2946
|
+
response = JSON.parse(body)
|
2947
|
+
if response['Response'].key?('Error') == false
|
2948
|
+
model = DisableUnitRuleResponse.new
|
2949
|
+
model.deserialize(response['Response'])
|
2950
|
+
model
|
2951
|
+
else
|
2952
|
+
code = response['Response']['Error']['Code']
|
2953
|
+
message = response['Response']['Error']['Message']
|
2954
|
+
reqid = response['Response']['RequestId']
|
2955
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2956
|
+
end
|
2957
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2958
|
+
raise e
|
2959
|
+
rescue StandardError => e
|
2960
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2961
|
+
end
|
2962
|
+
|
2963
|
+
# 下线Api分组
|
2964
|
+
|
2965
|
+
# @param request: Request instance for DraftApiGroup.
|
2966
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::DraftApiGroupRequest`
|
2967
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::DraftApiGroupResponse`
|
2968
|
+
def DraftApiGroup(request)
|
2969
|
+
body = send_request('DraftApiGroup', request.serialize)
|
2970
|
+
response = JSON.parse(body)
|
2971
|
+
if response['Response'].key?('Error') == false
|
2972
|
+
model = DraftApiGroupResponse.new
|
2973
|
+
model.deserialize(response['Response'])
|
2974
|
+
model
|
2975
|
+
else
|
2976
|
+
code = response['Response']['Error']['Code']
|
2977
|
+
message = response['Response']['Error']['Message']
|
2978
|
+
reqid = response['Response']['RequestId']
|
2979
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2980
|
+
end
|
2981
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2982
|
+
raise e
|
2983
|
+
rescue StandardError => e
|
2984
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2985
|
+
end
|
2986
|
+
|
2987
|
+
# 启用任务
|
2988
|
+
|
2989
|
+
# @param request: Request instance for EnableTask.
|
2990
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::EnableTaskRequest`
|
2991
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::EnableTaskResponse`
|
2992
|
+
def EnableTask(request)
|
2993
|
+
body = send_request('EnableTask', request.serialize)
|
2994
|
+
response = JSON.parse(body)
|
2995
|
+
if response['Response'].key?('Error') == false
|
2996
|
+
model = EnableTaskResponse.new
|
2997
|
+
model.deserialize(response['Response'])
|
2998
|
+
model
|
2999
|
+
else
|
3000
|
+
code = response['Response']['Error']['Code']
|
3001
|
+
message = response['Response']['Error']['Message']
|
3002
|
+
reqid = response['Response']['RequestId']
|
3003
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3004
|
+
end
|
3005
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3006
|
+
raise e
|
3007
|
+
rescue StandardError => e
|
3008
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3009
|
+
end
|
3010
|
+
|
3011
|
+
# 启用工作流
|
3012
|
+
|
3013
|
+
# @param request: Request instance for EnableTaskFlow.
|
3014
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::EnableTaskFlowRequest`
|
3015
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::EnableTaskFlowResponse`
|
3016
|
+
def EnableTaskFlow(request)
|
3017
|
+
body = send_request('EnableTaskFlow', request.serialize)
|
3018
|
+
response = JSON.parse(body)
|
3019
|
+
if response['Response'].key?('Error') == false
|
3020
|
+
model = EnableTaskFlowResponse.new
|
3021
|
+
model.deserialize(response['Response'])
|
3022
|
+
model
|
3023
|
+
else
|
3024
|
+
code = response['Response']['Error']['Code']
|
3025
|
+
message = response['Response']['Error']['Message']
|
3026
|
+
reqid = response['Response']['RequestId']
|
3027
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3028
|
+
end
|
3029
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3030
|
+
raise e
|
3031
|
+
rescue StandardError => e
|
3032
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3033
|
+
end
|
3034
|
+
|
3035
|
+
# 启用单元化路由
|
3036
|
+
|
3037
|
+
# @param request: Request instance for EnableUnitRoute.
|
3038
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::EnableUnitRouteRequest`
|
3039
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::EnableUnitRouteResponse`
|
3040
|
+
def EnableUnitRoute(request)
|
3041
|
+
body = send_request('EnableUnitRoute', request.serialize)
|
3042
|
+
response = JSON.parse(body)
|
3043
|
+
if response['Response'].key?('Error') == false
|
3044
|
+
model = EnableUnitRouteResponse.new
|
3045
|
+
model.deserialize(response['Response'])
|
3046
|
+
model
|
3047
|
+
else
|
3048
|
+
code = response['Response']['Error']['Code']
|
3049
|
+
message = response['Response']['Error']['Message']
|
3050
|
+
reqid = response['Response']['RequestId']
|
3051
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3052
|
+
end
|
3053
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3054
|
+
raise e
|
3055
|
+
rescue StandardError => e
|
3056
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3057
|
+
end
|
3058
|
+
|
3059
|
+
# 启用单元化规则
|
3060
|
+
|
3061
|
+
# @param request: Request instance for EnableUnitRule.
|
3062
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::EnableUnitRuleRequest`
|
3063
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::EnableUnitRuleResponse`
|
3064
|
+
def EnableUnitRule(request)
|
3065
|
+
body = send_request('EnableUnitRule', request.serialize)
|
3066
|
+
response = JSON.parse(body)
|
3067
|
+
if response['Response'].key?('Error') == false
|
3068
|
+
model = EnableUnitRuleResponse.new
|
3069
|
+
model.deserialize(response['Response'])
|
3070
|
+
model
|
3071
|
+
else
|
3072
|
+
code = response['Response']['Error']['Code']
|
3073
|
+
message = response['Response']['Error']['Message']
|
3074
|
+
reqid = response['Response']['RequestId']
|
3075
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3076
|
+
end
|
3077
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3078
|
+
raise e
|
3079
|
+
rescue StandardError => e
|
3080
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3081
|
+
end
|
3082
|
+
|
3083
|
+
# 手动执行一次任务。
|
3084
|
+
|
3085
|
+
# @param request: Request instance for ExecuteTask.
|
3086
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::ExecuteTaskRequest`
|
3087
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::ExecuteTaskResponse`
|
3088
|
+
def ExecuteTask(request)
|
3089
|
+
body = send_request('ExecuteTask', request.serialize)
|
3090
|
+
response = JSON.parse(body)
|
3091
|
+
if response['Response'].key?('Error') == false
|
3092
|
+
model = ExecuteTaskResponse.new
|
3093
|
+
model.deserialize(response['Response'])
|
3094
|
+
model
|
3095
|
+
else
|
3096
|
+
code = response['Response']['Error']['Code']
|
3097
|
+
message = response['Response']['Error']['Message']
|
3098
|
+
reqid = response['Response']['RequestId']
|
3099
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3100
|
+
end
|
3101
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3102
|
+
raise e
|
3103
|
+
rescue StandardError => e
|
3104
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3105
|
+
end
|
3106
|
+
|
3107
|
+
# 执行一次工作流
|
3108
|
+
|
3109
|
+
# @param request: Request instance for ExecuteTaskFlow.
|
3110
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::ExecuteTaskFlowRequest`
|
3111
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::ExecuteTaskFlowResponse`
|
3112
|
+
def ExecuteTaskFlow(request)
|
3113
|
+
body = send_request('ExecuteTaskFlow', request.serialize)
|
3114
|
+
response = JSON.parse(body)
|
3115
|
+
if response['Response'].key?('Error') == false
|
3116
|
+
model = ExecuteTaskFlowResponse.new
|
3117
|
+
model.deserialize(response['Response'])
|
3118
|
+
model
|
3119
|
+
else
|
3120
|
+
code = response['Response']['Error']['Code']
|
3121
|
+
message = response['Response']['Error']['Message']
|
3122
|
+
reqid = response['Response']['RequestId']
|
3123
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3124
|
+
end
|
3125
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3126
|
+
raise e
|
3127
|
+
rescue StandardError => e
|
3128
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3129
|
+
end
|
3130
|
+
|
3131
|
+
# 虚拟机部署组添加实例
|
3132
|
+
|
3133
|
+
# @param request: Request instance for ExpandGroup.
|
3134
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::ExpandGroupRequest`
|
3135
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::ExpandGroupResponse`
|
3136
|
+
def ExpandGroup(request)
|
3137
|
+
body = send_request('ExpandGroup', request.serialize)
|
3138
|
+
response = JSON.parse(body)
|
3139
|
+
if response['Response'].key?('Error') == false
|
3140
|
+
model = ExpandGroupResponse.new
|
3141
|
+
model.deserialize(response['Response'])
|
3142
|
+
model
|
3143
|
+
else
|
3144
|
+
code = response['Response']['Error']['Code']
|
3145
|
+
message = response['Response']['Error']['Message']
|
3146
|
+
reqid = response['Response']['RequestId']
|
3147
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3148
|
+
end
|
3149
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3150
|
+
raise e
|
3151
|
+
rescue StandardError => e
|
3152
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3153
|
+
end
|
3154
|
+
|
3155
|
+
# 修改容器部署组
|
3156
|
+
|
3157
|
+
# @param request: Request instance for ModifyContainerGroup.
|
3158
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::ModifyContainerGroupRequest`
|
3159
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::ModifyContainerGroupResponse`
|
3160
|
+
def ModifyContainerGroup(request)
|
3161
|
+
body = send_request('ModifyContainerGroup', request.serialize)
|
3162
|
+
response = JSON.parse(body)
|
3163
|
+
if response['Response'].key?('Error') == false
|
3164
|
+
model = ModifyContainerGroupResponse.new
|
3165
|
+
model.deserialize(response['Response'])
|
3166
|
+
model
|
3167
|
+
else
|
3168
|
+
code = response['Response']['Error']['Code']
|
3169
|
+
message = response['Response']['Error']['Message']
|
3170
|
+
reqid = response['Response']['RequestId']
|
3171
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3172
|
+
end
|
3173
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3174
|
+
raise e
|
3175
|
+
rescue StandardError => e
|
3176
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3177
|
+
end
|
3178
|
+
|
3179
|
+
# 修改容器部署组实例数
|
3180
|
+
|
3181
|
+
# @param request: Request instance for ModifyContainerReplicas.
|
3182
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::ModifyContainerReplicasRequest`
|
3183
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::ModifyContainerReplicasResponse`
|
3184
|
+
def ModifyContainerReplicas(request)
|
3185
|
+
body = send_request('ModifyContainerReplicas', request.serialize)
|
3186
|
+
response = JSON.parse(body)
|
3187
|
+
if response['Response'].key?('Error') == false
|
3188
|
+
model = ModifyContainerReplicasResponse.new
|
3189
|
+
model.deserialize(response['Response'])
|
3190
|
+
model
|
3191
|
+
else
|
3192
|
+
code = response['Response']['Error']['Code']
|
3193
|
+
message = response['Response']['Error']['Message']
|
3194
|
+
reqid = response['Response']['RequestId']
|
3195
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3196
|
+
end
|
3197
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3198
|
+
raise e
|
3199
|
+
rescue StandardError => e
|
3200
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3201
|
+
end
|
3202
|
+
|
3203
|
+
# 更新泳道信息
|
3204
|
+
|
3205
|
+
# @param request: Request instance for ModifyLane.
|
3206
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::ModifyLaneRequest`
|
3207
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::ModifyLaneResponse`
|
3208
|
+
def ModifyLane(request)
|
3209
|
+
body = send_request('ModifyLane', request.serialize)
|
3210
|
+
response = JSON.parse(body)
|
3211
|
+
if response['Response'].key?('Error') == false
|
3212
|
+
model = ModifyLaneResponse.new
|
3213
|
+
model.deserialize(response['Response'])
|
3214
|
+
model
|
3215
|
+
else
|
3216
|
+
code = response['Response']['Error']['Code']
|
3217
|
+
message = response['Response']['Error']['Message']
|
3218
|
+
reqid = response['Response']['RequestId']
|
3219
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3220
|
+
end
|
3221
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3222
|
+
raise e
|
3223
|
+
rescue StandardError => e
|
3224
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3225
|
+
end
|
3226
|
+
|
3227
|
+
# 更新泳道规则
|
3228
|
+
|
3229
|
+
# @param request: Request instance for ModifyLaneRule.
|
3230
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::ModifyLaneRuleRequest`
|
3231
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::ModifyLaneRuleResponse`
|
3232
|
+
def ModifyLaneRule(request)
|
3233
|
+
body = send_request('ModifyLaneRule', request.serialize)
|
3234
|
+
response = JSON.parse(body)
|
3235
|
+
if response['Response'].key?('Error') == false
|
3236
|
+
model = ModifyLaneRuleResponse.new
|
3237
|
+
model.deserialize(response['Response'])
|
3238
|
+
model
|
3239
|
+
else
|
3240
|
+
code = response['Response']['Error']['Code']
|
3241
|
+
message = response['Response']['Error']['Message']
|
3242
|
+
reqid = response['Response']['RequestId']
|
3243
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3244
|
+
end
|
3245
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3246
|
+
raise e
|
3247
|
+
rescue StandardError => e
|
3248
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3249
|
+
end
|
3250
|
+
|
3251
|
+
# 修改微服务详情
|
3252
|
+
|
3253
|
+
# @param request: Request instance for ModifyMicroservice.
|
3254
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::ModifyMicroserviceRequest`
|
3255
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::ModifyMicroserviceResponse`
|
3256
|
+
def ModifyMicroservice(request)
|
3257
|
+
body = send_request('ModifyMicroservice', request.serialize)
|
3258
|
+
response = JSON.parse(body)
|
3259
|
+
if response['Response'].key?('Error') == false
|
3260
|
+
model = ModifyMicroserviceResponse.new
|
3261
|
+
model.deserialize(response['Response'])
|
3262
|
+
model
|
3263
|
+
else
|
3264
|
+
code = response['Response']['Error']['Code']
|
3265
|
+
message = response['Response']['Error']['Message']
|
3266
|
+
reqid = response['Response']['RequestId']
|
3267
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3268
|
+
end
|
3269
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3270
|
+
raise e
|
3271
|
+
rescue StandardError => e
|
3272
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3273
|
+
end
|
3274
|
+
|
3275
|
+
# 修改路径重写
|
3276
|
+
|
3277
|
+
# @param request: Request instance for ModifyPathRewrite.
|
3278
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::ModifyPathRewriteRequest`
|
3279
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::ModifyPathRewriteResponse`
|
3280
|
+
def ModifyPathRewrite(request)
|
3281
|
+
body = send_request('ModifyPathRewrite', request.serialize)
|
3282
|
+
response = JSON.parse(body)
|
3283
|
+
if response['Response'].key?('Error') == false
|
3284
|
+
model = ModifyPathRewriteResponse.new
|
3285
|
+
model.deserialize(response['Response'])
|
3286
|
+
model
|
3287
|
+
else
|
3288
|
+
code = response['Response']['Error']['Code']
|
3289
|
+
message = response['Response']['Error']['Message']
|
3290
|
+
reqid = response['Response']['RequestId']
|
3291
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3292
|
+
end
|
3293
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3294
|
+
raise e
|
3295
|
+
rescue StandardError => e
|
3296
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3297
|
+
end
|
3298
|
+
|
3299
|
+
# 修改任务
|
3300
|
+
|
3301
|
+
# @param request: Request instance for ModifyTask.
|
3302
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::ModifyTaskRequest`
|
3303
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::ModifyTaskResponse`
|
3304
|
+
def ModifyTask(request)
|
3305
|
+
body = send_request('ModifyTask', request.serialize)
|
3306
|
+
response = JSON.parse(body)
|
3307
|
+
if response['Response'].key?('Error') == false
|
3308
|
+
model = ModifyTaskResponse.new
|
3309
|
+
model.deserialize(response['Response'])
|
3310
|
+
model
|
3311
|
+
else
|
3312
|
+
code = response['Response']['Error']['Code']
|
3313
|
+
message = response['Response']['Error']['Message']
|
3314
|
+
reqid = response['Response']['RequestId']
|
3315
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3316
|
+
end
|
3317
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3318
|
+
raise e
|
3319
|
+
rescue StandardError => e
|
3320
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3321
|
+
end
|
3322
|
+
|
3323
|
+
# 调用该接口和COS的上传接口后,需要调用此接口更新TSF中保存的程序包状态。
|
3324
|
+
# 调用此接口完成后,才标志上传包流程结束。
|
3325
|
+
|
3326
|
+
# @param request: Request instance for ModifyUploadInfo.
|
3327
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::ModifyUploadInfoRequest`
|
3328
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::ModifyUploadInfoResponse`
|
3329
|
+
def ModifyUploadInfo(request)
|
3330
|
+
body = send_request('ModifyUploadInfo', request.serialize)
|
3331
|
+
response = JSON.parse(body)
|
3332
|
+
if response['Response'].key?('Error') == false
|
3333
|
+
model = ModifyUploadInfoResponse.new
|
3334
|
+
model.deserialize(response['Response'])
|
3335
|
+
model
|
3336
|
+
else
|
3337
|
+
code = response['Response']['Error']['Code']
|
3338
|
+
message = response['Response']['Error']['Message']
|
3339
|
+
reqid = response['Response']['RequestId']
|
3340
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3341
|
+
end
|
3342
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3343
|
+
raise e
|
3344
|
+
rescue StandardError => e
|
3345
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3346
|
+
end
|
3347
|
+
|
3348
|
+
# 绑定解绑tcr仓库
|
3349
|
+
|
3350
|
+
# @param request: Request instance for OperateApplicationTcrBinding.
|
3351
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::OperateApplicationTcrBindingRequest`
|
3352
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::OperateApplicationTcrBindingResponse`
|
3353
|
+
def OperateApplicationTcrBinding(request)
|
3354
|
+
body = send_request('OperateApplicationTcrBinding', request.serialize)
|
3355
|
+
response = JSON.parse(body)
|
3356
|
+
if response['Response'].key?('Error') == false
|
3357
|
+
model = OperateApplicationTcrBindingResponse.new
|
3358
|
+
model.deserialize(response['Response'])
|
3359
|
+
model
|
3360
|
+
else
|
3361
|
+
code = response['Response']['Error']['Code']
|
3362
|
+
message = response['Response']['Error']['Message']
|
3363
|
+
reqid = response['Response']['RequestId']
|
3364
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3365
|
+
end
|
3366
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3367
|
+
raise e
|
3368
|
+
rescue StandardError => e
|
3369
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3370
|
+
end
|
3371
|
+
|
3372
|
+
# 重新执行任务
|
3373
|
+
|
3374
|
+
# @param request: Request instance for RedoTask.
|
3375
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::RedoTaskRequest`
|
3376
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::RedoTaskResponse`
|
3377
|
+
def RedoTask(request)
|
3378
|
+
body = send_request('RedoTask', request.serialize)
|
3379
|
+
response = JSON.parse(body)
|
3380
|
+
if response['Response'].key?('Error') == false
|
3381
|
+
model = RedoTaskResponse.new
|
3382
|
+
model.deserialize(response['Response'])
|
3383
|
+
model
|
3384
|
+
else
|
3385
|
+
code = response['Response']['Error']['Code']
|
3386
|
+
message = response['Response']['Error']['Message']
|
3387
|
+
reqid = response['Response']['RequestId']
|
3388
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3389
|
+
end
|
3390
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3391
|
+
raise e
|
3392
|
+
rescue StandardError => e
|
3393
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3394
|
+
end
|
3395
|
+
|
3396
|
+
# 重新执行任务批次
|
3397
|
+
|
3398
|
+
# @param request: Request instance for RedoTaskBatch.
|
3399
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::RedoTaskBatchRequest`
|
3400
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::RedoTaskBatchResponse`
|
3401
|
+
def RedoTaskBatch(request)
|
3402
|
+
body = send_request('RedoTaskBatch', request.serialize)
|
3403
|
+
response = JSON.parse(body)
|
3404
|
+
if response['Response'].key?('Error') == false
|
3405
|
+
model = RedoTaskBatchResponse.new
|
3406
|
+
model.deserialize(response['Response'])
|
3407
|
+
model
|
3408
|
+
else
|
3409
|
+
code = response['Response']['Error']['Code']
|
3410
|
+
message = response['Response']['Error']['Message']
|
3411
|
+
reqid = response['Response']['RequestId']
|
3412
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3413
|
+
end
|
3414
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3415
|
+
raise e
|
3416
|
+
rescue StandardError => e
|
3417
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3418
|
+
end
|
3419
|
+
|
3420
|
+
# 重新执行在某个节点上执行任务。
|
3421
|
+
|
3422
|
+
# @param request: Request instance for RedoTaskExecute.
|
3423
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::RedoTaskExecuteRequest`
|
3424
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::RedoTaskExecuteResponse`
|
3425
|
+
def RedoTaskExecute(request)
|
3426
|
+
body = send_request('RedoTaskExecute', request.serialize)
|
3427
|
+
response = JSON.parse(body)
|
3428
|
+
if response['Response'].key?('Error') == false
|
3429
|
+
model = RedoTaskExecuteResponse.new
|
3430
|
+
model.deserialize(response['Response'])
|
3431
|
+
model
|
3432
|
+
else
|
3433
|
+
code = response['Response']['Error']['Code']
|
3434
|
+
message = response['Response']['Error']['Message']
|
3435
|
+
reqid = response['Response']['RequestId']
|
3436
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3437
|
+
end
|
3438
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3439
|
+
raise e
|
3440
|
+
rescue StandardError => e
|
3441
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3442
|
+
end
|
3443
|
+
|
3444
|
+
# 重新执行工作流批次
|
3445
|
+
|
3446
|
+
# @param request: Request instance for RedoTaskFlowBatch.
|
3447
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::RedoTaskFlowBatchRequest`
|
3448
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::RedoTaskFlowBatchResponse`
|
3449
|
+
def RedoTaskFlowBatch(request)
|
3450
|
+
body = send_request('RedoTaskFlowBatch', request.serialize)
|
3451
|
+
response = JSON.parse(body)
|
3452
|
+
if response['Response'].key?('Error') == false
|
3453
|
+
model = RedoTaskFlowBatchResponse.new
|
3454
|
+
model.deserialize(response['Response'])
|
3455
|
+
model
|
3456
|
+
else
|
3457
|
+
code = response['Response']['Error']['Code']
|
3458
|
+
message = response['Response']['Error']['Message']
|
3459
|
+
reqid = response['Response']['RequestId']
|
3460
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3461
|
+
end
|
3462
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3463
|
+
raise e
|
3464
|
+
rescue StandardError => e
|
3465
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3466
|
+
end
|
3467
|
+
|
3468
|
+
# 发布Api分组
|
3469
|
+
|
3470
|
+
# @param request: Request instance for ReleaseApiGroup.
|
3471
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::ReleaseApiGroupRequest`
|
3472
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::ReleaseApiGroupResponse`
|
3473
|
+
def ReleaseApiGroup(request)
|
3474
|
+
body = send_request('ReleaseApiGroup', request.serialize)
|
3475
|
+
response = JSON.parse(body)
|
3476
|
+
if response['Response'].key?('Error') == false
|
3477
|
+
model = ReleaseApiGroupResponse.new
|
3478
|
+
model.deserialize(response['Response'])
|
3479
|
+
model
|
3480
|
+
else
|
3481
|
+
code = response['Response']['Error']['Code']
|
3482
|
+
message = response['Response']['Error']['Message']
|
3483
|
+
reqid = response['Response']['RequestId']
|
3484
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3485
|
+
end
|
3486
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3487
|
+
raise e
|
3488
|
+
rescue StandardError => e
|
3489
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3490
|
+
end
|
3491
|
+
|
3492
|
+
# 发布配置
|
3493
|
+
|
3494
|
+
# @param request: Request instance for ReleaseConfig.
|
3495
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::ReleaseConfigRequest`
|
3496
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::ReleaseConfigResponse`
|
3497
|
+
def ReleaseConfig(request)
|
3498
|
+
body = send_request('ReleaseConfig', request.serialize)
|
3499
|
+
response = JSON.parse(body)
|
3500
|
+
if response['Response'].key?('Error') == false
|
3501
|
+
model = ReleaseConfigResponse.new
|
3502
|
+
model.deserialize(response['Response'])
|
3503
|
+
model
|
3504
|
+
else
|
3505
|
+
code = response['Response']['Error']['Code']
|
3506
|
+
message = response['Response']['Error']['Message']
|
3507
|
+
reqid = response['Response']['RequestId']
|
3508
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3509
|
+
end
|
3510
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3511
|
+
raise e
|
3512
|
+
rescue StandardError => e
|
3513
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3514
|
+
end
|
3515
|
+
|
3516
|
+
# 发布文件配置
|
3517
|
+
|
3518
|
+
# @param request: Request instance for ReleaseFileConfig.
|
3519
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::ReleaseFileConfigRequest`
|
3520
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::ReleaseFileConfigResponse`
|
3521
|
+
def ReleaseFileConfig(request)
|
3522
|
+
body = send_request('ReleaseFileConfig', request.serialize)
|
3523
|
+
response = JSON.parse(body)
|
3524
|
+
if response['Response'].key?('Error') == false
|
3525
|
+
model = ReleaseFileConfigResponse.new
|
3526
|
+
model.deserialize(response['Response'])
|
3527
|
+
model
|
3528
|
+
else
|
3529
|
+
code = response['Response']['Error']['Code']
|
3530
|
+
message = response['Response']['Error']['Message']
|
3531
|
+
reqid = response['Response']['RequestId']
|
3532
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3533
|
+
end
|
3534
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3535
|
+
raise e
|
3536
|
+
rescue StandardError => e
|
3537
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3538
|
+
end
|
3539
|
+
|
3540
|
+
# 发布公共配置
|
3541
|
+
|
3542
|
+
# @param request: Request instance for ReleasePublicConfig.
|
3543
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::ReleasePublicConfigRequest`
|
3544
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::ReleasePublicConfigResponse`
|
3545
|
+
def ReleasePublicConfig(request)
|
3546
|
+
body = send_request('ReleasePublicConfig', request.serialize)
|
3547
|
+
response = JSON.parse(body)
|
3548
|
+
if response['Response'].key?('Error') == false
|
3549
|
+
model = ReleasePublicConfigResponse.new
|
3550
|
+
model.deserialize(response['Response'])
|
3551
|
+
model
|
3552
|
+
else
|
3553
|
+
code = response['Response']['Error']['Code']
|
3554
|
+
message = response['Response']['Error']['Message']
|
3555
|
+
reqid = response['Response']['RequestId']
|
3556
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3557
|
+
end
|
3558
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3559
|
+
raise e
|
3560
|
+
rescue StandardError => e
|
3561
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3562
|
+
end
|
3563
|
+
|
3564
|
+
# 从 TSF 集群中批量移除云主机节点
|
3565
|
+
|
3566
|
+
# @param request: Request instance for RemoveInstances.
|
3567
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::RemoveInstancesRequest`
|
3568
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::RemoveInstancesResponse`
|
3569
|
+
def RemoveInstances(request)
|
3570
|
+
body = send_request('RemoveInstances', request.serialize)
|
3571
|
+
response = JSON.parse(body)
|
3572
|
+
if response['Response'].key?('Error') == false
|
3573
|
+
model = RemoveInstancesResponse.new
|
3574
|
+
model.deserialize(response['Response'])
|
3575
|
+
model
|
3576
|
+
else
|
3577
|
+
code = response['Response']['Error']['Code']
|
3578
|
+
message = response['Response']['Error']['Message']
|
3579
|
+
reqid = response['Response']['RequestId']
|
3580
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3581
|
+
end
|
3582
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3583
|
+
raise e
|
3584
|
+
rescue StandardError => e
|
3585
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3586
|
+
end
|
3587
|
+
|
3588
|
+
# 撤回已发布的配置
|
3589
|
+
|
3590
|
+
# @param request: Request instance for RevocationConfig.
|
3591
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::RevocationConfigRequest`
|
3592
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::RevocationConfigResponse`
|
3593
|
+
def RevocationConfig(request)
|
3594
|
+
body = send_request('RevocationConfig', request.serialize)
|
3595
|
+
response = JSON.parse(body)
|
3596
|
+
if response['Response'].key?('Error') == false
|
3597
|
+
model = RevocationConfigResponse.new
|
3598
|
+
model.deserialize(response['Response'])
|
3599
|
+
model
|
3600
|
+
else
|
3601
|
+
code = response['Response']['Error']['Code']
|
3602
|
+
message = response['Response']['Error']['Message']
|
3603
|
+
reqid = response['Response']['RequestId']
|
3604
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3605
|
+
end
|
3606
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3607
|
+
raise e
|
3608
|
+
rescue StandardError => e
|
3609
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3610
|
+
end
|
3611
|
+
|
3612
|
+
# 撤回已发布的公共配置
|
3613
|
+
|
3614
|
+
# @param request: Request instance for RevocationPublicConfig.
|
3615
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::RevocationPublicConfigRequest`
|
3616
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::RevocationPublicConfigResponse`
|
3617
|
+
def RevocationPublicConfig(request)
|
3618
|
+
body = send_request('RevocationPublicConfig', request.serialize)
|
3619
|
+
response = JSON.parse(body)
|
3620
|
+
if response['Response'].key?('Error') == false
|
3621
|
+
model = RevocationPublicConfigResponse.new
|
3622
|
+
model.deserialize(response['Response'])
|
3623
|
+
model
|
3624
|
+
else
|
3625
|
+
code = response['Response']['Error']['Code']
|
3626
|
+
message = response['Response']['Error']['Message']
|
3627
|
+
reqid = response['Response']['RequestId']
|
3628
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3629
|
+
end
|
3630
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3631
|
+
raise e
|
3632
|
+
rescue StandardError => e
|
3633
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3634
|
+
end
|
3635
|
+
|
3636
|
+
# 回滚配置
|
3637
|
+
|
3638
|
+
# @param request: Request instance for RollbackConfig.
|
3639
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::RollbackConfigRequest`
|
3640
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::RollbackConfigResponse`
|
3641
|
+
def RollbackConfig(request)
|
3642
|
+
body = send_request('RollbackConfig', request.serialize)
|
3643
|
+
response = JSON.parse(body)
|
3644
|
+
if response['Response'].key?('Error') == false
|
3645
|
+
model = RollbackConfigResponse.new
|
3646
|
+
model.deserialize(response['Response'])
|
3647
|
+
model
|
3648
|
+
else
|
3649
|
+
code = response['Response']['Error']['Code']
|
3650
|
+
message = response['Response']['Error']['Message']
|
3651
|
+
reqid = response['Response']['RequestId']
|
3652
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3653
|
+
end
|
3654
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3655
|
+
raise e
|
3656
|
+
rescue StandardError => e
|
3657
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3658
|
+
end
|
3659
|
+
|
3660
|
+
# 业务日志搜索
|
3661
|
+
|
3662
|
+
# @param request: Request instance for SearchBusinessLog.
|
3663
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::SearchBusinessLogRequest`
|
3664
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::SearchBusinessLogResponse`
|
3665
|
+
def SearchBusinessLog(request)
|
3666
|
+
body = send_request('SearchBusinessLog', request.serialize)
|
3667
|
+
response = JSON.parse(body)
|
3668
|
+
if response['Response'].key?('Error') == false
|
3669
|
+
model = SearchBusinessLogResponse.new
|
3670
|
+
model.deserialize(response['Response'])
|
3671
|
+
model
|
3672
|
+
else
|
3673
|
+
code = response['Response']['Error']['Code']
|
3674
|
+
message = response['Response']['Error']['Message']
|
3675
|
+
reqid = response['Response']['RequestId']
|
3676
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3677
|
+
end
|
3678
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3679
|
+
raise e
|
3680
|
+
rescue StandardError => e
|
3681
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3682
|
+
end
|
3683
|
+
|
3684
|
+
# 标准输出日志搜索
|
3685
|
+
|
3686
|
+
# @param request: Request instance for SearchStdoutLog.
|
3687
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::SearchStdoutLogRequest`
|
3688
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::SearchStdoutLogResponse`
|
3689
|
+
def SearchStdoutLog(request)
|
3690
|
+
body = send_request('SearchStdoutLog', request.serialize)
|
3691
|
+
response = JSON.parse(body)
|
3692
|
+
if response['Response'].key?('Error') == false
|
3693
|
+
model = SearchStdoutLogResponse.new
|
3694
|
+
model.deserialize(response['Response'])
|
3695
|
+
model
|
3696
|
+
else
|
3697
|
+
code = response['Response']['Error']['Code']
|
3698
|
+
message = response['Response']['Error']['Message']
|
3699
|
+
reqid = response['Response']['RequestId']
|
3700
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3701
|
+
end
|
3702
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3703
|
+
raise e
|
3704
|
+
rescue StandardError => e
|
3705
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3706
|
+
end
|
3707
|
+
|
3708
|
+
# 下线部署组所有机器实例
|
3709
|
+
|
3710
|
+
# @param request: Request instance for ShrinkGroup.
|
3711
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::ShrinkGroupRequest`
|
3712
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::ShrinkGroupResponse`
|
3713
|
+
def ShrinkGroup(request)
|
3714
|
+
body = send_request('ShrinkGroup', request.serialize)
|
3715
|
+
response = JSON.parse(body)
|
3716
|
+
if response['Response'].key?('Error') == false
|
3717
|
+
model = ShrinkGroupResponse.new
|
3718
|
+
model.deserialize(response['Response'])
|
3719
|
+
model
|
3720
|
+
else
|
3721
|
+
code = response['Response']['Error']['Code']
|
3722
|
+
message = response['Response']['Error']['Message']
|
3723
|
+
reqid = response['Response']['RequestId']
|
3724
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3725
|
+
end
|
3726
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3727
|
+
raise e
|
3728
|
+
rescue StandardError => e
|
3729
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3730
|
+
end
|
3731
|
+
|
3732
|
+
# 虚拟机部署组下线实例
|
3733
|
+
|
3734
|
+
# @param request: Request instance for ShrinkInstances.
|
3735
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::ShrinkInstancesRequest`
|
3736
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::ShrinkInstancesResponse`
|
3737
|
+
def ShrinkInstances(request)
|
3738
|
+
body = send_request('ShrinkInstances', request.serialize)
|
3739
|
+
response = JSON.parse(body)
|
3740
|
+
if response['Response'].key?('Error') == false
|
3741
|
+
model = ShrinkInstancesResponse.new
|
3742
|
+
model.deserialize(response['Response'])
|
3743
|
+
model
|
3744
|
+
else
|
3745
|
+
code = response['Response']['Error']['Code']
|
3746
|
+
message = response['Response']['Error']['Message']
|
3747
|
+
reqid = response['Response']['RequestId']
|
3748
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3749
|
+
end
|
3750
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3751
|
+
raise e
|
3752
|
+
rescue StandardError => e
|
3753
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3754
|
+
end
|
3755
|
+
|
3756
|
+
# 启动容器部署组
|
3757
|
+
|
3758
|
+
# @param request: Request instance for StartContainerGroup.
|
3759
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::StartContainerGroupRequest`
|
3760
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::StartContainerGroupResponse`
|
3761
|
+
def StartContainerGroup(request)
|
3762
|
+
body = send_request('StartContainerGroup', request.serialize)
|
3763
|
+
response = JSON.parse(body)
|
3764
|
+
if response['Response'].key?('Error') == false
|
3765
|
+
model = StartContainerGroupResponse.new
|
3766
|
+
model.deserialize(response['Response'])
|
3767
|
+
model
|
3768
|
+
else
|
3769
|
+
code = response['Response']['Error']['Code']
|
3770
|
+
message = response['Response']['Error']['Message']
|
3771
|
+
reqid = response['Response']['RequestId']
|
3772
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3773
|
+
end
|
3774
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3775
|
+
raise e
|
3776
|
+
rescue StandardError => e
|
3777
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3778
|
+
end
|
3779
|
+
|
3780
|
+
# 启动分组
|
3781
|
+
|
3782
|
+
# @param request: Request instance for StartGroup.
|
3783
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::StartGroupRequest`
|
3784
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::StartGroupResponse`
|
3785
|
+
def StartGroup(request)
|
3786
|
+
body = send_request('StartGroup', request.serialize)
|
3787
|
+
response = JSON.parse(body)
|
3788
|
+
if response['Response'].key?('Error') == false
|
3789
|
+
model = StartGroupResponse.new
|
3790
|
+
model.deserialize(response['Response'])
|
3791
|
+
model
|
3792
|
+
else
|
3793
|
+
code = response['Response']['Error']['Code']
|
3794
|
+
message = response['Response']['Error']['Message']
|
3795
|
+
reqid = response['Response']['RequestId']
|
3796
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3797
|
+
end
|
3798
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3799
|
+
raise e
|
3800
|
+
rescue StandardError => e
|
3801
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3802
|
+
end
|
3803
|
+
|
3804
|
+
# 停止容器部署组
|
3805
|
+
|
3806
|
+
# @param request: Request instance for StopContainerGroup.
|
3807
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::StopContainerGroupRequest`
|
3808
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::StopContainerGroupResponse`
|
3809
|
+
def StopContainerGroup(request)
|
3810
|
+
body = send_request('StopContainerGroup', request.serialize)
|
3811
|
+
response = JSON.parse(body)
|
3812
|
+
if response['Response'].key?('Error') == false
|
3813
|
+
model = StopContainerGroupResponse.new
|
3814
|
+
model.deserialize(response['Response'])
|
3815
|
+
model
|
3816
|
+
else
|
3817
|
+
code = response['Response']['Error']['Code']
|
3818
|
+
message = response['Response']['Error']['Message']
|
3819
|
+
reqid = response['Response']['RequestId']
|
3820
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3821
|
+
end
|
3822
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3823
|
+
raise e
|
3824
|
+
rescue StandardError => e
|
3825
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3826
|
+
end
|
3827
|
+
|
3828
|
+
# 停止虚拟机部署组
|
3829
|
+
|
3830
|
+
# @param request: Request instance for StopGroup.
|
3831
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::StopGroupRequest`
|
3832
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::StopGroupResponse`
|
3833
|
+
def StopGroup(request)
|
3834
|
+
body = send_request('StopGroup', request.serialize)
|
3835
|
+
response = JSON.parse(body)
|
3836
|
+
if response['Response'].key?('Error') == false
|
3837
|
+
model = StopGroupResponse.new
|
3838
|
+
model.deserialize(response['Response'])
|
3839
|
+
model
|
3840
|
+
else
|
3841
|
+
code = response['Response']['Error']['Code']
|
3842
|
+
message = response['Response']['Error']['Message']
|
3843
|
+
reqid = response['Response']['RequestId']
|
3844
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3845
|
+
end
|
3846
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3847
|
+
raise e
|
3848
|
+
rescue StandardError => e
|
3849
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3850
|
+
end
|
3851
|
+
|
3852
|
+
# 停止执行中的任务批次, 非运行中的任务不可调用。
|
3853
|
+
|
3854
|
+
# @param request: Request instance for StopTaskBatch.
|
3855
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::StopTaskBatchRequest`
|
3856
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::StopTaskBatchResponse`
|
3857
|
+
def StopTaskBatch(request)
|
3858
|
+
body = send_request('StopTaskBatch', request.serialize)
|
3859
|
+
response = JSON.parse(body)
|
3860
|
+
if response['Response'].key?('Error') == false
|
3861
|
+
model = StopTaskBatchResponse.new
|
3862
|
+
model.deserialize(response['Response'])
|
3863
|
+
model
|
3864
|
+
else
|
3865
|
+
code = response['Response']['Error']['Code']
|
3866
|
+
message = response['Response']['Error']['Message']
|
3867
|
+
reqid = response['Response']['RequestId']
|
3868
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3869
|
+
end
|
3870
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3871
|
+
raise e
|
3872
|
+
rescue StandardError => e
|
3873
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3874
|
+
end
|
3875
|
+
|
3876
|
+
# 停止正在某个节点上执行的任务
|
3877
|
+
|
3878
|
+
# @param request: Request instance for StopTaskExecute.
|
3879
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::StopTaskExecuteRequest`
|
3880
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::StopTaskExecuteResponse`
|
3881
|
+
def StopTaskExecute(request)
|
3882
|
+
body = send_request('StopTaskExecute', request.serialize)
|
3883
|
+
response = JSON.parse(body)
|
3884
|
+
if response['Response'].key?('Error') == false
|
3885
|
+
model = StopTaskExecuteResponse.new
|
3886
|
+
model.deserialize(response['Response'])
|
3887
|
+
model
|
3888
|
+
else
|
3889
|
+
code = response['Response']['Error']['Code']
|
3890
|
+
message = response['Response']['Error']['Message']
|
3891
|
+
reqid = response['Response']['RequestId']
|
3892
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3893
|
+
end
|
3894
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3895
|
+
raise e
|
3896
|
+
rescue StandardError => e
|
3897
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3898
|
+
end
|
3899
|
+
|
3900
|
+
# 停止一个工作流批次
|
3901
|
+
|
3902
|
+
# @param request: Request instance for TerminateTaskFlowBatch.
|
3903
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::TerminateTaskFlowBatchRequest`
|
3904
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::TerminateTaskFlowBatchResponse`
|
3905
|
+
def TerminateTaskFlowBatch(request)
|
3906
|
+
body = send_request('TerminateTaskFlowBatch', request.serialize)
|
3907
|
+
response = JSON.parse(body)
|
3908
|
+
if response['Response'].key?('Error') == false
|
3909
|
+
model = TerminateTaskFlowBatchResponse.new
|
3910
|
+
model.deserialize(response['Response'])
|
3911
|
+
model
|
3912
|
+
else
|
3913
|
+
code = response['Response']['Error']['Code']
|
3914
|
+
message = response['Response']['Error']['Message']
|
3915
|
+
reqid = response['Response']['RequestId']
|
3916
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3917
|
+
end
|
3918
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3919
|
+
raise e
|
3920
|
+
rescue StandardError => e
|
3921
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3922
|
+
end
|
3923
|
+
|
3924
|
+
# API分组批量与网关解绑
|
3925
|
+
|
3926
|
+
# @param request: Request instance for UnbindApiGroup.
|
3927
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::UnbindApiGroupRequest`
|
3928
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::UnbindApiGroupResponse`
|
3929
|
+
def UnbindApiGroup(request)
|
3930
|
+
body = send_request('UnbindApiGroup', request.serialize)
|
3931
|
+
response = JSON.parse(body)
|
3932
|
+
if response['Response'].key?('Error') == false
|
3933
|
+
model = UnbindApiGroupResponse.new
|
3934
|
+
model.deserialize(response['Response'])
|
3935
|
+
model
|
3936
|
+
else
|
3937
|
+
code = response['Response']['Error']['Code']
|
3938
|
+
message = response['Response']['Error']['Message']
|
3939
|
+
reqid = response['Response']['RequestId']
|
3940
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3941
|
+
end
|
3942
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3943
|
+
raise e
|
3944
|
+
rescue StandardError => e
|
3945
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3946
|
+
end
|
3947
|
+
|
3948
|
+
# 更新Api分组
|
3949
|
+
|
3950
|
+
# @param request: Request instance for UpdateApiGroup.
|
3951
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::UpdateApiGroupRequest`
|
3952
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::UpdateApiGroupResponse`
|
3953
|
+
def UpdateApiGroup(request)
|
3954
|
+
body = send_request('UpdateApiGroup', request.serialize)
|
3955
|
+
response = JSON.parse(body)
|
3956
|
+
if response['Response'].key?('Error') == false
|
3957
|
+
model = UpdateApiGroupResponse.new
|
3958
|
+
model.deserialize(response['Response'])
|
3959
|
+
model
|
3960
|
+
else
|
3961
|
+
code = response['Response']['Error']['Code']
|
3962
|
+
message = response['Response']['Error']['Message']
|
3963
|
+
reqid = response['Response']['RequestId']
|
3964
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3965
|
+
end
|
3966
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3967
|
+
raise e
|
3968
|
+
rescue StandardError => e
|
3969
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3970
|
+
end
|
3971
|
+
|
3972
|
+
# 更新API限流规则
|
3973
|
+
|
3974
|
+
# @param request: Request instance for UpdateApiRateLimitRule.
|
3975
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::UpdateApiRateLimitRuleRequest`
|
3976
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::UpdateApiRateLimitRuleResponse`
|
3977
|
+
def UpdateApiRateLimitRule(request)
|
3978
|
+
body = send_request('UpdateApiRateLimitRule', request.serialize)
|
3979
|
+
response = JSON.parse(body)
|
3980
|
+
if response['Response'].key?('Error') == false
|
3981
|
+
model = UpdateApiRateLimitRuleResponse.new
|
3982
|
+
model.deserialize(response['Response'])
|
3983
|
+
model
|
3984
|
+
else
|
3985
|
+
code = response['Response']['Error']['Code']
|
3986
|
+
message = response['Response']['Error']['Message']
|
3987
|
+
reqid = response['Response']['RequestId']
|
3988
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3989
|
+
end
|
3990
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3991
|
+
raise e
|
3992
|
+
rescue StandardError => e
|
3993
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3994
|
+
end
|
3995
|
+
|
3996
|
+
# 批量更新API限流规则
|
3997
|
+
|
3998
|
+
# @param request: Request instance for UpdateApiRateLimitRules.
|
3999
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::UpdateApiRateLimitRulesRequest`
|
4000
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::UpdateApiRateLimitRulesResponse`
|
4001
|
+
def UpdateApiRateLimitRules(request)
|
4002
|
+
body = send_request('UpdateApiRateLimitRules', request.serialize)
|
4003
|
+
response = JSON.parse(body)
|
4004
|
+
if response['Response'].key?('Error') == false
|
4005
|
+
model = UpdateApiRateLimitRulesResponse.new
|
4006
|
+
model.deserialize(response['Response'])
|
4007
|
+
model
|
4008
|
+
else
|
4009
|
+
code = response['Response']['Error']['Code']
|
4010
|
+
message = response['Response']['Error']['Message']
|
4011
|
+
reqid = response['Response']['RequestId']
|
4012
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4013
|
+
end
|
4014
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4015
|
+
raise e
|
4016
|
+
rescue StandardError => e
|
4017
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4018
|
+
end
|
4019
|
+
|
4020
|
+
# 批量更新API超时
|
4021
|
+
|
4022
|
+
# @param request: Request instance for UpdateApiTimeouts.
|
4023
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::UpdateApiTimeoutsRequest`
|
4024
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::UpdateApiTimeoutsResponse`
|
4025
|
+
def UpdateApiTimeouts(request)
|
4026
|
+
body = send_request('UpdateApiTimeouts', request.serialize)
|
4027
|
+
response = JSON.parse(body)
|
4028
|
+
if response['Response'].key?('Error') == false
|
4029
|
+
model = UpdateApiTimeoutsResponse.new
|
4030
|
+
model.deserialize(response['Response'])
|
4031
|
+
model
|
4032
|
+
else
|
4033
|
+
code = response['Response']['Error']['Code']
|
4034
|
+
message = response['Response']['Error']['Message']
|
4035
|
+
reqid = response['Response']['RequestId']
|
4036
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4037
|
+
end
|
4038
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4039
|
+
raise e
|
4040
|
+
rescue StandardError => e
|
4041
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4042
|
+
end
|
4043
|
+
|
4044
|
+
# 更新API
|
4045
|
+
|
4046
|
+
# @param request: Request instance for UpdateGatewayApi.
|
4047
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::UpdateGatewayApiRequest`
|
4048
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::UpdateGatewayApiResponse`
|
4049
|
+
def UpdateGatewayApi(request)
|
4050
|
+
body = send_request('UpdateGatewayApi', request.serialize)
|
4051
|
+
response = JSON.parse(body)
|
4052
|
+
if response['Response'].key?('Error') == false
|
4053
|
+
model = UpdateGatewayApiResponse.new
|
4054
|
+
model.deserialize(response['Response'])
|
4055
|
+
model
|
4056
|
+
else
|
4057
|
+
code = response['Response']['Error']['Code']
|
4058
|
+
message = response['Response']['Error']['Message']
|
4059
|
+
reqid = response['Response']['RequestId']
|
4060
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4061
|
+
end
|
4062
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4063
|
+
raise e
|
4064
|
+
rescue StandardError => e
|
4065
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4066
|
+
end
|
4067
|
+
|
4068
|
+
# 更新健康检查配置
|
4069
|
+
|
4070
|
+
# @param request: Request instance for UpdateHealthCheckSettings.
|
4071
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::UpdateHealthCheckSettingsRequest`
|
4072
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::UpdateHealthCheckSettingsResponse`
|
4073
|
+
def UpdateHealthCheckSettings(request)
|
4074
|
+
body = send_request('UpdateHealthCheckSettings', request.serialize)
|
4075
|
+
response = JSON.parse(body)
|
4076
|
+
if response['Response'].key?('Error') == false
|
4077
|
+
model = UpdateHealthCheckSettingsResponse.new
|
4078
|
+
model.deserialize(response['Response'])
|
4079
|
+
model
|
4080
|
+
else
|
4081
|
+
code = response['Response']['Error']['Code']
|
4082
|
+
message = response['Response']['Error']['Message']
|
4083
|
+
reqid = response['Response']['RequestId']
|
4084
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4085
|
+
end
|
4086
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4087
|
+
raise e
|
4088
|
+
rescue StandardError => e
|
4089
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4090
|
+
end
|
4091
|
+
|
4092
|
+
# 更新仓库信息
|
4093
|
+
|
4094
|
+
# @param request: Request instance for UpdateRepository.
|
4095
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::UpdateRepositoryRequest`
|
4096
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::UpdateRepositoryResponse`
|
4097
|
+
def UpdateRepository(request)
|
4098
|
+
body = send_request('UpdateRepository', request.serialize)
|
4099
|
+
response = JSON.parse(body)
|
4100
|
+
if response['Response'].key?('Error') == false
|
4101
|
+
model = UpdateRepositoryResponse.new
|
4102
|
+
model.deserialize(response['Response'])
|
4103
|
+
model
|
4104
|
+
else
|
4105
|
+
code = response['Response']['Error']['Code']
|
4106
|
+
message = response['Response']['Error']['Message']
|
4107
|
+
reqid = response['Response']['RequestId']
|
4108
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4109
|
+
end
|
4110
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4111
|
+
raise e
|
4112
|
+
rescue StandardError => e
|
4113
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4114
|
+
end
|
4115
|
+
|
4116
|
+
# 更新单元化规则
|
4117
|
+
|
4118
|
+
# @param request: Request instance for UpdateUnitRule.
|
4119
|
+
# @type request: :class:`Tencentcloud::tsf::V20180326::UpdateUnitRuleRequest`
|
4120
|
+
# @rtype: :class:`Tencentcloud::tsf::V20180326::UpdateUnitRuleResponse`
|
4121
|
+
def UpdateUnitRule(request)
|
4122
|
+
body = send_request('UpdateUnitRule', request.serialize)
|
4123
|
+
response = JSON.parse(body)
|
4124
|
+
if response['Response'].key?('Error') == false
|
4125
|
+
model = UpdateUnitRuleResponse.new
|
4126
|
+
model.deserialize(response['Response'])
|
4127
|
+
model
|
4128
|
+
else
|
4129
|
+
code = response['Response']['Error']['Code']
|
4130
|
+
message = response['Response']['Error']['Message']
|
4131
|
+
reqid = response['Response']['RequestId']
|
4132
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4133
|
+
end
|
4134
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4135
|
+
raise e
|
4136
|
+
rescue StandardError => e
|
4137
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4138
|
+
end
|
4139
|
+
|
4140
|
+
|
4141
|
+
end
|
4142
|
+
end
|
4143
|
+
end
|
4144
|
+
end
|