Class: TencentCloud::Billing::V20180709::Client

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

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

Instance Method Details

#CreateAllocationRule(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::CreateAllocationRuleResponse`

Parameters:

  • request:

    Request instance for CreateAllocationRule.



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

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

#CreateAllocationTag(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::CreateAllocationTagResponse`

Parameters:

  • request:

    Request instance for CreateAllocationTag.



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

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

#CreateAllocationUnit(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::CreateAllocationUnitResponse`

Parameters:

  • request:

    Request instance for CreateAllocationUnit.



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

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

#CreateBudget(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::CreateBudgetResponse`

Parameters:

  • request:

    Request instance for CreateBudget.



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

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

#CreateGatherRule(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::CreateGatherRuleResponse`

Parameters:

  • request:

    Request instance for CreateGatherRule.



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

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

#DeleteAllocationRule(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DeleteAllocationRuleResponse`

Parameters:

  • request:

    Request instance for DeleteAllocationRule.



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

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

#DeleteAllocationTag(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DeleteAllocationTagResponse`

Parameters:

  • request:

    Request instance for DeleteAllocationTag.



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

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

#DeleteAllocationUnit(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DeleteAllocationUnitResponse`

Parameters:

  • request:

    Request instance for DeleteAllocationUnit.



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

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

#DeleteBudget(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DeleteBudgetResponse`

Parameters:

  • request:

    Request instance for DeleteBudget.



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

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

#DeleteGatherRule(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DeleteGatherRuleResponse`

Parameters:

  • request:

    Request instance for DeleteGatherRule.



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

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

#DescribeAccountBalance(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeAccountBalanceResponse`

Parameters:

  • request:

    Request instance for DescribeAccountBalance.



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

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

#DescribeAllocateConditions(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeAllocateConditionsResponse`

Parameters:

  • request:

    Request instance for DescribeAllocateConditions.



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

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

#DescribeAllocationBillConditions(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeAllocationBillConditionsResponse`

Parameters:

  • request:

    Request instance for DescribeAllocationBillConditions.



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

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

#DescribeAllocationBillDetail(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeAllocationBillDetailResponse`

Parameters:

  • request:

    Request instance for DescribeAllocationBillDetail.



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

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

#DescribeAllocationMonthOverview(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeAllocationMonthOverviewResponse`

Parameters:

  • request:

    Request instance for DescribeAllocationMonthOverview.



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

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

#DescribeAllocationOverview(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeAllocationOverviewResponse`

Parameters:

  • request:

    Request instance for DescribeAllocationOverview.



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

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

#DescribeAllocationRuleDetail(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeAllocationRuleDetailResponse`

Parameters:

  • request:

    Request instance for DescribeAllocationRuleDetail.



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

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

#DescribeAllocationRuleSummary(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeAllocationRuleSummaryResponse`

Parameters:

  • request:

    Request instance for DescribeAllocationRuleSummary.



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

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

#DescribeAllocationSummaryByBusiness(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeAllocationSummaryByBusinessResponse`

Parameters:

  • request:

    Request instance for DescribeAllocationSummaryByBusiness.



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

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

#DescribeAllocationSummaryByItem(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeAllocationSummaryByItemResponse`

Parameters:

  • request:

    Request instance for DescribeAllocationSummaryByItem.



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

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

#DescribeAllocationSummaryByResource(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeAllocationSummaryByResourceResponse`

Parameters:

  • request:

    Request instance for DescribeAllocationSummaryByResource.



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

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

#DescribeAllocationTree(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeAllocationTreeResponse`

Parameters:

  • request:

    Request instance for DescribeAllocationTree.



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

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

#DescribeAllocationTrendByMonth(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeAllocationTrendByMonthResponse`

Parameters:

  • request:

    Request instance for DescribeAllocationTrendByMonth.



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

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

#DescribeAllocationUnitDetail(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeAllocationUnitDetailResponse`

Parameters:

  • request:

    Request instance for DescribeAllocationUnitDetail.



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

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

#DescribeBillAdjustInfo(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeBillAdjustInfoResponse`

Parameters:

  • request:

    Request instance for DescribeBillAdjustInfo.



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

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

#DescribeBillDetail(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeBillDetailResponse`

Parameters:

  • request:

    Request instance for DescribeBillDetail.



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

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

#DescribeBillDetailForOrganization(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeBillDetailForOrganizationResponse`

Parameters:

  • request:

    Request instance for DescribeBillDetailForOrganization.



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

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

#DescribeBillDownloadUrl(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeBillDownloadUrlResponse`

Parameters:

  • request:

    Request instance for DescribeBillDownloadUrl.



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

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

#DescribeBillList(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeBillListResponse`

Parameters:

  • request:

    Request instance for DescribeBillList.



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

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

#DescribeBillResourceSummary(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeBillResourceSummaryResponse`

Parameters:

  • request:

    Request instance for DescribeBillResourceSummary.



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

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

#DescribeBillResourceSummaryForOrganization(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeBillResourceSummaryForOrganizationResponse`

Parameters:

  • request:

    Request instance for DescribeBillResourceSummaryForOrganization.



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

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

#DescribeBillSummary(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeBillSummaryResponse`

Parameters:

  • request:

    Request instance for DescribeBillSummary.



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

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

#DescribeBillSummaryByPayMode(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeBillSummaryByPayModeResponse`

Parameters:

  • request:

    Request instance for DescribeBillSummaryByPayMode.



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

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

#DescribeBillSummaryByProduct(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeBillSummaryByProductResponse`

Parameters:

  • request:

    Request instance for DescribeBillSummaryByProduct.



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

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

#DescribeBillSummaryByProject(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeBillSummaryByProjectResponse`

