Class: TencentCloud::Clb::V20180317::Client

Inherits:
TencentCloud::Common::AbstractClient
  • Object
show all
Defined in:
lib/v20180317/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(credential, region, profile = nil) ⇒ Client

Returns a new instance of Client.



24
25
26
27
28
29
# File 'lib/v20180317/client.rb', line 24

def initialize(credential, region, profile = nil)
    api_version = '2018-03-17'
    api_endpoint = 'clb.tencentcloudapi.com'
    sdk_version = 'CLB_' + File.read(File.expand_path('../VERSION', __dir__)).strip
    super(credential, region, api_version, api_endpoint, sdk_version, profile)
end

Instance Method Details

#AssociateTargetGroups(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::AssociateTargetGroupsResponse`

Parameters:

  • request:

    Request instance for AssociateTargetGroups.



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/v20180317/client.rb', line 42

def AssociateTargetGroups(request)
  body = send_request('AssociateTargetGroups', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = AssociateTargetGroupsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#AutoRewrite(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::AutoRewriteResponse`

Parameters:

  • request:

    Request instance for AutoRewrite.



67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/v20180317/client.rb', line 67

def AutoRewrite(request)
  body = send_request('AutoRewrite', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = AutoRewriteResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#BatchDeregisterTargets(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::BatchDeregisterTargetsResponse`

Parameters:

  • request:

    Request instance for BatchDeregisterTargets.



91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# File 'lib/v20180317/client.rb', line 91

def BatchDeregisterTargets(request)
  body = send_request('BatchDeregisterTargets', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = BatchDeregisterTargetsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#BatchModifyTargetTag(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::BatchModifyTargetTagResponse`

Parameters:

  • request:

    Request instance for BatchModifyTargetTag.



115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'lib/v20180317/client.rb', line 115

def BatchModifyTargetTag(request)
  body = send_request('BatchModifyTargetTag', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = BatchModifyTargetTagResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#BatchModifyTargetWeight(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::BatchModifyTargetWeightResponse`

Parameters:

  • request:

    Request instance for BatchModifyTargetWeight.



139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'lib/v20180317/client.rb', line 139

def BatchModifyTargetWeight(request)
  body = send_request('BatchModifyTargetWeight', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = BatchModifyTargetWeightResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#BatchRegisterTargets(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::BatchRegisterTargetsResponse`

Parameters:

  • request:

    Request instance for BatchRegisterTargets.



163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# File 'lib/v20180317/client.rb', line 163

def BatchRegisterTargets(request)
  body = send_request('BatchRegisterTargets', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = BatchRegisterTargetsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CloneLoadBalancer(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::CloneLoadBalancerResponse`

Parameters:

  • request:

    Request instance for CloneLoadBalancer.



207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
# File 'lib/v20180317/client.rb', line 207

def CloneLoadBalancer(request)
  body = send_request('CloneLoadBalancer', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CloneLoadBalancerResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateClsLogSet(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::CreateClsLogSetResponse`

Parameters:

  • request:

    Request instance for CreateClsLogSet.



231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
# File 'lib/v20180317/client.rb', line 231

def CreateClsLogSet(request)
  body = send_request('CreateClsLogSet', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateClsLogSetResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateListener(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::CreateListenerResponse`

Parameters:

  • request:

    Request instance for CreateListener.



256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
# File 'lib/v20180317/client.rb', line 256

def CreateListener(request)
  body = send_request('CreateListener', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateListenerResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateLoadBalancer(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::CreateLoadBalancerResponse`

Parameters:

  • request:

    Request instance for CreateLoadBalancer.



282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
# File 'lib/v20180317/client.rb', line 282

def CreateLoadBalancer(request)
  body = send_request('CreateLoadBalancer', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateLoadBalancerResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateLoadBalancerSnatIps(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::CreateLoadBalancerSnatIpsResponse`

Parameters:

  • request:

    Request instance for CreateLoadBalancerSnatIps.



307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
# File 'lib/v20180317/client.rb', line 307

def CreateLoadBalancerSnatIps(request)
  body = send_request('CreateLoadBalancerSnatIps', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateLoadBalancerSnatIpsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateRule(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::CreateRuleResponse`

Parameters:

  • request:

    Request instance for CreateRule.



332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
# File 'lib/v20180317/client.rb', line 332

def CreateRule(request)
  body = send_request('CreateRule', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateRuleResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateTargetGroup(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::CreateTargetGroupResponse`

Parameters:

  • request:

    Request instance for CreateTargetGroup.



356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
# File 'lib/v20180317/client.rb', line 356

def CreateTargetGroup(request)
  body = send_request('CreateTargetGroup', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateTargetGroupResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateTopic(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::CreateTopicResponse`

Parameters:

  • request:

    Request instance for CreateTopic.



380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
# File 'lib/v20180317/client.rb', line 380

def CreateTopic(request)
  body = send_request('CreateTopic', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateTopicResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DeleteListener(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteListenerResponse`

Parameters:

  • request:

    Request instance for DeleteListener.



405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
# File 'lib/v20180317/client.rb', line 405

def DeleteListener(request)
  body = send_request('DeleteListener', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteListenerResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DeleteLoadBalancer(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteLoadBalancerResponse`

Parameters:

  • request:

    Request instance for DeleteLoadBalancer.



430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
# File 'lib/v20180317/client.rb', line 430

def DeleteLoadBalancer(request)
  body = send_request('DeleteLoadBalancer', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteLoadBalancerResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DeleteLoadBalancerListeners(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteLoadBalancerListenersResponse`

Parameters:

  • request:

    Request instance for DeleteLoadBalancerListeners.



455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
# File 'lib/v20180317/client.rb', line 455

def DeleteLoadBalancerListeners(request)
  body = send_request('DeleteLoadBalancerListeners', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteLoadBalancerListenersResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DeleteLoadBalancerSnatIps(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteLoadBalancerSnatIpsResponse`

Parameters:

  • request:

    Request instance for DeleteLoadBalancerSnatIps.



480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
# File 'lib/v20180317/client.rb', line 480

def DeleteLoadBalancerSnatIps(request)
  body = send_request('DeleteLoadBalancerSnatIps', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteLoadBalancerSnatIpsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DeleteRewrite(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteRewriteResponse`

Parameters:

  • request:

    Request instance for DeleteRewrite.



505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
# File 'lib/v20180317/client.rb', line 505

def DeleteRewrite(request)
  body = send_request('DeleteRewrite', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteRewriteResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DeleteRule(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteRuleResponse`

Parameters:

  • request:

    Request instance for DeleteRule.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
# File 'lib/v20180317/client.rb', line 530

def DeleteRule(request)
  body = send_request('DeleteRule', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteRuleResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DeleteTargetGroups(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DeleteTargetGroupsResponse`

Parameters:

  • request:

    Request instance for DeleteTargetGroups.



554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
# File 'lib/v20180317/client.rb', line 554

def DeleteTargetGroups(request)
  body = send_request('DeleteTargetGroups', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteTargetGroupsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DeregisterFunctionTargets(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DeregisterFunctionTargetsResponse`

Parameters:

  • request:

    Request instance for DeregisterFunctionTargets.



589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
# File 'lib/v20180317/client.rb', line 589

def DeregisterFunctionTargets(request)
  body = send_request('DeregisterFunctionTargets', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeregisterFunctionTargetsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DeregisterTargetGroupInstances(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DeregisterTargetGroupInstancesResponse`

Parameters:

  • request:

    Request instance for DeregisterTargetGroupInstances.



614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
# File 'lib/v20180317/client.rb', line 614

def DeregisterTargetGroupInstances(request)
  body = send_request('DeregisterTargetGroupInstances', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeregisterTargetGroupInstancesResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DeregisterTargets(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DeregisterTargetsResponse`

Parameters:

  • request:

    Request instance for DeregisterTargets.



639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
# File 'lib/v20180317/client.rb', line 639

def DeregisterTargets(request)
  body = send_request('DeregisterTargets', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeregisterTargetsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DeregisterTargetsFromClassicalLB(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DeregisterTargetsFromClassicalLBResponse`

Parameters:

  • request:

    Request instance for DeregisterTargetsFromClassicalLB.



663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
# File 'lib/v20180317/client.rb', line 663

def DeregisterTargetsFromClassicalLB(request)
  body = send_request('DeregisterTargetsFromClassicalLB', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeregisterTargetsFromClassicalLBResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeBlockIPList(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeBlockIPListResponse`

Parameters:

  • request:

    Request instance for DescribeBlockIPList.



687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
# File 'lib/v20180317/client.rb', line 687

def DescribeBlockIPList(request)
  body = send_request('DescribeBlockIPList', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeBlockIPListResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeBlockIPTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeBlockIPTaskResponse`

Parameters:

  • request:

    Request instance for DescribeBlockIPTask.



711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
# File 'lib/v20180317/client.rb', line 711

def DescribeBlockIPTask(request)
  body = send_request('DescribeBlockIPTask', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeBlockIPTaskResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeClassicalLBByInstanceId(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeClassicalLBByInstanceIdResponse`

Parameters:

  • request:

    Request instance for DescribeClassicalLBByInstanceId.



735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
# File 'lib/v20180317/client.rb', line 735

def DescribeClassicalLBByInstanceId(request)
  body = send_request('DescribeClassicalLBByInstanceId', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeClassicalLBByInstanceIdResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeClassicalLBHealthStatus(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeClassicalLBHealthStatusResponse`

Parameters:

  • request:

    Request instance for DescribeClassicalLBHealthStatus.



759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
# File 'lib/v20180317/client.rb', line 759

def DescribeClassicalLBHealthStatus(request)
  body = send_request('DescribeClassicalLBHealthStatus', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeClassicalLBHealthStatusResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeClassicalLBListeners(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeClassicalLBListenersResponse`

Parameters:

  • request:

    Request instance for DescribeClassicalLBListeners.



783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
# File 'lib/v20180317/client.rb', line 783

def DescribeClassicalLBListeners(request)
  body = send_request('DescribeClassicalLBListeners', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeClassicalLBListenersResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeClassicalLBTargets(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeClassicalLBTargetsResponse`

Parameters:

  • request:

    Request instance for DescribeClassicalLBTargets.



807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
# File 'lib/v20180317/client.rb', line 807

def DescribeClassicalLBTargets(request)
  body = send_request('DescribeClassicalLBTargets', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeClassicalLBTargetsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeClsLogSet(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeClsLogSetResponse`

Parameters:

  • request:

    Request instance for DescribeClsLogSet.



831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
# File 'lib/v20180317/client.rb', line 831

def DescribeClsLogSet(request)
  body = send_request('DescribeClsLogSet', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeClsLogSetResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeClusterResources(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeClusterResourcesResponse`

Parameters:

  • request:

    Request instance for DescribeClusterResources.



855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
# File 'lib/v20180317/client.rb', line 855

def DescribeClusterResources(request)
  body = send_request('DescribeClusterResources', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeClusterResourcesResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeCrossTargets(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeCrossTargetsResponse`

Parameters:

  • request:

    Request instance for DescribeCrossTargets.



879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
# File 'lib/v20180317/client.rb', line 879

def DescribeCrossTargets(request)
  body = send_request('DescribeCrossTargets', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeCrossTargetsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeCustomizedConfigAssociateList(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeCustomizedConfigAssociateListResponse`

Parameters:

  • request:

    Request instance for DescribeCustomizedConfigAssociateList.



903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
# File 'lib/v20180317/client.rb', line 903

def DescribeCustomizedConfigAssociateList(request)
  body = send_request('DescribeCustomizedConfigAssociateList', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeCustomizedConfigAssociateListResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeCustomizedConfigList(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeCustomizedConfigListResponse`

Parameters:

  • request:

    Request instance for DescribeCustomizedConfigList.



927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
# File 'lib/v20180317/client.rb', line 927

def DescribeCustomizedConfigList(request)
  body = send_request('DescribeCustomizedConfigList', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeCustomizedConfigListResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeExclusiveClusters(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeExclusiveClustersResponse`

Parameters:

  • request:

    Request instance for DescribeExclusiveClusters.



951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
# File 'lib/v20180317/client.rb', line 951

def DescribeExclusiveClusters(request)
  body = send_request('DescribeExclusiveClusters', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeExclusiveClustersResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeIdleLoadBalancers(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeIdleLoadBalancersResponse`

Parameters:

  • request:

    Request instance for DescribeIdleLoadBalancers.



975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
# File 'lib/v20180317/client.rb', line 975

def DescribeIdleLoadBalancers(request)
  body = send_request('DescribeIdleLoadBalancers', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeIdleLoadBalancersResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeLBListeners(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLBListenersResponse`

Parameters:

  • request:

    Request instance for DescribeLBListeners.



999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
# File 'lib/v20180317/client.rb', line 999

def DescribeLBListeners(request)
  body = send_request('DescribeLBListeners', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeLBListenersResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeLBOperateProtect(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLBOperateProtectResponse`

Parameters:

  • request:

    Request instance for DescribeLBOperateProtect.



1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
# File 'lib/v20180317/client.rb', line 1023

def DescribeLBOperateProtect(request)
  body = send_request('DescribeLBOperateProtect', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeLBOperateProtectResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeListeners(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeListenersResponse`

Parameters:

  • request:

    Request instance for DescribeListeners.



1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
# File 'lib/v20180317/client.rb', line 1047

def DescribeListeners(request)
  body = send_request('DescribeListeners', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeListenersResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeLoadBalancerListByCertId(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLoadBalancerListByCertIdResponse`

Parameters:

  • request:

    Request instance for DescribeLoadBalancerListByCertId.



1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
# File 'lib/v20180317/client.rb', line 1071

def DescribeLoadBalancerListByCertId(request)
  body = send_request('DescribeLoadBalancerListByCertId', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeLoadBalancerListByCertIdResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeLoadBalancerOverview(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLoadBalancerOverviewResponse`

Parameters:

  • request:

    Request instance for DescribeLoadBalancerOverview.



1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
# File 'lib/v20180317/client.rb', line 1095

def DescribeLoadBalancerOverview(request)
  body = send_request('DescribeLoadBalancerOverview', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeLoadBalancerOverviewResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeLoadBalancers(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLoadBalancersResponse`

Parameters:

  • request:

    Request instance for DescribeLoadBalancers.



1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
# File 'lib/v20180317/client.rb', line 1143

def DescribeLoadBalancers(request)
  body = send_request('DescribeLoadBalancers', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeLoadBalancersResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeLoadBalancersDetail(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLoadBalancersDetailResponse`

Parameters:

  • request:

    Request instance for DescribeLoadBalancersDetail.



1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
# File 'lib/v20180317/client.rb', line 1167

def DescribeLoadBalancersDetail(request)
  body = send_request('DescribeLoadBalancersDetail', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeLoadBalancersDetailResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeLoadBalancerTraffic(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeLoadBalancerTrafficResponse`

Parameters:

  • request:

    Request instance for DescribeLoadBalancerTraffic.



1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
# File 'lib/v20180317/client.rb', line 1119

def DescribeLoadBalancerTraffic(request)
  body = send_request('DescribeLoadBalancerTraffic', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeLoadBalancerTrafficResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeQuota(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeQuotaResponse`

Parameters:

  • request:

    Request instance for DescribeQuota.



1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
# File 'lib/v20180317/client.rb', line 1191

def DescribeQuota(request)
  body = send_request('DescribeQuota', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeQuotaResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeResources(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeResourcesResponse`

Parameters:

  • request:

    Request instance for DescribeResources.



1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
# File 'lib/v20180317/client.rb', line 1215

def DescribeResources(request)
  body = send_request('DescribeResources', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeResourcesResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeRewrite(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeRewriteResponse`

Parameters:

  • request:

    Request instance for DescribeRewrite.



1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
# File 'lib/v20180317/client.rb', line 1239

def DescribeRewrite(request)
  body = send_request('DescribeRewrite', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeRewriteResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeTargetGroupInstances(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeTargetGroupInstancesResponse`

Parameters:

  • request:

    Request instance for DescribeTargetGroupInstances.



1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
# File 'lib/v20180317/client.rb', line 1263

def DescribeTargetGroupInstances(request)
  body = send_request('DescribeTargetGroupInstances', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeTargetGroupInstancesResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeTargetGroupList(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeTargetGroupListResponse`

Parameters:

  • request:

    Request instance for DescribeTargetGroupList.



1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
# File 'lib/v20180317/client.rb', line 1287

def DescribeTargetGroupList(request)
  body = send_request('DescribeTargetGroupList', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeTargetGroupListResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeTargetGroups(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeTargetGroupsResponse`

Parameters:

  • request:

    Request instance for DescribeTargetGroups.



1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
# File 'lib/v20180317/client.rb', line 1311

def DescribeTargetGroups(request)
  body = send_request('DescribeTargetGroups', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeTargetGroupsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeTargetHealth(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeTargetHealthResponse`

Parameters:

  • request:

    Request instance for DescribeTargetHealth.



1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
# File 'lib/v20180317/client.rb', line 1335

def DescribeTargetHealth(request)
  body = send_request('DescribeTargetHealth', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeTargetHealthResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeTargets(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeTargetsResponse`

Parameters:

  • request:

    Request instance for DescribeTargets.



1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
# File 'lib/v20180317/client.rb', line 1359

def DescribeTargets(request)
  body = send_request('DescribeTargets', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeTargetsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeTaskStatus(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DescribeTaskStatusResponse`

Parameters:

  • request:

    Request instance for DescribeTaskStatus.



1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
# File 'lib/v20180317/client.rb', line 1383

def DescribeTaskStatus(request)
  body = send_request('DescribeTaskStatus', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeTaskStatusResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DisassociateTargetGroups(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::DisassociateTargetGroupsResponse`

Parameters:

  • request:

    Request instance for DisassociateTargetGroups.



1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
# File 'lib/v20180317/client.rb', line 1409

def DisassociateTargetGroups(request)
  body = send_request('DisassociateTargetGroups', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DisassociateTargetGroupsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#InquiryPriceCreateLoadBalancer(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::InquiryPriceCreateLoadBalancerResponse`

Parameters:

  • request:

    Request instance for InquiryPriceCreateLoadBalancer.



1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
# File 'lib/v20180317/client.rb', line 1433

def InquiryPriceCreateLoadBalancer(request)
  body = send_request('InquiryPriceCreateLoadBalancer', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = InquiryPriceCreateLoadBalancerResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#InquiryPriceModifyLoadBalancer(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::InquiryPriceModifyLoadBalancerResponse`

Parameters:

  • request:

    Request instance for InquiryPriceModifyLoadBalancer.



1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
# File 'lib/v20180317/client.rb', line 1457

def InquiryPriceModifyLoadBalancer(request)
  body = send_request('InquiryPriceModifyLoadBalancer', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = InquiryPriceModifyLoadBalancerResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#InquiryPriceRefundLoadBalancer(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::InquiryPriceRefundLoadBalancerResponse`

Parameters:

  • request:

    Request instance for InquiryPriceRefundLoadBalancer.



1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
# File 'lib/v20180317/client.rb', line 1481

def InquiryPriceRefundLoadBalancer(request)
  body = send_request('InquiryPriceRefundLoadBalancer', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = InquiryPriceRefundLoadBalancerResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#InquiryPriceRenewLoadBalancer(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::InquiryPriceRenewLoadBalancerResponse`

Parameters:

  • request:

    Request instance for InquiryPriceRenewLoadBalancer.



1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
# File 'lib/v20180317/client.rb', line 1505

def InquiryPriceRenewLoadBalancer(request)
  body = send_request('InquiryPriceRenewLoadBalancer', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = InquiryPriceRenewLoadBalancerResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ManualRewrite(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::ManualRewriteResponse`

Parameters:

  • request:

    Request instance for ManualRewrite.



1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
# File 'lib/v20180317/client.rb', line 1530

def ManualRewrite(request)
  body = send_request('ManualRewrite', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ManualRewriteResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#MigrateClassicalLoadBalancers(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::MigrateClassicalLoadBalancersResponse`

Parameters:

  • request:

    Request instance for MigrateClassicalLoadBalancers.



1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
# File 'lib/v20180317/client.rb', line 1555

def MigrateClassicalLoadBalancers(request)
  body = send_request('MigrateClassicalLoadBalancers', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = MigrateClassicalLoadBalancersResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ModifyBlockIPList(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyBlockIPListResponse`

Parameters:

  • request:

    Request instance for ModifyBlockIPList.



1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
# File 'lib/v20180317/client.rb', line 1580

def ModifyBlockIPList(request)
  body = send_request('ModifyBlockIPList', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyBlockIPListResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ModifyDomain(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyDomainResponse`

Parameters:

  • request:

    Request instance for ModifyDomain.



1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
# File 'lib/v20180317/client.rb', line 1605

def ModifyDomain(request)
  body = send_request('ModifyDomain', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyDomainResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ModifyDomainAttributes(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyDomainAttributesResponse`

Parameters:

  • request:

    Request instance for ModifyDomainAttributes.



1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
# File 'lib/v20180317/client.rb', line 1630

def ModifyDomainAttributes(request)
  body = send_request('ModifyDomainAttributes', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyDomainAttributesResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ModifyFunctionTargets(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyFunctionTargetsResponse`

Parameters:

  • request:

    Request instance for ModifyFunctionTargets.



1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
# File 'lib/v20180317/client.rb', line 1656

def ModifyFunctionTargets(request)
  body = send_request('ModifyFunctionTargets', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyFunctionTargetsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ModifyListener(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyListenerResponse`

Parameters:

  • request:

    Request instance for ModifyListener.



1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
# File 'lib/v20180317/client.rb', line 1681

def ModifyListener(request)
  body = send_request('ModifyListener', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyListenerResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ModifyLoadBalancerAttributes(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyLoadBalancerAttributesResponse`

Parameters:

  • request:

    Request instance for ModifyLoadBalancerAttributes.



1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
# File 'lib/v20180317/client.rb', line 1707

def ModifyLoadBalancerAttributes(request)
  body = send_request('ModifyLoadBalancerAttributes', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyLoadBalancerAttributesResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ModifyLoadBalancerMixIpTarget(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyLoadBalancerMixIpTargetResponse`

Parameters:

  • request:

    Request instance for ModifyLoadBalancerMixIpTarget.



1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
# File 'lib/v20180317/client.rb', line 1731

def ModifyLoadBalancerMixIpTarget(request)
  body = send_request('ModifyLoadBalancerMixIpTarget', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyLoadBalancerMixIpTargetResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ModifyLoadBalancerSla(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyLoadBalancerSlaResponse`

Parameters:

  • request:

    Request instance for ModifyLoadBalancerSla.



1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
# File 'lib/v20180317/client.rb', line 1759

def ModifyLoadBalancerSla(request)
  body = send_request('ModifyLoadBalancerSla', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyLoadBalancerSlaResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ModifyLoadBalancersProject(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyLoadBalancersProjectResponse`

Parameters:

  • request:

    Request instance for ModifyLoadBalancersProject.



1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
# File 'lib/v20180317/client.rb', line 1783

def ModifyLoadBalancersProject(request)
  body = send_request('ModifyLoadBalancersProject', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyLoadBalancersProjectResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ModifyRule(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyRuleResponse`

Parameters:

  • request:

    Request instance for ModifyRule.



1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
# File 'lib/v20180317/client.rb', line 1808

def ModifyRule(request)
  body = send_request('ModifyRule', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyRuleResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ModifyTargetGroupAttribute(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyTargetGroupAttributeResponse`

Parameters:

  • request:

    Request instance for ModifyTargetGroupAttribute.



1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
# File 'lib/v20180317/client.rb', line 1832

def ModifyTargetGroupAttribute(request)
  body = send_request('ModifyTargetGroupAttribute', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyTargetGroupAttributeResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ModifyTargetGroupInstancesPort(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyTargetGroupInstancesPortResponse`

Parameters:

  • request:

    Request instance for ModifyTargetGroupInstancesPort.



1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
# File 'lib/v20180317/client.rb', line 1857

def ModifyTargetGroupInstancesPort(request)
  body = send_request('ModifyTargetGroupInstancesPort', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyTargetGroupInstancesPortResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ModifyTargetGroupInstancesWeight(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyTargetGroupInstancesWeightResponse`

Parameters:

  • request:

    Request instance for ModifyTargetGroupInstancesWeight.



1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
# File 'lib/v20180317/client.rb', line 1882

def ModifyTargetGroupInstancesWeight(request)
  body = send_request('ModifyTargetGroupInstancesWeight', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyTargetGroupInstancesWeightResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ModifyTargetPort(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyTargetPortResponse`

Parameters:

  • request:

    Request instance for ModifyTargetPort.



1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
# File 'lib/v20180317/client.rb', line 1907

def ModifyTargetPort(request)
  body = send_request('ModifyTargetPort', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyTargetPortResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ModifyTargetWeight(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::ModifyTargetWeightResponse`

Parameters:

  • request:

    Request instance for ModifyTargetWeight.



1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
# File 'lib/v20180317/client.rb', line 1932

def ModifyTargetWeight(request)
  body = send_request('ModifyTargetWeight', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyTargetWeightResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#RegisterFunctionTargets(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::RegisterFunctionTargetsResponse`

Parameters:

  • request:

    Request instance for RegisterFunctionTargets.



1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
# File 'lib/v20180317/client.rb', line 1967

def RegisterFunctionTargets(request)
  body = send_request('RegisterFunctionTargets', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = RegisterFunctionTargetsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#RegisterTargetGroupInstances(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::RegisterTargetGroupInstancesResponse`

Parameters:

  • request:

    Request instance for RegisterTargetGroupInstances.



1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
# File 'lib/v20180317/client.rb', line 1992

def RegisterTargetGroupInstances(request)
  body = send_request('RegisterTargetGroupInstances', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = RegisterTargetGroupInstancesResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#RegisterTargets(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::RegisterTargetsResponse`

Parameters:

  • request:

    Request instance for RegisterTargets.



2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
# File 'lib/v20180317/client.rb', line 2017

def RegisterTargets(request)
  body = send_request('RegisterTargets', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = RegisterTargetsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#RegisterTargetsWithClassicalLB(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::RegisterTargetsWithClassicalLBResponse`

Parameters:

  • request:

    Request instance for RegisterTargetsWithClassicalLB.



2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
# File 'lib/v20180317/client.rb', line 2041

def RegisterTargetsWithClassicalLB(request)
  body = send_request('RegisterTargetsWithClassicalLB', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = RegisterTargetsWithClassicalLBResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ReplaceCertForLoadBalancers(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::ReplaceCertForLoadBalancersResponse`

Parameters:

  • request:

    Request instance for ReplaceCertForLoadBalancers.



2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
# File 'lib/v20180317/client.rb', line 2068

def ReplaceCertForLoadBalancers(request)
  body = send_request('ReplaceCertForLoadBalancers', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ReplaceCertForLoadBalancersResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#SetCustomizedConfigForLoadBalancer(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::SetCustomizedConfigForLoadBalancerResponse`

Parameters:

  • request:

    Request instance for SetCustomizedConfigForLoadBalancer.



2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
# File 'lib/v20180317/client.rb', line 2092

def SetCustomizedConfigForLoadBalancer(request)
  body = send_request('SetCustomizedConfigForLoadBalancer', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = SetCustomizedConfigForLoadBalancerResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#SetLoadBalancerClsLog(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::SetLoadBalancerClsLogResponse`

Parameters:

  • request:

    Request instance for SetLoadBalancerClsLog.



2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
# File 'lib/v20180317/client.rb', line 2116

def SetLoadBalancerClsLog(request)
  body = send_request('SetLoadBalancerClsLog', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = SetLoadBalancerClsLogResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#SetLoadBalancerSecurityGroups(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::SetLoadBalancerSecurityGroupsResponse`

Parameters:

  • request:

    Request instance for SetLoadBalancerSecurityGroups.



2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
# File 'lib/v20180317/client.rb', line 2142

def SetLoadBalancerSecurityGroups(request)
  body = send_request('SetLoadBalancerSecurityGroups', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = SetLoadBalancerSecurityGroupsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#SetLoadBalancerStartStatus(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::SetLoadBalancerStartStatusResponse`

Parameters:

  • request:

    Request instance for SetLoadBalancerStartStatus.



2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
# File 'lib/v20180317/client.rb', line 2168

def SetLoadBalancerStartStatus(request)
  body = send_request('SetLoadBalancerStartStatus', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = SetLoadBalancerStartStatusResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#SetSecurityGroupForLoadbalancers(request) ⇒ Object

@rtype: :class:‘Tencentcloud::clb::V20180317::SetSecurityGroupForLoadbalancersResponse`

Parameters:

  • request:

    Request instance for SetSecurityGroupForLoadbalancers.



2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
# File 'lib/v20180317/client.rb', line 2192

def SetSecurityGroupForLoadbalancers(request)
  body = send_request('SetSecurityGroupForLoadbalancers', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = SetSecurityGroupForLoadbalancersResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end