Class: TencentCloud::Cdn::V20180606::Client

Inherits:
TencentCloud::Common::AbstractClient
  • Object
show all
Defined in:
lib/v20180606/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/v20180606/client.rb', line 24

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

Instance Method Details

#AddCdnDomain(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::AddCdnDomainResponse`

Parameters:

  • request:

    Request instance for AddCdnDomain.



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

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

#AddCLSTopicDomains(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::AddCLSTopicDomainsResponse`

Parameters:

  • request:

    Request instance for AddCLSTopicDomains.



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

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

#CreateClsLogTopic(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::CreateClsLogTopicResponse`

Parameters:

  • request:

    Request instance for CreateClsLogTopic.



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

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

#CreateDiagnoseUrl(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::CreateDiagnoseUrlResponse`

Parameters:

  • request:

    Request instance for CreateDiagnoseUrl.



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

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

#CreateEdgePackTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::CreateEdgePackTaskResponse`

Parameters:

  • request:

    Request instance for CreateEdgePackTask.



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

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

#CreateScdnDomain(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::CreateScdnDomainResponse`

Parameters:

  • request:

    Request instance for CreateScdnDomain.



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

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

#CreateScdnFailedLogTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::CreateScdnFailedLogTaskResponse`

Parameters:

  • request:

    Request instance for CreateScdnFailedLogTask.



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

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

#CreateScdnLogTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::CreateScdnLogTaskResponse`

Parameters:

  • request:

    Request instance for CreateScdnLogTask.



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

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

#CreateVerifyRecord(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::CreateVerifyRecordResponse`

Parameters:

  • request:

    Request instance for CreateVerifyRecord.



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

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

#DeleteCdnDomain(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DeleteCdnDomainResponse`

Parameters:

  • request:

    Request instance for DeleteCdnDomain.



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

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

#DeleteClsLogTopic(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DeleteClsLogTopicResponse`

Parameters:

  • request:

    Request instance for DeleteClsLogTopic.



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

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

#DeleteScdnDomain(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DeleteScdnDomainResponse`

Parameters:

  • request:

    Request instance for DeleteScdnDomain.



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

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

#DescribeBillingData(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeBillingDataResponse`

Parameters:

  • request:

    Request instance for DescribeBillingData.



329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
# File 'lib/v20180606/client.rb', line 329

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

#DescribeCcData(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeCcDataResponse`

Parameters:

  • request:

    Request instance for DescribeCcData.



353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
# File 'lib/v20180606/client.rb', line 353

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

#DescribeCdnData(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeCdnDataResponse`

Parameters:

  • request:

    Request instance for DescribeCdnData.



389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
# File 'lib/v20180606/client.rb', line 389

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

#DescribeCdnDomainLogs(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeCdnDomainLogsResponse`

Parameters:

  • request:

    Request instance for DescribeCdnDomainLogs.



413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
# File 'lib/v20180606/client.rb', line 413

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

#DescribeCdnIp(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeCdnIpResponse`

Parameters:

  • request:

    Request instance for DescribeCdnIp.



438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
# File 'lib/v20180606/client.rb', line 438

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

#DescribeCdnOriginIp(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeCdnOriginIpResponse`

Parameters:

  • request:

    Request instance for DescribeCdnOriginIp.



463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
# File 'lib/v20180606/client.rb', line 463

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

#DescribeCertDomains(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeCertDomainsResponse`

Parameters:

  • request:

    Request instance for DescribeCertDomains.



487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
# File 'lib/v20180606/client.rb', line 487

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

#DescribeDDoSData(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeDDoSDataResponse`

Parameters:

  • request:

    Request instance for DescribeDDoSData.



511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
# File 'lib/v20180606/client.rb', line 511

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

#DescribeDiagnoseReport(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeDiagnoseReportResponse`

Parameters:

  • request:

    Request instance for DescribeDiagnoseReport.



536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
# File 'lib/v20180606/client.rb', line 536

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

#DescribeDistrictIspData(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeDistrictIspDataResponse`

Parameters:

  • request:

    Request instance for DescribeDistrictIspData.



561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
# File 'lib/v20180606/client.rb', line 561

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

#DescribeDomains(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeDomainsResponse`

Parameters:

  • request:

    Request instance for DescribeDomains.



585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
# File 'lib/v20180606/client.rb', line 585

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

#DescribeDomainsConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeDomainsConfigResponse`

Parameters:

  • request:

    Request instance for DescribeDomainsConfig.



609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
# File 'lib/v20180606/client.rb', line 609

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

#DescribeEdgePackTaskStatus(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeEdgePackTaskStatusResponse`

Parameters:

  • request:

    Request instance for DescribeEdgePackTaskStatus.



633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
# File 'lib/v20180606/client.rb', line 633

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

#DescribeEventLogData(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeEventLogDataResponse`

Parameters:

  • request:

    Request instance for DescribeEventLogData.