Parameters:

  • request:

    Request instance for DescribeBillSummaryByProject.



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

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

#DescribeBillSummaryByRegion(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeBillSummaryByRegionResponse`

Parameters:

  • request:

    Request instance for DescribeBillSummaryByRegion.



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

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

#DescribeBillSummaryByTag(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeBillSummaryByTagResponse`

Parameters:

  • request:

    Request instance for DescribeBillSummaryByTag.



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

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

#DescribeBillSummaryForOrganization(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeBillSummaryForOrganizationResponse`

Parameters:

  • request:

    Request instance for DescribeBillSummaryForOrganization.



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

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

#DescribeBudget(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeBudgetResponse`

Parameters:

  • request:

    Request instance for DescribeBudget.



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

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

#DescribeBudgetOperationLog(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeBudgetOperationLogResponse`

Parameters:

  • request:

    Request instance for DescribeBudgetOperationLog.



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

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

#DescribeBudgetRemindRecordList(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeBudgetRemindRecordListResponse`

Parameters:

  • request:

    Request instance for DescribeBudgetRemindRecordList.



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

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

#DescribeCostDetail(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeCostDetailResponse`

Parameters:

  • request:

    Request instance for DescribeCostDetail.



1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
# File 'lib/v20180709/client.rb', line 1028

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

#DescribeCostExplorerSummary(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeCostExplorerSummaryResponse`

Parameters:

  • request:

    Request instance for DescribeCostExplorerSummary.



1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
# File 'lib/v20180709/client.rb', line 1052

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

#DescribeCostSummaryByProduct(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeCostSummaryByProductResponse`

Parameters:

  • request:

    Request instance for DescribeCostSummaryByProduct.



1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
# File 'lib/v20180709/client.rb', line 1076

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

#DescribeCostSummaryByProject(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeCostSummaryByProjectResponse`

Parameters:

  • request:

    Request instance for DescribeCostSummaryByProject.



1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
# File 'lib/v20180709/client.rb', line 1100

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

#DescribeCostSummaryByRegion(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeCostSummaryByRegionResponse`

Parameters:

  • request:

    Request instance for DescribeCostSummaryByRegion.



1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
# File 'lib/v20180709/client.rb', line 1124

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

#DescribeCostSummaryByResource(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeCostSummaryByResourceResponse`

Parameters:

  • request:

    Request instance for DescribeCostSummaryByResource.



1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
# File 'lib/v20180709/client.rb', line 1148

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

#DescribeDealsByCond(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeDealsByCondResponse`

Parameters:

  • request:

    Request instance for DescribeDealsByCond.



1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
# File 'lib/v20180709/client.rb', line 1172

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

#DescribeDosageCosDetailByDate(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeDosageCosDetailByDateResponse`

Parameters:

  • request:

    Request instance for DescribeDosageCosDetailByDate.



1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
# File 'lib/v20180709/client.rb', line 1196

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

#DescribeDosageDetailByDate(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeDosageDetailByDateResponse`

Parameters:

  • request:

    Request instance for DescribeDosageDetailByDate.



1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
# File 'lib/v20180709/client.rb', line 1220

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

#DescribeDosageDetailList(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeDosageDetailListResponse`

Parameters:

  • request:

    Request instance for DescribeDosageDetailList.



1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
# File 'lib/v20180709/client.rb', line 1244

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

#DescribeGatherResource(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeGatherResourceResponse`

Parameters:

  • request:

    Request instance for DescribeGatherResource.



1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
# File 'lib/v20180709/client.rb', line 1268

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

#DescribeGatherRuleDetail(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeGatherRuleDetailResponse`

Parameters:

  • request:

    Request instance for DescribeGatherRuleDetail.



1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
# File 'lib/v20180709/client.rb', line 1292

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

#DescribeSavingPlanResourceInfo(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeSavingPlanResourceInfoResponse`

Parameters:

  • request:

    Request instance for DescribeSavingPlanResourceInfo.



1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
# File 'lib/v20180709/client.rb', line 1316

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

#DescribeTagList(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeTagListResponse`

Parameters:

  • request:

    Request instance for DescribeTagList.



1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
# File 'lib/v20180709/client.rb', line 1340

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

#DescribeVoucherInfo(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeVoucherInfoResponse`

Parameters:

  • request:

    Request instance for DescribeVoucherInfo.



1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
# File 'lib/v20180709/client.rb', line 1364

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

#DescribeVoucherUsageDetails(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::DescribeVoucherUsageDetailsResponse`

Parameters:

  • request:

    Request instance for DescribeVoucherUsageDetails.



1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
# File 'lib/v20180709/client.rb', line 1388

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

#ModifyAllocationRule(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::ModifyAllocationRuleResponse`

Parameters:

  • request:

    Request instance for ModifyAllocationRule.



1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
# File 'lib/v20180709/client.rb', line 1412

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

#ModifyAllocationUnit(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::ModifyAllocationUnitResponse`

Parameters:

  • request:

    Request instance for ModifyAllocationUnit.



1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
# File 'lib/v20180709/client.rb', line 1436

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

#ModifyBudget(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::ModifyBudgetResponse`

Parameters:

  • request:

    Request instance for ModifyBudget.



1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
# File 'lib/v20180709/client.rb', line 1460

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

#ModifyGatherRule(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::ModifyGatherRuleResponse`

Parameters:

  • request:

    Request instance for ModifyGatherRule.



1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
# File 'lib/v20180709/client.rb', line 1484

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

#PayDeals(request) ⇒ Object

@rtype: :class:‘Tencentcloud::billing::V20180709::PayDealsResponse`

Parameters:

  • request:

    Request instance for PayDeals.



1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
# File 'lib/v20180709/client.rb', line 1508

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