Class: TencentCloud::Bmlb::V20180625::Client

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

Instance Method Summary collapse

Constructor Details

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



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

def initialize(credential, region, profile = nil)
    api_version = '2018-06-25'
    api_endpoint = 'bmlb.tencentcloudapi.com'
    sdk_version = 'BMLB_' + File.read(File.expand_path('../VERSION', __dir__)).strip
    super(credential, region, api_version, api_endpoint, sdk_version, profile)
end

Instance Method Details

#BindL4Backends(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::BindL4BackendsResponse`



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/v20180625/client.rb', line 37

def BindL4Backends(request)
  body = send_request('BindL4Backends', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = BindL4BackendsResponse.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

#BindL7Backends(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::BindL7BackendsResponse`



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'lib/v20180625/client.rb', line 61

def BindL7Backends(request)
  body = send_request('BindL7Backends', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = BindL7BackendsResponse.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

#BindTrafficMirrorListeners(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::BindTrafficMirrorListenersResponse`



85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# File 'lib/v20180625/client.rb', line 85

def BindTrafficMirrorListeners(request)
  body = send_request('BindTrafficMirrorListeners', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = BindTrafficMirrorListenersResponse.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

#BindTrafficMirrorReceivers(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::BindTrafficMirrorReceiversResponse`



109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# File 'lib/v20180625/client.rb', line 109

def BindTrafficMirrorReceivers(request)
  body = send_request('BindTrafficMirrorReceivers', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = BindTrafficMirrorReceiversResponse.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

#CreateL4Listeners(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::CreateL4ListenersResponse`



133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# File 'lib/v20180625/client.rb', line 133

def CreateL4Listeners(request)
  body = send_request('CreateL4Listeners', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateL4ListenersResponse.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

#CreateL7Listeners(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::CreateL7ListenersResponse`



157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# File 'lib/v20180625/client.rb', line 157

def CreateL7Listeners(request)
  body = send_request('CreateL7Listeners', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateL7ListenersResponse.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

#CreateL7Rules(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::CreateL7RulesResponse`



181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# File 'lib/v20180625/client.rb', line 181

def CreateL7Rules(request)
  body = send_request('CreateL7Rules', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateL7RulesResponse.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

#CreateLoadBalancers(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::CreateLoadBalancersResponse`



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

def CreateLoadBalancers(request)
  body = send_request('CreateLoadBalancers', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateLoadBalancersResponse.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

#CreateTrafficMirror(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::CreateTrafficMirrorResponse`



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

def CreateTrafficMirror(request)
  body = send_request('CreateTrafficMirror', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateTrafficMirrorResponse.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

#DeleteL7Domains(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DeleteL7DomainsResponse`



253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
# File 'lib/v20180625/client.rb', line 253

def DeleteL7Domains(request)
  body = send_request('DeleteL7Domains', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteL7DomainsResponse.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

#DeleteL7Rules(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DeleteL7RulesResponse`



277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
# File 'lib/v20180625/client.rb', line 277

def DeleteL7Rules(request)
  body = send_request('DeleteL7Rules', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteL7RulesResponse.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

#DeleteListeners(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DeleteListenersResponse`



301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
# File 'lib/v20180625/client.rb', line 301

def DeleteListeners(request)
  body = send_request('DeleteListeners', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteListenersResponse.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::bmlb::V20180625::DeleteLoadBalancerResponse`



325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
# File 'lib/v20180625/client.rb', line 325

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

#DeleteTrafficMirror(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DeleteTrafficMirrorResponse`



349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
# File 'lib/v20180625/client.rb', line 349

def DeleteTrafficMirror(request)
  body = send_request('DeleteTrafficMirror', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteTrafficMirrorResponse.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

#DescribeCertDetail(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DescribeCertDetailResponse`



373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
# File 'lib/v20180625/client.rb', line 373

def DescribeCertDetail(request)
  body = send_request('DescribeCertDetail', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeCertDetailResponse.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

#DescribeDevicesBindInfo(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DescribeDevicesBindInfoResponse`



397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
# File 'lib/v20180625/client.rb', line 397

def DescribeDevicesBindInfo(request)
  body = send_request('DescribeDevicesBindInfo', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeDevicesBindInfoResponse.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

#DescribeL4Backends(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DescribeL4BackendsResponse`



421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
# File 'lib/v20180625/client.rb', line 421

def DescribeL4Backends(request)
  body = send_request('DescribeL4Backends', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeL4BackendsResponse.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

#DescribeL4ListenerInfo(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DescribeL4ListenerInfoResponse`



445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
# File 'lib/v20180625/client.rb', line 445

def DescribeL4ListenerInfo(request)
  body = send_request('DescribeL4ListenerInfo', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeL4ListenerInfoResponse.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

#DescribeL4Listeners(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DescribeL4ListenersResponse`



469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
# File 'lib/v20180625/client.rb', line 469

def DescribeL4Listeners(request)
  body = send_request('DescribeL4Listeners', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeL4ListenersResponse.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

#DescribeL7Backends(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DescribeL7BackendsResponse`



493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
# File 'lib/v20180625/client.rb', line 493

def DescribeL7Backends(request)
  body = send_request('DescribeL7Backends', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeL7BackendsResponse.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

#DescribeL7ListenerInfo(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DescribeL7ListenerInfoResponse`



517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
# File 'lib/v20180625/client.rb', line 517

def DescribeL7ListenerInfo(request)
  body = send_request('DescribeL7ListenerInfo', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeL7ListenerInfoResponse.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

#DescribeL7Listeners(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DescribeL7ListenersResponse`



541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
# File 'lib/v20180625/client.rb', line 541

def DescribeL7Listeners(request)
  body = send_request('DescribeL7Listeners', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeL7ListenersResponse.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

#DescribeL7ListenersEx(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DescribeL7ListenersExResponse`



565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
# File 'lib/v20180625/client.rb', line 565

def DescribeL7ListenersEx(request)
  body = send_request('DescribeL7ListenersEx', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeL7ListenersExResponse.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

#DescribeL7Rules(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DescribeL7RulesResponse`



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

def DescribeL7Rules(request)
  body = send_request('DescribeL7Rules', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeL7RulesResponse.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

#DescribeLoadBalancerPortInfo(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DescribeLoadBalancerPortInfoResponse`



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

def DescribeLoadBalancerPortInfo(request)
  body = send_request('DescribeLoadBalancerPortInfo', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeLoadBalancerPortInfoResponse.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::bmlb::V20180625::DescribeLoadBalancersResponse`



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

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

#DescribeLoadBalancerTaskResult(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DescribeLoadBalancerTaskResultResponse`



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

def DescribeLoadBalancerTaskResult(request)
  body = send_request('DescribeLoadBalancerTaskResult', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeLoadBalancerTaskResultResponse.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

#DescribeTrafficMirrorListeners(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DescribeTrafficMirrorListenersResponse`



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

def DescribeTrafficMirrorListeners(request)
  body = send_request('DescribeTrafficMirrorListeners', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeTrafficMirrorListenersResponse.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

#DescribeTrafficMirrorReceiverHealthStatus(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DescribeTrafficMirrorReceiverHealthStatusResponse`



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

def DescribeTrafficMirrorReceiverHealthStatus(request)
  body = send_request('DescribeTrafficMirrorReceiverHealthStatus', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeTrafficMirrorReceiverHealthStatusResponse.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

#DescribeTrafficMirrorReceivers(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DescribeTrafficMirrorReceiversResponse`



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

def DescribeTrafficMirrorReceivers(request)
  body = send_request('DescribeTrafficMirrorReceivers', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeTrafficMirrorReceiversResponse.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

#DescribeTrafficMirrors(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::DescribeTrafficMirrorsResponse`



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

def DescribeTrafficMirrors(request)
  body = send_request('DescribeTrafficMirrors', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeTrafficMirrorsResponse.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

#ModifyL4BackendPort(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::ModifyL4BackendPortResponse`



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

def ModifyL4BackendPort(request)
  body = send_request('ModifyL4BackendPort', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyL4BackendPortResponse.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

#ModifyL4BackendProbePort(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::ModifyL4BackendProbePortResponse`



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

def ModifyL4BackendProbePort(request)
  body = send_request('ModifyL4BackendProbePort', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyL4BackendProbePortResponse.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

#ModifyL4BackendWeight(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::ModifyL4BackendWeightResponse`



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

def ModifyL4BackendWeight(request)
  body = send_request('ModifyL4BackendWeight', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyL4BackendWeightResponse.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

#ModifyL4Listener(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::ModifyL4ListenerResponse`



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

def ModifyL4Listener(request)
  body = send_request('ModifyL4Listener', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyL4ListenerResponse.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

#ModifyL7BackendPort(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::ModifyL7BackendPortResponse`



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

def ModifyL7BackendPort(request)
  body = send_request('ModifyL7BackendPort', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyL7BackendPortResponse.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

#ModifyL7BackendWeight(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::ModifyL7BackendWeightResponse`



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

def ModifyL7BackendWeight(request)
  body = send_request('ModifyL7BackendWeight', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyL7BackendWeightResponse.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

#ModifyL7Listener(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::ModifyL7ListenerResponse`



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

def ModifyL7Listener(request)
  body = send_request('ModifyL7Listener', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyL7ListenerResponse.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

#ModifyL7Locations(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::ModifyL7LocationsResponse`



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

def ModifyL7Locations(request)
  body = send_request('ModifyL7Locations', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyL7LocationsResponse.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

#ModifyLoadBalancer(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::ModifyLoadBalancerResponse`



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

def ModifyLoadBalancer(request)
  body = send_request('ModifyLoadBalancer', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyLoadBalancerResponse.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

#ModifyLoadBalancerChargeMode(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::ModifyLoadBalancerChargeModeResponse`



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

def ModifyLoadBalancerChargeMode(request)
  body = send_request('ModifyLoadBalancerChargeMode', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyLoadBalancerChargeModeResponse.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

#ReplaceCert(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::ReplaceCertResponse`



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

def ReplaceCert(request)
  body = send_request('ReplaceCert', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ReplaceCertResponse.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

#SetTrafficMirrorAlias(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::SetTrafficMirrorAliasResponse`



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

def SetTrafficMirrorAlias(request)
  body = send_request('SetTrafficMirrorAlias', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = SetTrafficMirrorAliasResponse.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

#SetTrafficMirrorHealthSwitch(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::SetTrafficMirrorHealthSwitchResponse`



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

def SetTrafficMirrorHealthSwitch(request)
  body = send_request('SetTrafficMirrorHealthSwitch', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = SetTrafficMirrorHealthSwitchResponse.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

#UnbindL4Backends(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::UnbindL4BackendsResponse`



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

def UnbindL4Backends(request)
  body = send_request('UnbindL4Backends', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UnbindL4BackendsResponse.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

#UnbindL7Backends(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::UnbindL7BackendsResponse`



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

def UnbindL7Backends(request)
  body = send_request('UnbindL7Backends', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UnbindL7BackendsResponse.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

#UnbindTrafficMirrorListeners(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::UnbindTrafficMirrorListenersResponse`



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

def UnbindTrafficMirrorListeners(request)
  body = send_request('UnbindTrafficMirrorListeners', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UnbindTrafficMirrorListenersResponse.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

#UnbindTrafficMirrorReceivers(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::UnbindTrafficMirrorReceiversResponse`



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

def UnbindTrafficMirrorReceivers(request)
  body = send_request('UnbindTrafficMirrorReceivers', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UnbindTrafficMirrorReceiversResponse.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

#UploadCert(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bmlb::V20180625::UploadCertResponse`



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

def UploadCert(request)
  body = send_request('UploadCert', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UploadCertResponse.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