657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
# File 'lib/v20180606/client.rb', line 657

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

#DescribeHttpsPackages(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeHttpsPackagesResponse`

Parameters:

  • request:

    Request instance for DescribeHttpsPackages.



681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
# File 'lib/v20180606/client.rb', line 681

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

#DescribeImageConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeImageConfigResponse`

Parameters:

  • request:

    Request instance for DescribeImageConfig.



705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
# File 'lib/v20180606/client.rb', line 705

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

#DescribeIpStatus(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeIpStatusResponse`

Parameters:

  • request:

    Request instance for DescribeIpStatus.



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

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

#DescribeIpVisit(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeIpVisitResponse`

Parameters:

  • request:

    Request instance for DescribeIpVisit.



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

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

#DescribeMapInfo(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeMapInfoResponse`

Parameters:

  • request:

    Request instance for DescribeMapInfo.



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

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

#DescribeOriginData(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeOriginDataResponse`

Parameters:

  • request:

    Request instance for DescribeOriginData.



816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
# File 'lib/v20180606/client.rb', line 816

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

#DescribePayType(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribePayTypeResponse`

Parameters:

  • request:

    Request instance for DescribePayType.



840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
# File 'lib/v20180606/client.rb', line 840

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

#DescribePurgeQuota(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribePurgeQuotaResponse`

Parameters:

  • request:

    Request instance for DescribePurgeQuota.



864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
# File 'lib/v20180606/client.rb', line 864

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

#DescribePurgeTasks(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribePurgeTasksResponse`

Parameters:

  • request:

    Request instance for DescribePurgeTasks.



888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
# File 'lib/v20180606/client.rb', line 888

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

#DescribePushQuota(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribePushQuotaResponse`

Parameters:

  • request:

    Request instance for DescribePushQuota.



912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
# File 'lib/v20180606/client.rb', line 912

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

#DescribePushTasks(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribePushTasksResponse`

Parameters:

  • request:

    Request instance for DescribePushTasks.



936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
# File 'lib/v20180606/client.rb', line 936

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

#DescribeReportData(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeReportDataResponse`

Parameters:

  • request:

    Request instance for DescribeReportData.



960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
# File 'lib/v20180606/client.rb', line 960

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

#DescribeScdnBotData(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeScdnBotDataResponse`

Parameters:

  • request:

    Request instance for DescribeScdnBotData.



984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
# File 'lib/v20180606/client.rb', line 984

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

#DescribeScdnBotRecords(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeScdnBotRecordsResponse`

Parameters:

  • request:

    Request instance for DescribeScdnBotRecords.



1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
# File 'lib/v20180606/client.rb', line 1008

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

#DescribeScdnConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeScdnConfigResponse`

Parameters:

  • request:

    Request instance for DescribeScdnConfig.



1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
# File 'lib/v20180606/client.rb', line 1032

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

#DescribeScdnIpStrategy(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeScdnIpStrategyResponse`

Parameters:

  • request:

    Request instance for DescribeScdnIpStrategy.



1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
# File 'lib/v20180606/client.rb', line 1056

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

#DescribeScdnTopData(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeScdnTopDataResponse`

Parameters:

  • request:

    Request instance for DescribeScdnTopData.



1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
# File 'lib/v20180606/client.rb', line 1080

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

#DescribeTopData(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeTopDataResponse`

Parameters:

  • request:

    Request instance for DescribeTopData.



1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
# File 'lib/v20180606/client.rb', line 1114

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

#DescribeTrafficPackages(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeTrafficPackagesResponse`

Parameters:

  • request:

    Request instance for DescribeTrafficPackages.



1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
# File 'lib/v20180606/client.rb', line 1138

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

#DescribeUrlViolations(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeUrlViolationsResponse`

Parameters:

  • request:

    Request instance for DescribeUrlViolations.



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

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

#DescribeWafData(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DescribeWafDataResponse`

Parameters:

  • request:

    Request instance for DescribeWafData.



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

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

#DisableCaches(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DisableCachesResponse`

Parameters:

  • request:

    Request instance for DisableCaches.



1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
# File 'lib/v20180606/client.rb', line 1212

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

#DisableClsLogTopic(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DisableClsLogTopicResponse`

Parameters:

  • request:

    Request instance for DisableClsLogTopic.



1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
# File 'lib/v20180606/client.rb', line 1236

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

#DuplicateDomainConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::DuplicateDomainConfigResponse`

Parameters:

  • request:

    Request instance for DuplicateDomainConfig.



1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
# File 'lib/v20180606/client.rb', line 1260

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

#EnableCaches(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::EnableCachesResponse`

Parameters:

  • request:

    Request instance for EnableCaches.



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

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

#EnableClsLogTopic(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::EnableClsLogTopicResponse`

Parameters:

  • request:

    Request instance for EnableClsLogTopic.



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

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

#GetDisableRecords(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::GetDisableRecordsResponse`

Parameters:

  • request:

    Request instance for GetDisableRecords.



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

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

#ListClsLogTopics(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::ListClsLogTopicsResponse`

Parameters:

  • request:

    Request instance for ListClsLogTopics.



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

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

#ListClsTopicDomains(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::ListClsTopicDomainsResponse`

Parameters:

  • request:

    Request instance for ListClsTopicDomains.



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

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

#ListDiagnoseReport(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::ListDiagnoseReportResponse`

Parameters:

  • request:

    Request instance for ListDiagnoseReport.



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

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

#ListScdnDomains(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::ListScdnDomainsResponse`

Parameters:

  • request:

    Request instance for ListScdnDomains.



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

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

#ListScdnLogTasks(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::ListScdnLogTasksResponse`

Parameters:

  • request:

    Request instance for ListScdnLogTasks.



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

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

#ListScdnTopBotData(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::ListScdnTopBotDataResponse`

Parameters:

  • request:

    Request instance for ListScdnTopBotData.



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

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

#ListTopBotData(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::ListTopBotDataResponse`

Parameters:

  • request:

    Request instance for ListTopBotData.



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

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

#ListTopCcData(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::ListTopCcDataResponse`

Parameters:

  • request:

    Request instance for ListTopCcData.



1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
# File 'lib/v20180606/client.rb', line 1527

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

#ListTopClsLogData(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::ListTopClsLogDataResponse`

Parameters:

  • request:

    Request instance for ListTopClsLogData.



1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
# File 'lib/v20180606/client.rb', line 1551

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

#ListTopData(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::ListTopDataResponse`

Parameters:

  • request:

    Request instance for ListTopData.



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

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

#ListTopDDoSData(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::ListTopDDoSDataResponse`

Parameters:

  • request:

    Request instance for ListTopDDoSData.



1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
# File 'lib/v20180606/client.rb', line 1575

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

#ListTopWafData(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::ListTopWafDataResponse`

Parameters:

  • request:

    Request instance for ListTopWafData.



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

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

#ManageClsTopicDomains(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::ManageClsTopicDomainsResponse`

Parameters:

  • request:

    Request instance for ManageClsTopicDomains.



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

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

#ModifyDomainConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::ModifyDomainConfigResponse`

Parameters:

  • request:

    Request instance for ModifyDomainConfig.



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

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

#ModifyPurgeFetchTaskStatus(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::ModifyPurgeFetchTaskStatusResponse`

Parameters:

  • request:

    Request instance for ModifyPurgeFetchTaskStatus.



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

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

#PurgePathCache(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::PurgePathCacheResponse`

Parameters:

  • request:

    Request instance for PurgePathCache.



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

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

#PurgeUrlsCache(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::PurgeUrlsCacheResponse`

Parameters:

  • request:

    Request instance for PurgeUrlsCache.



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

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

#PushUrlsCache(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::PushUrlsCacheResponse`

Parameters:

  • request:

    Request instance for PushUrlsCache.



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

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

#SearchClsLog(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::SearchClsLogResponse`

Parameters:

  • request:

    Request instance for SearchClsLog.



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

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

#StartCdnDomain(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::StartCdnDomainResponse`

Parameters:

  • request:

    Request instance for StartCdnDomain.



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

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

#StartScdnDomain(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::StartScdnDomainResponse`

Parameters:

  • request:

    Request instance for StartScdnDomain.



1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
# File 'lib/v20180606/client.rb', line 1854

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

#StopCdnDomain(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::StopCdnDomainResponse`

Parameters:

  • request:

    Request instance for StopCdnDomain.



1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
# File 'lib/v20180606/client.rb', line 1879

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

#StopScdnDomain(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::StopScdnDomainResponse`

Parameters:

  • request:

    Request instance for StopScdnDomain.



1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
# File 'lib/v20180606/client.rb', line 1903

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

#UpdateDomainConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::UpdateDomainConfigResponse`

Parameters:

  • request:

    Request instance for UpdateDomainConfig.



1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
# File 'lib/v20180606/client.rb', line 1929

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

#UpdateImageConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::UpdateImageConfigResponse`

Parameters:

  • request:

    Request instance for UpdateImageConfig.



1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
# File 'lib/v20180606/client.rb', line 1953

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

#UpdatePayType(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::UpdatePayTypeResponse`

Parameters:

  • request:

    Request instance for UpdatePayType.



1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
# File 'lib/v20180606/client.rb', line 1977

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

#UpdateScdnDomain(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::UpdateScdnDomainResponse`

Parameters:

  • request:

    Request instance for UpdateScdnDomain.



2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
# File 'lib/v20180606/client.rb', line 2001

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

#VerifyDomainRecord(request) ⇒ Object

@rtype: :class:‘Tencentcloud::cdn::V20180606::VerifyDomainRecordResponse`

Parameters:

  • request:

    Request instance for VerifyDomainRecord.



2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
# File 'lib/v20180606/client.rb', line 2027

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